]> git.saurik.com Git - wxWidgets.git/blame - configure
wxWave->wxSound, Unix wxSound improvements
[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.
f95e4495 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#
f95e4495 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
f95e4495 25DUALCASE=1; export DUALCASE # for MKS sh
fe0895cf 26
e6cc62c6 27# Support unset when possible.
f95e4495 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
f95e4495 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
f95e4495 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.
f95e4495 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.
f95e4495 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"
f93ca9fd 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 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 \
f95e4495 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\(.*[^/]\)//*[^/][^/]*/*$' \| \
f95e4495
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
f95e4495 822 [$ac_default_prefix]
e6cc62c6 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
f95e4495 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
e46d2a18 931 --enable-wave use wxWave 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
f95e4495
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 ||
f95e4495 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
f95e4495 1182generated by GNU Autoconf 2.59
10f2d63a 1183
f95e4495 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
f95e4495 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
f95e4495 1273 ac_must_keep_next=false # Got value, back to normal.
e6cc62c6 1274 else
f95e4495
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 \
f95e4495
VS
1319 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
e6cc62c6
VS
1321 ;;
1322 *)
1323 sed -n \
f95e4495 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`
f95e4495 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
f95e4495 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 |
f95e4495 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
f95e4495 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;}
f95e4495 1471 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
e6cc62c6 1472echo "$as_me: former value: $ac_old_val" >&2;}
f95e4495 1473 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
e6cc62c6 1474echo "$as_me: current value: $ac_new_val" >&2;}
f95e4495 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
10f2d63a
VZ
2064 DEFAULT_wxUSE_WAVE=no
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
f93ca9fd 2247 DEFAULT_wxUSE_WAVE=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
VS
5584 enablestring=
5585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
5586echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
5587 no_cache=0
5588 # Check whether --enable-wave or --disable-wave was given.
5589if test "${enable_wave+set}" = set; then
5590 enableval="$enable_wave"
5591
5592 if test "$enableval" = yes; then
5593 ac_cv_use_wave='wxUSE_WAVE=yes'
5594 else
5595 ac_cv_use_wave='wxUSE_WAVE=no'
5596 fi
5597
5598else
5599
5600 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
5601 if test "x$LINE" != x ; then
5602 eval "DEFAULT_$LINE"
5603 else
5604 no_cache=1
5605 fi
5606
5607 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
5608
5609fi;
5610
5611 eval "$ac_cv_use_wave"
5612 if test "$no_cache" != 1; then
5613 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
5614 fi
5615
5616 if test "$wxUSE_WAVE" = yes; then
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 \
f95e4495
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 \
f95e4495 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.
f95e4495
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 )
f95e4495 10425 ;;
e6cc62c6 10426 conftest.$ac_ext )
f95e4495
VS
10427 # This is the source file.
10428 ;;
e6cc62c6 10429 [ab].out )
f95e4495
VS
10430 # We found the default executable, but exeext='' is most
10431 # certainly right.
10432 break;;
e6cc62c6 10433 *.* )
f95e4495
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 * )
f95e4495 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" : '[^.]*\(\..*\)'`
f95e4495
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
f95e4495 10610 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10611 ac_status=$?
f95e4495
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); } &&
f95e4495
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
f95e4495 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
f95e4495 10669 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10670 ac_status=$?
f95e4495
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); } &&
f95e4495
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
f95e4495 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}
f95e4495
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
f95e4495 10786 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10787 ac_status=$?
f95e4495
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); } &&
f95e4495
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
f95e4495 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
f95e4495 10841 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10842 ac_status=$?
f95e4495
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); } &&
f95e4495
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 \
f95e4495 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. */
09d3439c 10875$ac_declaration
f95e4495 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
f95e4495 10887 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10888 ac_status=$?
f95e4495
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); } &&
f95e4495
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
f95e4495 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
f95e4495 10932 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10933 ac_status=$?
f95e4495
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); } &&
f95e4495
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
f95e4495 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
f95e4495 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
f95e4495 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
f95e4495 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
f95e4495 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
f95e4495 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
f95e4495 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
f95e4495 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
f95e4495 11430 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11431 ac_status=$?
f95e4495
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); } &&
f95e4495
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
f95e4495 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
f95e4495 11489 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11490 ac_status=$?
f95e4495
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); } &&
f95e4495
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
f95e4495 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 \
f95e4495 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. */
09d3439c 11549$ac_declaration
f95e4495 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
f95e4495 11561 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11562 ac_status=$?
f95e4495
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); } &&
f95e4495
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
f95e4495 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
f95e4495 11606 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11607 ac_status=$?
f95e4495
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); } &&
f95e4495
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
f95e4495 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
e6cc62c6
VS
11655if test -n "$ac_tool_prefix"; then
11656 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11657set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11658echo "$as_me:$LINENO: checking for $ac_word" >&5
11659echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11660if test "${ac_cv_prog_RANLIB+set}" = set; then
11661 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11662else
11663 if test -n "$RANLIB"; then
11664 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11665else
e6cc62c6
VS
11666as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11667for as_dir in $PATH
11668do
11669 IFS=$as_save_IFS
11670 test -z "$as_dir" && as_dir=.
11671 for ac_exec_ext in '' $ac_executable_extensions; do
11672 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11673 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11675 break 2
11676 fi
11677done
11678done
11679
10f2d63a
VZ
11680fi
11681fi
e6cc62c6 11682RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11683if test -n "$RANLIB"; then
e6cc62c6
VS
11684 echo "$as_me:$LINENO: result: $RANLIB" >&5
11685echo "${ECHO_T}$RANLIB" >&6
11686else
11687 echo "$as_me:$LINENO: result: no" >&5
11688echo "${ECHO_T}no" >&6
11689fi
11690
11691fi
11692if test -z "$ac_cv_prog_RANLIB"; then
11693 ac_ct_RANLIB=$RANLIB
11694 # Extract the first word of "ranlib", so it can be a program name with args.
11695set dummy ranlib; ac_word=$2
11696echo "$as_me:$LINENO: checking for $ac_word" >&5
11697echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11698if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11699 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11700else
e6cc62c6
VS
11701 if test -n "$ac_ct_RANLIB"; then
11702 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11703else
11704as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705for as_dir in $PATH
11706do
11707 IFS=$as_save_IFS
11708 test -z "$as_dir" && as_dir=.
11709 for ac_exec_ext in '' $ac_executable_extensions; do
11710 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11711 ac_cv_prog_ac_ct_RANLIB="ranlib"
11712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11713 break 2
11714 fi
11715done
11716done
11717
11718 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11719fi
11720fi
11721ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11722if test -n "$ac_ct_RANLIB"; then
11723 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11724echo "${ECHO_T}$ac_ct_RANLIB" >&6
11725else
11726 echo "$as_me:$LINENO: result: no" >&5
11727echo "${ECHO_T}no" >&6
11728fi
11729
11730 RANLIB=$ac_ct_RANLIB
11731else
11732 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11733fi
11734
10f2d63a
VZ
11735
11736# Extract the first word of "ar", so it can be a program name with args.
11737set dummy ar; ac_word=$2
e6cc62c6
VS
11738echo "$as_me:$LINENO: checking for $ac_word" >&5
11739echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11740if test "${ac_cv_prog_AR+set}" = set; then
11741 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11742else
11743 if test -n "$AR"; then
11744 ac_cv_prog_AR="$AR" # Let the user override the test.
11745else
e6cc62c6
VS
11746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747for as_dir in $PATH
11748do
11749 IFS=$as_save_IFS
11750 test -z "$as_dir" && as_dir=.
11751 for ac_exec_ext in '' $ac_executable_extensions; do
11752 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11753 ac_cv_prog_AR="ar"
11754 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11755 break 2
11756 fi
11757done
11758done
11759
10f2d63a
VZ
11760fi
11761fi
e6cc62c6 11762AR=$ac_cv_prog_AR
10f2d63a 11763if test -n "$AR"; then
e6cc62c6
VS
11764 echo "$as_me:$LINENO: result: $AR" >&5
11765echo "${ECHO_T}$AR" >&6
10f2d63a 11766else
e6cc62c6
VS
11767 echo "$as_me:$LINENO: result: no" >&5
11768echo "${ECHO_T}no" >&6
10f2d63a
VZ
11769fi
11770
911740e7
VS
11771if test "x$AR" = "x" ; then
11772 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11773echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11774 { (exit 1); exit 1; }; }
11775fi
8284b0c5 11776
6054113a 11777# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11778# so one script is as good as another. But avoid the broken or
11779# incompatible versions:
11780# SysV /etc/install, /usr/sbin/install
11781# SunOS /usr/etc/install
11782# IRIX /sbin/install
11783# AIX /bin/install
e6cc62c6 11784# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11785# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11786# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11787# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
f95e4495 11788# OS/2's system install, which has a completely different semantic
10f2d63a 11789# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11790echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11791echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11792if test -z "$INSTALL"; then
e6cc62c6
VS
11793if test "${ac_cv_path_install+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11795else
11796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797for as_dir in $PATH
11798do
11799 IFS=$as_save_IFS
11800 test -z "$as_dir" && as_dir=.
11801 # Account for people who put trailing slashes in PATH elements.
11802case $as_dir/ in
11803 ./ | .// | /cC/* | \
11804 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
f95e4495 11805 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
e6cc62c6
VS
11806 /usr/ucb/* ) ;;
11807 *)
11808 # OSF1 and SCO ODT 3.0 have their own names for install.
11809 # Don't use installbsd from OSF since it installs stuff as root
11810 # by default.
11811 for ac_prog in ginstall scoinst install; do
11812 for ac_exec_ext in '' $ac_executable_extensions; do
f95e4495
VS
11813 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11814 if test $ac_prog = install &&
11815 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11816 # AIX install. It has an incompatible calling convention.
11817 :
11818 elif test $ac_prog = install &&
11819 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11820 # program-specific install script used by HP pwplus--don't use.
11821 :
11822 else
11823 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11824 break 3
11825 fi
11826 fi
10f2d63a 11827 done
e6cc62c6
VS
11828 done
11829 ;;
11830esac
11831done
11832
10f2d63a
VZ
11833
11834fi
11835 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11836 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11837 else
11838 # As a last resort, use the slow shell script. We don't cache a
11839 # path for INSTALL within a source directory, because that will
11840 # break other packages using the cache if that directory is
11841 # removed, or if the path is relative.
e6cc62c6 11842 INSTALL=$ac_install_sh
10f2d63a
VZ
11843 fi
11844fi
e6cc62c6
VS
11845echo "$as_me:$LINENO: result: $INSTALL" >&5
11846echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11847
11848# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11849# It thinks the first close brace ends the variable substitution.
11850test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11851
e6cc62c6 11852test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11853
10f2d63a
VZ
11854test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11855
8284b0c5 11856
1d1b75ac
VZ
11857case ${INSTALL} in
11858 /* ) # Absolute
11859 ;;
4f5a7f74
VZ
11860 ?:* ) # Drive letter, considered as absolute.
11861 ;;
3bd8fb5f 11862 *)
1d1b75ac
VZ
11863 INSTALL=`pwd`/${INSTALL} ;;
11864esac
11865
4f5a7f74
VZ
11866case ${host} in
11867 *-hp-hpux* )
11868 INSTALL_DIR="mkdir"
11869 ;;
11870
11871 *) INSTALL_DIR="$INSTALL -d"
11872 ;;
11873esac
11874
8284b0c5 11875
6054113a
GD
11876case "${host}" in
11877
b5853384 11878 powerpc-*-darwin* )
eb99ae0b
GD
11879 INSTALL_PROGRAM="cp -fp"
11880 INSTALL_DATA="cp -fp"
6054113a
GD
11881 ;;
11882 *)
11883 ;;
d6853540 11884esac
698dcdb6 11885
10f2d63a
VZ
11886# Extract the first word of "strip", so it can be a program name with args.
11887set dummy strip; ac_word=$2
e6cc62c6
VS
11888echo "$as_me:$LINENO: checking for $ac_word" >&5
11889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11890if test "${ac_cv_prog_STRIP+set}" = set; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11892else
11893 if test -n "$STRIP"; then
11894 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11895else
e6cc62c6
VS
11896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11897for as_dir in $PATH
11898do
11899 IFS=$as_save_IFS
11900 test -z "$as_dir" && as_dir=.
11901 for ac_exec_ext in '' $ac_executable_extensions; do
11902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11903 ac_cv_prog_STRIP="strip"
11904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11905 break 2
11906 fi
11907done
11908done
11909
10f2d63a
VZ
11910 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11911fi
11912fi
e6cc62c6 11913STRIP=$ac_cv_prog_STRIP
10f2d63a 11914if test -n "$STRIP"; then
e6cc62c6
VS
11915 echo "$as_me:$LINENO: result: $STRIP" >&5
11916echo "${ECHO_T}$STRIP" >&6
10f2d63a 11917else
e6cc62c6
VS
11918 echo "$as_me:$LINENO: result: no" >&5
11919echo "${ECHO_T}no" >&6
10f2d63a
VZ
11920fi
11921
5c6fa7d2 11922
e6cc62c6
VS
11923echo "$as_me:$LINENO: checking if make is GNU make" >&5
11924echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11925if test "${wx_cv_prog_makeisgnu+set}" = set; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11927else
e6cc62c6 11928
414eab6d 11929 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11930 egrep -s GNU > /dev/null); then
414eab6d
VZ
11931 wx_cv_prog_makeisgnu="yes"
11932 else
11933 wx_cv_prog_makeisgnu="no"
11934 fi
11935
11936fi
e6cc62c6
VS
11937echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11938echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11939
11940if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11941 IF_GNU_MAKE=""
11942else
11943 IF_GNU_MAKE="#"
11944fi
11945
8284b0c5
MB
11946
11947
414eab6d 11948if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11949echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11950echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11951if test "${wx_cv_prog_makevpath+set}" = set; then
11952 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11953else
e6cc62c6 11954
10f2d63a
VZ
11955cat - << EOF > confMake
11956check : file
11957 cp \$? \$@
11958 cp \$? final_file
11959EOF
11960
11961if test ! -d sub ; then
11962 mkdir sub
11963fi
11964echo dummy > sub/file
f6bcfd97 11965${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11966RESULT=$?
11967rm -f sub/file check final_file confMake
11968rmdir sub
11969if test "$RESULT" = 0; then
04e7a216 11970 wx_cv_prog_makevpath="yes"
10f2d63a 11971else
04e7a216
VZ
11972 wx_cv_prog_makevpath="no"
11973fi
11974
11975fi
e6cc62c6
VS
11976echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11977echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11978
11979if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11980{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11981You need a make-utility that is able to use the variable
11982VPATH correctly.
11983If your version of make does not support VPATH correctly,
11984please install GNU-make (possibly as gmake), and start
11985configure with the following command:
11986export MAKE=gmake; ./configure for sh-type shells
11987setenv MAKE gmake; ./configure for csh-type shells
11988Also please do remember to use gmake in this case every time
11989you are trying to compile.
e6cc62c6
VS
11990" >&5
11991echo "$as_me: error:
11992You need a make-utility that is able to use the variable
11993VPATH correctly.
11994If your version of make does not support VPATH correctly,
11995please install GNU-make (possibly as gmake), and start
11996configure with the following command:
11997export MAKE=gmake; ./configure for sh-type shells
11998setenv MAKE gmake; ./configure for csh-type shells
11999Also please do remember to use gmake in this case every time
12000you are trying to compile.
12001" >&2;}
12002 { (exit 1); exit 1; }; }
12003fi fi
e6cc62c6
VS
12004echo "$as_me:$LINENO: checking whether ln -s works" >&5
12005echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
12006LN_S=$as_ln_s
12007if test "$LN_S" = "ln -s"; then
12008 echo "$as_me:$LINENO: result: yes" >&5
12009echo "${ECHO_T}yes" >&6
10f2d63a 12010else
e6cc62c6
VS
12011 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
12012echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 12013fi
5c6fa7d2 12014
247f5006 12015
2b5f62a0
VZ
12016case "${host}" in
12017 *-pc-os2_emx | *-pc-os2-emx )
2b5f62a0 12018 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
12019 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
12020echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
12021if test "${ac_cv_lib_cExt_drand48+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 12023else
e6cc62c6 12024 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 12025LIBS="-lcExt $LIBS"
e6cc62c6 12026cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12027/* confdefs.h. */
12028_ACEOF
12029cat confdefs.h >>conftest.$ac_ext
12030cat >>conftest.$ac_ext <<_ACEOF
12031/* end confdefs.h. */
12032
2b5f62a0 12033/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
12034#ifdef __cplusplus
12035extern "C"
12036#endif
2b5f62a0 12037/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
12038 builtin and then its argument prototype would still apply. */
12039char drand48 ();
12040int
12041main ()
12042{
12043drand48 ();
12044 ;
12045 return 0;
12046}
12047_ACEOF
12048rm -f conftest.$ac_objext conftest$ac_exeext
12049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 12050 (eval $ac_link) 2>conftest.er1
e6cc62c6 12051 ac_status=$?
f95e4495
VS
12052 grep -v '^ *+' conftest.er1 >conftest.err
12053 rm -f conftest.er1
12054 cat conftest.err >&5
e6cc62c6
VS
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } &&
f95e4495
VS
12057 { ac_try='test -z "$ac_c_werror_flag"
12058 || test ! -s conftest.err'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12061 ac_status=$?
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; } &&
12064 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
12065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12066 (eval $ac_try) 2>&5
12067 ac_status=$?
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); }; }; then
12070 ac_cv_lib_cExt_drand48=yes
12071else
12072 echo "$as_me: failed program was:" >&5
12073sed 's/^/| /' conftest.$ac_ext >&5
12074
12075ac_cv_lib_cExt_drand48=no
12076fi
f95e4495
VS
12077rm -f conftest.err conftest.$ac_objext \
12078 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
12079LIBS=$ac_check_lib_save_LIBS
12080fi
12081echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
12082echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
12083if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 12084 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
12085fi
12086
12087 else
12088 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
12089 fi
73d617c9
MB
12090 echo "$as_me:$LINENO: checking for gcc 3 or later" >&5
12091echo $ECHO_N "checking for gcc 3 or later... $ECHO_C" >&6
12092if test "${wx_cv_gcc3+set}" = set; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12094else
12095
12096 cat >conftest.$ac_ext <<_ACEOF
73d617c9
MB
12097/* confdefs.h. */
12098_ACEOF
12099cat confdefs.h >>conftest.$ac_ext
12100cat >>conftest.$ac_ext <<_ACEOF
12101/* end confdefs.h. */
3527f29c 12102
73d617c9
MB
12103int
12104main ()
12105{
12106
12107 #if (__GNUC__ < 3)
12108 #error old gcc
12109 #endif
12110
12111 ;
12112 return 0;
12113}
12114_ACEOF
12115rm -f conftest.$ac_objext
12116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 12117 (eval $ac_compile) 2>conftest.er1
73d617c9 12118 ac_status=$?
f95e4495
VS
12119 grep -v '^ *+' conftest.er1 >conftest.err
12120 rm -f conftest.er1
12121 cat conftest.err >&5
73d617c9
MB
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } &&
f95e4495
VS
12124 { ac_try='test -z "$ac_c_werror_flag"
12125 || test ! -s conftest.err'
12126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12127 (eval $ac_try) 2>&5
12128 ac_status=$?
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); }; } &&
12131 { ac_try='test -s conftest.$ac_objext'
73d617c9
MB
12132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12133 (eval $ac_try) 2>&5
12134 ac_status=$?
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); }; }; then
12137
12138 wx_cv_gcc3=yes
12139
12140else
12141 echo "$as_me: failed program was:" >&5
12142sed 's/^/| /' conftest.$ac_ext >&5
12143
12144
12145 wx_cv_gcc3=no
12146
12147
12148fi
f95e4495 12149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
73d617c9
MB
12150
12151fi
12152echo "$as_me:$LINENO: result: $wx_cv_gcc3" >&5
12153echo "${ECHO_T}$wx_cv_gcc3" >&6
12154 if test "$wx_cv_gcc3" = "no"; then
12155 LIBS="$LIBS -lstdcpp"
12156 else
12157 LIBS="$LIBS -lstdcxx"
12158 fi
2b5f62a0
VZ
12159 ;;
12160esac
12161
a0b9e27f 12162
01aa5863
VS
12163if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
12164 echo "$as_me:$LINENO: checking for strings.h" >&5
12165echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
12166if test "${ac_cv_header_strings_h+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12168else
12169 ac_cv_header_strings_h=no
12170fi
12171echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
12172echo "${ECHO_T}$ac_cv_header_strings_h" >&6
12173 if test "$ac_cv_header_strings_h" = "no"; then
12174 echo "$as_me:$LINENO: result: forced no into cache" >&5
12175echo "${ECHO_T}forced no into cache" >&6
12176 else
12177 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
12178echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
12179 fi
12180fi
12181echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
12182echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12183if test "${ac_cv_header_stdc+set}" = set; then
12184 echo $ECHO_N "(cached) $ECHO_C" >&6
12185else
12186 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12187/* confdefs.h. */
12188_ACEOF
12189cat confdefs.h >>conftest.$ac_ext
12190cat >>conftest.$ac_ext <<_ACEOF
12191/* end confdefs.h. */
12192#include <stdlib.h>
12193#include <stdarg.h>
12194#include <string.h>
12195#include <float.h>
247f5006 12196
e6cc62c6
VS
12197int
12198main ()
12199{
90dd450c 12200
e6cc62c6
VS
12201 ;
12202 return 0;
12203}
12204_ACEOF
12205rm -f conftest.$ac_objext
12206if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 12207 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12208 ac_status=$?
f95e4495
VS
12209 grep -v '^ *+' conftest.er1 >conftest.err
12210 rm -f conftest.er1
12211 cat conftest.err >&5
e6cc62c6
VS
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } &&
f95e4495
VS
12214 { ac_try='test -z "$ac_c_werror_flag"
12215 || test ! -s conftest.err'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; } &&
12221 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223 (eval $ac_try) 2>&5
12224 ac_status=$?
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; }; then
12227 ac_cv_header_stdc=yes
8284b0c5 12228else
e6cc62c6
VS
12229 echo "$as_me: failed program was:" >&5
12230sed 's/^/| /' conftest.$ac_ext >&5
12231
12232ac_cv_header_stdc=no
21d1c967 12233fi
f95e4495 12234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 12235
e6cc62c6
VS
12236if test $ac_cv_header_stdc = yes; then
12237 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12238 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12239/* confdefs.h. */
12240_ACEOF
12241cat confdefs.h >>conftest.$ac_ext
12242cat >>conftest.$ac_ext <<_ACEOF
12243/* end confdefs.h. */
12244#include <string.h>
12245
12246_ACEOF
12247if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12248 $EGREP "memchr" >/dev/null 2>&1; then
12249 :
12250else
12251 ac_cv_header_stdc=no
3a922bb4 12252fi
a0b9e27f 12253rm -f conftest*
e6cc62c6 12254
90dd450c 12255fi
e6cc62c6
VS
12256
12257if test $ac_cv_header_stdc = yes; then
12258 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12259 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12260/* confdefs.h. */
12261_ACEOF
12262cat confdefs.h >>conftest.$ac_ext
12263cat >>conftest.$ac_ext <<_ACEOF
12264/* end confdefs.h. */
12265#include <stdlib.h>
12266
12267_ACEOF
12268if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12269 $EGREP "free" >/dev/null 2>&1; then
12270 :
a0b9e27f 12271else
e6cc62c6 12272 ac_cv_header_stdc=no
21d1c967 12273fi
e6cc62c6 12274rm -f conftest*
247f5006
VZ
12275
12276fi
e6cc62c6
VS
12277
12278if test $ac_cv_header_stdc = yes; then
12279 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12280 if test "$cross_compiling" = yes; then
12281 :
12282else
12283 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12284/* confdefs.h. */
12285_ACEOF
12286cat confdefs.h >>conftest.$ac_ext
12287cat >>conftest.$ac_ext <<_ACEOF
12288/* end confdefs.h. */
12289#include <ctype.h>
12290#if ((' ' & 0x0FF) == 0x020)
12291# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12292# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12293#else
12294# define ISLOWER(c) \
f95e4495
VS
12295 (('a' <= (c) && (c) <= 'i') \
12296 || ('j' <= (c) && (c) <= 'r') \
12297 || ('s' <= (c) && (c) <= 'z'))
e6cc62c6
VS
12298# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12299#endif
12300
12301#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12302int
12303main ()
12304{
12305 int i;
12306 for (i = 0; i < 256; i++)
12307 if (XOR (islower (i), ISLOWER (i))
f95e4495 12308 || toupper (i) != TOUPPER (i))
e6cc62c6
VS
12309 exit(2);
12310 exit (0);
12311}
12312_ACEOF
12313rm -f conftest$ac_exeext
12314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12315 (eval $ac_link) 2>&5
12316 ac_status=$?
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12320 (eval $ac_try) 2>&5
12321 ac_status=$?
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); }; }; then
12324 :
a0b9e27f 12325else
e6cc62c6
VS
12326 echo "$as_me: program exited with status $ac_status" >&5
12327echo "$as_me: failed program was:" >&5
12328sed 's/^/| /' conftest.$ac_ext >&5
12329
12330( exit $ac_status )
12331ac_cv_header_stdc=no
12332fi
f95e4495 12333rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12334fi
12335fi
12336fi
12337echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12338echo "${ECHO_T}$ac_cv_header_stdc" >&6
12339if test $ac_cv_header_stdc = yes; then
12340
12341cat >>confdefs.h <<\_ACEOF
12342#define STDC_HEADERS 1
12343_ACEOF
12344
a0b9e27f 12345fi
e6cc62c6
VS
12346
12347# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
f95e4495 12358 inttypes.h stdint.h unistd.h
e6cc62c6
VS
12359do
12360as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12361echo "$as_me:$LINENO: checking for $ac_header" >&5
12362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12363if eval "test \"\${$as_ac_Header+set}\" = set"; then
12364 echo $ECHO_N "(cached) $ECHO_C" >&6
12365else
12366 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12367/* confdefs.h. */
12368_ACEOF
12369cat confdefs.h >>conftest.$ac_ext
12370cat >>conftest.$ac_ext <<_ACEOF
12371/* end confdefs.h. */
12372$ac_includes_default
12373
12374#include <$ac_header>
12375_ACEOF
12376rm -f conftest.$ac_objext
12377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 12378 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12379 ac_status=$?
f95e4495
VS
12380 grep -v '^ *+' conftest.er1 >conftest.err
12381 rm -f conftest.er1
12382 cat conftest.err >&5
e6cc62c6
VS
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } &&
f95e4495
VS
12385 { ac_try='test -z "$ac_c_werror_flag"
12386 || test ! -s conftest.err'
12387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12388 (eval $ac_try) 2>&5
12389 ac_status=$?
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); }; } &&
12392 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12395 ac_status=$?
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; }; then
12398 eval "$as_ac_Header=yes"
12399else
12400 echo "$as_me: failed program was:" >&5
12401sed 's/^/| /' conftest.$ac_ext >&5
12402
12403eval "$as_ac_Header=no"
12404fi
f95e4495 12405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12406fi
12407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12408echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12409if test `eval echo '${'$as_ac_Header'}'` = yes; then
12410 cat >>confdefs.h <<_ACEOF
12411#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12412_ACEOF
12413
12414fi
12415
a0b9e27f 12416done
90dd450c 12417
e6cc62c6
VS
12418
12419
12420for ac_header in strings.h
21d1c967 12421do
e6cc62c6
VS
12422as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12423if eval "test \"\${$as_ac_Header+set}\" = set"; then
12424 echo "$as_me:$LINENO: checking for $ac_header" >&5
12425echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12426if eval "test \"\${$as_ac_Header+set}\" = set"; then
12427 echo $ECHO_N "(cached) $ECHO_C" >&6
12428fi
12429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12430echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12431else
12432 # Is the header compilable?
12433echo "$as_me:$LINENO: checking $ac_header usability" >&5
12434echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12435cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12436/* confdefs.h. */
12437_ACEOF
12438cat confdefs.h >>conftest.$ac_ext
12439cat >>conftest.$ac_ext <<_ACEOF
12440/* end confdefs.h. */
12441$ac_includes_default
12442#include <$ac_header>
12443_ACEOF
12444rm -f conftest.$ac_objext
12445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 12446 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12447 ac_status=$?
f95e4495
VS
12448 grep -v '^ *+' conftest.er1 >conftest.err
12449 rm -f conftest.er1
12450 cat conftest.err >&5
e6cc62c6
VS
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); } &&
f95e4495
VS
12453 { ac_try='test -z "$ac_c_werror_flag"
12454 || test ! -s conftest.err'
12455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12456 (eval $ac_try) 2>&5
12457 ac_status=$?
12458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12459 (exit $ac_status); }; } &&
12460 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12462 (eval $ac_try) 2>&5
12463 ac_status=$?
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); }; }; then
12466 ac_header_compiler=yes
12467else
12468 echo "$as_me: failed program was:" >&5
12469sed 's/^/| /' conftest.$ac_ext >&5
12470
12471ac_header_compiler=no
12472fi
f95e4495 12473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12474echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12475echo "${ECHO_T}$ac_header_compiler" >&6
12476
12477# Is the header present?
12478echo "$as_me:$LINENO: checking $ac_header presence" >&5
12479echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12480cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12481/* confdefs.h. */
12482_ACEOF
12483cat confdefs.h >>conftest.$ac_ext
12484cat >>conftest.$ac_ext <<_ACEOF
12485/* end confdefs.h. */
12486#include <$ac_header>
12487_ACEOF
12488if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12489 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12490 ac_status=$?
12491 grep -v '^ *+' conftest.er1 >conftest.err
12492 rm -f conftest.er1
12493 cat conftest.err >&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); } >/dev/null; then
12496 if test -s conftest.err; then
12497 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 12498 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12499 else
12500 ac_cpp_err=
12501 fi
12502else
12503 ac_cpp_err=yes
12504fi
12505if test -z "$ac_cpp_err"; then
12506 ac_header_preproc=yes
12507else
12508 echo "$as_me: failed program was:" >&5
12509sed 's/^/| /' conftest.$ac_ext >&5
12510
12511 ac_header_preproc=no
12512fi
12513rm -f conftest.err conftest.$ac_ext
12514echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12515echo "${ECHO_T}$ac_header_preproc" >&6
12516
12517# So? What about this header?
f95e4495
VS
12518case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12519 yes:no: )
e6cc62c6
VS
12520 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12521echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
12522 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12523echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12524 ac_header_preproc=yes
e6cc62c6 12525 ;;
f95e4495 12526 no:yes:* )
e6cc62c6
VS
12527 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12528echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
12529 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12530echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12531 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12532echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12533 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12534echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12536echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
12537 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12538echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12539 (
12540 cat <<\_ASBOX
f95e4495
VS
12541## ----------------------------------------- ##
12542## Report this to wx-dev@lists.wxwindows.org ##
12543## ----------------------------------------- ##
e6cc62c6
VS
12544_ASBOX
12545 ) |
12546 sed "s/^/$as_me: WARNING: /" >&2
12547 ;;
12548esac
12549echo "$as_me:$LINENO: checking for $ac_header" >&5
12550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12551if eval "test \"\${$as_ac_Header+set}\" = set"; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12553else
f95e4495 12554 eval "$as_ac_Header=\$ac_header_preproc"
a0b9e27f 12555fi
e6cc62c6
VS
12556echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12557echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12558
a0b9e27f 12559fi
e6cc62c6
VS
12560if test `eval echo '${'$as_ac_Header'}'` = yes; then
12561 cat >>confdefs.h <<_ACEOF
12562#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12563_ACEOF
12564
12565fi
12566
12567done
12568
e6cc62c6
VS
12569
12570
12571for ac_header in stdlib.h
12572do
12573as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12574if eval "test \"\${$as_ac_Header+set}\" = set"; then
12575 echo "$as_me:$LINENO: checking for $ac_header" >&5
12576echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12577if eval "test \"\${$as_ac_Header+set}\" = set"; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12579fi
12580echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12581echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12582else
12583 # Is the header compilable?
12584echo "$as_me:$LINENO: checking $ac_header usability" >&5
12585echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12586cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12587/* confdefs.h. */
12588_ACEOF
12589cat confdefs.h >>conftest.$ac_ext
12590cat >>conftest.$ac_ext <<_ACEOF
12591/* end confdefs.h. */
12592$ac_includes_default
12593#include <$ac_header>
12594_ACEOF
12595rm -f conftest.$ac_objext
12596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 12597 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12598 ac_status=$?
f95e4495
VS
12599 grep -v '^ *+' conftest.er1 >conftest.err
12600 rm -f conftest.er1
12601 cat conftest.err >&5
e6cc62c6
VS
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } &&
f95e4495
VS
12604 { ac_try='test -z "$ac_c_werror_flag"
12605 || test ! -s conftest.err'
12606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12607 (eval $ac_try) 2>&5
12608 ac_status=$?
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); }; } &&
12611 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12613 (eval $ac_try) 2>&5
12614 ac_status=$?
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); }; }; then
12617 ac_header_compiler=yes
12618else
12619 echo "$as_me: failed program was:" >&5
12620sed 's/^/| /' conftest.$ac_ext >&5
12621
12622ac_header_compiler=no
12623fi
f95e4495 12624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12625echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12626echo "${ECHO_T}$ac_header_compiler" >&6
12627
12628# Is the header present?
12629echo "$as_me:$LINENO: checking $ac_header presence" >&5
12630echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12631cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12632/* confdefs.h. */
12633_ACEOF
12634cat confdefs.h >>conftest.$ac_ext
12635cat >>conftest.$ac_ext <<_ACEOF
12636/* end confdefs.h. */
12637#include <$ac_header>
12638_ACEOF
12639if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12640 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12641 ac_status=$?
12642 grep -v '^ *+' conftest.er1 >conftest.err
12643 rm -f conftest.er1
12644 cat conftest.err >&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); } >/dev/null; then
12647 if test -s conftest.err; then
12648 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 12649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12650 else
12651 ac_cpp_err=
12652 fi
12653else
12654 ac_cpp_err=yes
12655fi
12656if test -z "$ac_cpp_err"; then
12657 ac_header_preproc=yes
12658else
12659 echo "$as_me: failed program was:" >&5
12660sed 's/^/| /' conftest.$ac_ext >&5
12661
12662 ac_header_preproc=no
12663fi
12664rm -f conftest.err conftest.$ac_ext
12665echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12666echo "${ECHO_T}$ac_header_preproc" >&6
12667
12668# So? What about this header?
f95e4495
VS
12669case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12670 yes:no: )
e6cc62c6
VS
12671 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12672echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
12673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12674echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12675 ac_header_preproc=yes
e6cc62c6 12676 ;;
f95e4495 12677 no:yes:* )
e6cc62c6
VS
12678 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12679echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
12680 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12681echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12682 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12683echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12684 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12685echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12686 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12687echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
12688 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12689echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12690 (
12691 cat <<\_ASBOX
f95e4495
VS
12692## ----------------------------------------- ##
12693## Report this to wx-dev@lists.wxwindows.org ##
12694## ----------------------------------------- ##
e6cc62c6
VS
12695_ASBOX
12696 ) |
12697 sed "s/^/$as_me: WARNING: /" >&2
12698 ;;
12699esac
12700echo "$as_me:$LINENO: checking for $ac_header" >&5
12701echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12702if eval "test \"\${$as_ac_Header+set}\" = set"; then
12703 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12704else
f95e4495 12705 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
12706fi
12707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12708echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12709
21d1c967 12710fi
e6cc62c6
VS
12711if test `eval echo '${'$as_ac_Header'}'` = yes; then
12712 cat >>confdefs.h <<_ACEOF
12713#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12714_ACEOF
12715
12716fi
12717
21d1c967 12718done
4f14bcd8 12719
5c6fa7d2 12720
e6cc62c6 12721for ac_header in malloc.h
21d1c967 12722do
e6cc62c6
VS
12723as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12724if eval "test \"\${$as_ac_Header+set}\" = set"; then
12725 echo "$as_me:$LINENO: checking for $ac_header" >&5
12726echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12727if eval "test \"\${$as_ac_Header+set}\" = set"; then
12728 echo $ECHO_N "(cached) $ECHO_C" >&6
12729fi
12730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12732else
12733 # Is the header compilable?
12734echo "$as_me:$LINENO: checking $ac_header usability" >&5
12735echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12736cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12737/* confdefs.h. */
12738_ACEOF
12739cat confdefs.h >>conftest.$ac_ext
12740cat >>conftest.$ac_ext <<_ACEOF
12741/* end confdefs.h. */
12742$ac_includes_default
12743#include <$ac_header>
12744_ACEOF
12745rm -f conftest.$ac_objext
12746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 12747 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12748 ac_status=$?
f95e4495
VS
12749 grep -v '^ *+' conftest.er1 >conftest.err
12750 rm -f conftest.er1
12751 cat conftest.err >&5
e6cc62c6
VS
12752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); } &&
f95e4495
VS
12754 { ac_try='test -z "$ac_c_werror_flag"
12755 || test ! -s conftest.err'
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12758 ac_status=$?
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; } &&
12761 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12764 ac_status=$?
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; }; then
12767 ac_header_compiler=yes
12768else
12769 echo "$as_me: failed program was:" >&5
12770sed 's/^/| /' conftest.$ac_ext >&5
12771
12772ac_header_compiler=no
12773fi
f95e4495 12774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12775echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12776echo "${ECHO_T}$ac_header_compiler" >&6
12777
12778# Is the header present?
12779echo "$as_me:$LINENO: checking $ac_header presence" >&5
12780echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12781cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12782/* confdefs.h. */
12783_ACEOF
12784cat confdefs.h >>conftest.$ac_ext
12785cat >>conftest.$ac_ext <<_ACEOF
12786/* end confdefs.h. */
12787#include <$ac_header>
12788_ACEOF
12789if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12791 ac_status=$?
12792 grep -v '^ *+' conftest.er1 >conftest.err
12793 rm -f conftest.er1
12794 cat conftest.err >&5
12795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796 (exit $ac_status); } >/dev/null; then
12797 if test -s conftest.err; then
12798 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 12799 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12800 else
12801 ac_cpp_err=
12802 fi
12803else
12804 ac_cpp_err=yes
12805fi
12806if test -z "$ac_cpp_err"; then
12807 ac_header_preproc=yes
12808else
12809 echo "$as_me: failed program was:" >&5
12810sed 's/^/| /' conftest.$ac_ext >&5
12811
12812 ac_header_preproc=no
12813fi
12814rm -f conftest.err conftest.$ac_ext
12815echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12816echo "${ECHO_T}$ac_header_preproc" >&6
12817
12818# So? What about this header?
f95e4495
VS
12819case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12820 yes:no: )
e6cc62c6
VS
12821 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12822echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
12823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12824echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12825 ac_header_preproc=yes
e6cc62c6 12826 ;;
f95e4495 12827 no:yes:* )
e6cc62c6
VS
12828 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12829echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
12830 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12831echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12832 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12833echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12834 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12835echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12836 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12837echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
12838 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12839echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12840 (
12841 cat <<\_ASBOX
f95e4495
VS
12842## ----------------------------------------- ##
12843## Report this to wx-dev@lists.wxwindows.org ##
12844## ----------------------------------------- ##
e6cc62c6
VS
12845_ASBOX
12846 ) |
12847 sed "s/^/$as_me: WARNING: /" >&2
12848 ;;
12849esac
12850echo "$as_me:$LINENO: checking for $ac_header" >&5
12851echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12852if eval "test \"\${$as_ac_Header+set}\" = set"; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12854else
f95e4495 12855 eval "$as_ac_Header=\$ac_header_preproc"
d4158b5d 12856fi
e6cc62c6
VS
12857echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12858echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12859
21d1c967 12860fi
e6cc62c6
VS
12861if test `eval echo '${'$as_ac_Header'}'` = yes; then
12862 cat >>confdefs.h <<_ACEOF
12863#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12864_ACEOF
12865
12866fi
12867
12868done
12869
12870
12871for ac_header in unistd.h
12872do
12873as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12874if eval "test \"\${$as_ac_Header+set}\" = set"; then
12875 echo "$as_me:$LINENO: checking for $ac_header" >&5
12876echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12877if eval "test \"\${$as_ac_Header+set}\" = set"; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
12879fi
12880echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12881echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12882else
12883 # Is the header compilable?
12884echo "$as_me:$LINENO: checking $ac_header usability" >&5
12885echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12886cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12887/* confdefs.h. */
12888_ACEOF
12889cat confdefs.h >>conftest.$ac_ext
12890cat >>conftest.$ac_ext <<_ACEOF
12891/* end confdefs.h. */
12892$ac_includes_default
12893#include <$ac_header>
12894_ACEOF
12895rm -f conftest.$ac_objext
12896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 12897 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12898 ac_status=$?
f95e4495
VS
12899 grep -v '^ *+' conftest.er1 >conftest.err
12900 rm -f conftest.er1
12901 cat conftest.err >&5
e6cc62c6
VS
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } &&
f95e4495
VS
12904 { ac_try='test -z "$ac_c_werror_flag"
12905 || test ! -s conftest.err'
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12908 ac_status=$?
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; } &&
12911 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12913 (eval $ac_try) 2>&5
12914 ac_status=$?
12915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12916 (exit $ac_status); }; }; then
12917 ac_header_compiler=yes
12918else
12919 echo "$as_me: failed program was:" >&5
12920sed 's/^/| /' conftest.$ac_ext >&5
12921
12922ac_header_compiler=no
12923fi
f95e4495 12924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12925echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12926echo "${ECHO_T}$ac_header_compiler" >&6
12927
12928# Is the header present?
12929echo "$as_me:$LINENO: checking $ac_header presence" >&5
12930echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12931cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12932/* confdefs.h. */
12933_ACEOF
12934cat confdefs.h >>conftest.$ac_ext
12935cat >>conftest.$ac_ext <<_ACEOF
12936/* end confdefs.h. */
12937#include <$ac_header>
12938_ACEOF
12939if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12941 ac_status=$?
12942 grep -v '^ *+' conftest.er1 >conftest.err
12943 rm -f conftest.er1
12944 cat conftest.err >&5
12945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } >/dev/null; then
12947 if test -s conftest.err; then
12948 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 12949 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12950 else
12951 ac_cpp_err=
12952 fi
a0b9e27f 12953else
e6cc62c6
VS
12954 ac_cpp_err=yes
12955fi
12956if test -z "$ac_cpp_err"; then
12957 ac_header_preproc=yes
12958else
12959 echo "$as_me: failed program was:" >&5
12960sed 's/^/| /' conftest.$ac_ext >&5
12961
12962 ac_header_preproc=no
12963fi
12964rm -f conftest.err conftest.$ac_ext
12965echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12966echo "${ECHO_T}$ac_header_preproc" >&6
12967
12968# So? What about this header?
f95e4495
VS
12969case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12970 yes:no: )
e6cc62c6
VS
12971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12972echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
12973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12974echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12975 ac_header_preproc=yes
e6cc62c6 12976 ;;
f95e4495 12977 no:yes:* )
e6cc62c6
VS
12978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12979echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
12980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12981echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12983echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12985echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12987echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
12988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12989echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12990 (
12991 cat <<\_ASBOX
f95e4495
VS
12992## ----------------------------------------- ##
12993## Report this to wx-dev@lists.wxwindows.org ##
12994## ----------------------------------------- ##
e6cc62c6
VS
12995_ASBOX
12996 ) |
12997 sed "s/^/$as_me: WARNING: /" >&2
12998 ;;
12999esac
13000echo "$as_me:$LINENO: checking for $ac_header" >&5
13001echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13002if eval "test \"\${$as_ac_Header+set}\" = set"; then
13003 echo $ECHO_N "(cached) $ECHO_C" >&6
13004else
f95e4495 13005 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
13006fi
13007echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13008echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13009
13010fi
13011if test `eval echo '${'$as_ac_Header'}'` = yes; then
13012 cat >>confdefs.h <<_ACEOF
13013#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13014_ACEOF
13015
d4158b5d 13016fi
e6cc62c6 13017
21d1c967 13018done
f6bcfd97 13019
e6cc62c6
VS
13020
13021for ac_header in wchar.h
13022do
13023as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13024if eval "test \"\${$as_ac_Header+set}\" = set"; then
13025 echo "$as_me:$LINENO: checking for $ac_header" >&5
13026echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13027if eval "test \"\${$as_ac_Header+set}\" = set"; then
13028 echo $ECHO_N "(cached) $ECHO_C" >&6
13029fi
13030echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13031echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13032else
13033 # Is the header compilable?
13034echo "$as_me:$LINENO: checking $ac_header usability" >&5
13035echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13036cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13037/* confdefs.h. */
13038_ACEOF
13039cat confdefs.h >>conftest.$ac_ext
13040cat >>conftest.$ac_ext <<_ACEOF
13041/* end confdefs.h. */
13042$ac_includes_default
13043#include <$ac_header>
13044_ACEOF
13045rm -f conftest.$ac_objext
13046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 13047 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13048 ac_status=$?
f95e4495
VS
13049 grep -v '^ *+' conftest.er1 >conftest.err
13050 rm -f conftest.er1
13051 cat conftest.err >&5
e6cc62c6
VS
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); } &&
f95e4495
VS
13054 { ac_try='test -z "$ac_c_werror_flag"
13055 || test ! -s conftest.err'
13056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13057 (eval $ac_try) 2>&5
13058 ac_status=$?
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); }; } &&
13061 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 (eval $ac_try) 2>&5
13064 ac_status=$?
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; }; then
13067 ac_header_compiler=yes
13068else
13069 echo "$as_me: failed program was:" >&5
13070sed 's/^/| /' conftest.$ac_ext >&5
13071
13072ac_header_compiler=no
13073fi
f95e4495 13074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13075echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13076echo "${ECHO_T}$ac_header_compiler" >&6
13077
13078# Is the header present?
13079echo "$as_me:$LINENO: checking $ac_header presence" >&5
13080echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13081cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13082/* confdefs.h. */
13083_ACEOF
13084cat confdefs.h >>conftest.$ac_ext
13085cat >>conftest.$ac_ext <<_ACEOF
13086/* end confdefs.h. */
13087#include <$ac_header>
13088_ACEOF
13089if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13091 ac_status=$?
13092 grep -v '^ *+' conftest.er1 >conftest.err
13093 rm -f conftest.er1
13094 cat conftest.err >&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } >/dev/null; then
13097 if test -s conftest.err; then
13098 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 13099 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13100 else
13101 ac_cpp_err=
13102 fi
13103else
13104 ac_cpp_err=yes
13105fi
13106if test -z "$ac_cpp_err"; then
13107 ac_header_preproc=yes
13108else
13109 echo "$as_me: failed program was:" >&5
13110sed 's/^/| /' conftest.$ac_ext >&5
13111
13112 ac_header_preproc=no
13113fi
13114rm -f conftest.err conftest.$ac_ext
13115echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13116echo "${ECHO_T}$ac_header_preproc" >&6
13117
13118# So? What about this header?
f95e4495
VS
13119case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13120 yes:no: )
e6cc62c6
VS
13121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13122echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
13123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13124echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13125 ac_header_preproc=yes
e6cc62c6 13126 ;;
f95e4495 13127 no:yes:* )
e6cc62c6
VS
13128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13129echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
13130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13131echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13133echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13135echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13137echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
13138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13139echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13140 (
13141 cat <<\_ASBOX
f95e4495
VS
13142## ----------------------------------------- ##
13143## Report this to wx-dev@lists.wxwindows.org ##
13144## ----------------------------------------- ##
e6cc62c6
VS
13145_ASBOX
13146 ) |
13147 sed "s/^/$as_me: WARNING: /" >&2
13148 ;;
13149esac
13150echo "$as_me:$LINENO: checking for $ac_header" >&5
13151echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13152if eval "test \"\${$as_ac_Header+set}\" = set"; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13154else
f95e4495 13155 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
13156fi
13157echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13158echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13159
90dd450c 13160fi
e6cc62c6
VS
13161if test `eval echo '${'$as_ac_Header'}'` = yes; then
13162 cat >>confdefs.h <<_ACEOF
13163#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13164_ACEOF
13165
13166fi
13167
13168done
90dd450c 13169
e6cc62c6
VS
13170
13171if test "$ac_cv_header_wchar_h" != "yes"; then
13172
13173for ac_header in wcstr.h
21d1c967 13174do
e6cc62c6
VS
13175as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13176if eval "test \"\${$as_ac_Header+set}\" = set"; then
13177 echo "$as_me:$LINENO: checking for $ac_header" >&5
13178echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13179if eval "test \"\${$as_ac_Header+set}\" = set"; then
13180 echo $ECHO_N "(cached) $ECHO_C" >&6
13181fi
13182echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13183echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13184else
13185 # Is the header compilable?
13186echo "$as_me:$LINENO: checking $ac_header usability" >&5
13187echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13188cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13189/* confdefs.h. */
13190_ACEOF
13191cat confdefs.h >>conftest.$ac_ext
13192cat >>conftest.$ac_ext <<_ACEOF
13193/* end confdefs.h. */
13194$ac_includes_default
13195#include <$ac_header>
13196_ACEOF
13197rm -f conftest.$ac_objext
13198if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 13199 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13200 ac_status=$?
f95e4495
VS
13201 grep -v '^ *+' conftest.er1 >conftest.err
13202 rm -f conftest.er1
13203 cat conftest.err >&5
e6cc62c6
VS
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } &&
f95e4495
VS
13206 { ac_try='test -z "$ac_c_werror_flag"
13207 || test ! -s conftest.err'
13208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13209 (eval $ac_try) 2>&5
13210 ac_status=$?
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); }; } &&
13213 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13215 (eval $ac_try) 2>&5
13216 ac_status=$?
13217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13218 (exit $ac_status); }; }; then
13219 ac_header_compiler=yes
13220else
13221 echo "$as_me: failed program was:" >&5
13222sed 's/^/| /' conftest.$ac_ext >&5
13223
13224ac_header_compiler=no
13225fi
f95e4495 13226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13227echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13228echo "${ECHO_T}$ac_header_compiler" >&6
13229
13230# Is the header present?
13231echo "$as_me:$LINENO: checking $ac_header presence" >&5
13232echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13233cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13234/* confdefs.h. */
13235_ACEOF
13236cat confdefs.h >>conftest.$ac_ext
13237cat >>conftest.$ac_ext <<_ACEOF
13238/* end confdefs.h. */
13239#include <$ac_header>
13240_ACEOF
13241if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13243 ac_status=$?
13244 grep -v '^ *+' conftest.er1 >conftest.err
13245 rm -f conftest.er1
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } >/dev/null; then
13249 if test -s conftest.err; then
13250 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 13251 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13252 else
13253 ac_cpp_err=
13254 fi
13255else
13256 ac_cpp_err=yes
13257fi
13258if test -z "$ac_cpp_err"; then
13259 ac_header_preproc=yes
13260else
13261 echo "$as_me: failed program was:" >&5
13262sed 's/^/| /' conftest.$ac_ext >&5
13263
13264 ac_header_preproc=no
13265fi
13266rm -f conftest.err conftest.$ac_ext
13267echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13268echo "${ECHO_T}$ac_header_preproc" >&6
13269
13270# So? What about this header?
f95e4495
VS
13271case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13272 yes:no: )
e6cc62c6
VS
13273 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13274echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
13275 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13276echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13277 ac_header_preproc=yes
e6cc62c6 13278 ;;
f95e4495 13279 no:yes:* )
e6cc62c6
VS
13280 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13281echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
13282 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13283echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13284 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13285echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13286 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13287echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13289echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
13290 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13291echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13292 (
13293 cat <<\_ASBOX
f95e4495
VS
13294## ----------------------------------------- ##
13295## Report this to wx-dev@lists.wxwindows.org ##
13296## ----------------------------------------- ##
e6cc62c6
VS
13297_ASBOX
13298 ) |
13299 sed "s/^/$as_me: WARNING: /" >&2
13300 ;;
13301esac
13302echo "$as_me:$LINENO: checking for $ac_header" >&5
13303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13304if eval "test \"\${$as_ac_Header+set}\" = set"; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13306else
f95e4495 13307 eval "$as_ac_Header=\$ac_header_preproc"
3a922bb4 13308fi
e6cc62c6
VS
13309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13310echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13311
4f14bcd8 13312fi
e6cc62c6
VS
13313if test `eval echo '${'$as_ac_Header'}'` = yes; then
13314 cat >>confdefs.h <<_ACEOF
13315#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13316_ACEOF
13317
13318fi
13319
13320done
13321
13322fi
13323
13324
13325for ac_header in fnmatch.h
13326do
13327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13328if eval "test \"\${$as_ac_Header+set}\" = set"; then
13329 echo "$as_me:$LINENO: checking for $ac_header" >&5
13330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13331if eval "test \"\${$as_ac_Header+set}\" = set"; then
13332 echo $ECHO_N "(cached) $ECHO_C" >&6
13333fi
13334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13335echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13336else
13337 # Is the header compilable?
13338echo "$as_me:$LINENO: checking $ac_header usability" >&5
13339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13340cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13341/* confdefs.h. */
13342_ACEOF
13343cat confdefs.h >>conftest.$ac_ext
13344cat >>conftest.$ac_ext <<_ACEOF
13345/* end confdefs.h. */
13346$ac_includes_default
13347#include <$ac_header>
13348_ACEOF
13349rm -f conftest.$ac_objext
13350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 13351 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13352 ac_status=$?
f95e4495
VS
13353 grep -v '^ *+' conftest.er1 >conftest.err
13354 rm -f conftest.er1
13355 cat conftest.err >&5
e6cc62c6
VS
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } &&
f95e4495
VS
13358 { ac_try='test -z "$ac_c_werror_flag"
13359 || test ! -s conftest.err'
13360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13361 (eval $ac_try) 2>&5
13362 ac_status=$?
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }; } &&
13365 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13367 (eval $ac_try) 2>&5
13368 ac_status=$?
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); }; }; then
13371 ac_header_compiler=yes
13372else
13373 echo "$as_me: failed program was:" >&5
13374sed 's/^/| /' conftest.$ac_ext >&5
13375
13376ac_header_compiler=no
13377fi
f95e4495 13378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13379echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13380echo "${ECHO_T}$ac_header_compiler" >&6
13381
13382# Is the header present?
13383echo "$as_me:$LINENO: checking $ac_header presence" >&5
13384echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13385cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13386/* confdefs.h. */
13387_ACEOF
13388cat confdefs.h >>conftest.$ac_ext
13389cat >>conftest.$ac_ext <<_ACEOF
13390/* end confdefs.h. */
13391#include <$ac_header>
13392_ACEOF
13393if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13395 ac_status=$?
13396 grep -v '^ *+' conftest.er1 >conftest.err
13397 rm -f conftest.er1
13398 cat conftest.err >&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); } >/dev/null; then
13401 if test -s conftest.err; then
13402 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 13403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13404 else
13405 ac_cpp_err=
13406 fi
13407else
13408 ac_cpp_err=yes
13409fi
13410if test -z "$ac_cpp_err"; then
13411 ac_header_preproc=yes
13412else
13413 echo "$as_me: failed program was:" >&5
13414sed 's/^/| /' conftest.$ac_ext >&5
13415
13416 ac_header_preproc=no
13417fi
13418rm -f conftest.err conftest.$ac_ext
13419echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13420echo "${ECHO_T}$ac_header_preproc" >&6
13421
13422# So? What about this header?
f95e4495
VS
13423case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13424 yes:no: )
e6cc62c6
VS
13425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13426echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
13427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13428echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13429 ac_header_preproc=yes
e6cc62c6 13430 ;;
f95e4495 13431 no:yes:* )
e6cc62c6
VS
13432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13433echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
13434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13435echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13437echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13439echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13441echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
13442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13443echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13444 (
13445 cat <<\_ASBOX
f95e4495
VS
13446## ----------------------------------------- ##
13447## Report this to wx-dev@lists.wxwindows.org ##
13448## ----------------------------------------- ##
e6cc62c6
VS
13449_ASBOX
13450 ) |
13451 sed "s/^/$as_me: WARNING: /" >&2
13452 ;;
13453esac
13454echo "$as_me:$LINENO: checking for $ac_header" >&5
13455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13456if eval "test \"\${$as_ac_Header+set}\" = set"; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13458else
f95e4495 13459 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
13460fi
13461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13463
21d1c967 13464fi
e6cc62c6
VS
13465if test `eval echo '${'$as_ac_Header'}'` = yes; then
13466 cat >>confdefs.h <<_ACEOF
13467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13468_ACEOF
13469
13470fi
13471
21d1c967 13472done
90dd450c 13473
5c6fa7d2 13474
a0b9e27f 13475if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13476
13477for ac_func in fnmatch
21d1c967 13478do
e6cc62c6
VS
13479as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13480echo "$as_me:$LINENO: checking for $ac_func" >&5
13481echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13482if eval "test \"\${$as_ac_var+set}\" = set"; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
13484else
13485 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13486/* confdefs.h. */
13487_ACEOF
13488cat confdefs.h >>conftest.$ac_ext
13489cat >>conftest.$ac_ext <<_ACEOF
13490/* end confdefs.h. */
f95e4495
VS
13491/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13493#define $ac_func innocuous_$ac_func
13494
a0b9e27f 13495/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13496 which can conflict with char $ac_func (); below.
13497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13498 <limits.h> exists even on freestanding compilers. */
f95e4495 13499
e6cc62c6
VS
13500#ifdef __STDC__
13501# include <limits.h>
13502#else
13503# include <assert.h>
13504#endif
f95e4495
VS
13505
13506#undef $ac_func
13507
a0b9e27f 13508/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13509#ifdef __cplusplus
13510extern "C"
13511{
13512#endif
a0b9e27f 13513/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13514 builtin and then its argument prototype would still apply. */
13515char $ac_func ();
a0b9e27f
MB
13516/* The GNU C library defines this for functions which it implements
13517 to always fail with ENOSYS. Some functions are actually named
13518 something starting with __ and the normal name is an alias. */
13519#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13520choke me
13521#else
e6cc62c6
VS
13522char (*f) () = $ac_func;
13523#endif
13524#ifdef __cplusplus
13525}
a0b9e27f
MB
13526#endif
13527
e6cc62c6
VS
13528int
13529main ()
13530{
13531return f != $ac_func;
13532 ;
13533 return 0;
13534}
13535_ACEOF
13536rm -f conftest.$ac_objext conftest$ac_exeext
13537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 13538 (eval $ac_link) 2>conftest.er1
e6cc62c6 13539 ac_status=$?
f95e4495
VS
13540 grep -v '^ *+' conftest.er1 >conftest.err
13541 rm -f conftest.er1
13542 cat conftest.err >&5
e6cc62c6
VS
13543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13544 (exit $ac_status); } &&
f95e4495
VS
13545 { ac_try='test -z "$ac_c_werror_flag"
13546 || test ! -s conftest.err'
13547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13548 (eval $ac_try) 2>&5
13549 ac_status=$?
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; } &&
13552 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
13553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554 (eval $ac_try) 2>&5
13555 ac_status=$?
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }; }; then
13558 eval "$as_ac_var=yes"
13559else
13560 echo "$as_me: failed program was:" >&5
13561sed 's/^/| /' conftest.$ac_ext >&5
13562
13563eval "$as_ac_var=no"
13564fi
f95e4495
VS
13565rm -f conftest.err conftest.$ac_objext \
13566 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
13567fi
13568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13569echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13570if test `eval echo '${'$as_ac_var'}'` = yes; then
13571 cat >>confdefs.h <<_ACEOF
13572#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13573_ACEOF
32832908 13574
21d1c967
GD
13575fi
13576done
90dd450c 13577
a0b9e27f 13578fi
90dd450c 13579
e6cc62c6
VS
13580
13581for ac_header in langinfo.h
21d1c967 13582do
e6cc62c6
VS
13583as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13584if eval "test \"\${$as_ac_Header+set}\" = set"; then
13585 echo "$as_me:$LINENO: checking for $ac_header" >&5
13586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13587if eval "test \"\${$as_ac_Header+set}\" = set"; then
13588 echo $ECHO_N "(cached) $ECHO_C" >&6
13589fi
13590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13591echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13592else
13593 # Is the header compilable?
13594echo "$as_me:$LINENO: checking $ac_header usability" >&5
13595echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13596cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13597/* confdefs.h. */
13598_ACEOF
13599cat confdefs.h >>conftest.$ac_ext
13600cat >>conftest.$ac_ext <<_ACEOF
13601/* end confdefs.h. */
13602$ac_includes_default
13603#include <$ac_header>
13604_ACEOF
13605rm -f conftest.$ac_objext
13606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 13607 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13608 ac_status=$?
f95e4495
VS
13609 grep -v '^ *+' conftest.er1 >conftest.err
13610 rm -f conftest.er1
13611 cat conftest.err >&5
e6cc62c6
VS
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); } &&
f95e4495
VS
13614 { ac_try='test -z "$ac_c_werror_flag"
13615 || test ! -s conftest.err'
13616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13617 (eval $ac_try) 2>&5
13618 ac_status=$?
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); }; } &&
13621 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623 (eval $ac_try) 2>&5
13624 ac_status=$?
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); }; }; then
13627 ac_header_compiler=yes
13628else
13629 echo "$as_me: failed program was:" >&5
13630sed 's/^/| /' conftest.$ac_ext >&5
13631
13632ac_header_compiler=no
13633fi
f95e4495 13634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13635echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13636echo "${ECHO_T}$ac_header_compiler" >&6
13637
13638# Is the header present?
13639echo "$as_me:$LINENO: checking $ac_header presence" >&5
13640echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13641cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13642/* confdefs.h. */
13643_ACEOF
13644cat confdefs.h >>conftest.$ac_ext
13645cat >>conftest.$ac_ext <<_ACEOF
13646/* end confdefs.h. */
13647#include <$ac_header>
13648_ACEOF
13649if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13651 ac_status=$?
13652 grep -v '^ *+' conftest.er1 >conftest.err
13653 rm -f conftest.er1
13654 cat conftest.err >&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } >/dev/null; then
13657 if test -s conftest.err; then
13658 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 13659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13660 else
13661 ac_cpp_err=
13662 fi
13663else
13664 ac_cpp_err=yes
13665fi
13666if test -z "$ac_cpp_err"; then
13667 ac_header_preproc=yes
13668else
13669 echo "$as_me: failed program was:" >&5
13670sed 's/^/| /' conftest.$ac_ext >&5
13671
13672 ac_header_preproc=no
13673fi
13674rm -f conftest.err conftest.$ac_ext
13675echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13676echo "${ECHO_T}$ac_header_preproc" >&6
13677
13678# So? What about this header?
f95e4495
VS
13679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13680 yes:no: )
e6cc62c6
VS
13681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13682echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
13683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13684echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13685 ac_header_preproc=yes
e6cc62c6 13686 ;;
f95e4495 13687 no:yes:* )
e6cc62c6
VS
13688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13689echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
13690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13691echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13693echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13695echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13697echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
13698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13699echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13700 (
13701 cat <<\_ASBOX
f95e4495
VS
13702## ----------------------------------------- ##
13703## Report this to wx-dev@lists.wxwindows.org ##
13704## ----------------------------------------- ##
e6cc62c6
VS
13705_ASBOX
13706 ) |
13707 sed "s/^/$as_me: WARNING: /" >&2
13708 ;;
13709esac
13710echo "$as_me:$LINENO: checking for $ac_header" >&5
13711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13712if eval "test \"\${$as_ac_Header+set}\" = set"; then
13713 echo $ECHO_N "(cached) $ECHO_C" >&6
13714else
f95e4495 13715 eval "$as_ac_Header=\$ac_header_preproc"
90dd450c 13716fi
e6cc62c6
VS
13717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13718echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13719
4f14bcd8 13720fi
e6cc62c6
VS
13721if test `eval echo '${'$as_ac_Header'}'` = yes; then
13722 cat >>confdefs.h <<_ACEOF
13723#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13724_ACEOF
13725
21d1c967 13726fi
e6cc62c6 13727
21d1c967 13728done
3a922bb4 13729
8284b0c5 13730
4f5a7f74
VZ
13731case "${host}" in
13732 *-pc-os2_emx | *-pc-os2-emx )
13733 if test $ac_cv_header_langinfo_h = "yes"; then
13734 LIBS="$LIBS -lintl"
13735 fi
13736 ;;
13737esac
1542ea39 13738
a0b9e27f 13739if test "$wxUSE_GUI" = "yes"; then
73d617c9 13740 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
e6cc62c6 13741
eb69fda5 13742for ac_header in X11/Xlib.h
21d1c967 13743do
e6cc62c6
VS
13744as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13745if eval "test \"\${$as_ac_Header+set}\" = set"; then
13746 echo "$as_me:$LINENO: checking for $ac_header" >&5
13747echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13748if eval "test \"\${$as_ac_Header+set}\" = set"; then
13749 echo $ECHO_N "(cached) $ECHO_C" >&6
13750fi
13751echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13752echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13753else
13754 # Is the header compilable?
13755echo "$as_me:$LINENO: checking $ac_header usability" >&5
13756echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13757cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13758/* confdefs.h. */
13759_ACEOF
13760cat confdefs.h >>conftest.$ac_ext
13761cat >>conftest.$ac_ext <<_ACEOF
13762/* end confdefs.h. */
13763$ac_includes_default
13764#include <$ac_header>
13765_ACEOF
13766rm -f conftest.$ac_objext
13767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 13768 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13769 ac_status=$?
f95e4495
VS
13770 grep -v '^ *+' conftest.er1 >conftest.err
13771 rm -f conftest.er1
13772 cat conftest.err >&5
e6cc62c6
VS
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); } &&
f95e4495
VS
13775 { ac_try='test -z "$ac_c_werror_flag"
13776 || test ! -s conftest.err'
13777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13778 (eval $ac_try) 2>&5
13779 ac_status=$?
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); }; } &&
13782 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13784 (eval $ac_try) 2>&5
13785 ac_status=$?
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; }; then
13788 ac_header_compiler=yes
13789else
13790 echo "$as_me: failed program was:" >&5
13791sed 's/^/| /' conftest.$ac_ext >&5
13792
13793ac_header_compiler=no
13794fi
f95e4495 13795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13796echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13797echo "${ECHO_T}$ac_header_compiler" >&6
13798
13799# Is the header present?
13800echo "$as_me:$LINENO: checking $ac_header presence" >&5
13801echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13802cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13803/* confdefs.h. */
13804_ACEOF
13805cat confdefs.h >>conftest.$ac_ext
13806cat >>conftest.$ac_ext <<_ACEOF
13807/* end confdefs.h. */
13808#include <$ac_header>
13809_ACEOF
13810if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13812 ac_status=$?
13813 grep -v '^ *+' conftest.er1 >conftest.err
13814 rm -f conftest.er1
13815 cat conftest.err >&5
13816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13817 (exit $ac_status); } >/dev/null; then
13818 if test -s conftest.err; then
13819 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 13820 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13821 else
13822 ac_cpp_err=
13823 fi
13824else
13825 ac_cpp_err=yes
13826fi
13827if test -z "$ac_cpp_err"; then
13828 ac_header_preproc=yes
13829else
13830 echo "$as_me: failed program was:" >&5
13831sed 's/^/| /' conftest.$ac_ext >&5
13832
13833 ac_header_preproc=no
13834fi
13835rm -f conftest.err conftest.$ac_ext
13836echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13837echo "${ECHO_T}$ac_header_preproc" >&6
13838
13839# So? What about this header?
f95e4495
VS
13840case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13841 yes:no: )
e6cc62c6
VS
13842 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13843echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
13844 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13845echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13846 ac_header_preproc=yes
e6cc62c6 13847 ;;
f95e4495 13848 no:yes:* )
e6cc62c6
VS
13849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13850echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
13851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13852echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13853 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13854echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13855 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13856echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13858echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
13859 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13860echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13861 (
13862 cat <<\_ASBOX
f95e4495
VS
13863## ----------------------------------------- ##
13864## Report this to wx-dev@lists.wxwindows.org ##
13865## ----------------------------------------- ##
e6cc62c6
VS
13866_ASBOX
13867 ) |
13868 sed "s/^/$as_me: WARNING: /" >&2
13869 ;;
13870esac
13871echo "$as_me:$LINENO: checking for $ac_header" >&5
13872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13873if eval "test \"\${$as_ac_Header+set}\" = set"; then
13874 echo $ECHO_N "(cached) $ECHO_C" >&6
13875else
f95e4495 13876 eval "$as_ac_Header=\$ac_header_preproc"
3a922bb4 13877fi
e6cc62c6
VS
13878echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13879echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13880
90dd450c 13881fi
e6cc62c6
VS
13882if test `eval echo '${'$as_ac_Header'}'` = yes; then
13883 cat >>confdefs.h <<_ACEOF
13884#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13885_ACEOF
13886
247f5006 13887fi
e6cc62c6 13888
eb69fda5
VS
13889done
13890
13891
13892for ac_header in X11/XKBlib.h
13893do
13894as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13895echo "$as_me:$LINENO: checking for $ac_header" >&5
13896echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13897if eval "test \"\${$as_ac_Header+set}\" = set"; then
13898 echo $ECHO_N "(cached) $ECHO_C" >&6
13899else
13900 cat >conftest.$ac_ext <<_ACEOF
eb69fda5
VS
13901/* confdefs.h. */
13902_ACEOF
13903cat confdefs.h >>conftest.$ac_ext
13904cat >>conftest.$ac_ext <<_ACEOF
13905/* end confdefs.h. */
13906
13907 #if HAVE_X11_XLIB_H
13908 #include <X11/Xlib.h>
13909 #endif
13910
13911
13912#include <$ac_header>
13913_ACEOF
13914rm -f conftest.$ac_objext
13915if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 13916 (eval $ac_compile) 2>conftest.er1
eb69fda5 13917 ac_status=$?
f95e4495
VS
13918 grep -v '^ *+' conftest.er1 >conftest.err
13919 rm -f conftest.er1
13920 cat conftest.err >&5
eb69fda5
VS
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); } &&
f95e4495
VS
13923 { ac_try='test -z "$ac_c_werror_flag"
13924 || test ! -s conftest.err'
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13927 ac_status=$?
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; } &&
13930 { ac_try='test -s conftest.$ac_objext'
eb69fda5
VS
13931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13932 (eval $ac_try) 2>&5
13933 ac_status=$?
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); }; }; then
13936 eval "$as_ac_Header=yes"
13937else
13938 echo "$as_me: failed program was:" >&5
13939sed 's/^/| /' conftest.$ac_ext >&5
13940
13941eval "$as_ac_Header=no"
13942fi
f95e4495 13943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
eb69fda5
VS
13944fi
13945echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13946echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13947if test `eval echo '${'$as_ac_Header'}'` = yes; then
13948 cat >>confdefs.h <<_ACEOF
13949#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13950_ACEOF
13951
13952fi
13953
247f5006
VZ
13954done
13955
a0b9e27f
MB
13956 fi
13957fi
247f5006 13958
247f5006 13959
e6cc62c6
VS
13960echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13961echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13962if test "${ac_cv_c_const+set}" = set; then
13963 echo $ECHO_N "(cached) $ECHO_C" >&6
13964else
13965 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13966/* confdefs.h. */
13967_ACEOF
13968cat confdefs.h >>conftest.$ac_ext
13969cat >>conftest.$ac_ext <<_ACEOF
13970/* end confdefs.h. */
13971
13972int
13973main ()
13974{
13975/* FIXME: Include the comments suggested by Paul. */
13976#ifndef __cplusplus
13977 /* Ultrix mips cc rejects this. */
13978 typedef int charset[2];
13979 const charset x;
13980 /* SunOS 4.1.1 cc rejects this. */
13981 char const *const *ccp;
13982 char **p;
13983 /* NEC SVR4.0.2 mips cc rejects this. */
13984 struct point {int x, y;};
13985 static struct point const zero = {0,0};
13986 /* AIX XL C 1.02.0.0 rejects this.
13987 It does not let you subtract one const X* pointer from another in
13988 an arm of an if-expression whose if-part is not a constant
13989 expression */
13990 const char *g = "string";
13991 ccp = &g + (g ? g-g : 0);
13992 /* HPUX 7.0 cc rejects these. */
13993 ++ccp;
13994 p = (char**) ccp;
13995 ccp = (char const *const *) p;
13996 { /* SCO 3.2v4 cc rejects this. */
13997 char *t;
13998 char const *s = 0 ? (char *) 0 : (char const *) 0;
13999
14000 *t++ = 0;
14001 }
14002 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14003 int x[] = {25, 17};
14004 const int *foo = &x[0];
14005 ++foo;
14006 }
14007 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14008 typedef const int *iptr;
14009 iptr p = 0;
14010 ++p;
14011 }
14012 { /* AIX XL C 1.02.0.0 rejects this saying
14013 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14014 struct s { int j; const int *ap[3]; };
14015 struct s *b; b->j = 5;
14016 }
14017 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14018 const int foo = 10;
14019 }
14020#endif
14021
14022 ;
14023 return 0;
14024}
14025_ACEOF
14026rm -f conftest.$ac_objext
14027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14028 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14029 ac_status=$?
f95e4495
VS
14030 grep -v '^ *+' conftest.er1 >conftest.err
14031 rm -f conftest.er1
14032 cat conftest.err >&5
e6cc62c6
VS
14033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14034 (exit $ac_status); } &&
f95e4495
VS
14035 { ac_try='test -z "$ac_c_werror_flag"
14036 || test ! -s conftest.err'
14037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038 (eval $ac_try) 2>&5
14039 ac_status=$?
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; } &&
14042 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14044 (eval $ac_try) 2>&5
14045 ac_status=$?
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); }; }; then
a0b9e27f 14048 ac_cv_c_const=yes
247f5006 14049else
e6cc62c6
VS
14050 echo "$as_me: failed program was:" >&5
14051sed 's/^/| /' conftest.$ac_ext >&5
14052
14053ac_cv_c_const=no
247f5006 14054fi
f95e4495 14055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967 14056fi
e6cc62c6
VS
14057echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14058echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 14059if test $ac_cv_c_const = no; then
e6cc62c6
VS
14060
14061cat >>confdefs.h <<\_ACEOF
14062#define const
14063_ACEOF
10f2d63a 14064
90dd450c 14065fi
81809c07 14066
e6cc62c6
VS
14067echo "$as_me:$LINENO: checking for inline" >&5
14068echo $ECHO_N "checking for inline... $ECHO_C" >&6
14069if test "${ac_cv_c_inline+set}" = set; then
14070 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 14071else
a0b9e27f
MB
14072 ac_cv_c_inline=no
14073for ac_kw in inline __inline__ __inline; do
e6cc62c6 14074 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14075/* confdefs.h. */
14076_ACEOF
14077cat confdefs.h >>conftest.$ac_ext
14078cat >>conftest.$ac_ext <<_ACEOF
14079/* end confdefs.h. */
14080#ifndef __cplusplus
14081typedef int foo_t;
14082static $ac_kw foo_t static_foo () {return 0; }
14083$ac_kw foo_t foo () {return 0; }
14084#endif
a0b9e27f 14085
e6cc62c6
VS
14086_ACEOF
14087rm -f conftest.$ac_objext
14088if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14089 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14090 ac_status=$?
f95e4495
VS
14091 grep -v '^ *+' conftest.er1 >conftest.err
14092 rm -f conftest.er1
14093 cat conftest.err >&5
e6cc62c6
VS
14094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14095 (exit $ac_status); } &&
f95e4495
VS
14096 { ac_try='test -z "$ac_c_werror_flag"
14097 || test ! -s conftest.err'
14098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14100 ac_status=$?
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; } &&
14103 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105 (eval $ac_try) 2>&5
14106 ac_status=$?
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; }; then
a0b9e27f 14109 ac_cv_c_inline=$ac_kw; break
247f5006 14110else
e6cc62c6
VS
14111 echo "$as_me: failed program was:" >&5
14112sed 's/^/| /' conftest.$ac_ext >&5
14113
247f5006 14114fi
f95e4495 14115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 14116done
247f5006
VZ
14117
14118fi
e6cc62c6
VS
14119echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14120echo "${ECHO_T}$ac_cv_c_inline" >&6
f95e4495
VS
14121
14122
e6cc62c6 14123case $ac_cv_c_inline in
a0b9e27f 14124 inline | yes) ;;
f95e4495
VS
14125 *)
14126 case $ac_cv_c_inline in
14127 no) ac_val=;;
14128 *) ac_val=$ac_cv_c_inline;;
14129 esac
14130 cat >>confdefs.h <<_ACEOF
14131#ifndef __cplusplus
14132#define inline $ac_val
14133#endif
09d3439c 14134_ACEOF
f95e4495 14135 ;;
a0b9e27f 14136esac
247f5006 14137
247f5006 14138
e6cc62c6
VS
14139echo "$as_me:$LINENO: checking for char" >&5
14140echo $ECHO_N "checking for char... $ECHO_C" >&6
14141if test "${ac_cv_type_char+set}" = set; then
14142 echo $ECHO_N "(cached) $ECHO_C" >&6
14143else
14144 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14145/* confdefs.h. */
14146_ACEOF
14147cat confdefs.h >>conftest.$ac_ext
14148cat >>conftest.$ac_ext <<_ACEOF
14149/* end confdefs.h. */
14150$ac_includes_default
14151int
14152main ()
14153{
14154if ((char *) 0)
14155 return 0;
14156if (sizeof (char))
14157 return 0;
14158 ;
14159 return 0;
14160}
14161_ACEOF
14162rm -f conftest.$ac_objext
14163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14164 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14165 ac_status=$?
f95e4495
VS
14166 grep -v '^ *+' conftest.er1 >conftest.err
14167 rm -f conftest.er1
14168 cat conftest.err >&5
e6cc62c6
VS
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); } &&
f95e4495
VS
14171 { ac_try='test -z "$ac_c_werror_flag"
14172 || test ! -s conftest.err'
14173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14174 (eval $ac_try) 2>&5
14175 ac_status=$?
14176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177 (exit $ac_status); }; } &&
14178 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14180 (eval $ac_try) 2>&5
14181 ac_status=$?
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); }; }; then
14184 ac_cv_type_char=yes
14185else
14186 echo "$as_me: failed program was:" >&5
14187sed 's/^/| /' conftest.$ac_ext >&5
14188
14189ac_cv_type_char=no
14190fi
f95e4495 14191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14192fi
14193echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14194echo "${ECHO_T}$ac_cv_type_char" >&6
14195
14196echo "$as_me:$LINENO: checking size of char" >&5
14197echo $ECHO_N "checking size of char... $ECHO_C" >&6
14198if test "${ac_cv_sizeof_char+set}" = set; then
14199 echo $ECHO_N "(cached) $ECHO_C" >&6
14200else
14201 if test "$ac_cv_type_char" = yes; then
14202 # The cast to unsigned long works around a bug in the HP C Compiler
14203 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14204 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14205 # This bug is HP SR number 8606223364.
a0b9e27f 14206 if test "$cross_compiling" = yes; then
e6cc62c6
VS
14207 # Depending upon the size, compute the lo and hi bounds.
14208cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14209/* confdefs.h. */
14210_ACEOF
14211cat confdefs.h >>conftest.$ac_ext
14212cat >>conftest.$ac_ext <<_ACEOF
14213/* end confdefs.h. */
14214$ac_includes_default
14215int
14216main ()
14217{
14218static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14219test_array [0] = 0
14220
14221 ;
14222 return 0;
14223}
14224_ACEOF
14225rm -f conftest.$ac_objext
14226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14227 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14228 ac_status=$?
f95e4495
VS
14229 grep -v '^ *+' conftest.er1 >conftest.err
14230 rm -f conftest.er1
14231 cat conftest.err >&5
e6cc62c6
VS
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); } &&
f95e4495
VS
14234 { ac_try='test -z "$ac_c_werror_flag"
14235 || test ! -s conftest.err'
14236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14237 (eval $ac_try) 2>&5
14238 ac_status=$?
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); }; } &&
14241 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }; then
14247 ac_lo=0 ac_mid=0
14248 while :; do
14249 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14250/* confdefs.h. */
14251_ACEOF
14252cat confdefs.h >>conftest.$ac_ext
14253cat >>conftest.$ac_ext <<_ACEOF
14254/* end confdefs.h. */
14255$ac_includes_default
14256int
14257main ()
14258{
14259static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14260test_array [0] = 0
14261
14262 ;
14263 return 0;
14264}
14265_ACEOF
14266rm -f conftest.$ac_objext
14267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14268 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14269 ac_status=$?
f95e4495
VS
14270 grep -v '^ *+' conftest.er1 >conftest.err
14271 rm -f conftest.er1
14272 cat conftest.err >&5
e6cc62c6
VS
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } &&
f95e4495
VS
14275 { ac_try='test -z "$ac_c_werror_flag"
14276 || test ! -s conftest.err'
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14279 ac_status=$?
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; } &&
14282 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284 (eval $ac_try) 2>&5
14285 ac_status=$?
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; }; then
14288 ac_hi=$ac_mid; break
14289else
14290 echo "$as_me: failed program was:" >&5
14291sed 's/^/| /' conftest.$ac_ext >&5
14292
14293ac_lo=`expr $ac_mid + 1`
f95e4495
VS
14294 if test $ac_lo -le $ac_mid; then
14295 ac_lo= ac_hi=
14296 break
14297 fi
14298 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 14299fi
f95e4495 14300rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14301 done
a0b9e27f 14302else
e6cc62c6
VS
14303 echo "$as_me: failed program was:" >&5
14304sed 's/^/| /' conftest.$ac_ext >&5
14305
14306cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14307/* confdefs.h. */
14308_ACEOF
14309cat confdefs.h >>conftest.$ac_ext
14310cat >>conftest.$ac_ext <<_ACEOF
14311/* end confdefs.h. */
14312$ac_includes_default
14313int
14314main ()
14315{
14316static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14317test_array [0] = 0
14318
14319 ;
14320 return 0;
14321}
14322_ACEOF
14323rm -f conftest.$ac_objext
14324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14325 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14326 ac_status=$?
f95e4495
VS
14327 grep -v '^ *+' conftest.er1 >conftest.err
14328 rm -f conftest.er1
14329 cat conftest.err >&5
e6cc62c6
VS
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); } &&
f95e4495
VS
14332 { ac_try='test -z "$ac_c_werror_flag"
14333 || test ! -s conftest.err'
14334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14335 (eval $ac_try) 2>&5
14336 ac_status=$?
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; } &&
14339 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14341 (eval $ac_try) 2>&5
14342 ac_status=$?
14343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14344 (exit $ac_status); }; }; then
14345 ac_hi=-1 ac_mid=-1
14346 while :; do
14347 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14348/* confdefs.h. */
14349_ACEOF
14350cat confdefs.h >>conftest.$ac_ext
14351cat >>conftest.$ac_ext <<_ACEOF
14352/* end confdefs.h. */
14353$ac_includes_default
14354int
14355main ()
14356{
14357static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14358test_array [0] = 0
14359
14360 ;
14361 return 0;
14362}
14363_ACEOF
14364rm -f conftest.$ac_objext
14365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14366 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14367 ac_status=$?
f95e4495
VS
14368 grep -v '^ *+' conftest.er1 >conftest.err
14369 rm -f conftest.er1
14370 cat conftest.err >&5
e6cc62c6
VS
14371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14372 (exit $ac_status); } &&
f95e4495
VS
14373 { ac_try='test -z "$ac_c_werror_flag"
14374 || test ! -s conftest.err'
14375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14376 (eval $ac_try) 2>&5
14377 ac_status=$?
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); }; } &&
14380 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14383 ac_status=$?
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; }; then
14386 ac_lo=$ac_mid; break
14387else
14388 echo "$as_me: failed program was:" >&5
14389sed 's/^/| /' conftest.$ac_ext >&5
14390
14391ac_hi=`expr '(' $ac_mid ')' - 1`
f95e4495
VS
14392 if test $ac_mid -le $ac_hi; then
14393 ac_lo= ac_hi=
14394 break
14395 fi
14396 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14397fi
f95e4495 14398rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14399 done
14400else
14401 echo "$as_me: failed program was:" >&5
14402sed 's/^/| /' conftest.$ac_ext >&5
14403
14404ac_lo= ac_hi=
14405fi
f95e4495 14406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14407fi
f95e4495 14408rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14409# Binary search between lo and hi bounds.
14410while test "x$ac_lo" != "x$ac_hi"; do
14411 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14412 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14413/* confdefs.h. */
14414_ACEOF
14415cat confdefs.h >>conftest.$ac_ext
14416cat >>conftest.$ac_ext <<_ACEOF
14417/* end confdefs.h. */
14418$ac_includes_default
14419int
14420main ()
14421{
14422static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14423test_array [0] = 0
14424
14425 ;
14426 return 0;
14427}
14428_ACEOF
14429rm -f conftest.$ac_objext
14430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14431 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14432 ac_status=$?
f95e4495
VS
14433 grep -v '^ *+' conftest.er1 >conftest.err
14434 rm -f conftest.er1
14435 cat conftest.err >&5
e6cc62c6
VS
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); } &&
f95e4495
VS
14438 { ac_try='test -z "$ac_c_werror_flag"
14439 || test ! -s conftest.err'
14440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441 (eval $ac_try) 2>&5
14442 ac_status=$?
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; } &&
14445 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447 (eval $ac_try) 2>&5
14448 ac_status=$?
14449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450 (exit $ac_status); }; }; then
14451 ac_hi=$ac_mid
14452else
14453 echo "$as_me: failed program was:" >&5
14454sed 's/^/| /' conftest.$ac_ext >&5
14455
14456ac_lo=`expr '(' $ac_mid ')' + 1`
14457fi
f95e4495 14458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14459done
14460case $ac_lo in
14461?*) ac_cv_sizeof_char=$ac_lo;;
14462'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14463See \`config.log' for more details." >&5
14464echo "$as_me: error: cannot compute sizeof (char), 77
14465See \`config.log' for more details." >&2;}
14466 { (exit 1); exit 1; }; } ;;
14467esac
14468else
14469 if test "$cross_compiling" = yes; then
14470 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14471See \`config.log' for more details." >&5
14472echo "$as_me: error: cannot run test program while cross compiling
14473See \`config.log' for more details." >&2;}
14474 { (exit 1); exit 1; }; }
14475else
14476 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14477/* confdefs.h. */
14478_ACEOF
14479cat confdefs.h >>conftest.$ac_ext
14480cat >>conftest.$ac_ext <<_ACEOF
14481/* end confdefs.h. */
14482$ac_includes_default
14483long longval () { return (long) (sizeof (char)); }
14484unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 14485#include <stdio.h>
e6cc62c6
VS
14486#include <stdlib.h>
14487int
14488main ()
247f5006 14489{
e6cc62c6
VS
14490
14491 FILE *f = fopen ("conftest.val", "w");
14492 if (! f)
14493 exit (1);
14494 if (((long) (sizeof (char))) < 0)
14495 {
14496 long i = longval ();
14497 if (i != ((long) (sizeof (char))))
14498 exit (1);
14499 fprintf (f, "%ld\n", i);
14500 }
14501 else
14502 {
14503 unsigned long i = ulongval ();
14504 if (i != ((long) (sizeof (char))))
14505 exit (1);
14506 fprintf (f, "%lu\n", i);
14507 }
14508 exit (ferror (f) || fclose (f) != 0);
14509
14510 ;
14511 return 0;
52127426 14512}
e6cc62c6
VS
14513_ACEOF
14514rm -f conftest$ac_exeext
14515if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14516 (eval $ac_link) 2>&5
14517 ac_status=$?
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14522 ac_status=$?
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; }; then
14525 ac_cv_sizeof_char=`cat conftest.val`
14526else
14527 echo "$as_me: program exited with status $ac_status" >&5
14528echo "$as_me: failed program was:" >&5
14529sed 's/^/| /' conftest.$ac_ext >&5
14530
14531( exit $ac_status )
14532{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14533See \`config.log' for more details." >&5
14534echo "$as_me: error: cannot compute sizeof (char), 77
14535See \`config.log' for more details." >&2;}
14536 { (exit 1); exit 1; }; }
14537fi
f95e4495 14538rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14539fi
14540fi
14541rm -f conftest.val
247f5006 14542else
a0b9e27f 14543 ac_cv_sizeof_char=0
247f5006 14544fi
247f5006 14545fi
e6cc62c6
VS
14546echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14547echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14548cat >>confdefs.h <<_ACEOF
14549#define SIZEOF_CHAR $ac_cv_sizeof_char
14550_ACEOF
14551
14552
14553echo "$as_me:$LINENO: checking for short" >&5
14554echo $ECHO_N "checking for short... $ECHO_C" >&6
14555if test "${ac_cv_type_short+set}" = set; then
14556 echo $ECHO_N "(cached) $ECHO_C" >&6
14557else
14558 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14559/* confdefs.h. */
14560_ACEOF
14561cat confdefs.h >>conftest.$ac_ext
14562cat >>conftest.$ac_ext <<_ACEOF
14563/* end confdefs.h. */
14564$ac_includes_default
14565int
14566main ()
14567{
14568if ((short *) 0)
14569 return 0;
14570if (sizeof (short))
14571 return 0;
14572 ;
14573 return 0;
14574}
14575_ACEOF
14576rm -f conftest.$ac_objext
14577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14578 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14579 ac_status=$?
f95e4495
VS
14580 grep -v '^ *+' conftest.er1 >conftest.err
14581 rm -f conftest.er1
14582 cat conftest.err >&5
e6cc62c6
VS
14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14584 (exit $ac_status); } &&
f95e4495
VS
14585 { ac_try='test -z "$ac_c_werror_flag"
14586 || test ! -s conftest.err'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14589 ac_status=$?
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; } &&
14592 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14595 ac_status=$?
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; }; then
14598 ac_cv_type_short=yes
14599else
14600 echo "$as_me: failed program was:" >&5
14601sed 's/^/| /' conftest.$ac_ext >&5
14602
14603ac_cv_type_short=no
14604fi
f95e4495 14605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14606fi
14607echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14608echo "${ECHO_T}$ac_cv_type_short" >&6
14609
14610echo "$as_me:$LINENO: checking size of short" >&5
14611echo $ECHO_N "checking size of short... $ECHO_C" >&6
14612if test "${ac_cv_sizeof_short+set}" = set; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14614else
14615 if test "$ac_cv_type_short" = yes; then
14616 # The cast to unsigned long works around a bug in the HP C Compiler
14617 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14618 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14619 # This bug is HP SR number 8606223364.
14620 if test "$cross_compiling" = yes; then
14621 # Depending upon the size, compute the lo and hi bounds.
14622cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14623/* confdefs.h. */
14624_ACEOF
14625cat confdefs.h >>conftest.$ac_ext
14626cat >>conftest.$ac_ext <<_ACEOF
14627/* end confdefs.h. */
14628$ac_includes_default
14629int
14630main ()
14631{
14632static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14633test_array [0] = 0
247f5006 14634
e6cc62c6
VS
14635 ;
14636 return 0;
14637}
14638_ACEOF
14639rm -f conftest.$ac_objext
14640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14641 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14642 ac_status=$?
f95e4495
VS
14643 grep -v '^ *+' conftest.er1 >conftest.err
14644 rm -f conftest.er1
14645 cat conftest.err >&5
e6cc62c6
VS
14646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14647 (exit $ac_status); } &&
f95e4495
VS
14648 { ac_try='test -z "$ac_c_werror_flag"
14649 || test ! -s conftest.err'
14650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14651 (eval $ac_try) 2>&5
14652 ac_status=$?
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; } &&
14655 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657 (eval $ac_try) 2>&5
14658 ac_status=$?
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); }; }; then
14661 ac_lo=0 ac_mid=0
14662 while :; do
14663 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14664/* confdefs.h. */
14665_ACEOF
14666cat confdefs.h >>conftest.$ac_ext
14667cat >>conftest.$ac_ext <<_ACEOF
14668/* end confdefs.h. */
14669$ac_includes_default
14670int
14671main ()
14672{
14673static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14674test_array [0] = 0
14675
14676 ;
14677 return 0;
14678}
14679_ACEOF
14680rm -f conftest.$ac_objext
14681if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14682 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14683 ac_status=$?
f95e4495
VS
14684 grep -v '^ *+' conftest.er1 >conftest.err
14685 rm -f conftest.er1
14686 cat conftest.err >&5
e6cc62c6
VS
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); } &&
f95e4495
VS
14689 { ac_try='test -z "$ac_c_werror_flag"
14690 || test ! -s conftest.err'
14691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692 (eval $ac_try) 2>&5
14693 ac_status=$?
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); }; } &&
14696 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14698 (eval $ac_try) 2>&5
14699 ac_status=$?
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; }; then
14702 ac_hi=$ac_mid; break
14703else
14704 echo "$as_me: failed program was:" >&5
14705sed 's/^/| /' conftest.$ac_ext >&5
14706
14707ac_lo=`expr $ac_mid + 1`
f95e4495
VS
14708 if test $ac_lo -le $ac_mid; then
14709 ac_lo= ac_hi=
14710 break
14711 fi
14712 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14713fi
f95e4495 14714rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14715 done
14716else
14717 echo "$as_me: failed program was:" >&5
14718sed 's/^/| /' conftest.$ac_ext >&5
14719
14720cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14721/* confdefs.h. */
14722_ACEOF
14723cat confdefs.h >>conftest.$ac_ext
14724cat >>conftest.$ac_ext <<_ACEOF
14725/* end confdefs.h. */
14726$ac_includes_default
14727int
14728main ()
14729{
14730static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14731test_array [0] = 0
247f5006 14732
e6cc62c6
VS
14733 ;
14734 return 0;
14735}
14736_ACEOF
14737rm -f conftest.$ac_objext
14738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14739 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14740 ac_status=$?
f95e4495
VS
14741 grep -v '^ *+' conftest.er1 >conftest.err
14742 rm -f conftest.er1
14743 cat conftest.err >&5
e6cc62c6
VS
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
f95e4495
VS
14746 { ac_try='test -z "$ac_c_werror_flag"
14747 || test ! -s conftest.err'
14748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14749 (eval $ac_try) 2>&5
14750 ac_status=$?
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); }; } &&
14753 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755 (eval $ac_try) 2>&5
14756 ac_status=$?
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; }; then
14759 ac_hi=-1 ac_mid=-1
14760 while :; do
14761 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14762/* confdefs.h. */
14763_ACEOF
14764cat confdefs.h >>conftest.$ac_ext
14765cat >>conftest.$ac_ext <<_ACEOF
14766/* end confdefs.h. */
14767$ac_includes_default
14768int
14769main ()
14770{
14771static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14772test_array [0] = 0
247f5006 14773
e6cc62c6
VS
14774 ;
14775 return 0;
14776}
14777_ACEOF
14778rm -f conftest.$ac_objext
14779if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14780 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14781 ac_status=$?
f95e4495
VS
14782 grep -v '^ *+' conftest.er1 >conftest.err
14783 rm -f conftest.er1
14784 cat conftest.err >&5
e6cc62c6
VS
14785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786 (exit $ac_status); } &&
f95e4495
VS
14787 { ac_try='test -z "$ac_c_werror_flag"
14788 || test ! -s conftest.err'
14789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14790 (eval $ac_try) 2>&5
14791 ac_status=$?
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; } &&
14794 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14796 (eval $ac_try) 2>&5
14797 ac_status=$?
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); }; }; then
14800 ac_lo=$ac_mid; break
14801else
14802 echo "$as_me: failed program was:" >&5
14803sed 's/^/| /' conftest.$ac_ext >&5
14804
14805ac_hi=`expr '(' $ac_mid ')' - 1`
f95e4495
VS
14806 if test $ac_mid -le $ac_hi; then
14807 ac_lo= ac_hi=
14808 break
14809 fi
14810 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14811fi
f95e4495 14812rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14813 done
247f5006 14814else
e6cc62c6
VS
14815 echo "$as_me: failed program was:" >&5
14816sed 's/^/| /' conftest.$ac_ext >&5
14817
14818ac_lo= ac_hi=
14819fi
f95e4495 14820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14821fi
f95e4495 14822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14823# Binary search between lo and hi bounds.
14824while test "x$ac_lo" != "x$ac_hi"; do
14825 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14826 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14827/* confdefs.h. */
14828_ACEOF
14829cat confdefs.h >>conftest.$ac_ext
14830cat >>conftest.$ac_ext <<_ACEOF
14831/* end confdefs.h. */
14832$ac_includes_default
14833int
14834main ()
14835{
14836static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14837test_array [0] = 0
14838
14839 ;
14840 return 0;
14841}
14842_ACEOF
14843rm -f conftest.$ac_objext
14844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14845 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14846 ac_status=$?
f95e4495
VS
14847 grep -v '^ *+' conftest.er1 >conftest.err
14848 rm -f conftest.er1
14849 cat conftest.err >&5
e6cc62c6
VS
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); } &&
f95e4495
VS
14852 { ac_try='test -z "$ac_c_werror_flag"
14853 || test ! -s conftest.err'
14854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14855 (eval $ac_try) 2>&5
14856 ac_status=$?
14857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14858 (exit $ac_status); }; } &&
14859 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14861 (eval $ac_try) 2>&5
14862 ac_status=$?
14863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14864 (exit $ac_status); }; }; then
14865 ac_hi=$ac_mid
14866else
14867 echo "$as_me: failed program was:" >&5
14868sed 's/^/| /' conftest.$ac_ext >&5
14869
14870ac_lo=`expr '(' $ac_mid ')' + 1`
14871fi
f95e4495 14872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14873done
14874case $ac_lo in
14875?*) ac_cv_sizeof_short=$ac_lo;;
14876'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14877See \`config.log' for more details." >&5
14878echo "$as_me: error: cannot compute sizeof (short), 77
14879See \`config.log' for more details." >&2;}
14880 { (exit 1); exit 1; }; } ;;
14881esac
247f5006 14882else
e6cc62c6
VS
14883 if test "$cross_compiling" = yes; then
14884 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14885See \`config.log' for more details." >&5
14886echo "$as_me: error: cannot run test program while cross compiling
14887See \`config.log' for more details." >&2;}
14888 { (exit 1); exit 1; }; }
14889else
14890 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14891/* confdefs.h. */
14892_ACEOF
14893cat confdefs.h >>conftest.$ac_ext
14894cat >>conftest.$ac_ext <<_ACEOF
14895/* end confdefs.h. */
14896$ac_includes_default
14897long longval () { return (long) (sizeof (short)); }
14898unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14899#include <stdio.h>
e6cc62c6
VS
14900#include <stdlib.h>
14901int
14902main ()
a0b9e27f 14903{
e6cc62c6
VS
14904
14905 FILE *f = fopen ("conftest.val", "w");
14906 if (! f)
14907 exit (1);
14908 if (((long) (sizeof (short))) < 0)
14909 {
14910 long i = longval ();
14911 if (i != ((long) (sizeof (short))))
14912 exit (1);
14913 fprintf (f, "%ld\n", i);
14914 }
14915 else
14916 {
14917 unsigned long i = ulongval ();
14918 if (i != ((long) (sizeof (short))))
14919 exit (1);
14920 fprintf (f, "%lu\n", i);
14921 }
14922 exit (ferror (f) || fclose (f) != 0);
14923
14924 ;
14925 return 0;
a0b9e27f 14926}
e6cc62c6
VS
14927_ACEOF
14928rm -f conftest$ac_exeext
14929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14930 (eval $ac_link) 2>&5
14931 ac_status=$?
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14935 (eval $ac_try) 2>&5
14936 ac_status=$?
14937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14938 (exit $ac_status); }; }; then
14939 ac_cv_sizeof_short=`cat conftest.val`
14940else
14941 echo "$as_me: program exited with status $ac_status" >&5
14942echo "$as_me: failed program was:" >&5
14943sed 's/^/| /' conftest.$ac_ext >&5
14944
14945( exit $ac_status )
14946{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14947See \`config.log' for more details." >&5
14948echo "$as_me: error: cannot compute sizeof (short), 77
14949See \`config.log' for more details." >&2;}
14950 { (exit 1); exit 1; }; }
14951fi
f95e4495 14952rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14953fi
14954fi
14955rm -f conftest.val
247f5006 14956else
a0b9e27f 14957 ac_cv_sizeof_short=0
247f5006 14958fi
247f5006 14959fi
e6cc62c6
VS
14960echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14961echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14962cat >>confdefs.h <<_ACEOF
14963#define SIZEOF_SHORT $ac_cv_sizeof_short
14964_ACEOF
14965
14966
14967echo "$as_me:$LINENO: checking for void *" >&5
14968echo $ECHO_N "checking for void *... $ECHO_C" >&6
14969if test "${ac_cv_type_void_p+set}" = set; then
14970 echo $ECHO_N "(cached) $ECHO_C" >&6
14971else
14972 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14973/* confdefs.h. */
14974_ACEOF
14975cat confdefs.h >>conftest.$ac_ext
14976cat >>conftest.$ac_ext <<_ACEOF
14977/* end confdefs.h. */
14978$ac_includes_default
14979int
14980main ()
14981{
14982if ((void * *) 0)
14983 return 0;
14984if (sizeof (void *))
14985 return 0;
14986 ;
14987 return 0;
14988}
14989_ACEOF
14990rm -f conftest.$ac_objext
14991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14992 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14993 ac_status=$?
f95e4495
VS
14994 grep -v '^ *+' conftest.er1 >conftest.err
14995 rm -f conftest.er1
14996 cat conftest.err >&5
e6cc62c6
VS
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } &&
f95e4495
VS
14999 { ac_try='test -z "$ac_c_werror_flag"
15000 || test ! -s conftest.err'
15001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15002 (eval $ac_try) 2>&5
15003 ac_status=$?
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; } &&
15006 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15008 (eval $ac_try) 2>&5
15009 ac_status=$?
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); }; }; then
15012 ac_cv_type_void_p=yes
15013else
15014 echo "$as_me: failed program was:" >&5
15015sed 's/^/| /' conftest.$ac_ext >&5
15016
15017ac_cv_type_void_p=no
15018fi
f95e4495 15019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15020fi
15021echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
15022echo "${ECHO_T}$ac_cv_type_void_p" >&6
15023
15024echo "$as_me:$LINENO: checking size of void *" >&5
15025echo $ECHO_N "checking size of void *... $ECHO_C" >&6
15026if test "${ac_cv_sizeof_void_p+set}" = set; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15028else
15029 if test "$ac_cv_type_void_p" = yes; then
15030 # The cast to unsigned long works around a bug in the HP C Compiler
15031 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15032 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15033 # This bug is HP SR number 8606223364.
15034 if test "$cross_compiling" = yes; then
15035 # Depending upon the size, compute the lo and hi bounds.
15036cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15037/* confdefs.h. */
15038_ACEOF
15039cat confdefs.h >>conftest.$ac_ext
15040cat >>conftest.$ac_ext <<_ACEOF
15041/* end confdefs.h. */
15042$ac_includes_default
15043int
15044main ()
15045{
15046static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
15047test_array [0] = 0
15048
15049 ;
15050 return 0;
15051}
15052_ACEOF
15053rm -f conftest.$ac_objext
15054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15055 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15056 ac_status=$?
f95e4495
VS
15057 grep -v '^ *+' conftest.er1 >conftest.err
15058 rm -f conftest.er1
15059 cat conftest.err >&5
e6cc62c6
VS
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } &&
f95e4495
VS
15062 { ac_try='test -z "$ac_c_werror_flag"
15063 || test ! -s conftest.err'
15064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15065 (eval $ac_try) 2>&5
15066 ac_status=$?
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 (exit $ac_status); }; } &&
15069 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071 (eval $ac_try) 2>&5
15072 ac_status=$?
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; }; then
15075 ac_lo=0 ac_mid=0
15076 while :; do
15077 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15078/* confdefs.h. */
15079_ACEOF
15080cat confdefs.h >>conftest.$ac_ext
15081cat >>conftest.$ac_ext <<_ACEOF
15082/* end confdefs.h. */
15083$ac_includes_default
15084int
15085main ()
15086{
15087static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15088test_array [0] = 0
247f5006 15089
e6cc62c6
VS
15090 ;
15091 return 0;
15092}
15093_ACEOF
15094rm -f conftest.$ac_objext
15095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15096 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15097 ac_status=$?
f95e4495
VS
15098 grep -v '^ *+' conftest.er1 >conftest.err
15099 rm -f conftest.er1
15100 cat conftest.err >&5
e6cc62c6
VS
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } &&
f95e4495
VS
15103 { ac_try='test -z "$ac_c_werror_flag"
15104 || test ! -s conftest.err'
15105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15106 (eval $ac_try) 2>&5
15107 ac_status=$?
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; } &&
15110 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15112 (eval $ac_try) 2>&5
15113 ac_status=$?
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; }; then
15116 ac_hi=$ac_mid; break
15117else
15118 echo "$as_me: failed program was:" >&5
15119sed 's/^/| /' conftest.$ac_ext >&5
15120
15121ac_lo=`expr $ac_mid + 1`
f95e4495
VS
15122 if test $ac_lo -le $ac_mid; then
15123 ac_lo= ac_hi=
15124 break
15125 fi
15126 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 15127fi
f95e4495 15128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15129 done
15130else
15131 echo "$as_me: failed program was:" >&5
15132sed 's/^/| /' conftest.$ac_ext >&5
15133
15134cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15135/* confdefs.h. */
15136_ACEOF
15137cat confdefs.h >>conftest.$ac_ext
15138cat >>conftest.$ac_ext <<_ACEOF
15139/* end confdefs.h. */
15140$ac_includes_default
15141int
15142main ()
15143{
15144static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15145test_array [0] = 0
247f5006 15146
e6cc62c6
VS
15147 ;
15148 return 0;
15149}
15150_ACEOF
15151rm -f conftest.$ac_objext
15152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15153 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15154 ac_status=$?
f95e4495
VS
15155 grep -v '^ *+' conftest.er1 >conftest.err
15156 rm -f conftest.er1
15157 cat conftest.err >&5
e6cc62c6
VS
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } &&
f95e4495
VS
15160 { ac_try='test -z "$ac_c_werror_flag"
15161 || test ! -s conftest.err'
15162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15163 (eval $ac_try) 2>&5
15164 ac_status=$?
15165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15166 (exit $ac_status); }; } &&
15167 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15169 (eval $ac_try) 2>&5
15170 ac_status=$?
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); }; }; then
15173 ac_hi=-1 ac_mid=-1
15174 while :; do
15175 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15176/* confdefs.h. */
15177_ACEOF
15178cat confdefs.h >>conftest.$ac_ext
15179cat >>conftest.$ac_ext <<_ACEOF
15180/* end confdefs.h. */
15181$ac_includes_default
15182int
15183main ()
15184{
15185static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15186test_array [0] = 0
247f5006 15187
e6cc62c6
VS
15188 ;
15189 return 0;
15190}
15191_ACEOF
15192rm -f conftest.$ac_objext
15193if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15194 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15195 ac_status=$?
f95e4495
VS
15196 grep -v '^ *+' conftest.er1 >conftest.err
15197 rm -f conftest.er1
15198 cat conftest.err >&5
e6cc62c6
VS
15199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15200 (exit $ac_status); } &&
f95e4495
VS
15201 { ac_try='test -z "$ac_c_werror_flag"
15202 || test ! -s conftest.err'
15203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15204 (eval $ac_try) 2>&5
15205 ac_status=$?
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); }; } &&
15208 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15210 (eval $ac_try) 2>&5
15211 ac_status=$?
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); }; }; then
15214 ac_lo=$ac_mid; break
15215else
15216 echo "$as_me: failed program was:" >&5
15217sed 's/^/| /' conftest.$ac_ext >&5
15218
15219ac_hi=`expr '(' $ac_mid ')' - 1`
f95e4495
VS
15220 if test $ac_mid -le $ac_hi; then
15221 ac_lo= ac_hi=
15222 break
15223 fi
15224 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15225fi
f95e4495 15226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15227 done
a0b9e27f 15228else
e6cc62c6
VS
15229 echo "$as_me: failed program was:" >&5
15230sed 's/^/| /' conftest.$ac_ext >&5
15231
15232ac_lo= ac_hi=
15233fi
f95e4495 15234rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15235fi
f95e4495 15236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15237# Binary search between lo and hi bounds.
15238while test "x$ac_lo" != "x$ac_hi"; do
15239 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15240 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15241/* confdefs.h. */
15242_ACEOF
15243cat confdefs.h >>conftest.$ac_ext
15244cat >>conftest.$ac_ext <<_ACEOF
15245/* end confdefs.h. */
15246$ac_includes_default
15247int
15248main ()
15249{
15250static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15251test_array [0] = 0
15252
15253 ;
15254 return 0;
15255}
15256_ACEOF
15257rm -f conftest.$ac_objext
15258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15259 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15260 ac_status=$?
f95e4495
VS
15261 grep -v '^ *+' conftest.er1 >conftest.err
15262 rm -f conftest.er1
15263 cat conftest.err >&5
e6cc62c6
VS
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } &&
f95e4495
VS
15266 { ac_try='test -z "$ac_c_werror_flag"
15267 || test ! -s conftest.err'
15268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15269 (eval $ac_try) 2>&5
15270 ac_status=$?
15271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15272 (exit $ac_status); }; } &&
15273 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15275 (eval $ac_try) 2>&5
15276 ac_status=$?
15277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15278 (exit $ac_status); }; }; then
15279 ac_hi=$ac_mid
15280else
15281 echo "$as_me: failed program was:" >&5
15282sed 's/^/| /' conftest.$ac_ext >&5
15283
15284ac_lo=`expr '(' $ac_mid ')' + 1`
15285fi
f95e4495 15286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15287done
15288case $ac_lo in
15289?*) ac_cv_sizeof_void_p=$ac_lo;;
15290'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15291See \`config.log' for more details." >&5
15292echo "$as_me: error: cannot compute sizeof (void *), 77
15293See \`config.log' for more details." >&2;}
15294 { (exit 1); exit 1; }; } ;;
15295esac
247f5006 15296else
e6cc62c6
VS
15297 if test "$cross_compiling" = yes; then
15298 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15299See \`config.log' for more details." >&5
15300echo "$as_me: error: cannot run test program while cross compiling
15301See \`config.log' for more details." >&2;}
15302 { (exit 1); exit 1; }; }
15303else
15304 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15305/* confdefs.h. */
15306_ACEOF
15307cat confdefs.h >>conftest.$ac_ext
15308cat >>conftest.$ac_ext <<_ACEOF
15309/* end confdefs.h. */
15310$ac_includes_default
15311long longval () { return (long) (sizeof (void *)); }
15312unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 15313#include <stdio.h>
e6cc62c6
VS
15314#include <stdlib.h>
15315int
15316main ()
247f5006 15317{
e6cc62c6
VS
15318
15319 FILE *f = fopen ("conftest.val", "w");
15320 if (! f)
15321 exit (1);
15322 if (((long) (sizeof (void *))) < 0)
15323 {
15324 long i = longval ();
15325 if (i != ((long) (sizeof (void *))))
15326 exit (1);
15327 fprintf (f, "%ld\n", i);
15328 }
15329 else
15330 {
15331 unsigned long i = ulongval ();
15332 if (i != ((long) (sizeof (void *))))
15333 exit (1);
15334 fprintf (f, "%lu\n", i);
15335 }
15336 exit (ferror (f) || fclose (f) != 0);
15337
15338 ;
15339 return 0;
5c6fa7d2 15340}
e6cc62c6
VS
15341_ACEOF
15342rm -f conftest$ac_exeext
15343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15344 (eval $ac_link) 2>&5
15345 ac_status=$?
15346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15349 (eval $ac_try) 2>&5
15350 ac_status=$?
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); }; }; then
15353 ac_cv_sizeof_void_p=`cat conftest.val`
15354else
15355 echo "$as_me: program exited with status $ac_status" >&5
15356echo "$as_me: failed program was:" >&5
15357sed 's/^/| /' conftest.$ac_ext >&5
15358
15359( exit $ac_status )
15360{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15361See \`config.log' for more details." >&5
15362echo "$as_me: error: cannot compute sizeof (void *), 77
15363See \`config.log' for more details." >&2;}
15364 { (exit 1); exit 1; }; }
15365fi
f95e4495 15366rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15367fi
15368fi
15369rm -f conftest.val
a0b9e27f 15370else
a0b9e27f
MB
15371 ac_cv_sizeof_void_p=0
15372fi
a0b9e27f 15373fi
e6cc62c6
VS
15374echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15375echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15376cat >>confdefs.h <<_ACEOF
15377#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15378_ACEOF
15379
15380
15381echo "$as_me:$LINENO: checking for int" >&5
15382echo $ECHO_N "checking for int... $ECHO_C" >&6
15383if test "${ac_cv_type_int+set}" = set; then
15384 echo $ECHO_N "(cached) $ECHO_C" >&6
15385else
15386 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15387/* confdefs.h. */
15388_ACEOF
15389cat confdefs.h >>conftest.$ac_ext
15390cat >>conftest.$ac_ext <<_ACEOF
15391/* end confdefs.h. */
15392$ac_includes_default
15393int
15394main ()
15395{
15396if ((int *) 0)
15397 return 0;
15398if (sizeof (int))
15399 return 0;
15400 ;
15401 return 0;
15402}
15403_ACEOF
15404rm -f conftest.$ac_objext
15405if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15406 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15407 ac_status=$?
f95e4495
VS
15408 grep -v '^ *+' conftest.er1 >conftest.err
15409 rm -f conftest.er1
15410 cat conftest.err >&5
e6cc62c6
VS
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } &&
f95e4495
VS
15413 { ac_try='test -z "$ac_c_werror_flag"
15414 || test ! -s conftest.err'
15415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15416 (eval $ac_try) 2>&5
15417 ac_status=$?
15418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419 (exit $ac_status); }; } &&
15420 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15422 (eval $ac_try) 2>&5
15423 ac_status=$?
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; }; then
15426 ac_cv_type_int=yes
15427else
15428 echo "$as_me: failed program was:" >&5
15429sed 's/^/| /' conftest.$ac_ext >&5
15430
15431ac_cv_type_int=no
15432fi
f95e4495 15433rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15434fi
15435echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15436echo "${ECHO_T}$ac_cv_type_int" >&6
15437
15438echo "$as_me:$LINENO: checking size of int" >&5
15439echo $ECHO_N "checking size of int... $ECHO_C" >&6
15440if test "${ac_cv_sizeof_int+set}" = set; then
15441 echo $ECHO_N "(cached) $ECHO_C" >&6
15442else
15443 if test "$ac_cv_type_int" = yes; then
15444 # The cast to unsigned long works around a bug in the HP C Compiler
15445 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15446 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15447 # This bug is HP SR number 8606223364.
15448 if test "$cross_compiling" = yes; then
15449 # Depending upon the size, compute the lo and hi bounds.
15450cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15451/* confdefs.h. */
15452_ACEOF
15453cat confdefs.h >>conftest.$ac_ext
15454cat >>conftest.$ac_ext <<_ACEOF
15455/* end confdefs.h. */
15456$ac_includes_default
15457int
15458main ()
15459{
15460static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15461test_array [0] = 0
8284b0c5 15462
e6cc62c6
VS
15463 ;
15464 return 0;
15465}
15466_ACEOF
15467rm -f conftest.$ac_objext
15468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15469 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15470 ac_status=$?
f95e4495
VS
15471 grep -v '^ *+' conftest.er1 >conftest.err
15472 rm -f conftest.er1
15473 cat conftest.err >&5
e6cc62c6
VS
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); } &&
f95e4495
VS
15476 { ac_try='test -z "$ac_c_werror_flag"
15477 || test ! -s conftest.err'
15478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15479 (eval $ac_try) 2>&5
15480 ac_status=$?
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); }; } &&
15483 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15486 ac_status=$?
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; }; then
15489 ac_lo=0 ac_mid=0
15490 while :; do
15491 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15492/* confdefs.h. */
15493_ACEOF
15494cat confdefs.h >>conftest.$ac_ext
15495cat >>conftest.$ac_ext <<_ACEOF
15496/* end confdefs.h. */
15497$ac_includes_default
15498int
15499main ()
15500{
15501static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15502test_array [0] = 0
15503
15504 ;
15505 return 0;
15506}
15507_ACEOF
15508rm -f conftest.$ac_objext
15509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15510 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15511 ac_status=$?
f95e4495
VS
15512 grep -v '^ *+' conftest.er1 >conftest.err
15513 rm -f conftest.er1
15514 cat conftest.err >&5
e6cc62c6
VS
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); } &&
f95e4495
VS
15517 { ac_try='test -z "$ac_c_werror_flag"
15518 || test ! -s conftest.err'
15519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15520 (eval $ac_try) 2>&5
15521 ac_status=$?
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); }; } &&
15524 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15526 (eval $ac_try) 2>&5
15527 ac_status=$?
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); }; }; then
15530 ac_hi=$ac_mid; break
15531else
15532 echo "$as_me: failed program was:" >&5
15533sed 's/^/| /' conftest.$ac_ext >&5
15534
15535ac_lo=`expr $ac_mid + 1`
f95e4495
VS
15536 if test $ac_lo -le $ac_mid; then
15537 ac_lo= ac_hi=
15538 break
15539 fi
15540 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 15541fi
f95e4495 15542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15543 done
15544else
15545 echo "$as_me: failed program was:" >&5
15546sed 's/^/| /' conftest.$ac_ext >&5
15547
15548cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15549/* confdefs.h. */
15550_ACEOF
15551cat confdefs.h >>conftest.$ac_ext
15552cat >>conftest.$ac_ext <<_ACEOF
15553/* end confdefs.h. */
15554$ac_includes_default
15555int
15556main ()
15557{
15558static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15559test_array [0] = 0
247f5006 15560
e6cc62c6
VS
15561 ;
15562 return 0;
15563}
15564_ACEOF
15565rm -f conftest.$ac_objext
15566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15567 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15568 ac_status=$?
f95e4495
VS
15569 grep -v '^ *+' conftest.er1 >conftest.err
15570 rm -f conftest.er1
15571 cat conftest.err >&5
e6cc62c6
VS
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); } &&
f95e4495
VS
15574 { ac_try='test -z "$ac_c_werror_flag"
15575 || test ! -s conftest.err'
15576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15577 (eval $ac_try) 2>&5
15578 ac_status=$?
15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15580 (exit $ac_status); }; } &&
15581 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15583 (eval $ac_try) 2>&5
15584 ac_status=$?
15585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); }; }; then
15587 ac_hi=-1 ac_mid=-1
15588 while :; do
15589 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15590/* confdefs.h. */
15591_ACEOF
15592cat confdefs.h >>conftest.$ac_ext
15593cat >>conftest.$ac_ext <<_ACEOF
15594/* end confdefs.h. */
15595$ac_includes_default
15596int
15597main ()
15598{
15599static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15600test_array [0] = 0
247f5006 15601
e6cc62c6
VS
15602 ;
15603 return 0;
15604}
15605_ACEOF
15606rm -f conftest.$ac_objext
15607if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15608 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15609 ac_status=$?
f95e4495
VS
15610 grep -v '^ *+' conftest.er1 >conftest.err
15611 rm -f conftest.er1
15612 cat conftest.err >&5
e6cc62c6
VS
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); } &&
f95e4495
VS
15615 { ac_try='test -z "$ac_c_werror_flag"
15616 || test ! -s conftest.err'
15617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15618 (eval $ac_try) 2>&5
15619 ac_status=$?
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); }; } &&
15622 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15625 ac_status=$?
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; }; then
15628 ac_lo=$ac_mid; break
15629else
15630 echo "$as_me: failed program was:" >&5
15631sed 's/^/| /' conftest.$ac_ext >&5
15632
15633ac_hi=`expr '(' $ac_mid ')' - 1`
f95e4495
VS
15634 if test $ac_mid -le $ac_hi; then
15635 ac_lo= ac_hi=
15636 break
15637 fi
15638 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15639fi
f95e4495 15640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15641 done
247f5006 15642else
e6cc62c6
VS
15643 echo "$as_me: failed program was:" >&5
15644sed 's/^/| /' conftest.$ac_ext >&5
15645
15646ac_lo= ac_hi=
15647fi
f95e4495 15648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15649fi
f95e4495 15650rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15651# Binary search between lo and hi bounds.
15652while test "x$ac_lo" != "x$ac_hi"; do
15653 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15654 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15655/* confdefs.h. */
15656_ACEOF
15657cat confdefs.h >>conftest.$ac_ext
15658cat >>conftest.$ac_ext <<_ACEOF
15659/* end confdefs.h. */
15660$ac_includes_default
15661int
15662main ()
15663{
15664static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15665test_array [0] = 0
15666
15667 ;
15668 return 0;
15669}
15670_ACEOF
15671rm -f conftest.$ac_objext
15672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15673 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15674 ac_status=$?
f95e4495
VS
15675 grep -v '^ *+' conftest.er1 >conftest.err
15676 rm -f conftest.er1
15677 cat conftest.err >&5
e6cc62c6
VS
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); } &&
f95e4495
VS
15680 { ac_try='test -z "$ac_c_werror_flag"
15681 || test ! -s conftest.err'
15682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15683 (eval $ac_try) 2>&5
15684 ac_status=$?
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); }; } &&
15687 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15689 (eval $ac_try) 2>&5
15690 ac_status=$?
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); }; }; then
15693 ac_hi=$ac_mid
15694else
15695 echo "$as_me: failed program was:" >&5
15696sed 's/^/| /' conftest.$ac_ext >&5
15697
15698ac_lo=`expr '(' $ac_mid ')' + 1`
15699fi
f95e4495 15700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15701done
15702case $ac_lo in
15703?*) ac_cv_sizeof_int=$ac_lo;;
15704'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15705See \`config.log' for more details." >&5
15706echo "$as_me: error: cannot compute sizeof (int), 77
15707See \`config.log' for more details." >&2;}
15708 { (exit 1); exit 1; }; } ;;
15709esac
a0b9e27f 15710else
e6cc62c6
VS
15711 if test "$cross_compiling" = yes; then
15712 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15713See \`config.log' for more details." >&5
15714echo "$as_me: error: cannot run test program while cross compiling
15715See \`config.log' for more details." >&2;}
15716 { (exit 1); exit 1; }; }
15717else
15718 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15719/* confdefs.h. */
15720_ACEOF
15721cat confdefs.h >>conftest.$ac_ext
15722cat >>conftest.$ac_ext <<_ACEOF
15723/* end confdefs.h. */
15724$ac_includes_default
15725long longval () { return (long) (sizeof (int)); }
15726unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15727#include <stdio.h>
e6cc62c6
VS
15728#include <stdlib.h>
15729int
15730main ()
247f5006 15731{
e6cc62c6
VS
15732
15733 FILE *f = fopen ("conftest.val", "w");
15734 if (! f)
15735 exit (1);
15736 if (((long) (sizeof (int))) < 0)
15737 {
15738 long i = longval ();
15739 if (i != ((long) (sizeof (int))))
15740 exit (1);
15741 fprintf (f, "%ld\n", i);
15742 }
15743 else
15744 {
15745 unsigned long i = ulongval ();
15746 if (i != ((long) (sizeof (int))))
15747 exit (1);
15748 fprintf (f, "%lu\n", i);
15749 }
15750 exit (ferror (f) || fclose (f) != 0);
15751
15752 ;
15753 return 0;
247f5006 15754}
e6cc62c6
VS
15755_ACEOF
15756rm -f conftest$ac_exeext
15757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15758 (eval $ac_link) 2>&5
15759 ac_status=$?
15760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763 (eval $ac_try) 2>&5
15764 ac_status=$?
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }; then
15767 ac_cv_sizeof_int=`cat conftest.val`
15768else
15769 echo "$as_me: program exited with status $ac_status" >&5
15770echo "$as_me: failed program was:" >&5
15771sed 's/^/| /' conftest.$ac_ext >&5
15772
15773( exit $ac_status )
15774{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15775See \`config.log' for more details." >&5
15776echo "$as_me: error: cannot compute sizeof (int), 77
15777See \`config.log' for more details." >&2;}
15778 { (exit 1); exit 1; }; }
15779fi
f95e4495 15780rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15781fi
15782fi
15783rm -f conftest.val
6f72b082 15784else
a0b9e27f 15785 ac_cv_sizeof_int=0
21d1c967 15786fi
698dcdb6 15787fi
e6cc62c6
VS
15788echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15789echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15790cat >>confdefs.h <<_ACEOF
15791#define SIZEOF_INT $ac_cv_sizeof_int
15792_ACEOF
15793
15794
15795echo "$as_me:$LINENO: checking for long" >&5
15796echo $ECHO_N "checking for long... $ECHO_C" >&6
15797if test "${ac_cv_type_long+set}" = set; then
15798 echo $ECHO_N "(cached) $ECHO_C" >&6
15799else
15800 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15801/* confdefs.h. */
15802_ACEOF
15803cat confdefs.h >>conftest.$ac_ext
15804cat >>conftest.$ac_ext <<_ACEOF
15805/* end confdefs.h. */
15806$ac_includes_default
15807int
15808main ()
15809{
15810if ((long *) 0)
15811 return 0;
15812if (sizeof (long))
15813 return 0;
15814 ;
15815 return 0;
15816}
15817_ACEOF
15818rm -f conftest.$ac_objext
15819if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15820 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15821 ac_status=$?
f95e4495
VS
15822 grep -v '^ *+' conftest.er1 >conftest.err
15823 rm -f conftest.er1
15824 cat conftest.err >&5
e6cc62c6
VS
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); } &&
f95e4495
VS
15827 { ac_try='test -z "$ac_c_werror_flag"
15828 || test ! -s conftest.err'
15829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15830 (eval $ac_try) 2>&5
15831 ac_status=$?
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; } &&
15834 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836 (eval $ac_try) 2>&5
15837 ac_status=$?
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); }; }; then
15840 ac_cv_type_long=yes
15841else
15842 echo "$as_me: failed program was:" >&5
15843sed 's/^/| /' conftest.$ac_ext >&5
15844
15845ac_cv_type_long=no
15846fi
f95e4495 15847rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15848fi
15849echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15850echo "${ECHO_T}$ac_cv_type_long" >&6
15851
15852echo "$as_me:$LINENO: checking size of long" >&5
15853echo $ECHO_N "checking size of long... $ECHO_C" >&6
15854if test "${ac_cv_sizeof_long+set}" = set; then
15855 echo $ECHO_N "(cached) $ECHO_C" >&6
15856else
15857 if test "$ac_cv_type_long" = yes; then
15858 # The cast to unsigned long works around a bug in the HP C Compiler
15859 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15860 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15861 # This bug is HP SR number 8606223364.
15862 if test "$cross_compiling" = yes; then
15863 # Depending upon the size, compute the lo and hi bounds.
15864cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15865/* confdefs.h. */
15866_ACEOF
15867cat confdefs.h >>conftest.$ac_ext
15868cat >>conftest.$ac_ext <<_ACEOF
15869/* end confdefs.h. */
15870$ac_includes_default
15871int
15872main ()
15873{
15874static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15875test_array [0] = 0
15876
15877 ;
15878 return 0;
15879}
15880_ACEOF
15881rm -f conftest.$ac_objext
15882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15883 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15884 ac_status=$?
f95e4495
VS
15885 grep -v '^ *+' conftest.er1 >conftest.err
15886 rm -f conftest.er1
15887 cat conftest.err >&5
e6cc62c6
VS
15888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15889 (exit $ac_status); } &&
f95e4495
VS
15890 { ac_try='test -z "$ac_c_werror_flag"
15891 || test ! -s conftest.err'
15892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15893 (eval $ac_try) 2>&5
15894 ac_status=$?
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); }; } &&
15897 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15900 ac_status=$?
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; }; then
15903 ac_lo=0 ac_mid=0
15904 while :; do
15905 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15906/* confdefs.h. */
15907_ACEOF
15908cat confdefs.h >>conftest.$ac_ext
15909cat >>conftest.$ac_ext <<_ACEOF
15910/* end confdefs.h. */
15911$ac_includes_default
15912int
15913main ()
15914{
15915static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15916test_array [0] = 0
4f14bcd8 15917
e6cc62c6
VS
15918 ;
15919 return 0;
15920}
15921_ACEOF
15922rm -f conftest.$ac_objext
15923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15924 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15925 ac_status=$?
f95e4495
VS
15926 grep -v '^ *+' conftest.er1 >conftest.err
15927 rm -f conftest.er1
15928 cat conftest.err >&5
e6cc62c6
VS
15929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15930 (exit $ac_status); } &&
f95e4495
VS
15931 { ac_try='test -z "$ac_c_werror_flag"
15932 || test ! -s conftest.err'
15933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15934 (eval $ac_try) 2>&5
15935 ac_status=$?
15936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937 (exit $ac_status); }; } &&
15938 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15940 (eval $ac_try) 2>&5
15941 ac_status=$?
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); }; }; then
15944 ac_hi=$ac_mid; break
15945else
15946 echo "$as_me: failed program was:" >&5
15947sed 's/^/| /' conftest.$ac_ext >&5
15948
15949ac_lo=`expr $ac_mid + 1`
f95e4495
VS
15950 if test $ac_lo -le $ac_mid; then
15951 ac_lo= ac_hi=
15952 break
15953 fi
15954 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15955fi
f95e4495 15956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15957 done
15958else
15959 echo "$as_me: failed program was:" >&5
15960sed 's/^/| /' conftest.$ac_ext >&5
15961
15962cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15963/* confdefs.h. */
15964_ACEOF
15965cat confdefs.h >>conftest.$ac_ext
15966cat >>conftest.$ac_ext <<_ACEOF
15967/* end confdefs.h. */
15968$ac_includes_default
15969int
15970main ()
15971{
15972static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15973test_array [0] = 0
4f14bcd8 15974
e6cc62c6
VS
15975 ;
15976 return 0;
15977}
15978_ACEOF
15979rm -f conftest.$ac_objext
15980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15981 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15982 ac_status=$?
f95e4495
VS
15983 grep -v '^ *+' conftest.er1 >conftest.err
15984 rm -f conftest.er1
15985 cat conftest.err >&5
e6cc62c6
VS
15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987 (exit $ac_status); } &&
f95e4495
VS
15988 { ac_try='test -z "$ac_c_werror_flag"
15989 || test ! -s conftest.err'
15990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15991 (eval $ac_try) 2>&5
15992 ac_status=$?
15993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15994 (exit $ac_status); }; } &&
15995 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15997 (eval $ac_try) 2>&5
15998 ac_status=$?
15999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16000 (exit $ac_status); }; }; then
16001 ac_hi=-1 ac_mid=-1
16002 while :; do
16003 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16004/* confdefs.h. */
16005_ACEOF
16006cat confdefs.h >>conftest.$ac_ext
16007cat >>conftest.$ac_ext <<_ACEOF
16008/* end confdefs.h. */
16009$ac_includes_default
16010int
16011main ()
16012{
16013static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
16014test_array [0] = 0
5c6fa7d2 16015
e6cc62c6
VS
16016 ;
16017 return 0;
16018}
16019_ACEOF
16020rm -f conftest.$ac_objext
16021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16022 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16023 ac_status=$?
f95e4495
VS
16024 grep -v '^ *+' conftest.er1 >conftest.err
16025 rm -f conftest.er1
16026 cat conftest.err >&5
e6cc62c6
VS
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); } &&
f95e4495
VS
16029 { ac_try='test -z "$ac_c_werror_flag"
16030 || test ! -s conftest.err'
16031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16032 (eval $ac_try) 2>&5
16033 ac_status=$?
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); }; } &&
16036 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038 (eval $ac_try) 2>&5
16039 ac_status=$?
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; }; then
16042 ac_lo=$ac_mid; break
16043else
16044 echo "$as_me: failed program was:" >&5
16045sed 's/^/| /' conftest.$ac_ext >&5
16046
16047ac_hi=`expr '(' $ac_mid ')' - 1`
f95e4495
VS
16048 if test $ac_mid -le $ac_hi; then
16049 ac_lo= ac_hi=
16050 break
16051 fi
16052 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16053fi
f95e4495 16054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16055 done
247f5006 16056else
e6cc62c6
VS
16057 echo "$as_me: failed program was:" >&5
16058sed 's/^/| /' conftest.$ac_ext >&5
16059
16060ac_lo= ac_hi=
16061fi
f95e4495 16062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16063fi
f95e4495 16064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16065# Binary search between lo and hi bounds.
16066while test "x$ac_lo" != "x$ac_hi"; do
16067 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16068 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16069/* confdefs.h. */
16070_ACEOF
16071cat confdefs.h >>conftest.$ac_ext
16072cat >>conftest.$ac_ext <<_ACEOF
16073/* end confdefs.h. */
16074$ac_includes_default
16075int
16076main ()
16077{
16078static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
16079test_array [0] = 0
16080
16081 ;
16082 return 0;
16083}
16084_ACEOF
16085rm -f conftest.$ac_objext
16086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16087 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16088 ac_status=$?
f95e4495
VS
16089 grep -v '^ *+' conftest.er1 >conftest.err
16090 rm -f conftest.er1
16091 cat conftest.err >&5
e6cc62c6
VS
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); } &&
f95e4495
VS
16094 { ac_try='test -z "$ac_c_werror_flag"
16095 || test ! -s conftest.err'
16096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16097 (eval $ac_try) 2>&5
16098 ac_status=$?
16099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); }; } &&
16101 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16103 (eval $ac_try) 2>&5
16104 ac_status=$?
16105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16106 (exit $ac_status); }; }; then
16107 ac_hi=$ac_mid
16108else
16109 echo "$as_me: failed program was:" >&5
16110sed 's/^/| /' conftest.$ac_ext >&5
16111
16112ac_lo=`expr '(' $ac_mid ')' + 1`
16113fi
f95e4495 16114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16115done
16116case $ac_lo in
16117?*) ac_cv_sizeof_long=$ac_lo;;
16118'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16119See \`config.log' for more details." >&5
16120echo "$as_me: error: cannot compute sizeof (long), 77
16121See \`config.log' for more details." >&2;}
16122 { (exit 1); exit 1; }; } ;;
16123esac
247f5006 16124else
e6cc62c6
VS
16125 if test "$cross_compiling" = yes; then
16126 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16127See \`config.log' for more details." >&5
16128echo "$as_me: error: cannot run test program while cross compiling
16129See \`config.log' for more details." >&2;}
16130 { (exit 1); exit 1; }; }
16131else
16132 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16133/* confdefs.h. */
16134_ACEOF
16135cat confdefs.h >>conftest.$ac_ext
16136cat >>conftest.$ac_ext <<_ACEOF
16137/* end confdefs.h. */
16138$ac_includes_default
16139long longval () { return (long) (sizeof (long)); }
16140unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 16141#include <stdio.h>
e6cc62c6
VS
16142#include <stdlib.h>
16143int
16144main ()
247f5006 16145{
e6cc62c6
VS
16146
16147 FILE *f = fopen ("conftest.val", "w");
16148 if (! f)
16149 exit (1);
16150 if (((long) (sizeof (long))) < 0)
16151 {
16152 long i = longval ();
16153 if (i != ((long) (sizeof (long))))
16154 exit (1);
16155 fprintf (f, "%ld\n", i);
16156 }
16157 else
16158 {
16159 unsigned long i = ulongval ();
16160 if (i != ((long) (sizeof (long))))
16161 exit (1);
16162 fprintf (f, "%lu\n", i);
16163 }
16164 exit (ferror (f) || fclose (f) != 0);
16165
16166 ;
16167 return 0;
247f5006 16168}
e6cc62c6
VS
16169_ACEOF
16170rm -f conftest$ac_exeext
16171if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16172 (eval $ac_link) 2>&5
16173 ac_status=$?
16174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16177 (eval $ac_try) 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); }; }; then
16181 ac_cv_sizeof_long=`cat conftest.val`
16182else
16183 echo "$as_me: program exited with status $ac_status" >&5
16184echo "$as_me: failed program was:" >&5
16185sed 's/^/| /' conftest.$ac_ext >&5
16186
16187( exit $ac_status )
16188{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16189See \`config.log' for more details." >&5
16190echo "$as_me: error: cannot compute sizeof (long), 77
16191See \`config.log' for more details." >&2;}
16192 { (exit 1); exit 1; }; }
16193fi
f95e4495 16194rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16195fi
16196fi
16197rm -f conftest.val
247f5006 16198else
a0b9e27f 16199 ac_cv_sizeof_long=0
247f5006 16200fi
247f5006 16201fi
e6cc62c6
VS
16202echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16203echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16204cat >>confdefs.h <<_ACEOF
a0b9e27f 16205#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 16206_ACEOF
247f5006 16207
a0b9e27f
MB
16208
16209
16210case "${host}" in
16211 arm-*-linux* )
e6cc62c6
VS
16212 echo "$as_me:$LINENO: checking for long long" >&5
16213echo $ECHO_N "checking for long long... $ECHO_C" >&6
16214if test "${ac_cv_type_long_long+set}" = set; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16216else
16217 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16218/* confdefs.h. */
16219_ACEOF
16220cat confdefs.h >>conftest.$ac_ext
16221cat >>conftest.$ac_ext <<_ACEOF
16222/* end confdefs.h. */
16223$ac_includes_default
16224int
16225main ()
16226{
16227if ((long long *) 0)
16228 return 0;
16229if (sizeof (long long))
16230 return 0;
16231 ;
16232 return 0;
16233}
16234_ACEOF
16235rm -f conftest.$ac_objext
16236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16237 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16238 ac_status=$?
f95e4495
VS
16239 grep -v '^ *+' conftest.er1 >conftest.err
16240 rm -f conftest.er1
16241 cat conftest.err >&5
e6cc62c6
VS
16242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16243 (exit $ac_status); } &&
f95e4495
VS
16244 { ac_try='test -z "$ac_c_werror_flag"
16245 || test ! -s conftest.err'
16246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16247 (eval $ac_try) 2>&5
16248 ac_status=$?
16249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16250 (exit $ac_status); }; } &&
16251 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16253 (eval $ac_try) 2>&5
16254 ac_status=$?
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; }; then
16257 ac_cv_type_long_long=yes
16258else
16259 echo "$as_me: failed program was:" >&5
16260sed 's/^/| /' conftest.$ac_ext >&5
16261
16262ac_cv_type_long_long=no
16263fi
f95e4495 16264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16265fi
16266echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16267echo "${ECHO_T}$ac_cv_type_long_long" >&6
16268
16269echo "$as_me:$LINENO: checking size of long long" >&5
16270echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16271if test "${ac_cv_sizeof_long_long+set}" = set; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16273else
16274 if test "$ac_cv_type_long_long" = yes; then
16275 # The cast to unsigned long works around a bug in the HP C Compiler
16276 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16277 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16278 # This bug is HP SR number 8606223364.
a0b9e27f 16279 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16280 # Depending upon the size, compute the lo and hi bounds.
16281cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16282/* confdefs.h. */
16283_ACEOF
16284cat confdefs.h >>conftest.$ac_ext
16285cat >>conftest.$ac_ext <<_ACEOF
16286/* end confdefs.h. */
16287$ac_includes_default
16288int
16289main ()
16290{
16291static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16292test_array [0] = 0
16293
16294 ;
16295 return 0;
16296}
16297_ACEOF
16298rm -f conftest.$ac_objext
16299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16300 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16301 ac_status=$?
f95e4495
VS
16302 grep -v '^ *+' conftest.er1 >conftest.err
16303 rm -f conftest.er1
16304 cat conftest.err >&5
e6cc62c6
VS
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } &&
f95e4495
VS
16307 { ac_try='test -z "$ac_c_werror_flag"
16308 || test ! -s conftest.err'
16309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16310 (eval $ac_try) 2>&5
16311 ac_status=$?
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; } &&
16314 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316 (eval $ac_try) 2>&5
16317 ac_status=$?
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; }; then
16320 ac_lo=0 ac_mid=0
16321 while :; do
16322 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16323/* confdefs.h. */
16324_ACEOF
16325cat confdefs.h >>conftest.$ac_ext
16326cat >>conftest.$ac_ext <<_ACEOF
16327/* end confdefs.h. */
16328$ac_includes_default
16329int
16330main ()
16331{
16332static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16333test_array [0] = 0
16334
16335 ;
16336 return 0;
16337}
16338_ACEOF
16339rm -f conftest.$ac_objext
16340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16341 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16342 ac_status=$?
f95e4495
VS
16343 grep -v '^ *+' conftest.er1 >conftest.err
16344 rm -f conftest.er1
16345 cat conftest.err >&5
e6cc62c6
VS
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); } &&
f95e4495
VS
16348 { ac_try='test -z "$ac_c_werror_flag"
16349 || test ! -s conftest.err'
16350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16351 (eval $ac_try) 2>&5
16352 ac_status=$?
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); }; } &&
16355 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16357 (eval $ac_try) 2>&5
16358 ac_status=$?
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); }; }; then
16361 ac_hi=$ac_mid; break
16362else
16363 echo "$as_me: failed program was:" >&5
16364sed 's/^/| /' conftest.$ac_ext >&5
16365
16366ac_lo=`expr $ac_mid + 1`
f95e4495
VS
16367 if test $ac_lo -le $ac_mid; then
16368 ac_lo= ac_hi=
16369 break
16370 fi
16371 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 16372fi
f95e4495 16373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16374 done
16375else
16376 echo "$as_me: failed program was:" >&5
16377sed 's/^/| /' conftest.$ac_ext >&5
16378
16379cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16380/* confdefs.h. */
16381_ACEOF
16382cat confdefs.h >>conftest.$ac_ext
16383cat >>conftest.$ac_ext <<_ACEOF
16384/* end confdefs.h. */
16385$ac_includes_default
16386int
16387main ()
16388{
16389static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16390test_array [0] = 0
16391
16392 ;
16393 return 0;
16394}
16395_ACEOF
16396rm -f conftest.$ac_objext
16397if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16398 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16399 ac_status=$?
f95e4495
VS
16400 grep -v '^ *+' conftest.er1 >conftest.err
16401 rm -f conftest.er1
16402 cat conftest.err >&5
e6cc62c6
VS
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } &&
f95e4495
VS
16405 { ac_try='test -z "$ac_c_werror_flag"
16406 || test ! -s conftest.err'
16407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16408 (eval $ac_try) 2>&5
16409 ac_status=$?
16410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16411 (exit $ac_status); }; } &&
16412 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16414 (eval $ac_try) 2>&5
16415 ac_status=$?
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); }; }; then
16418 ac_hi=-1 ac_mid=-1
16419 while :; do
16420 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16421/* confdefs.h. */
16422_ACEOF
16423cat confdefs.h >>conftest.$ac_ext
16424cat >>conftest.$ac_ext <<_ACEOF
16425/* end confdefs.h. */
16426$ac_includes_default
16427int
16428main ()
16429{
16430static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16431test_array [0] = 0
16432
16433 ;
16434 return 0;
16435}
16436_ACEOF
16437rm -f conftest.$ac_objext
16438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16439 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16440 ac_status=$?
f95e4495
VS
16441 grep -v '^ *+' conftest.er1 >conftest.err
16442 rm -f conftest.er1
16443 cat conftest.err >&5
e6cc62c6
VS
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } &&
f95e4495
VS
16446 { ac_try='test -z "$ac_c_werror_flag"
16447 || test ! -s conftest.err'
16448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16449 (eval $ac_try) 2>&5
16450 ac_status=$?
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); }; } &&
16453 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16455 (eval $ac_try) 2>&5
16456 ac_status=$?
16457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458 (exit $ac_status); }; }; then
16459 ac_lo=$ac_mid; break
16460else
16461 echo "$as_me: failed program was:" >&5
16462sed 's/^/| /' conftest.$ac_ext >&5
16463
16464ac_hi=`expr '(' $ac_mid ')' - 1`
f95e4495
VS
16465 if test $ac_mid -le $ac_hi; then
16466 ac_lo= ac_hi=
16467 break
16468 fi
16469 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16470fi
f95e4495 16471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16472 done
16473else
16474 echo "$as_me: failed program was:" >&5
16475sed 's/^/| /' conftest.$ac_ext >&5
16476
16477ac_lo= ac_hi=
16478fi
f95e4495 16479rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16480fi
f95e4495 16481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16482# Binary search between lo and hi bounds.
16483while test "x$ac_lo" != "x$ac_hi"; do
16484 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16485 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16486/* confdefs.h. */
16487_ACEOF
16488cat confdefs.h >>conftest.$ac_ext
16489cat >>conftest.$ac_ext <<_ACEOF
16490/* end confdefs.h. */
16491$ac_includes_default
16492int
16493main ()
16494{
16495static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16496test_array [0] = 0
16497
16498 ;
16499 return 0;
16500}
16501_ACEOF
16502rm -f conftest.$ac_objext
16503if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16504 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16505 ac_status=$?
f95e4495
VS
16506 grep -v '^ *+' conftest.er1 >conftest.err
16507 rm -f conftest.er1
16508 cat conftest.err >&5
e6cc62c6
VS
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); } &&
f95e4495
VS
16511 { ac_try='test -z "$ac_c_werror_flag"
16512 || test ! -s conftest.err'
16513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16514 (eval $ac_try) 2>&5
16515 ac_status=$?
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); }; } &&
16518 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16520 (eval $ac_try) 2>&5
16521 ac_status=$?
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; }; then
16524 ac_hi=$ac_mid
16525else
16526 echo "$as_me: failed program was:" >&5
16527sed 's/^/| /' conftest.$ac_ext >&5
16528
16529ac_lo=`expr '(' $ac_mid ')' + 1`
16530fi
f95e4495 16531rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16532done
16533case $ac_lo in
16534?*) ac_cv_sizeof_long_long=$ac_lo;;
16535'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16536See \`config.log' for more details." >&5
16537echo "$as_me: error: cannot compute sizeof (long long), 77
16538See \`config.log' for more details." >&2;}
16539 { (exit 1); exit 1; }; } ;;
16540esac
a0b9e27f 16541else
e6cc62c6
VS
16542 if test "$cross_compiling" = yes; then
16543 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16544See \`config.log' for more details." >&5
16545echo "$as_me: error: cannot run test program while cross compiling
16546See \`config.log' for more details." >&2;}
16547 { (exit 1); exit 1; }; }
16548else
16549 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16550/* confdefs.h. */
16551_ACEOF
16552cat confdefs.h >>conftest.$ac_ext
16553cat >>conftest.$ac_ext <<_ACEOF
16554/* end confdefs.h. */
16555$ac_includes_default
16556long longval () { return (long) (sizeof (long long)); }
16557unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 16558#include <stdio.h>
e6cc62c6
VS
16559#include <stdlib.h>
16560int
16561main ()
247f5006 16562{
e6cc62c6
VS
16563
16564 FILE *f = fopen ("conftest.val", "w");
16565 if (! f)
16566 exit (1);
16567 if (((long) (sizeof (long long))) < 0)
16568 {
16569 long i = longval ();
16570 if (i != ((long) (sizeof (long long))))
16571 exit (1);
16572 fprintf (f, "%ld\n", i);
16573 }
16574 else
16575 {
16576 unsigned long i = ulongval ();
16577 if (i != ((long) (sizeof (long long))))
16578 exit (1);
16579 fprintf (f, "%lu\n", i);
16580 }
16581 exit (ferror (f) || fclose (f) != 0);
16582
16583 ;
16584 return 0;
247f5006 16585}
e6cc62c6
VS
16586_ACEOF
16587rm -f conftest$ac_exeext
16588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16589 (eval $ac_link) 2>&5
16590 ac_status=$?
16591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16594 (eval $ac_try) 2>&5
16595 ac_status=$?
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); }; }; then
16598 ac_cv_sizeof_long_long=`cat conftest.val`
16599else
16600 echo "$as_me: program exited with status $ac_status" >&5
16601echo "$as_me: failed program was:" >&5
16602sed 's/^/| /' conftest.$ac_ext >&5
16603
16604( exit $ac_status )
16605{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16606See \`config.log' for more details." >&5
16607echo "$as_me: error: cannot compute sizeof (long long), 77
16608See \`config.log' for more details." >&2;}
16609 { (exit 1); exit 1; }; }
16610fi
f95e4495 16611rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16612fi
16613fi
16614rm -f conftest.val
7b4a847f 16615else
a0b9e27f 16616 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
16617fi
16618fi
e6cc62c6
VS
16619echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16620echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16621cat >>confdefs.h <<_ACEOF
16622#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16623_ACEOF
16624
16625
16626 ;;
16627 *-hp-hpux* )
16628 echo "$as_me:$LINENO: checking for long long" >&5
16629echo $ECHO_N "checking for long long... $ECHO_C" >&6
16630if test "${ac_cv_type_long_long+set}" = set; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16632else
16633 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16634/* confdefs.h. */
16635_ACEOF
16636cat confdefs.h >>conftest.$ac_ext
16637cat >>conftest.$ac_ext <<_ACEOF
16638/* end confdefs.h. */
16639$ac_includes_default
16640int
16641main ()
16642{
16643if ((long long *) 0)
16644 return 0;
16645if (sizeof (long long))
16646 return 0;
16647 ;
16648 return 0;
16649}
16650_ACEOF
16651rm -f conftest.$ac_objext
16652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16653 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16654 ac_status=$?
f95e4495
VS
16655 grep -v '^ *+' conftest.er1 >conftest.err
16656 rm -f conftest.er1
16657 cat conftest.err >&5
e6cc62c6
VS
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); } &&
f95e4495
VS
16660 { ac_try='test -z "$ac_c_werror_flag"
16661 || test ! -s conftest.err'
16662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16663 (eval $ac_try) 2>&5
16664 ac_status=$?
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; } &&
16667 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669 (eval $ac_try) 2>&5
16670 ac_status=$?
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; }; then
16673 ac_cv_type_long_long=yes
16674else
16675 echo "$as_me: failed program was:" >&5
16676sed 's/^/| /' conftest.$ac_ext >&5
16677
16678ac_cv_type_long_long=no
16679fi
f95e4495 16680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16681fi
16682echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16683echo "${ECHO_T}$ac_cv_type_long_long" >&6
16684
16685echo "$as_me:$LINENO: checking size of long long" >&5
16686echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16687if test "${ac_cv_sizeof_long_long+set}" = set; then
16688 echo $ECHO_N "(cached) $ECHO_C" >&6
16689else
16690 if test "$ac_cv_type_long_long" = yes; then
16691 # The cast to unsigned long works around a bug in the HP C Compiler
16692 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16693 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16694 # This bug is HP SR number 8606223364.
16695 if test "$cross_compiling" = yes; then
16696 # Depending upon the size, compute the lo and hi bounds.
16697cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16698/* confdefs.h. */
16699_ACEOF
16700cat confdefs.h >>conftest.$ac_ext
16701cat >>conftest.$ac_ext <<_ACEOF
16702/* end confdefs.h. */
16703$ac_includes_default
16704int
16705main ()
16706{
16707static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16708test_array [0] = 0
16709
16710 ;
16711 return 0;
16712}
16713_ACEOF
16714rm -f conftest.$ac_objext
16715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16716 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16717 ac_status=$?
f95e4495
VS
16718 grep -v '^ *+' conftest.er1 >conftest.err
16719 rm -f conftest.er1
16720 cat conftest.err >&5
e6cc62c6
VS
16721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722 (exit $ac_status); } &&
f95e4495
VS
16723 { ac_try='test -z "$ac_c_werror_flag"
16724 || test ! -s conftest.err'
16725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16726 (eval $ac_try) 2>&5
16727 ac_status=$?
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; } &&
16730 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16733 ac_status=$?
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; }; then
16736 ac_lo=0 ac_mid=0
16737 while :; do
16738 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16739/* confdefs.h. */
16740_ACEOF
16741cat confdefs.h >>conftest.$ac_ext
16742cat >>conftest.$ac_ext <<_ACEOF
16743/* end confdefs.h. */
16744$ac_includes_default
16745int
16746main ()
16747{
16748static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16749test_array [0] = 0
8284b0c5 16750
e6cc62c6
VS
16751 ;
16752 return 0;
16753}
16754_ACEOF
16755rm -f conftest.$ac_objext
16756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16757 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16758 ac_status=$?
f95e4495
VS
16759 grep -v '^ *+' conftest.er1 >conftest.err
16760 rm -f conftest.er1
16761 cat conftest.err >&5
e6cc62c6
VS
16762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } &&
f95e4495
VS
16764 { ac_try='test -z "$ac_c_werror_flag"
16765 || test ! -s conftest.err'
16766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16767 (eval $ac_try) 2>&5
16768 ac_status=$?
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; } &&
16771 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16773 (eval $ac_try) 2>&5
16774 ac_status=$?
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; }; then
16777 ac_hi=$ac_mid; break
16778else
16779 echo "$as_me: failed program was:" >&5
16780sed 's/^/| /' conftest.$ac_ext >&5
16781
16782ac_lo=`expr $ac_mid + 1`
f95e4495
VS
16783 if test $ac_lo -le $ac_mid; then
16784 ac_lo= ac_hi=
16785 break
16786 fi
16787 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 16788fi
f95e4495 16789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16790 done
16791else
16792 echo "$as_me: failed program was:" >&5
16793sed 's/^/| /' conftest.$ac_ext >&5
16794
16795cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16796/* confdefs.h. */
16797_ACEOF
16798cat confdefs.h >>conftest.$ac_ext
16799cat >>conftest.$ac_ext <<_ACEOF
16800/* end confdefs.h. */
16801$ac_includes_default
16802int
16803main ()
16804{
16805static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16806test_array [0] = 0
a0b9e27f 16807
e6cc62c6
VS
16808 ;
16809 return 0;
16810}
16811_ACEOF
16812rm -f conftest.$ac_objext
16813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16814 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16815 ac_status=$?
f95e4495
VS
16816 grep -v '^ *+' conftest.er1 >conftest.err
16817 rm -f conftest.er1
16818 cat conftest.err >&5
e6cc62c6
VS
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } &&
f95e4495
VS
16821 { ac_try='test -z "$ac_c_werror_flag"
16822 || test ! -s conftest.err'
16823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16824 (eval $ac_try) 2>&5
16825 ac_status=$?
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); }; } &&
16828 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16830 (eval $ac_try) 2>&5
16831 ac_status=$?
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; }; then
16834 ac_hi=-1 ac_mid=-1
16835 while :; do
16836 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16837/* confdefs.h. */
16838_ACEOF
16839cat confdefs.h >>conftest.$ac_ext
16840cat >>conftest.$ac_ext <<_ACEOF
16841/* end confdefs.h. */
16842$ac_includes_default
16843int
16844main ()
16845{
16846static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16847test_array [0] = 0
a0b9e27f 16848
e6cc62c6
VS
16849 ;
16850 return 0;
16851}
16852_ACEOF
16853rm -f conftest.$ac_objext
16854if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16855 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16856 ac_status=$?
f95e4495
VS
16857 grep -v '^ *+' conftest.er1 >conftest.err
16858 rm -f conftest.er1
16859 cat conftest.err >&5
e6cc62c6
VS
16860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16861 (exit $ac_status); } &&
f95e4495
VS
16862 { ac_try='test -z "$ac_c_werror_flag"
16863 || test ! -s conftest.err'
16864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16865 (eval $ac_try) 2>&5
16866 ac_status=$?
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); }; } &&
16869 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16871 (eval $ac_try) 2>&5
16872 ac_status=$?
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; }; then
16875 ac_lo=$ac_mid; break
16876else
16877 echo "$as_me: failed program was:" >&5
16878sed 's/^/| /' conftest.$ac_ext >&5
16879
16880ac_hi=`expr '(' $ac_mid ')' - 1`
f95e4495
VS
16881 if test $ac_mid -le $ac_hi; then
16882 ac_lo= ac_hi=
16883 break
16884 fi
16885 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16886fi
f95e4495 16887rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16888 done
8284b0c5 16889else
e6cc62c6
VS
16890 echo "$as_me: failed program was:" >&5
16891sed 's/^/| /' conftest.$ac_ext >&5
16892
16893ac_lo= ac_hi=
16894fi
f95e4495 16895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16896fi
f95e4495 16897rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16898# Binary search between lo and hi bounds.
16899while test "x$ac_lo" != "x$ac_hi"; do
16900 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16901 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16902/* confdefs.h. */
16903_ACEOF
16904cat confdefs.h >>conftest.$ac_ext
16905cat >>conftest.$ac_ext <<_ACEOF
16906/* end confdefs.h. */
16907$ac_includes_default
16908int
16909main ()
16910{
16911static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16912test_array [0] = 0
16913
16914 ;
16915 return 0;
16916}
16917_ACEOF
16918rm -f conftest.$ac_objext
16919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16920 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16921 ac_status=$?
f95e4495
VS
16922 grep -v '^ *+' conftest.er1 >conftest.err
16923 rm -f conftest.er1
16924 cat conftest.err >&5
e6cc62c6
VS
16925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16926 (exit $ac_status); } &&
f95e4495
VS
16927 { ac_try='test -z "$ac_c_werror_flag"
16928 || test ! -s conftest.err'
16929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16930 (eval $ac_try) 2>&5
16931 ac_status=$?
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); }; } &&
16934 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936 (eval $ac_try) 2>&5
16937 ac_status=$?
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; }; then
16940 ac_hi=$ac_mid
16941else
16942 echo "$as_me: failed program was:" >&5
16943sed 's/^/| /' conftest.$ac_ext >&5
16944
16945ac_lo=`expr '(' $ac_mid ')' + 1`
16946fi
f95e4495 16947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16948done
16949case $ac_lo in
16950?*) ac_cv_sizeof_long_long=$ac_lo;;
16951'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16952See \`config.log' for more details." >&5
16953echo "$as_me: error: cannot compute sizeof (long long), 77
16954See \`config.log' for more details." >&2;}
16955 { (exit 1); exit 1; }; } ;;
16956esac
8284b0c5 16957else
e6cc62c6
VS
16958 if test "$cross_compiling" = yes; then
16959 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16960See \`config.log' for more details." >&5
16961echo "$as_me: error: cannot run test program while cross compiling
16962See \`config.log' for more details." >&2;}
16963 { (exit 1); exit 1; }; }
16964else
16965 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16966/* confdefs.h. */
16967_ACEOF
16968cat confdefs.h >>conftest.$ac_ext
16969cat >>conftest.$ac_ext <<_ACEOF
16970/* end confdefs.h. */
16971$ac_includes_default
16972long longval () { return (long) (sizeof (long long)); }
16973unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16974#include <stdio.h>
e6cc62c6
VS
16975#include <stdlib.h>
16976int
16977main ()
8284b0c5 16978{
e6cc62c6
VS
16979
16980 FILE *f = fopen ("conftest.val", "w");
16981 if (! f)
16982 exit (1);
16983 if (((long) (sizeof (long long))) < 0)
16984 {
16985 long i = longval ();
16986 if (i != ((long) (sizeof (long long))))
16987 exit (1);
16988 fprintf (f, "%ld\n", i);
16989 }
16990 else
16991 {
16992 unsigned long i = ulongval ();
16993 if (i != ((long) (sizeof (long long))))
16994 exit (1);
16995 fprintf (f, "%lu\n", i);
16996 }
16997 exit (ferror (f) || fclose (f) != 0);
16998
16999 ;
17000 return 0;
8284b0c5 17001}
e6cc62c6
VS
17002_ACEOF
17003rm -f conftest$ac_exeext
17004if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17005 (eval $ac_link) 2>&5
17006 ac_status=$?
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17010 (eval $ac_try) 2>&5
17011 ac_status=$?
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; }; then
17014 ac_cv_sizeof_long_long=`cat conftest.val`
17015else
17016 echo "$as_me: program exited with status $ac_status" >&5
17017echo "$as_me: failed program was:" >&5
17018sed 's/^/| /' conftest.$ac_ext >&5
17019
17020( exit $ac_status )
17021{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17022See \`config.log' for more details." >&5
17023echo "$as_me: error: cannot compute sizeof (long long), 77
17024See \`config.log' for more details." >&2;}
17025 { (exit 1); exit 1; }; }
17026fi
f95e4495 17027rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17028fi
17029fi
17030rm -f conftest.val
5c6fa7d2
RR
17031else
17032 ac_cv_sizeof_long_long=0
52127426 17033fi
4f57cf11 17034fi
e6cc62c6
VS
17035echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17036echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17037cat >>confdefs.h <<_ACEOF
4f57cf11 17038#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 17039_ACEOF
4f57cf11
GD
17040
17041
17042 if test "$ac_cv_sizeof_long_long" != "0"; then
17043 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
17044 fi
17045 ;;
17046 * )
e6cc62c6
VS
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
f95e4495 17072 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17073 ac_status=$?
f95e4495
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); } &&
f95e4495
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
f95e4495 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.
4f57cf11 17114 if test "$cross_compiling" = yes; then
e6cc62c6
VS
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
f95e4495 17135 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17136 ac_status=$?
f95e4495
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); } &&
f95e4495
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
17169
17170 ;
17171 return 0;
17172}
17173_ACEOF
17174rm -f conftest.$ac_objext
17175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 17176 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17177 ac_status=$?
f95e4495
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); } &&
f95e4495
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`
f95e4495
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`
e6cc62c6 17207fi
f95e4495 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
17226
17227 ;
17228 return 0;
17229}
17230_ACEOF
17231rm -f conftest.$ac_objext
17232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 17233 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17234 ac_status=$?
f95e4495
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); } &&
f95e4495
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
17267
17268 ;
17269 return 0;
17270}
17271_ACEOF
17272rm -f conftest.$ac_objext
17273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 17274 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17275 ac_status=$?
f95e4495
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); } &&
f95e4495
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`
f95e4495
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
f95e4495 17306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17307 done
4f57cf11 17308else
e6cc62c6
VS
17309 echo "$as_me: failed program was:" >&5
17310sed 's/^/| /' conftest.$ac_ext >&5
17311
17312ac_lo= ac_hi=
17313fi
f95e4495 17314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17315fi
f95e4495 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
f95e4495 17339 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17340 ac_status=$?
f95e4495
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); } &&
f95e4495
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
f95e4495 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
17376else
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)); }
4f57cf11 17393#include <stdio.h>
e6cc62c6
VS
17394#include <stdlib.h>
17395int
17396main ()
4f57cf11 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;
4f57cf11 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
f95e4495 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
4f57cf11 17450else
4f57cf11
GD
17451 ac_cv_sizeof_long_long=0
17452fi
7b4a847f 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
21d1c967 17457#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 17458_ACEOF
9e691f46 17459
8284b0c5 17460
21d1c967
GD
17461esac
17462
e6cc62c6
VS
17463echo "$as_me:$LINENO: checking size of wchar_t" >&5
17464echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
17465if test "${wx_cv_sizeof_wchar_t+set}" = set; then
17466 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 17467else
e6cc62c6 17468
21d1c967 17469 if test "$cross_compiling" = yes; then
e6cc62c6 17470
2b5f62a0
VZ
17471 case "${host}" in
17472 *-pc-msdosdjgpp )
17473 wx_cv_sizeof_wchar_t=0
17474 ;;
17475 * )
17476 wx_cv_sizeof_wchar_t=4
17477 ;;
17478 esac
e6cc62c6
VS
17479
17480
6f72b082 17481else
e6cc62c6 17482 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17483/* confdefs.h. */
17484_ACEOF
17485cat confdefs.h >>conftest.$ac_ext
17486cat >>conftest.$ac_ext <<_ACEOF
17487/* end confdefs.h. */
21d1c967 17488
2b5f62a0
VZ
17489 /* DJGPP only has fake wchar_t: */
17490 #ifdef __DJGPP__
17491 # error "fake wchar_t"
17492 #endif
21d1c967
GD
17493 #ifdef HAVE_WCHAR_H
17494 # ifdef __CYGWIN__
17495 # include <stddef.h>
17496 # endif
17497 # include <wchar.h>
17498 #endif
17499 #ifdef HAVE_STDLIB_H
17500 # include <stdlib.h>
17501 #endif
17502 #include <stdio.h>
17503 int main()
17504 {
17505 FILE *f=fopen("conftestval", "w");
17506 if (!f) exit(1);
17507 fprintf(f, "%i", sizeof(wchar_t));
17508 exit(0);
17509 }
e6cc62c6
VS
17510
17511_ACEOF
17512rm -f conftest$ac_exeext
17513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17514 (eval $ac_link) 2>&5
17515 ac_status=$?
17516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17519 (eval $ac_try) 2>&5
17520 ac_status=$?
17521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17522 (exit $ac_status); }; }; then
21d1c967 17523 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 17524else
e6cc62c6
VS
17525 echo "$as_me: program exited with status $ac_status" >&5
17526echo "$as_me: failed program was:" >&5
17527sed 's/^/| /' conftest.$ac_ext >&5
17528
17529( exit $ac_status )
17530wx_cv_sizeof_wchar_t=0
6f72b082 17531fi
f95e4495 17532rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 17533fi
6f72b082 17534
3f345b47 17535fi
e6cc62c6
VS
17536echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
17537echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 17538
e6cc62c6 17539cat >>confdefs.h <<_ACEOF
21d1c967 17540#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 17541_ACEOF
90dd450c 17542
8284b0c5 17543
21d1c967
GD
17544# Check whether --enable-largefile or --disable-largefile was given.
17545if test "${enable_largefile+set}" = set; then
17546 enableval="$enable_largefile"
3f345b47 17547
e6cc62c6 17548fi;
21d1c967
GD
17549if test "$enable_largefile" != no; then
17550 wx_largefile=no
e6cc62c6
VS
17551
17552 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17553echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
17554if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17555 echo $ECHO_N "(cached) $ECHO_C" >&6
17556else
17557
17558 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17559/* confdefs.h. */
17560_ACEOF
17561cat confdefs.h >>conftest.$ac_ext
17562cat >>conftest.$ac_ext <<_ACEOF
17563/* end confdefs.h. */
21d1c967
GD
17564#define _FILE_OFFSET_BITS 64
17565 #include <sys/types.h>
e6cc62c6
VS
17566int
17567main ()
17568{
21d1c967
GD
17569typedef struct {
17570 unsigned int field: sizeof(off_t) == 8;
17571} wxlf;
17572
e6cc62c6
VS
17573 ;
17574 return 0;
17575}
17576_ACEOF
17577rm -f conftest.$ac_objext
17578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 17579 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17580 ac_status=$?
f95e4495
VS
17581 grep -v '^ *+' conftest.er1 >conftest.err
17582 rm -f conftest.er1
17583 cat conftest.err >&5
e6cc62c6
VS
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } &&
f95e4495
VS
17586 { ac_try='test -z "$ac_c_werror_flag"
17587 || test ! -s conftest.err'
17588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589 (eval $ac_try) 2>&5
17590 ac_status=$?
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; } &&
17593 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595 (eval $ac_try) 2>&5
17596 ac_status=$?
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; }; then
21d1c967 17599 ac_cv_sys_file_offset_bits=64
f6bcfd97 17600else
e6cc62c6
VS
17601 echo "$as_me: failed program was:" >&5
17602sed 's/^/| /' conftest.$ac_ext >&5
17603
17604ac_cv_sys_file_offset_bits=no
247f5006 17605fi
f95e4495 17606rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17607
a0b9e27f 17608
e6cc62c6
VS
17609fi
17610echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17611echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
17612
17613 if test "$ac_cv_sys_file_offset_bits" != no; then
17614 wx_largefile=yes
e6cc62c6 17615 cat >>confdefs.h <<_ACEOF
21d1c967 17616#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 17617_ACEOF
21d1c967
GD
17618
17619 fi
17620
17621 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
17622
17623 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17624echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
17625if test "${ac_cv_sys_large_files+set}" = set; then
17626 echo $ECHO_N "(cached) $ECHO_C" >&6
17627else
17628
17629 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17630/* confdefs.h. */
17631_ACEOF
17632cat confdefs.h >>conftest.$ac_ext
17633cat >>conftest.$ac_ext <<_ACEOF
17634/* end confdefs.h. */
21d1c967
GD
17635#define _LARGE_FILES 1
17636 #include <sys/types.h>
e6cc62c6
VS
17637int
17638main ()
17639{
21d1c967
GD
17640typedef struct {
17641 unsigned int field: sizeof(off_t) == 8;
17642} wxlf;
17643
e6cc62c6
VS
17644 ;
17645 return 0;
17646}
17647_ACEOF
17648rm -f conftest.$ac_objext
17649if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 17650 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17651 ac_status=$?
f95e4495
VS
17652 grep -v '^ *+' conftest.er1 >conftest.err
17653 rm -f conftest.er1
17654 cat conftest.err >&5
e6cc62c6
VS
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); } &&
f95e4495
VS
17657 { ac_try='test -z "$ac_c_werror_flag"
17658 || test ! -s conftest.err'
17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
17661 ac_status=$?
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; } &&
17664 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17666 (eval $ac_try) 2>&5
17667 ac_status=$?
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 (exit $ac_status); }; }; then
21d1c967 17670 ac_cv_sys_large_files=1
f6bcfd97 17671else
e6cc62c6
VS
17672 echo "$as_me: failed program was:" >&5
17673sed 's/^/| /' conftest.$ac_ext >&5
17674
17675ac_cv_sys_large_files=no
247f5006 17676fi
f95e4495 17677rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 17678
e6cc62c6
VS
17679
17680fi
17681echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17682echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 17683
21d1c967
GD
17684 if test "$ac_cv_sys_large_files" != no; then
17685 wx_largefile=yes
e6cc62c6 17686 cat >>confdefs.h <<_ACEOF
21d1c967 17687#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 17688_ACEOF
90dd450c 17689
90dd450c
VZ
17690 fi
17691
90dd450c 17692 fi
90dd450c 17693
e6cc62c6
VS
17694 echo "$as_me:$LINENO: checking if large file support is available" >&5
17695echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 17696 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 17697 cat >>confdefs.h <<\_ACEOF
21d1c967 17698#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 17699_ACEOF
90dd450c 17700
90dd450c 17701 fi
e6cc62c6
VS
17702 echo "$as_me:$LINENO: result: $wx_largefile" >&5
17703echo "${ECHO_T}$wx_largefile" >&6
21d1c967 17704fi
90dd450c 17705
8284b0c5 17706
f02444d0 17707if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
17708 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
17709 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 17710 else
e26c13cf 17711 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 17712 fi
e26c13cf 17713 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
17714fi
17715
e6cc62c6
VS
17716echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17717echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17718if test "${ac_cv_c_bigendian+set}" = set; then
17719 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 17720else
21d1c967
GD
17721 ac_cv_c_bigendian=unknown
17722# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6 17723cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17724/* confdefs.h. */
17725_ACEOF
17726cat confdefs.h >>conftest.$ac_ext
17727cat >>conftest.$ac_ext <<_ACEOF
17728/* end confdefs.h. */
21d1c967
GD
17729#include <sys/types.h>
17730#include <sys/param.h>
e6cc62c6
VS
17731int
17732main ()
17733{
21d1c967
GD
17734
17735#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17736 bogus endian macros
17737#endif
e6cc62c6
VS
17738 ;
17739 return 0;
17740}
17741_ACEOF
17742rm -f conftest.$ac_objext
17743if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 17744 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17745 ac_status=$?
f95e4495
VS
17746 grep -v '^ *+' conftest.er1 >conftest.err
17747 rm -f conftest.er1
17748 cat conftest.err >&5
e6cc62c6
VS
17749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17750 (exit $ac_status); } &&
f95e4495
VS
17751 { ac_try='test -z "$ac_c_werror_flag"
17752 || test ! -s conftest.err'
17753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17755 ac_status=$?
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; } &&
17758 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17760 (eval $ac_try) 2>&5
17761 ac_status=$?
17762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17763 (exit $ac_status); }; }; then
21d1c967 17764 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6 17765cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17766/* confdefs.h. */
17767_ACEOF
17768cat confdefs.h >>conftest.$ac_ext
17769cat >>conftest.$ac_ext <<_ACEOF
17770/* end confdefs.h. */
21d1c967
GD
17771#include <sys/types.h>
17772#include <sys/param.h>
e6cc62c6
VS
17773int
17774main ()
17775{
21d1c967
GD
17776
17777#if BYTE_ORDER != BIG_ENDIAN
17778 not big endian
17779#endif
e6cc62c6
VS
17780 ;
17781 return 0;
17782}
17783_ACEOF
17784rm -f conftest.$ac_objext
17785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 17786 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17787 ac_status=$?
f95e4495
VS
17788 grep -v '^ *+' conftest.er1 >conftest.err
17789 rm -f conftest.er1
17790 cat conftest.err >&5
e6cc62c6
VS
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } &&
f95e4495
VS
17793 { ac_try='test -z "$ac_c_werror_flag"
17794 || test ! -s conftest.err'
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17797 ac_status=$?
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; } &&
17800 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17803 ac_status=$?
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; }; then
21d1c967 17806 ac_cv_c_bigendian=yes
3f345b47 17807else
e6cc62c6
VS
17808 echo "$as_me: failed program was:" >&5
17809sed 's/^/| /' conftest.$ac_ext >&5
17810
17811ac_cv_c_bigendian=no
3f345b47 17812fi
f95e4495 17813rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f345b47 17814else
e6cc62c6
VS
17815 echo "$as_me: failed program was:" >&5
17816sed 's/^/| /' conftest.$ac_ext >&5
17817
3f345b47 17818fi
f95e4495 17819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17820if test $ac_cv_c_bigendian = unknown; then
17821if test "$cross_compiling" = yes; then
17822 ac_cv_c_bigendian=unknown
10f2d63a 17823else
e6cc62c6 17824 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17825/* confdefs.h. */
17826_ACEOF
17827cat confdefs.h >>conftest.$ac_ext
17828cat >>conftest.$ac_ext <<_ACEOF
17829/* end confdefs.h. */
21d1c967
GD
17830main () {
17831 /* Are we little or big endian? From Harbison&Steele. */
17832 union
17833 {
17834 long l;
17835 char c[sizeof (long)];
17836 } u;
17837 u.l = 1;
17838 exit (u.c[sizeof (long) - 1] == 1);
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
21d1c967 17852 ac_cv_c_bigendian=no
3f345b47 17853else
e6cc62c6
VS
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 )
17859ac_cv_c_bigendian=yes
247f5006 17860fi
f95e4495 17861rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 17862fi
3f345b47 17863fi
8168de4c 17864fi
e6cc62c6
VS
17865echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17866echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 17867if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
17868 { 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
17869echo "$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
17870fi
17871if test $ac_cv_c_bigendian = yes; then
e6cc62c6 17872 cat >>confdefs.h <<\_ACEOF
247f5006 17873#define WORDS_BIGENDIAN 1
e6cc62c6 17874_ACEOF
247f5006
VZ
17875
17876fi
17877
17878
e6cc62c6
VS
17879
17880ac_ext=cc
17881ac_cpp='$CXXCPP $CPPFLAGS'
17882ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17883ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17884ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17885echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
17886echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 17887if test -z "$CXXCPP"; then
e6cc62c6
VS
17888 if test "${ac_cv_prog_CXXCPP+set}" = set; then
17889 echo $ECHO_N "(cached) $ECHO_C" >&6
17890else
17891 # Double quotes because CXXCPP needs to be expanded
17892 for CXXCPP in "$CXX -E" "/lib/cpp"
17893 do
17894 ac_preproc_ok=false
17895for ac_cxx_preproc_warn_flag in '' yes
17896do
17897 # Use a header file that comes with gcc, so configuring glibc
17898 # with a fresh cross-compiler works.
17899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17900 # <limits.h> exists even on freestanding compilers.
17901 # On the NeXT, cc -E runs the code through the compiler's parser,
17902 # not just through cpp. "Syntax error" is here to catch this case.
17903 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17904/* confdefs.h. */
17905_ACEOF
17906cat confdefs.h >>conftest.$ac_ext
17907cat >>conftest.$ac_ext <<_ACEOF
17908/* end confdefs.h. */
17909#ifdef __STDC__
17910# include <limits.h>
17911#else
17912# include <assert.h>
17913#endif
f95e4495 17914 Syntax error
e6cc62c6
VS
17915_ACEOF
17916if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17918 ac_status=$?
17919 grep -v '^ *+' conftest.er1 >conftest.err
17920 rm -f conftest.er1
17921 cat conftest.err >&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); } >/dev/null; then
17924 if test -s conftest.err; then
17925 ac_cpp_err=$ac_cxx_preproc_warn_flag
f95e4495 17926 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
17927 else
17928 ac_cpp_err=
17929 fi
247f5006 17930else
e6cc62c6
VS
17931 ac_cpp_err=yes
17932fi
17933if test -z "$ac_cpp_err"; then
17934 :
17935else
17936 echo "$as_me: failed program was:" >&5
17937sed 's/^/| /' conftest.$ac_ext >&5
17938
17939 # Broken: fails on valid input.
17940continue
17941fi
17942rm -f conftest.err conftest.$ac_ext
17943
17944 # OK, works on sane cases. Now check whether non-existent headers
17945 # can be detected and how.
17946 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17947/* confdefs.h. */
17948_ACEOF
17949cat confdefs.h >>conftest.$ac_ext
17950cat >>conftest.$ac_ext <<_ACEOF
17951/* end confdefs.h. */
17952#include <ac_nonexistent.h>
17953_ACEOF
17954if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17956 ac_status=$?
17957 grep -v '^ *+' conftest.er1 >conftest.err
17958 rm -f conftest.er1
17959 cat conftest.err >&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); } >/dev/null; then
17962 if test -s conftest.err; then
17963 ac_cpp_err=$ac_cxx_preproc_warn_flag
f95e4495 17964 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
17965 else
17966 ac_cpp_err=
17967 fi
17968else
17969 ac_cpp_err=yes
17970fi
17971if test -z "$ac_cpp_err"; then
17972 # Broken: success on invalid input.
17973continue
17974else
17975 echo "$as_me: failed program was:" >&5
17976sed 's/^/| /' conftest.$ac_ext >&5
17977
17978 # Passes both tests.
17979ac_preproc_ok=:
17980break
17981fi
17982rm -f conftest.err conftest.$ac_ext
17983
17984done
17985# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17986rm -f conftest.err conftest.$ac_ext
17987if $ac_preproc_ok; then
17988 break
17989fi
17990
17991 done
17992 ac_cv_prog_CXXCPP=$CXXCPP
17993
17994fi
17995 CXXCPP=$ac_cv_prog_CXXCPP
17996else
17997 ac_cv_prog_CXXCPP=$CXXCPP
17998fi
17999echo "$as_me:$LINENO: result: $CXXCPP" >&5
18000echo "${ECHO_T}$CXXCPP" >&6
18001ac_preproc_ok=false
18002for ac_cxx_preproc_warn_flag in '' yes
18003do
18004 # Use a header file that comes with gcc, so configuring glibc
18005 # with a fresh cross-compiler works.
18006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18007 # <limits.h> exists even on freestanding compilers.
18008 # On the NeXT, cc -E runs the code through the compiler's parser,
18009 # not just through cpp. "Syntax error" is here to catch this case.
18010 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18011/* confdefs.h. */
18012_ACEOF
18013cat confdefs.h >>conftest.$ac_ext
18014cat >>conftest.$ac_ext <<_ACEOF
18015/* end confdefs.h. */
18016#ifdef __STDC__
18017# include <limits.h>
18018#else
18019# include <assert.h>
18020#endif
f95e4495 18021 Syntax error
e6cc62c6
VS
18022_ACEOF
18023if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18024 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18025 ac_status=$?
18026 grep -v '^ *+' conftest.er1 >conftest.err
18027 rm -f conftest.er1
18028 cat conftest.err >&5
18029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18030 (exit $ac_status); } >/dev/null; then
18031 if test -s conftest.err; then
18032 ac_cpp_err=$ac_cxx_preproc_warn_flag
f95e4495 18033 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18034 else
18035 ac_cpp_err=
18036 fi
18037else
18038 ac_cpp_err=yes
18039fi
18040if test -z "$ac_cpp_err"; then
21d1c967 18041 :
698dcdb6 18042else
e6cc62c6
VS
18043 echo "$as_me: failed program was:" >&5
18044sed 's/^/| /' conftest.$ac_ext >&5
18045
18046 # Broken: fails on valid input.
18047continue
18048fi
18049rm -f conftest.err conftest.$ac_ext
18050
18051 # OK, works on sane cases. Now check whether non-existent headers
18052 # can be detected and how.
18053 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18054/* confdefs.h. */
18055_ACEOF
18056cat confdefs.h >>conftest.$ac_ext
18057cat >>conftest.$ac_ext <<_ACEOF
18058/* end confdefs.h. */
18059#include <ac_nonexistent.h>
18060_ACEOF
18061if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18063 ac_status=$?
18064 grep -v '^ *+' conftest.er1 >conftest.err
18065 rm -f conftest.er1
18066 cat conftest.err >&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } >/dev/null; then
18069 if test -s conftest.err; then
18070 ac_cpp_err=$ac_cxx_preproc_warn_flag
f95e4495 18071 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18072 else
18073 ac_cpp_err=
18074 fi
18075else
18076 ac_cpp_err=yes
247f5006 18077fi
e6cc62c6
VS
18078if test -z "$ac_cpp_err"; then
18079 # Broken: success on invalid input.
18080continue
18081else
18082 echo "$as_me: failed program was:" >&5
18083sed 's/^/| /' conftest.$ac_ext >&5
18084
18085 # Passes both tests.
18086ac_preproc_ok=:
18087break
328a083c 18088fi
e6cc62c6
VS
18089rm -f conftest.err conftest.$ac_ext
18090
18091done
18092# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18093rm -f conftest.err conftest.$ac_ext
18094if $ac_preproc_ok; then
18095 :
18096else
18097 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18098See \`config.log' for more details." >&5
18099echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18100See \`config.log' for more details." >&2;}
18101 { (exit 1); exit 1; }; }
90dd450c 18102fi
e6cc62c6
VS
18103
18104ac_ext=cc
18105ac_cpp='$CXXCPP $CPPFLAGS'
18106ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18107ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18108ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18109
1e6feb95 18110
1725144d 18111
21d1c967 18112 if test "$cross_compiling" = "yes"; then
e6cc62c6 18113 cat >>confdefs.h <<\_ACEOF
21d1c967 18114#define wxUSE_IOSTREAMH 1
e6cc62c6 18115_ACEOF
ab9b9eab 18116
21d1c967 18117 else
e6cc62c6
VS
18118
18119
18120 ac_ext=cc
5c6fa7d2 18121ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18122ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18123ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18124ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18125
52127426 18126
247f5006 18127
e6cc62c6 18128for ac_header in iostream
21d1c967 18129do
e6cc62c6
VS
18130as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18131if eval "test \"\${$as_ac_Header+set}\" = set"; then
18132 echo "$as_me:$LINENO: checking for $ac_header" >&5
18133echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18134if eval "test \"\${$as_ac_Header+set}\" = set"; then
18135 echo $ECHO_N "(cached) $ECHO_C" >&6
18136fi
18137echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18138echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18139else
18140 # Is the header compilable?
18141echo "$as_me:$LINENO: checking $ac_header usability" >&5
18142echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18143cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18144/* confdefs.h. */
18145_ACEOF
18146cat confdefs.h >>conftest.$ac_ext
18147cat >>conftest.$ac_ext <<_ACEOF
18148/* end confdefs.h. */
18149$ac_includes_default
18150#include <$ac_header>
18151_ACEOF
18152rm -f conftest.$ac_objext
18153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 18154 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18155 ac_status=$?
f95e4495
VS
18156 grep -v '^ *+' conftest.er1 >conftest.err
18157 rm -f conftest.er1
18158 cat conftest.err >&5
e6cc62c6
VS
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); } &&
f95e4495
VS
18161 { ac_try='test -z "$ac_cxx_werror_flag"
18162 || test ! -s conftest.err'
18163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18164 (eval $ac_try) 2>&5
18165 ac_status=$?
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); }; } &&
18168 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18170 (eval $ac_try) 2>&5
18171 ac_status=$?
18172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18173 (exit $ac_status); }; }; then
18174 ac_header_compiler=yes
18175else
18176 echo "$as_me: failed program was:" >&5
18177sed 's/^/| /' conftest.$ac_ext >&5
18178
18179ac_header_compiler=no
18180fi
f95e4495 18181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
18182echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18183echo "${ECHO_T}$ac_header_compiler" >&6
18184
18185# Is the header present?
18186echo "$as_me:$LINENO: checking $ac_header presence" >&5
18187echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18188cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18189/* confdefs.h. */
18190_ACEOF
18191cat confdefs.h >>conftest.$ac_ext
18192cat >>conftest.$ac_ext <<_ACEOF
18193/* end confdefs.h. */
18194#include <$ac_header>
18195_ACEOF
18196if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18198 ac_status=$?
18199 grep -v '^ *+' conftest.er1 >conftest.err
18200 rm -f conftest.er1
18201 cat conftest.err >&5
18202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18203 (exit $ac_status); } >/dev/null; then
18204 if test -s conftest.err; then
18205 ac_cpp_err=$ac_cxx_preproc_warn_flag
f95e4495 18206 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18207 else
18208 ac_cpp_err=
18209 fi
18210else
18211 ac_cpp_err=yes
18212fi
18213if test -z "$ac_cpp_err"; then
18214 ac_header_preproc=yes
18215else
18216 echo "$as_me: failed program was:" >&5
18217sed 's/^/| /' conftest.$ac_ext >&5
18218
18219 ac_header_preproc=no
18220fi
18221rm -f conftest.err conftest.$ac_ext
18222echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18223echo "${ECHO_T}$ac_header_preproc" >&6
18224
18225# So? What about this header?
f95e4495
VS
18226case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18227 yes:no: )
e6cc62c6
VS
18228 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18229echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
18230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18231echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18232 ac_header_preproc=yes
e6cc62c6 18233 ;;
f95e4495 18234 no:yes:* )
e6cc62c6
VS
18235 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18236echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
18237 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18238echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18239 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18240echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18241 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18242echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
18243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18244echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
18245 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18246echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
18247 (
18248 cat <<\_ASBOX
f95e4495
VS
18249## ----------------------------------------- ##
18250## Report this to wx-dev@lists.wxwindows.org ##
18251## ----------------------------------------- ##
e6cc62c6
VS
18252_ASBOX
18253 ) |
18254 sed "s/^/$as_me: WARNING: /" >&2
18255 ;;
18256esac
18257echo "$as_me:$LINENO: checking for $ac_header" >&5
18258echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18259if eval "test \"\${$as_ac_Header+set}\" = set"; then
18260 echo $ECHO_N "(cached) $ECHO_C" >&6
18261else
f95e4495 18262 eval "$as_ac_Header=\$ac_header_preproc"
ab9b9eab 18263fi
e6cc62c6
VS
18264echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18265echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18266
90dd450c 18267fi
e6cc62c6
VS
18268if test `eval echo '${'$as_ac_Header'}'` = yes; then
18269 cat >>confdefs.h <<_ACEOF
18270#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18271_ACEOF
18272
90dd450c 18273fi
e6cc62c6 18274
21d1c967 18275done
10f2d63a 18276
8284b0c5 18277
21d1c967
GD
18278 if test "$ac_cv_header_iostream" = "yes" ; then
18279 :
18280 else
e6cc62c6 18281 cat >>confdefs.h <<\_ACEOF
21d1c967 18282#define wxUSE_IOSTREAMH 1
e6cc62c6 18283_ACEOF
788deba1 18284
90dd450c 18285 fi
ab9b9eab 18286
21d1c967 18287 ac_ext=c
21d1c967 18288ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18291ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 18292
21d1c967 18293 fi
ab9b9eab 18294
52127426 18295
8284b0c5 18296
e6cc62c6
VS
18297 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18298echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18299if test "${wx_cv_cpp_bool+set}" = set; then
18300 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 18301else
e6cc62c6
VS
18302
18303
18304
18305 ac_ext=cc
5c6fa7d2 18306ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18307ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18308ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18309ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 18310
8284b0c5 18311
e6cc62c6 18312 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18313/* confdefs.h. */
18314_ACEOF
18315cat confdefs.h >>conftest.$ac_ext
18316cat >>conftest.$ac_ext <<_ACEOF
18317/* end confdefs.h. */
21d1c967 18318
e6cc62c6
VS
18319
18320int
18321main ()
18322{
21d1c967
GD
18323
18324 bool b = true;
18325
18326 return 0;
e6cc62c6
VS
18327
18328 ;
18329 return 0;
18330}
18331_ACEOF
18332rm -f conftest.$ac_objext
18333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 18334 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18335 ac_status=$?
f95e4495
VS
18336 grep -v '^ *+' conftest.er1 >conftest.err
18337 rm -f conftest.er1
18338 cat conftest.err >&5
e6cc62c6
VS
18339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18340 (exit $ac_status); } &&
f95e4495
VS
18341 { ac_try='test -z "$ac_cxx_werror_flag"
18342 || test ! -s conftest.err'
18343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18344 (eval $ac_try) 2>&5
18345 ac_status=$?
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); }; } &&
18348 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18350 (eval $ac_try) 2>&5
18351 ac_status=$?
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; }; then
18354
21d1c967 18355 wx_cv_cpp_bool=yes
e6cc62c6 18356
698dcdb6 18357else
e6cc62c6
VS
18358 echo "$as_me: failed program was:" >&5
18359sed 's/^/| /' conftest.$ac_ext >&5
18360
18361
21d1c967 18362 wx_cv_cpp_bool=no
e6cc62c6
VS
18363
18364
698dcdb6 18365fi
f95e4495 18366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
18367
18368 ac_ext=c
21d1c967 18369ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18372ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 18373
a0b9e27f 18374
e6cc62c6
VS
18375fi
18376echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18377echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
18378
18379 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 18380 cat >>confdefs.h <<\_ACEOF
21d1c967 18381#define HAVE_BOOL 1
e6cc62c6 18382_ACEOF
ab9b9eab 18383
21d1c967
GD
18384 fi
18385
52127426 18386
8284b0c5 18387
e6cc62c6
VS
18388 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18389echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18390if test "${wx_cv_explicit+set}" = set; then
18391 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 18392else
e6cc62c6
VS
18393
18394
18395
18396 ac_ext=cc
5c6fa7d2 18397ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 18401
8284b0c5 18402
e6cc62c6 18403 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18404/* confdefs.h. */
18405_ACEOF
18406cat confdefs.h >>conftest.$ac_ext
18407cat >>conftest.$ac_ext <<_ACEOF
18408/* end confdefs.h. */
986ecc86
VZ
18409
18410 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
18411
18412int
18413main ()
18414{
986ecc86
VZ
18415
18416 return 0;
e6cc62c6
VS
18417
18418 ;
18419 return 0;
18420}
18421_ACEOF
18422rm -f conftest.$ac_objext
18423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 18424 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18425 ac_status=$?
f95e4495
VS
18426 grep -v '^ *+' conftest.er1 >conftest.err
18427 rm -f conftest.er1
18428 cat conftest.err >&5
e6cc62c6
VS
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } &&
f95e4495
VS
18431 { ac_try='test -z "$ac_cxx_werror_flag"
18432 || test ! -s conftest.err'
18433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18434 (eval $ac_try) 2>&5
18435 ac_status=$?
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); }; } &&
18438 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18440 (eval $ac_try) 2>&5
18441 ac_status=$?
18442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18443 (exit $ac_status); }; }; then
18444
18445 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18446/* confdefs.h. */
18447_ACEOF
18448cat confdefs.h >>conftest.$ac_ext
18449cat >>conftest.$ac_ext <<_ACEOF
18450/* end confdefs.h. */
986ecc86
VZ
18451
18452 class Foo { public: explicit Foo(int) {} };
18453 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
18454
18455int
18456main ()
18457{
986ecc86
VZ
18458
18459 TakeFoo(17);
18460 return 0;
e6cc62c6
VS
18461
18462 ;
18463 return 0;
18464}
18465_ACEOF
18466rm -f conftest.$ac_objext
18467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 18468 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18469 ac_status=$?
f95e4495
VS
18470 grep -v '^ *+' conftest.er1 >conftest.err
18471 rm -f conftest.er1
18472 cat conftest.err >&5
e6cc62c6
VS
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); } &&
f95e4495
VS
18475 { ac_try='test -z "$ac_cxx_werror_flag"
18476 || test ! -s conftest.err'
18477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18478 (eval $ac_try) 2>&5
18479 ac_status=$?
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); }; } &&
18482 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484 (eval $ac_try) 2>&5
18485 ac_status=$?
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; }; then
986ecc86
VZ
18488 wx_cv_explicit=no
18489else
e6cc62c6
VS
18490 echo "$as_me: failed program was:" >&5
18491sed 's/^/| /' conftest.$ac_ext >&5
18492
18493wx_cv_explicit=yes
18494
986ecc86 18495fi
f95e4495 18496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 18497
986ecc86 18498else
e6cc62c6
VS
18499 echo "$as_me: failed program was:" >&5
18500sed 's/^/| /' conftest.$ac_ext >&5
18501
18502wx_cv_explicit=no
18503
986ecc86 18504fi
f95e4495 18505rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
18506
18507 ac_ext=c
986ecc86 18508ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18509ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18510ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18511ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 18512
a0b9e27f 18513
e6cc62c6
VS
18514fi
18515echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
18516echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
18517
18518 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 18519 cat >>confdefs.h <<\_ACEOF
986ecc86 18520#define HAVE_EXPLICIT 1
e6cc62c6 18521_ACEOF
986ecc86
VZ
18522
18523 fi
18524
8284b0c5 18525
e6cc62c6
VS
18526echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
18527echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
18528if test "${ac_cv_cxx_const_cast+set}" = set; then
18529 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 18530else
521196a2 18531
521196a2 18532
e6cc62c6
VS
18533 ac_ext=cc
18534ac_cpp='$CXXCPP $CPPFLAGS'
18535ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18536ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18537ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18538
18539 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18540/* confdefs.h. */
18541_ACEOF
18542cat confdefs.h >>conftest.$ac_ext
18543cat >>conftest.$ac_ext <<_ACEOF
18544/* end confdefs.h. */
18545
18546int
18547main ()
18548{
521196a2 18549int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
18550 ;
18551 return 0;
18552}
18553_ACEOF
18554rm -f conftest.$ac_objext
18555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 18556 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18557 ac_status=$?
f95e4495
VS
18558 grep -v '^ *+' conftest.er1 >conftest.err
18559 rm -f conftest.er1
18560 cat conftest.err >&5
e6cc62c6
VS
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); } &&
f95e4495
VS
18563 { ac_try='test -z "$ac_cxx_werror_flag"
18564 || test ! -s conftest.err'
18565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18566 (eval $ac_try) 2>&5
18567 ac_status=$?
18568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18569 (exit $ac_status); }; } &&
18570 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18572 (eval $ac_try) 2>&5
18573 ac_status=$?
18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575 (exit $ac_status); }; }; then
521196a2
MB
18576 ac_cv_cxx_const_cast=yes
18577else
e6cc62c6
VS
18578 echo "$as_me: failed program was:" >&5
18579sed 's/^/| /' conftest.$ac_ext >&5
18580
18581ac_cv_cxx_const_cast=no
521196a2 18582fi
f95e4495 18583rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
521196a2 18584 ac_ext=c
521196a2 18585ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18588ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
18589
18590
18591fi
e6cc62c6
VS
18592echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
18593echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 18594if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
18595
18596cat >>confdefs.h <<\_ACEOF
18597#define HAVE_CONST_CAST
18598_ACEOF
521196a2
MB
18599
18600fi
18601
18602
e87b7833
MB
18603if test "$wxUSE_STL" = "yes"; then
18604 ac_ext=cc
18605ac_cpp='$CXXCPP $CPPFLAGS'
18606ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18607ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18608ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18609
18610
18611 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
18612echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
18613 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
18614/* confdefs.h. */
18615_ACEOF
18616cat confdefs.h >>conftest.$ac_ext
18617cat >>conftest.$ac_ext <<_ACEOF
18618/* end confdefs.h. */
18619#include <string>
18620 #include <functional>
18621 #include <algorithm>
18622 #include <vector>
18623 #include <list>
18624int
18625main ()
18626{
18627std::vector<int> moo;
18628 std::list<int> foo;
18629 std::vector<int>::iterator it =
18630 std::find_if(moo.begin(), moo.end(),
18631 std::bind2nd(std::less<int>(), 3));
18632 ;
18633 return 0;
18634}
18635_ACEOF
18636rm -f conftest.$ac_objext
18637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 18638 (eval $ac_compile) 2>conftest.er1
e87b7833 18639 ac_status=$?
f95e4495
VS
18640 grep -v '^ *+' conftest.er1 >conftest.err
18641 rm -f conftest.er1
18642 cat conftest.err >&5
e87b7833
MB
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); } &&
f95e4495
VS
18645 { ac_try='test -z "$ac_cxx_werror_flag"
18646 || test ! -s conftest.err'
18647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18648 (eval $ac_try) 2>&5
18649 ac_status=$?
18650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18651 (exit $ac_status); }; } &&
18652 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
18653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18654 (eval $ac_try) 2>&5
18655 ac_status=$?
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); }; }; then
18658 echo "$as_me:$LINENO: result: yes" >&5
18659echo "${ECHO_T}yes" >&6
18660else
18661 echo "$as_me: failed program was:" >&5
18662sed 's/^/| /' conftest.$ac_ext >&5
18663
18664echo "$as_me:$LINENO: result: no" >&5
18665echo "${ECHO_T}no" >&6
18666 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
18667echo "$as_me: error: Basic STL functionality missing" >&2;}
18668 { (exit 1); exit 1; }; }
18669fi
f95e4495 18670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
18671
18672 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
18673echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
18674 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
18675/* confdefs.h. */
18676_ACEOF
18677cat confdefs.h >>conftest.$ac_ext
18678cat >>conftest.$ac_ext <<_ACEOF
18679/* end confdefs.h. */
18680#include <string>
18681int
18682main ()
18683{
18684std::wstring foo;
18685 ;
18686 return 0;
18687}
18688_ACEOF
18689rm -f conftest.$ac_objext
18690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 18691 (eval $ac_compile) 2>conftest.er1
e87b7833 18692 ac_status=$?
f95e4495
VS
18693 grep -v '^ *+' conftest.er1 >conftest.err
18694 rm -f conftest.er1
18695 cat conftest.err >&5
e87b7833
MB
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); } &&
f95e4495
VS
18698 { ac_try='test -z "$ac_cxx_werror_flag"
18699 || test ! -s conftest.err'
18700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18701 (eval $ac_try) 2>&5
18702 ac_status=$?
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); }; } &&
18705 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
18706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18707 (eval $ac_try) 2>&5
18708 ac_status=$?
18709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18710 (exit $ac_status); }; }; then
18711 echo "$as_me:$LINENO: result: yes" >&5
18712echo "${ECHO_T}yes" >&6
18713 cat >>confdefs.h <<\_ACEOF
18714#define HAVE_STD_WSTRING 1
18715_ACEOF
18716
18717else
18718 echo "$as_me: failed program was:" >&5
18719sed 's/^/| /' conftest.$ac_ext >&5
18720
18721echo "$as_me:$LINENO: result: no" >&5
18722echo "${ECHO_T}no" >&6
18723fi
f95e4495 18724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
18725
18726 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
18727echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
18728 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
18729/* confdefs.h. */
18730_ACEOF
18731cat confdefs.h >>conftest.$ac_ext
18732cat >>conftest.$ac_ext <<_ACEOF
18733/* end confdefs.h. */
18734#include <string>
18735int
18736main ()
18737{
18738std::string foo, bar;
18739 foo.compare(bar);
18740 foo.compare(1, 1, bar);
18741 foo.compare(1, 1, bar, 1, 1);
18742 foo.compare("");
18743 foo.compare(1, 1, "");
18744 foo.compare(1, 1, "", 2);
18745 ;
18746 return 0;
18747}
18748_ACEOF
18749rm -f conftest.$ac_objext
18750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 18751 (eval $ac_compile) 2>conftest.er1
e87b7833 18752 ac_status=$?
f95e4495
VS
18753 grep -v '^ *+' conftest.er1 >conftest.err
18754 rm -f conftest.er1
18755 cat conftest.err >&5
e87b7833
MB
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); } &&
f95e4495
VS
18758 { ac_try='test -z "$ac_cxx_werror_flag"
18759 || test ! -s conftest.err'
18760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18761 (eval $ac_try) 2>&5
18762 ac_status=$?
18763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18764 (exit $ac_status); }; } &&
18765 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
18766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18767 (eval $ac_try) 2>&5
18768 ac_status=$?
18769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18770 (exit $ac_status); }; }; then
18771 echo "$as_me:$LINENO: result: yes" >&5
18772echo "${ECHO_T}yes" >&6
18773 cat >>confdefs.h <<\_ACEOF
18774#define HAVE_STD_STRING_COMPARE 1
18775_ACEOF
18776
18777else
18778 echo "$as_me: failed program was:" >&5
18779sed 's/^/| /' conftest.$ac_ext >&5
18780
18781echo "$as_me:$LINENO: result: no" >&5
18782echo "${ECHO_T}no" >&6
18783fi
f95e4495 18784rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
18785
18786 ac_ext=c
18787ac_cpp='$CPP $CPPFLAGS'
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
18791
18792fi
18793
8284b0c5 18794
21d1c967
GD
18795SEARCH_INCLUDE="\
18796 /usr/local/include \
18797 \
18798 /usr/Motif-1.2/include \
18799 /usr/Motif-2.1/include \
18800 \
18801 /usr/include/Motif1.2 \
18802 /opt/xpm/include/X11 \
18803 /opt/GBxpm/include/ \
18804 /opt/GBxpm/X11/include/ \
18805 \
18806 /usr/Motif1.2/include \
18807 /usr/dt/include \
18808 /usr/openwin/include \
18809 \
18810 /usr/include/Xm \
18811 \
18812 /usr/X11R6/include \
18813 /usr/X11R6.4/include \
18814 /usr/X11R5/include \
18815 /usr/X11R4/include \
18816 \
18817 /usr/include/X11R6 \
18818 /usr/include/X11R5 \
18819 /usr/include/X11R4 \
18820 \
18821 /usr/local/X11R6/include \
18822 /usr/local/X11R5/include \
18823 /usr/local/X11R4/include \
18824 \
18825 /usr/local/include/X11R6 \
18826 /usr/local/include/X11R5 \
18827 /usr/local/include/X11R4 \
18828 \
18829 /usr/X11/include \
18830 /usr/include/X11 \
18831 /usr/local/X11/include \
18832 /usr/local/include/X11 \
18833 \
18834 /usr/X386/include \
18835 /usr/x386/include \
18836 /usr/XFree86/include/X11 \
18837 \
18838 X:/XFree86/include \
18839 X:/XFree86/include/X11 \
18840 \
18841 /usr/include/gtk \
18842 /usr/local/include/gtk \
18843 /usr/include/glib \
18844 /usr/local/include/glib \
18845 \
18846 /usr/include/qt \
18847 /usr/local/include/qt \
18848 \
18849 /usr/include/windows \
18850 /usr/include/wine \
18851 /usr/local/include/wine \
18852 \
18853 /usr/unsupported/include \
18854 /usr/athena/include \
18855 /usr/local/x11r5/include \
18856 /usr/lpp/Xamples/include \
18857 \
2b5f62a0 18858 /usr/openwin/share/include"
21d1c967
GD
18859
18860SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
18861
8284b0c5 18862
e6cc62c6 18863cat >confcache <<\_ACEOF
21d1c967
GD
18864# This file is a shell script that caches the results of configure
18865# tests run on this system so they can be shared between configure
e6cc62c6
VS
18866# scripts and configure runs, see configure's option --config-cache.
18867# It is not useful on other systems. If it contains results you don't
18868# want to keep, you may remove or edit it.
21d1c967 18869#
e6cc62c6
VS
18870# config.status only pays attention to the cache file if you give it
18871# the --recheck option to rerun configure.
21d1c967 18872#
e6cc62c6
VS
18873# `ac_cv_env_foo' variables (set or unset) will be overridden when
18874# loading this file, other *unset* `ac_cv_foo' will be assigned the
18875# following values.
18876
18877_ACEOF
18878
21d1c967
GD
18879# The following way of writing the cache mishandles newlines in values,
18880# but we know of no workaround that is simple, portable, and efficient.
18881# So, don't put newlines in cache variables' values.
18882# Ultrix sh set writes to stderr and can't be redirected directly,
18883# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
18884{
18885 (set) 2>&1 |
18886 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18887 *ac_space=\ *)
18888 # `set' does not quote correctly, so add quotes (double-quote
18889 # substitution turns \\\\ into \\, and sed turns \\ into \).
18890 sed -n \
f95e4495
VS
18891 "s/'/'\\\\''/g;
18892 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
18893 ;;
18894 *)
18895 # `set' quotes correctly as required by POSIX, so do not add quotes.
18896 sed -n \
f95e4495 18897 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
18898 ;;
18899 esac;
18900} |
18901 sed '
18902 t clear
18903 : clear
18904 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18905 t end
18906 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18907 : end' >>confcache
18908if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 18909 if test -w $cache_file; then
e6cc62c6
VS
18910 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18911 cat confcache >$cache_file
21d1c967
GD
18912 else
18913 echo "not updating unwritable cache $cache_file"
18914 fi
ab9b9eab 18915fi
21d1c967 18916rm -f confcache
ab9b9eab 18917
fe0895cf 18918if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
18919 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
18920echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
18921if test "${wx_cv_lib_glibc21+set}" = set; then
18922 echo $ECHO_N "(cached) $ECHO_C" >&6
18923else
18924
18925 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18926/* confdefs.h. */
18927_ACEOF
18928cat confdefs.h >>conftest.$ac_ext
18929cat >>conftest.$ac_ext <<_ACEOF
18930/* end confdefs.h. */
21d1c967 18931#include <features.h>
e6cc62c6
VS
18932int
18933main ()
18934{
ab9b9eab 18935
21d1c967
GD
18936 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
18937 #error not glibc2.1
18938 #endif
e6cc62c6
VS
18939
18940 ;
18941 return 0;
18942}
18943_ACEOF
18944rm -f conftest.$ac_objext
18945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 18946 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18947 ac_status=$?
f95e4495
VS
18948 grep -v '^ *+' conftest.er1 >conftest.err
18949 rm -f conftest.er1
18950 cat conftest.err >&5
e6cc62c6
VS
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); } &&
f95e4495
VS
18953 { ac_try='test -z "$ac_c_werror_flag"
18954 || test ! -s conftest.err'
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; } &&
18960 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
18966
21d1c967 18967 wx_cv_lib_glibc21=yes
e6cc62c6 18968
698dcdb6 18969else
e6cc62c6
VS
18970 echo "$as_me: failed program was:" >&5
18971sed 's/^/| /' conftest.$ac_ext >&5
18972
18973
21d1c967 18974 wx_cv_lib_glibc21=no
e6cc62c6
VS
18975
18976
247f5006 18977fi
f95e4495 18978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 18979
e6cc62c6
VS
18980fi
18981echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
18982echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 18983 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 18984 cat >>confdefs.h <<\_ACEOF
21d1c967 18985#define wxHAVE_GLIBC2 1
e6cc62c6 18986_ACEOF
1e487827 18987
90dd450c 18988 fi
ab9b9eab
VZ
18989fi
18990
5c0a20c3
VZ
18991if test "x$wx_cv_lib_glibc21" = "xyes"; then
18992 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 18993 cat >>confdefs.h <<\_ACEOF
5c0a20c3 18994#define _GNU_SOURCE 1
e6cc62c6 18995_ACEOF
5c0a20c3
VZ
18996
18997 fi
18998fi
18999
8284b0c5
MB
19000
19001
21d1c967 19002if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 19003 cat >>confdefs.h <<\_ACEOF
21d1c967 19004#define wxUSE_REGEX 1
e6cc62c6 19005_ACEOF
698dcdb6 19006
8284b0c5 19007
30f2fa6c
VS
19008 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
19009 { echo "$as_me:$LINENO: WARNING: Unicode build requires built-in regex library, will use it instead" >&5
19010echo "$as_me: WARNING: Unicode build requires built-in regex library, will use it instead" >&2;}
19011 wxUSE_REGEX=builtin
19012 fi
19013
21d1c967 19014 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
19015 if test "${ac_cv_header_regex_h+set}" = set; then
19016 echo "$as_me:$LINENO: checking for regex.h" >&5
19017echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19018if test "${ac_cv_header_regex_h+set}" = set; then
19019 echo $ECHO_N "(cached) $ECHO_C" >&6
19020fi
19021echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19022echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19023else
19024 # Is the header compilable?
19025echo "$as_me:$LINENO: checking regex.h usability" >&5
19026echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
19027cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19028/* confdefs.h. */
19029_ACEOF
19030cat confdefs.h >>conftest.$ac_ext
19031cat >>conftest.$ac_ext <<_ACEOF
19032/* end confdefs.h. */
19033$ac_includes_default
247f5006 19034#include <regex.h>
e6cc62c6
VS
19035_ACEOF
19036rm -f conftest.$ac_objext
19037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 19038 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19039 ac_status=$?
f95e4495
VS
19040 grep -v '^ *+' conftest.er1 >conftest.err
19041 rm -f conftest.er1
19042 cat conftest.err >&5
e6cc62c6
VS
19043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044 (exit $ac_status); } &&
f95e4495
VS
19045 { ac_try='test -z "$ac_c_werror_flag"
19046 || test ! -s conftest.err'
19047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19048 (eval $ac_try) 2>&5
19049 ac_status=$?
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; } &&
19052 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19054 (eval $ac_try) 2>&5
19055 ac_status=$?
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); }; }; then
19058 ac_header_compiler=yes
19059else
19060 echo "$as_me: failed program was:" >&5
19061sed 's/^/| /' conftest.$ac_ext >&5
19062
19063ac_header_compiler=no
19064fi
f95e4495 19065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19066echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19067echo "${ECHO_T}$ac_header_compiler" >&6
19068
19069# Is the header present?
19070echo "$as_me:$LINENO: checking regex.h presence" >&5
19071echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
19072cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19073/* confdefs.h. */
19074_ACEOF
19075cat confdefs.h >>conftest.$ac_ext
19076cat >>conftest.$ac_ext <<_ACEOF
19077/* end confdefs.h. */
19078#include <regex.h>
19079_ACEOF
19080if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19082 ac_status=$?
19083 grep -v '^ *+' conftest.er1 >conftest.err
19084 rm -f conftest.er1
19085 cat conftest.err >&5
19086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19087 (exit $ac_status); } >/dev/null; then
19088 if test -s conftest.err; then
19089 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 19090 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
19091 else
19092 ac_cpp_err=
19093 fi
19094else
19095 ac_cpp_err=yes
19096fi
19097if test -z "$ac_cpp_err"; then
19098 ac_header_preproc=yes
19099else
19100 echo "$as_me: failed program was:" >&5
19101sed 's/^/| /' conftest.$ac_ext >&5
19102
19103 ac_header_preproc=no
19104fi
19105rm -f conftest.err conftest.$ac_ext
19106echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19107echo "${ECHO_T}$ac_header_preproc" >&6
19108
19109# So? What about this header?
f95e4495
VS
19110case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19111 yes:no: )
e6cc62c6
VS
19112 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
19113echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
19114 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
19115echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
19116 ac_header_preproc=yes
e6cc62c6 19117 ;;
f95e4495 19118 no:yes:* )
e6cc62c6
VS
19119 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
19120echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
f95e4495
VS
19121 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
19122echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
19123 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
19124echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
19125 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
19126echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
19127 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
19128echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
19129 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
19130echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
19131 (
19132 cat <<\_ASBOX
f95e4495
VS
19133## ----------------------------------------- ##
19134## Report this to wx-dev@lists.wxwindows.org ##
19135## ----------------------------------------- ##
e6cc62c6
VS
19136_ASBOX
19137 ) |
19138 sed "s/^/$as_me: WARNING: /" >&2
19139 ;;
19140esac
19141echo "$as_me:$LINENO: checking for regex.h" >&5
19142echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19143if test "${ac_cv_header_regex_h+set}" = set; then
19144 echo $ECHO_N "(cached) $ECHO_C" >&6
19145else
19146 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 19147fi
e6cc62c6
VS
19148echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19149echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19150
698dcdb6 19151fi
e6cc62c6
VS
19152if test $ac_cv_header_regex_h = yes; then
19153
19154for ac_func in regcomp
21d1c967 19155do
e6cc62c6
VS
19156as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19157echo "$as_me:$LINENO: checking for $ac_func" >&5
19158echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19159if eval "test \"\${$as_ac_var+set}\" = set"; then
19160 echo $ECHO_N "(cached) $ECHO_C" >&6
19161else
19162 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19163/* confdefs.h. */
19164_ACEOF
19165cat confdefs.h >>conftest.$ac_ext
19166cat >>conftest.$ac_ext <<_ACEOF
19167/* end confdefs.h. */
f95e4495
VS
19168/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19170#define $ac_func innocuous_$ac_func
19171
a0b9e27f 19172/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
19173 which can conflict with char $ac_func (); below.
19174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19175 <limits.h> exists even on freestanding compilers. */
f95e4495 19176
e6cc62c6
VS
19177#ifdef __STDC__
19178# include <limits.h>
19179#else
19180# include <assert.h>
19181#endif
f95e4495
VS
19182
19183#undef $ac_func
19184
21d1c967 19185/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19186#ifdef __cplusplus
19187extern "C"
19188{
19189#endif
21d1c967 19190/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19191 builtin and then its argument prototype would still apply. */
19192char $ac_func ();
21d1c967
GD
19193/* The GNU C library defines this for functions which it implements
19194 to always fail with ENOSYS. Some functions are actually named
19195 something starting with __ and the normal name is an alias. */
19196#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19197choke me
19198#else
e6cc62c6
VS
19199char (*f) () = $ac_func;
19200#endif
19201#ifdef __cplusplus
19202}
21d1c967 19203#endif
90dd450c 19204
e6cc62c6
VS
19205int
19206main ()
19207{
19208return f != $ac_func;
19209 ;
19210 return 0;
19211}
19212_ACEOF
19213rm -f conftest.$ac_objext conftest$ac_exeext
19214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 19215 (eval $ac_link) 2>conftest.er1
e6cc62c6 19216 ac_status=$?
f95e4495
VS
19217 grep -v '^ *+' conftest.er1 >conftest.err
19218 rm -f conftest.er1
19219 cat conftest.err >&5
e6cc62c6
VS
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); } &&
f95e4495
VS
19222 { ac_try='test -z "$ac_c_werror_flag"
19223 || test ! -s conftest.err'
19224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225 (eval $ac_try) 2>&5
19226 ac_status=$?
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; } &&
19229 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19231 (eval $ac_try) 2>&5
19232 ac_status=$?
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); }; }; then
19235 eval "$as_ac_var=yes"
19236else
19237 echo "$as_me: failed program was:" >&5
19238sed 's/^/| /' conftest.$ac_ext >&5
19239
19240eval "$as_ac_var=no"
19241fi
f95e4495
VS
19242rm -f conftest.err conftest.$ac_objext \
19243 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19244fi
19245echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19246echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19247if test `eval echo '${'$as_ac_var'}'` = yes; then
19248 cat >>confdefs.h <<_ACEOF
19249#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19250_ACEOF
5c6fa7d2 19251
698dcdb6 19252fi
21d1c967
GD
19253done
19254
ab9b9eab
VZ
19255fi
19256
8284b0c5 19257
e6cc62c6 19258
21d1c967
GD
19259 if test "x$ac_cv_func_regcomp" != "xyes"; then
19260 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
19261 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
19262echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
19263 { (exit 1); exit 1; }; }
21d1c967 19264 else
e6cc62c6
VS
19265 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
19266echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
19267 wxUSE_REGEX=builtin
19268 fi
19269 else
19270 wxUSE_REGEX=sys
19271 fi
ab9b9eab 19272 fi
21d1c967 19273fi
90dd450c 19274
8284b0c5 19275
21d1c967
GD
19276ZLIB_LINK=
19277if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 19278 cat >>confdefs.h <<\_ACEOF
21d1c967 19279#define wxUSE_ZLIB 1
e6cc62c6 19280_ACEOF
21d1c967 19281
8284b0c5 19282
21d1c967 19283 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
19284 if test "$USE_DARWIN" = 1; then
19285 system_zlib_h_ok="yes"
19286 else
e6cc62c6
VS
19287 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
19288echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
19289if test "${ac_cv_header_zlib_h+set}" = set; then
19290 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
19291else
19292 if test "$cross_compiling" = yes; then
89e6bf6d 19293 unset ac_cv_header_zlib_h
e6cc62c6 19294
d643b80e 19295else
e6cc62c6 19296 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19297/* confdefs.h. */
19298_ACEOF
19299cat confdefs.h >>conftest.$ac_ext
19300cat >>conftest.$ac_ext <<_ACEOF
19301/* end confdefs.h. */
19302
ef33c576 19303 #include <zlib.h>
d775acfa 19304 #include <stdio.h>
d643b80e 19305
d775acfa
VZ
19306 int main()
19307 {
19308 FILE *f=fopen("conftestval", "w");
19309 if (!f) exit(1);
19310 fprintf(f, "%s",
19311 ZLIB_VERSION[0] == '1' &&
19312 (ZLIB_VERSION[2] > '1' ||
19313 (ZLIB_VERSION[2] == '1' &&
19314 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
19315 exit(0);
19316 }
e6cc62c6
VS
19317
19318_ACEOF
19319rm -f conftest$ac_exeext
19320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19321 (eval $ac_link) 2>&5
19322 ac_status=$?
19323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19326 (eval $ac_try) 2>&5
19327 ac_status=$?
19328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19329 (exit $ac_status); }; }; then
d643b80e
VZ
19330 ac_cv_header_zlib_h=`cat conftestval`
19331else
e6cc62c6
VS
19332 echo "$as_me: program exited with status $ac_status" >&5
19333echo "$as_me: failed program was:" >&5
19334sed 's/^/| /' conftest.$ac_ext >&5
19335
19336( exit $ac_status )
19337ac_cv_header_zlib_h=no
d643b80e 19338fi
f95e4495 19339rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
19340fi
19341
d643b80e 19342fi
e6cc62c6
VS
19343echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19344echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19345 if test "${ac_cv_header_zlib_h+set}" = set; then
19346 echo "$as_me:$LINENO: checking for zlib.h" >&5
19347echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19348if test "${ac_cv_header_zlib_h+set}" = set; then
19349 echo $ECHO_N "(cached) $ECHO_C" >&6
19350fi
19351echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19352echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 19353else
e6cc62c6
VS
19354 # Is the header compilable?
19355echo "$as_me:$LINENO: checking zlib.h usability" >&5
19356echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
19357cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19358/* confdefs.h. */
19359_ACEOF
19360cat confdefs.h >>conftest.$ac_ext
19361cat >>conftest.$ac_ext <<_ACEOF
19362/* end confdefs.h. */
19363$ac_includes_default
89e6bf6d 19364#include <zlib.h>
e6cc62c6
VS
19365_ACEOF
19366rm -f conftest.$ac_objext
19367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 19368 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19369 ac_status=$?
f95e4495
VS
19370 grep -v '^ *+' conftest.er1 >conftest.err
19371 rm -f conftest.er1
19372 cat conftest.err >&5
e6cc62c6
VS
19373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19374 (exit $ac_status); } &&
f95e4495
VS
19375 { ac_try='test -z "$ac_c_werror_flag"
19376 || test ! -s conftest.err'
19377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378 (eval $ac_try) 2>&5
19379 ac_status=$?
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; } &&
19382 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384 (eval $ac_try) 2>&5
19385 ac_status=$?
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; }; then
19388 ac_header_compiler=yes
19389else
19390 echo "$as_me: failed program was:" >&5
19391sed 's/^/| /' conftest.$ac_ext >&5
19392
19393ac_header_compiler=no
19394fi
f95e4495 19395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19396echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19397echo "${ECHO_T}$ac_header_compiler" >&6
19398
19399# Is the header present?
19400echo "$as_me:$LINENO: checking zlib.h presence" >&5
19401echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
19402cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19403/* confdefs.h. */
19404_ACEOF
19405cat confdefs.h >>conftest.$ac_ext
19406cat >>conftest.$ac_ext <<_ACEOF
19407/* end confdefs.h. */
19408#include <zlib.h>
19409_ACEOF
19410if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19412 ac_status=$?
19413 grep -v '^ *+' conftest.er1 >conftest.err
19414 rm -f conftest.er1
19415 cat conftest.err >&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); } >/dev/null; then
19418 if test -s conftest.err; then
19419 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 19420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
19421 else
19422 ac_cpp_err=
19423 fi
19424else
19425 ac_cpp_err=yes
19426fi
19427if test -z "$ac_cpp_err"; then
19428 ac_header_preproc=yes
19429else
19430 echo "$as_me: failed program was:" >&5
19431sed 's/^/| /' conftest.$ac_ext >&5
19432
19433 ac_header_preproc=no
19434fi
19435rm -f conftest.err conftest.$ac_ext
19436echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19437echo "${ECHO_T}$ac_header_preproc" >&6
19438
19439# So? What about this header?
f95e4495
VS
19440case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19441 yes:no: )
e6cc62c6
VS
19442 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19443echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
19444 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
19445echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
19446 ac_header_preproc=yes
e6cc62c6 19447 ;;
f95e4495 19448 no:yes:* )
e6cc62c6
VS
19449 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19450echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
f95e4495
VS
19451 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
19452echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
19453 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
19454echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
19455 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
19456echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
19457 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19458echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
19459 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
19460echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
19461 (
19462 cat <<\_ASBOX
f95e4495
VS
19463## ----------------------------------------- ##
19464## Report this to wx-dev@lists.wxwindows.org ##
19465## ----------------------------------------- ##
e6cc62c6
VS
19466_ASBOX
19467 ) |
19468 sed "s/^/$as_me: WARNING: /" >&2
19469 ;;
19470esac
19471echo "$as_me:$LINENO: checking for zlib.h" >&5
19472echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19473if test "${ac_cv_header_zlib_h+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 19475else
e6cc62c6
VS
19476 ac_cv_header_zlib_h=$ac_header_preproc
19477fi
19478echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19479echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19480
89e6bf6d
VZ
19481fi
19482
d643b80e 19483
e6cc62c6 19484
d775acfa
VZ
19485 system_zlib_h_ok=$ac_cv_header_zlib_h
19486 fi
19487
19488 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
19489 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19490echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19491if test "${ac_cv_lib_z_deflate+set}" = set; then
19492 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19493else
e6cc62c6 19494 ac_check_lib_save_LIBS=$LIBS
21d1c967 19495LIBS="-lz $LIBS"
e6cc62c6 19496cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19497/* confdefs.h. */
19498_ACEOF
19499cat confdefs.h >>conftest.$ac_ext
19500cat >>conftest.$ac_ext <<_ACEOF
19501/* end confdefs.h. */
19502
21d1c967 19503/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19504#ifdef __cplusplus
19505extern "C"
19506#endif
21d1c967 19507/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19508 builtin and then its argument prototype would still apply. */
19509char deflate ();
19510int
19511main ()
19512{
19513deflate ();
19514 ;
19515 return 0;
19516}
19517_ACEOF
19518rm -f conftest.$ac_objext conftest$ac_exeext
19519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 19520 (eval $ac_link) 2>conftest.er1
e6cc62c6 19521 ac_status=$?
f95e4495
VS
19522 grep -v '^ *+' conftest.er1 >conftest.err
19523 rm -f conftest.er1
19524 cat conftest.err >&5
e6cc62c6
VS
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); } &&
f95e4495
VS
19527 { ac_try='test -z "$ac_c_werror_flag"
19528 || test ! -s conftest.err'
19529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19530 (eval $ac_try) 2>&5
19531 ac_status=$?
19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); }; } &&
19534 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19536 (eval $ac_try) 2>&5
19537 ac_status=$?
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); }; }; then
19540 ac_cv_lib_z_deflate=yes
19541else
19542 echo "$as_me: failed program was:" >&5
19543sed 's/^/| /' conftest.$ac_ext >&5
19544
19545ac_cv_lib_z_deflate=no
19546fi
f95e4495
VS
19547rm -f conftest.err conftest.$ac_objext \
19548 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19549LIBS=$ac_check_lib_save_LIBS
19550fi
19551echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19552echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
19553if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 19554 ZLIB_LINK=" -lz"
a0b9e27f 19555fi
698dcdb6 19556
d643b80e 19557 fi
247f5006 19558
21d1c967
GD
19559 if test "x$ZLIB_LINK" = "x" ; then
19560 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
19561 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
19562echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
19563 { (exit 1); exit 1; }; }
21d1c967 19564 else
e6cc62c6
VS
19565 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
19566echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
19567 wxUSE_ZLIB=builtin
19568 fi
19569 else
19570 wxUSE_ZLIB=sys
19571 fi
19572 fi
ab9b9eab
VZ
19573fi
19574
8284b0c5 19575
21d1c967
GD
19576PNG_LINK=
19577if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 19578 cat >>confdefs.h <<\_ACEOF
21d1c967 19579#define wxUSE_LIBPNG 1
e6cc62c6 19580_ACEOF
90dd450c 19581
8284b0c5 19582
21d1c967 19583 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
19584 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
19585echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
19586 wxUSE_LIBPNG=sys
19587 fi
90dd450c 19588
21d1c967 19589 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
19590 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
19591echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
19592 wxUSE_LIBPNG=builtin
19593 fi
19594
19595 if test "$wxUSE_MGL" != 1 ; then
19596 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
19597 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
19598echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
19599if test "${ac_cv_header_png_h+set}" = set; then
19600 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
19601else
19602 if test "$cross_compiling" = yes; then
89e6bf6d 19603 unset ac_cv_header_png_h
e6cc62c6 19604
5d3f766d 19605else
e6cc62c6 19606 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19607/* confdefs.h. */
19608_ACEOF
19609cat confdefs.h >>conftest.$ac_ext
19610cat >>conftest.$ac_ext <<_ACEOF
19611/* end confdefs.h. */
19612
ef33c576 19613 #include <png.h>
5d3f766d
VZ
19614 #include <stdio.h>
19615
19616 int main()
19617 {
19618 FILE *f=fopen("conftestval", "w");
19619 if (!f) exit(1);
19620 fprintf(f, "%s",
19621 PNG_LIBPNG_VER > 90 ? "yes" : "no");
19622 exit(0);
19623 }
e6cc62c6
VS
19624
19625_ACEOF
19626rm -f conftest$ac_exeext
19627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19628 (eval $ac_link) 2>&5
19629 ac_status=$?
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19633 (eval $ac_try) 2>&5
19634 ac_status=$?
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }; }; then
5d3f766d
VZ
19637 ac_cv_header_png_h=`cat conftestval`
19638else
e6cc62c6
VS
19639 echo "$as_me: program exited with status $ac_status" >&5
19640echo "$as_me: failed program was:" >&5
19641sed 's/^/| /' conftest.$ac_ext >&5
19642
19643( exit $ac_status )
19644ac_cv_header_png_h=no
5d3f766d 19645fi
f95e4495 19646rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
19647fi
19648
5d3f766d 19649fi
e6cc62c6
VS
19650echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19651echo "${ECHO_T}$ac_cv_header_png_h" >&6
19652 if test "${ac_cv_header_png_h+set}" = set; then
19653 echo "$as_me:$LINENO: checking for png.h" >&5
19654echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19655if test "${ac_cv_header_png_h+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19657fi
19658echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19659echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 19660else
e6cc62c6
VS
19661 # Is the header compilable?
19662echo "$as_me:$LINENO: checking png.h usability" >&5
19663echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
19664cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19665/* confdefs.h. */
19666_ACEOF
19667cat confdefs.h >>conftest.$ac_ext
19668cat >>conftest.$ac_ext <<_ACEOF
19669/* end confdefs.h. */
19670$ac_includes_default
89e6bf6d 19671#include <png.h>
e6cc62c6
VS
19672_ACEOF
19673rm -f conftest.$ac_objext
19674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 19675 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19676 ac_status=$?
f95e4495
VS
19677 grep -v '^ *+' conftest.er1 >conftest.err
19678 rm -f conftest.er1
19679 cat conftest.err >&5
e6cc62c6
VS
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); } &&
f95e4495
VS
19682 { ac_try='test -z "$ac_c_werror_flag"
19683 || test ! -s conftest.err'
19684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19685 (eval $ac_try) 2>&5
19686 ac_status=$?
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }; } &&
19689 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19691 (eval $ac_try) 2>&5
19692 ac_status=$?
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); }; }; then
19695 ac_header_compiler=yes
19696else
19697 echo "$as_me: failed program was:" >&5
19698sed 's/^/| /' conftest.$ac_ext >&5
19699
19700ac_header_compiler=no
19701fi
f95e4495 19702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19703echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19704echo "${ECHO_T}$ac_header_compiler" >&6
19705
19706# Is the header present?
19707echo "$as_me:$LINENO: checking png.h presence" >&5
19708echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
19709cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19710/* confdefs.h. */
19711_ACEOF
19712cat confdefs.h >>conftest.$ac_ext
19713cat >>conftest.$ac_ext <<_ACEOF
19714/* end confdefs.h. */
19715#include <png.h>
19716_ACEOF
19717if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19718 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19719 ac_status=$?
19720 grep -v '^ *+' conftest.er1 >conftest.err
19721 rm -f conftest.er1
19722 cat conftest.err >&5
19723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19724 (exit $ac_status); } >/dev/null; then
19725 if test -s conftest.err; then
19726 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 19727 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
19728 else
19729 ac_cpp_err=
19730 fi
19731else
19732 ac_cpp_err=yes
19733fi
19734if test -z "$ac_cpp_err"; then
19735 ac_header_preproc=yes
19736else
19737 echo "$as_me: failed program was:" >&5
19738sed 's/^/| /' conftest.$ac_ext >&5
19739
19740 ac_header_preproc=no
19741fi
19742rm -f conftest.err conftest.$ac_ext
19743echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19744echo "${ECHO_T}$ac_header_preproc" >&6
19745
19746# So? What about this header?
f95e4495
VS
19747case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19748 yes:no: )
e6cc62c6
VS
19749 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19750echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
19751 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
19752echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
19753 ac_header_preproc=yes
e6cc62c6 19754 ;;
f95e4495 19755 no:yes:* )
e6cc62c6
VS
19756 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19757echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
f95e4495
VS
19758 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
19759echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
19760 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
19761echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
19762 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
19763echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
19764 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19765echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
19766 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
19767echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
19768 (
19769 cat <<\_ASBOX
f95e4495
VS
19770## ----------------------------------------- ##
19771## Report this to wx-dev@lists.wxwindows.org ##
19772## ----------------------------------------- ##
e6cc62c6
VS
19773_ASBOX
19774 ) |
19775 sed "s/^/$as_me: WARNING: /" >&2
19776 ;;
19777esac
19778echo "$as_me:$LINENO: checking for png.h" >&5
19779echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19780if test "${ac_cv_header_png_h+set}" = set; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 19782else
e6cc62c6
VS
19783 ac_cv_header_png_h=$ac_header_preproc
19784fi
19785echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19786echo "${ECHO_T}$ac_cv_header_png_h" >&6
19787
89e6bf6d
VZ
19788fi
19789
5d3f766d 19790
e6cc62c6 19791
5d3f766d 19792 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
19793 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
19794echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
19795if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
19796 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19797else
e6cc62c6 19798 ac_check_lib_save_LIBS=$LIBS
21d1c967 19799LIBS="-lpng -lz -lm $LIBS"
e6cc62c6 19800cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19801/* confdefs.h. */
19802_ACEOF
19803cat confdefs.h >>conftest.$ac_ext
19804cat >>conftest.$ac_ext <<_ACEOF
19805/* end confdefs.h. */
19806
21d1c967 19807/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19808#ifdef __cplusplus
19809extern "C"
19810#endif
21d1c967 19811/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19812 builtin and then its argument prototype would still apply. */
19813char png_check_sig ();
19814int
19815main ()
19816{
19817png_check_sig ();
19818 ;
19819 return 0;
19820}
19821_ACEOF
19822rm -f conftest.$ac_objext conftest$ac_exeext
19823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 19824 (eval $ac_link) 2>conftest.er1
e6cc62c6 19825 ac_status=$?
f95e4495
VS
19826 grep -v '^ *+' conftest.er1 >conftest.err
19827 rm -f conftest.er1
19828 cat conftest.err >&5
e6cc62c6
VS
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); } &&
f95e4495
VS
19831 { ac_try='test -z "$ac_c_werror_flag"
19832 || test ! -s conftest.err'
19833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19835 ac_status=$?
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; } &&
19838 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19840 (eval $ac_try) 2>&5
19841 ac_status=$?
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; }; then
19844 ac_cv_lib_png_png_check_sig=yes
19845else
19846 echo "$as_me: failed program was:" >&5
19847sed 's/^/| /' conftest.$ac_ext >&5
19848
19849ac_cv_lib_png_png_check_sig=no
19850fi
f95e4495
VS
19851rm -f conftest.err conftest.$ac_objext \
19852 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19853LIBS=$ac_check_lib_save_LIBS
19854fi
19855echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
19856echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
19857if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 19858 PNG_LINK=" -lpng"
a0b9e27f 19859fi
90dd450c 19860
5d3f766d 19861 fi
247f5006 19862
21d1c967
GD
19863 if test "x$PNG_LINK" = "x" ; then
19864 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
19865 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
19866echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
19867 { (exit 1); exit 1; }; }
21d1c967 19868 else
e6cc62c6
VS
19869 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
19870echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
19871 wxUSE_LIBPNG=builtin
19872 fi
19873 else
2b5f62a0 19874 wxUSE_LIBPNG=sys
21d1c967
GD
19875 fi
19876 fi
19877 fi
90dd450c 19878
21d1c967 19879 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
19880fi
19881
8284b0c5 19882
21d1c967
GD
19883JPEG_LINK=
19884if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 19885 cat >>confdefs.h <<\_ACEOF
21d1c967 19886#define wxUSE_LIBJPEG 1
e6cc62c6 19887_ACEOF
90dd450c 19888
8284b0c5 19889
21d1c967 19890 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
19891 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
19892echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
19893 wxUSE_LIBJPEG=sys
19894 fi
90dd450c 19895
21d1c967
GD
19896 if test "$wxUSE_MGL" != 1 ; then
19897 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
19898 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
19899echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
19900 if test "${ac_cv_header_jpeglib_h+set}" = set; then
19901 echo $ECHO_N "(cached) $ECHO_C" >&6
19902else
19903 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19904/* confdefs.h. */
19905_ACEOF
19906cat confdefs.h >>conftest.$ac_ext
19907cat >>conftest.$ac_ext <<_ACEOF
19908/* end confdefs.h. */
90dd450c 19909
21d1c967
GD
19910 #undef HAVE_STDLIB_H
19911 #include <stdio.h>
19912 #include <jpeglib.h>
90dd450c 19913
e6cc62c6
VS
19914int
19915main ()
19916{
19917
19918
19919 ;
19920 return 0;
19921}
19922_ACEOF
19923rm -f conftest.$ac_objext
19924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 19925 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19926 ac_status=$?
f95e4495
VS
19927 grep -v '^ *+' conftest.er1 >conftest.err
19928 rm -f conftest.er1
19929 cat conftest.err >&5
e6cc62c6
VS
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); } &&
f95e4495
VS
19932 { ac_try='test -z "$ac_c_werror_flag"
19933 || test ! -s conftest.err'
19934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19935 (eval $ac_try) 2>&5
19936 ac_status=$?
19937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19938 (exit $ac_status); }; } &&
19939 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19941 (eval $ac_try) 2>&5
19942 ac_status=$?
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); }; }; then
21d1c967 19945 ac_cv_header_jpeglib_h=yes
90dd450c 19946else
e6cc62c6
VS
19947 echo "$as_me: failed program was:" >&5
19948sed 's/^/| /' conftest.$ac_ext >&5
19949
19950ac_cv_header_jpeglib_h=no
19951
90dd450c 19952fi
f95e4495 19953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 19954
90dd450c
VZ
19955fi
19956
e6cc62c6
VS
19957 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
19958echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 19959
21d1c967 19960 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
19961 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
19962echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
19963if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
19964 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19965else
e6cc62c6 19966 ac_check_lib_save_LIBS=$LIBS
21d1c967 19967LIBS="-ljpeg $LIBS"
e6cc62c6 19968cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19969/* confdefs.h. */
19970_ACEOF
19971cat confdefs.h >>conftest.$ac_ext
19972cat >>conftest.$ac_ext <<_ACEOF
19973/* end confdefs.h. */
19974
21d1c967 19975/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19976#ifdef __cplusplus
19977extern "C"
19978#endif
21d1c967 19979/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19980 builtin and then its argument prototype would still apply. */
19981char jpeg_read_header ();
19982int
19983main ()
19984{
19985jpeg_read_header ();
19986 ;
19987 return 0;
19988}
19989_ACEOF
19990rm -f conftest.$ac_objext conftest$ac_exeext
19991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 19992 (eval $ac_link) 2>conftest.er1
e6cc62c6 19993 ac_status=$?
f95e4495
VS
19994 grep -v '^ *+' conftest.er1 >conftest.err
19995 rm -f conftest.er1
19996 cat conftest.err >&5
e6cc62c6
VS
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); } &&
f95e4495
VS
19999 { ac_try='test -z "$ac_c_werror_flag"
20000 || test ! -s conftest.err'
20001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20003 ac_status=$?
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; } &&
20006 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20008 (eval $ac_try) 2>&5
20009 ac_status=$?
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); }; }; then
20012 ac_cv_lib_jpeg_jpeg_read_header=yes
20013else
20014 echo "$as_me: failed program was:" >&5
20015sed 's/^/| /' conftest.$ac_ext >&5
20016
20017ac_cv_lib_jpeg_jpeg_read_header=no
20018fi
f95e4495
VS
20019rm -f conftest.err conftest.$ac_objext \
20020 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
20021LIBS=$ac_check_lib_save_LIBS
20022fi
20023echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
20024echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
20025if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 20026 JPEG_LINK=" -ljpeg"
90dd450c
VZ
20027fi
20028
21d1c967 20029 fi
90dd450c 20030
21d1c967
GD
20031 if test "x$JPEG_LINK" = "x" ; then
20032 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
20033 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
20034echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
20035 { (exit 1); exit 1; }; }
21d1c967 20036 else
e6cc62c6
VS
20037 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
20038echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
20039 wxUSE_LIBJPEG=builtin
20040 fi
20041 else
20042 wxUSE_LIBJPEG=sys
20043 fi
20044 fi
20045 fi
21d1c967 20046fi
90dd450c 20047
8284b0c5 20048
21d1c967 20049TIFF_LINK=
2b5f62a0 20050TIFF_PREREQ_LINKS=-lm
21d1c967 20051if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 20052 cat >>confdefs.h <<\_ACEOF
21d1c967 20053#define wxUSE_LIBTIFF 1
e6cc62c6 20054_ACEOF
21d1c967 20055
8284b0c5 20056
21d1c967 20057 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
20058 if test "$wxUSE_LIBJPEG" = "sys"; then
20059 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
20060 fi
20061 if test "$wxUSE_ZLIB" = "sys"; then
20062 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
20063 fi
e6cc62c6
VS
20064 if test "${ac_cv_header_tiffio_h+set}" = set; then
20065 echo "$as_me:$LINENO: checking for tiffio.h" >&5
20066echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20067if test "${ac_cv_header_tiffio_h+set}" = set; then
20068 echo $ECHO_N "(cached) $ECHO_C" >&6
20069fi
20070echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20071echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20072else
20073 # Is the header compilable?
20074echo "$as_me:$LINENO: checking tiffio.h usability" >&5
20075echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
20076cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20077/* confdefs.h. */
20078_ACEOF
20079cat confdefs.h >>conftest.$ac_ext
20080cat >>conftest.$ac_ext <<_ACEOF
20081/* end confdefs.h. */
20082$ac_includes_default
247f5006 20083#include <tiffio.h>
e6cc62c6
VS
20084_ACEOF
20085rm -f conftest.$ac_objext
20086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 20087 (eval $ac_compile) 2>conftest.er1
e6cc62c6 20088 ac_status=$?
f95e4495
VS
20089 grep -v '^ *+' conftest.er1 >conftest.err
20090 rm -f conftest.er1
20091 cat conftest.err >&5
e6cc62c6
VS
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); } &&
f95e4495
VS
20094 { ac_try='test -z "$ac_c_werror_flag"
20095 || test ! -s conftest.err'
20096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20097 (eval $ac_try) 2>&5
20098 ac_status=$?
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); }; } &&
20101 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20103 (eval $ac_try) 2>&5
20104 ac_status=$?
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); }; }; then
20107 ac_header_compiler=yes
20108else
20109 echo "$as_me: failed program was:" >&5
20110sed 's/^/| /' conftest.$ac_ext >&5
20111
20112ac_header_compiler=no
20113fi
f95e4495 20114rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20115echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20116echo "${ECHO_T}$ac_header_compiler" >&6
20117
20118# Is the header present?
20119echo "$as_me:$LINENO: checking tiffio.h presence" >&5
20120echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
20121cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20122/* confdefs.h. */
20123_ACEOF
20124cat confdefs.h >>conftest.$ac_ext
20125cat >>conftest.$ac_ext <<_ACEOF
20126/* end confdefs.h. */
20127#include <tiffio.h>
20128_ACEOF
20129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20131 ac_status=$?
20132 grep -v '^ *+' conftest.er1 >conftest.err
20133 rm -f conftest.er1
20134 cat conftest.err >&5
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); } >/dev/null; then
20137 if test -s conftest.err; then
20138 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 20139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
20140 else
20141 ac_cpp_err=
20142 fi
20143else
20144 ac_cpp_err=yes
20145fi
20146if test -z "$ac_cpp_err"; then
20147 ac_header_preproc=yes
20148else
20149 echo "$as_me: failed program was:" >&5
20150sed 's/^/| /' conftest.$ac_ext >&5
20151
20152 ac_header_preproc=no
20153fi
20154rm -f conftest.err conftest.$ac_ext
20155echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20156echo "${ECHO_T}$ac_header_preproc" >&6
20157
20158# So? What about this header?
f95e4495
VS
20159case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20160 yes:no: )
e6cc62c6
VS
20161 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
20162echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
20163 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
20164echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
20165 ac_header_preproc=yes
e6cc62c6 20166 ;;
f95e4495 20167 no:yes:* )
e6cc62c6
VS
20168 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
20169echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
f95e4495
VS
20170 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
20171echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
20172 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
20173echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
20174 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
20175echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
20176 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
20177echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
20178 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
20179echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
20180 (
20181 cat <<\_ASBOX
f95e4495
VS
20182## ----------------------------------------- ##
20183## Report this to wx-dev@lists.wxwindows.org ##
20184## ----------------------------------------- ##
e6cc62c6
VS
20185_ASBOX
20186 ) |
20187 sed "s/^/$as_me: WARNING: /" >&2
20188 ;;
20189esac
20190echo "$as_me:$LINENO: checking for tiffio.h" >&5
20191echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20192if test "${ac_cv_header_tiffio_h+set}" = set; then
20193 echo $ECHO_N "(cached) $ECHO_C" >&6
20194else
20195 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 20196fi
e6cc62c6
VS
20197echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20198echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20199
21d1c967 20200fi
e6cc62c6 20201if test $ac_cv_header_tiffio_h = yes; then
0e012a93
VZ
20202
20203 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
e6cc62c6
VS
20204echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
20205if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
20206 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 20207else
e6cc62c6 20208 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 20209LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6 20210cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20211/* confdefs.h. */
20212_ACEOF
20213cat confdefs.h >>conftest.$ac_ext
20214cat >>conftest.$ac_ext <<_ACEOF
20215/* end confdefs.h. */
20216
ab9b9eab 20217/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20218#ifdef __cplusplus
20219extern "C"
20220#endif
ab9b9eab 20221/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20222 builtin and then its argument prototype would still apply. */
20223char TIFFError ();
20224int
20225main ()
20226{
20227TIFFError ();
20228 ;
20229 return 0;
20230}
20231_ACEOF
20232rm -f conftest.$ac_objext conftest$ac_exeext
20233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 20234 (eval $ac_link) 2>conftest.er1
e6cc62c6 20235 ac_status=$?
f95e4495
VS
20236 grep -v '^ *+' conftest.er1 >conftest.err
20237 rm -f conftest.er1
20238 cat conftest.err >&5
e6cc62c6
VS
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } &&
f95e4495
VS
20241 { ac_try='test -z "$ac_c_werror_flag"
20242 || test ! -s conftest.err'
20243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244 (eval $ac_try) 2>&5
20245 ac_status=$?
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; } &&
20248 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250 (eval $ac_try) 2>&5
20251 ac_status=$?
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); }; }; then
20254 ac_cv_lib_tiff_TIFFError=yes
20255else
20256 echo "$as_me: failed program was:" >&5
20257sed 's/^/| /' conftest.$ac_ext >&5
20258
20259ac_cv_lib_tiff_TIFFError=no
20260fi
f95e4495
VS
20261rm -f conftest.err conftest.$ac_objext \
20262 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
20263LIBS=$ac_check_lib_save_LIBS
20264fi
20265echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
20266echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
20267if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 20268 TIFF_LINK=" -ltiff"
a0b9e27f 20269fi
cd6d6d5b 20270
e6cc62c6 20271
0e012a93 20272
a0b9e27f 20273fi
8284b0c5 20274
247f5006 20275
e6cc62c6 20276
21d1c967
GD
20277 if test "x$TIFF_LINK" = "x" ; then
20278 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
20279 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
20280echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
20281 { (exit 1); exit 1; }; }
90dd450c 20282 else
e6cc62c6
VS
20283 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
20284echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 20285 wxUSE_LIBTIFF=builtin
d8356fa3 20286 fi
d8356fa3 20287 else
21d1c967 20288 wxUSE_LIBTIFF=sys
d8356fa3 20289 fi
21d1c967 20290 fi
21d1c967 20291fi
10f2d63a 20292
8284b0c5 20293
672abd7a 20294if test "$wxUSE_EXPAT" != "no"; then
e06468e8 20295 wxUSE_XML=yes
672abd7a
VS
20296 cat >>confdefs.h <<\_ACEOF
20297#define wxUSE_EXPAT 1
20298_ACEOF
20299
20300 cat >>confdefs.h <<\_ACEOF
20301#define wxUSE_XML 1
20302_ACEOF
20303
20304
20305 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
20306 if test "${ac_cv_header_expat_h+set}" = set; then
20307 echo "$as_me:$LINENO: checking for expat.h" >&5
20308echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20309if test "${ac_cv_header_expat_h+set}" = set; then
20310 echo $ECHO_N "(cached) $ECHO_C" >&6
20311fi
20312echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20313echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20314else
20315 # Is the header compilable?
20316echo "$as_me:$LINENO: checking expat.h usability" >&5
20317echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
20318cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
20319/* confdefs.h. */
20320_ACEOF
20321cat confdefs.h >>conftest.$ac_ext
20322cat >>conftest.$ac_ext <<_ACEOF
20323/* end confdefs.h. */
20324$ac_includes_default
20325#include <expat.h>
20326_ACEOF
20327rm -f conftest.$ac_objext
20328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 20329 (eval $ac_compile) 2>conftest.er1
672abd7a 20330 ac_status=$?
f95e4495
VS
20331 grep -v '^ *+' conftest.er1 >conftest.err
20332 rm -f conftest.er1
20333 cat conftest.err >&5
672abd7a
VS
20334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20335 (exit $ac_status); } &&
f95e4495
VS
20336 { ac_try='test -z "$ac_c_werror_flag"
20337 || test ! -s conftest.err'
20338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20339 (eval $ac_try) 2>&5
20340 ac_status=$?
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); }; } &&
20343 { ac_try='test -s conftest.$ac_objext'
672abd7a
VS
20344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345 (eval $ac_try) 2>&5
20346 ac_status=$?
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; }; then
20349 ac_header_compiler=yes
20350else
20351 echo "$as_me: failed program was:" >&5
20352sed 's/^/| /' conftest.$ac_ext >&5
20353
20354ac_header_compiler=no
20355fi
f95e4495 20356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
672abd7a
VS
20357echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20358echo "${ECHO_T}$ac_header_compiler" >&6
20359
20360# Is the header present?
20361echo "$as_me:$LINENO: checking expat.h presence" >&5
20362echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
20363cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
20364/* confdefs.h. */
20365_ACEOF
20366cat confdefs.h >>conftest.$ac_ext
20367cat >>conftest.$ac_ext <<_ACEOF
20368/* end confdefs.h. */
20369#include <expat.h>
20370_ACEOF
20371if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20373 ac_status=$?
20374 grep -v '^ *+' conftest.er1 >conftest.err
20375 rm -f conftest.er1
20376 cat conftest.err >&5
20377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20378 (exit $ac_status); } >/dev/null; then
20379 if test -s conftest.err; then
20380 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 20381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
672abd7a
VS
20382 else
20383 ac_cpp_err=
20384 fi
20385else
20386 ac_cpp_err=yes
20387fi
20388if test -z "$ac_cpp_err"; then
20389 ac_header_preproc=yes
20390else
20391 echo "$as_me: failed program was:" >&5
20392sed 's/^/| /' conftest.$ac_ext >&5
20393
20394 ac_header_preproc=no
20395fi
20396rm -f conftest.err conftest.$ac_ext
20397echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20398echo "${ECHO_T}$ac_header_preproc" >&6
20399
20400# So? What about this header?
f95e4495
VS
20401case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20402 yes:no: )
672abd7a
VS
20403 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
20404echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
20405 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
20406echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
20407 ac_header_preproc=yes
672abd7a 20408 ;;
f95e4495 20409 no:yes:* )
672abd7a
VS
20410 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
20411echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
f95e4495
VS
20412 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
20413echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
20414 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
20415echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
20416 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
20417echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
672abd7a
VS
20418 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
20419echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
20420 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
20421echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
672abd7a
VS
20422 (
20423 cat <<\_ASBOX
f95e4495
VS
20424## ----------------------------------------- ##
20425## Report this to wx-dev@lists.wxwindows.org ##
20426## ----------------------------------------- ##
672abd7a
VS
20427_ASBOX
20428 ) |
20429 sed "s/^/$as_me: WARNING: /" >&2
20430 ;;
20431esac
20432echo "$as_me:$LINENO: checking for expat.h" >&5
20433echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20434if test "${ac_cv_header_expat_h+set}" = set; then
20435 echo $ECHO_N "(cached) $ECHO_C" >&6
20436else
20437 ac_cv_header_expat_h=$ac_header_preproc
20438fi
20439echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20440echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20441
20442fi
5f0b6dff
VS
20443if test $ac_cv_header_expat_h = yes; then
20444 found_expat_h=1
20445fi
20446
20447
20448 if test "x$found_expat_h" = "x1"; then
20449 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
20450echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
20451if test "${wx_cv_expat_is_not_broken+set}" = set; then
20452 echo $ECHO_N "(cached) $ECHO_C" >&6
20453else
20454
20455
672abd7a 20456
5f0b6dff
VS
20457 ac_ext=cc
20458ac_cpp='$CXXCPP $CPPFLAGS'
20459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20462
20463 cat >conftest.$ac_ext <<_ACEOF
5f0b6dff
VS
20464/* confdefs.h. */
20465_ACEOF
20466cat confdefs.h >>conftest.$ac_ext
20467cat >>conftest.$ac_ext <<_ACEOF
20468/* end confdefs.h. */
20469#include <expat.h>
20470int
20471main ()
20472{
672abd7a 20473
5f0b6dff
VS
20474 ;
20475 return 0;
20476}
20477_ACEOF
20478rm -f conftest.$ac_objext
20479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 20480 (eval $ac_compile) 2>conftest.er1
5f0b6dff 20481 ac_status=$?
f95e4495
VS
20482 grep -v '^ *+' conftest.er1 >conftest.err
20483 rm -f conftest.er1
20484 cat conftest.err >&5
5f0b6dff
VS
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); } &&
f95e4495
VS
20487 { ac_try='test -z "$ac_cxx_werror_flag"
20488 || test ! -s conftest.err'
20489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490 (eval $ac_try) 2>&5
20491 ac_status=$?
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; } &&
20494 { ac_try='test -s conftest.$ac_objext'
5f0b6dff
VS
20495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20496 (eval $ac_try) 2>&5
20497 ac_status=$?
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); }; }; then
20500 wx_cv_expat_is_not_broken=yes
20501else
20502 echo "$as_me: failed program was:" >&5
20503sed 's/^/| /' conftest.$ac_ext >&5
20504
20505wx_cv_expat_is_not_broken=no
20506
20507fi
f95e4495 20508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5f0b6dff
VS
20509 ac_ext=c
20510ac_cpp='$CPP $CPPFLAGS'
20511ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20512ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20513ac_compiler_gnu=$ac_cv_c_compiler_gnu
20514
20515
20516
20517fi
20518echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
20519echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
20520 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
20521 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
20522echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
20523if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
20524 echo $ECHO_N "(cached) $ECHO_C" >&6
20525else
20526 ac_check_lib_save_LIBS=$LIBS
20527LIBS="-lexpat $LIBS"
20528cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
20529/* confdefs.h. */
20530_ACEOF
20531cat confdefs.h >>conftest.$ac_ext
20532cat >>conftest.$ac_ext <<_ACEOF
20533/* end confdefs.h. */
20534
20535/* Override any gcc2 internal prototype to avoid an error. */
20536#ifdef __cplusplus
20537extern "C"
20538#endif
20539/* We use char because int might match the return type of a gcc2
20540 builtin and then its argument prototype would still apply. */
20541char XML_ParserCreate ();
20542int
20543main ()
20544{
20545XML_ParserCreate ();
20546 ;
20547 return 0;
20548}
20549_ACEOF
20550rm -f conftest.$ac_objext conftest$ac_exeext
20551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 20552 (eval $ac_link) 2>conftest.er1
672abd7a 20553 ac_status=$?
f95e4495
VS
20554 grep -v '^ *+' conftest.er1 >conftest.err
20555 rm -f conftest.er1
20556 cat conftest.err >&5
672abd7a
VS
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); } &&
f95e4495
VS
20559 { ac_try='test -z "$ac_c_werror_flag"
20560 || test ! -s conftest.err'
20561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562 (eval $ac_try) 2>&5
20563 ac_status=$?
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); }; } &&
20566 { ac_try='test -s conftest$ac_exeext'
672abd7a
VS
20567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20568 (eval $ac_try) 2>&5
20569 ac_status=$?
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); }; }; then
20572 ac_cv_lib_expat_XML_ParserCreate=yes
20573else
20574 echo "$as_me: failed program was:" >&5
20575sed 's/^/| /' conftest.$ac_ext >&5
20576
20577ac_cv_lib_expat_XML_ParserCreate=no
20578fi
f95e4495
VS
20579rm -f conftest.err conftest.$ac_objext \
20580 conftest$ac_exeext conftest.$ac_ext
672abd7a
VS
20581LIBS=$ac_check_lib_save_LIBS
20582fi
20583echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
20584echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
20585if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
20586 EXPAT_LINK=" -lexpat"
20587fi
20588
5f0b6dff 20589 fi
672abd7a
VS
20590 fi
20591 if test "x$EXPAT_LINK" = "x" ; then
20592 if test "$wxUSE_EXPAT" = "sys" ; then
20593 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
20594echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
20595 { (exit 1); exit 1; }; }
20596 else
20597 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
20598echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
20599 wxUSE_EXPAT=builtin
20600 fi
20601 else
20602 wxUSE_EXPAT=sys
20603 fi
20604 fi
20605 if test "$wxUSE_EXPAT" = "builtin" ; then
20606
20607
20608subdirs="$subdirs src/expat"
20609
20610 fi
20611fi
20612
20613
20614
3527f29c
VS
20615if test "$wxUSE_LIBMSPACK" != "no"; then
20616
20617 if test "${ac_cv_header_mspack_h+set}" = set; then
20618 echo "$as_me:$LINENO: checking for mspack.h" >&5
20619echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20620if test "${ac_cv_header_mspack_h+set}" = set; then
20621 echo $ECHO_N "(cached) $ECHO_C" >&6
20622fi
20623echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20624echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20625else
20626 # Is the header compilable?
20627echo "$as_me:$LINENO: checking mspack.h usability" >&5
20628echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
20629cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
20630/* confdefs.h. */
20631_ACEOF
20632cat confdefs.h >>conftest.$ac_ext
20633cat >>conftest.$ac_ext <<_ACEOF
20634/* end confdefs.h. */
20635$ac_includes_default
20636#include <mspack.h>
20637_ACEOF
20638rm -f conftest.$ac_objext
20639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 20640 (eval $ac_compile) 2>conftest.er1
3527f29c 20641 ac_status=$?
f95e4495
VS
20642 grep -v '^ *+' conftest.er1 >conftest.err
20643 rm -f conftest.er1
20644 cat conftest.err >&5
3527f29c
VS
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); } &&
f95e4495
VS
20647 { ac_try='test -z "$ac_c_werror_flag"
20648 || test ! -s conftest.err'
20649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20650 (eval $ac_try) 2>&5
20651 ac_status=$?
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); }; } &&
20654 { ac_try='test -s conftest.$ac_objext'
3527f29c
VS
20655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656 (eval $ac_try) 2>&5
20657 ac_status=$?
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; }; then
20660 ac_header_compiler=yes
20661else
20662 echo "$as_me: failed program was:" >&5
20663sed 's/^/| /' conftest.$ac_ext >&5
20664
20665ac_header_compiler=no
20666fi
f95e4495 20667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3527f29c
VS
20668echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20669echo "${ECHO_T}$ac_header_compiler" >&6
20670
20671# Is the header present?
20672echo "$as_me:$LINENO: checking mspack.h presence" >&5
20673echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
20674cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
20675/* confdefs.h. */
20676_ACEOF
20677cat confdefs.h >>conftest.$ac_ext
20678cat >>conftest.$ac_ext <<_ACEOF
20679/* end confdefs.h. */
20680#include <mspack.h>
20681_ACEOF
20682if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20684 ac_status=$?
20685 grep -v '^ *+' conftest.er1 >conftest.err
20686 rm -f conftest.er1
20687 cat conftest.err >&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); } >/dev/null; then
20690 if test -s conftest.err; then
20691 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 20692 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3527f29c
VS
20693 else
20694 ac_cpp_err=
20695 fi
20696else
20697 ac_cpp_err=yes
20698fi
20699if test -z "$ac_cpp_err"; then
20700 ac_header_preproc=yes
20701else
20702 echo "$as_me: failed program was:" >&5
20703sed 's/^/| /' conftest.$ac_ext >&5
20704
20705 ac_header_preproc=no
20706fi
20707rm -f conftest.err conftest.$ac_ext
20708echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20709echo "${ECHO_T}$ac_header_preproc" >&6
20710
20711# So? What about this header?
f95e4495
VS
20712case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20713 yes:no: )
3527f29c
VS
20714 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
20715echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
20716 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
20717echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
20718 ac_header_preproc=yes
3527f29c 20719 ;;
f95e4495 20720 no:yes:* )
3527f29c
VS
20721 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
20722echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
f95e4495
VS
20723 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
20724echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
20725 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
20726echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
20727 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
20728echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
3527f29c
VS
20729 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
20730echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
20731 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
20732echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
3527f29c
VS
20733 (
20734 cat <<\_ASBOX
f95e4495
VS
20735## ----------------------------------------- ##
20736## Report this to wx-dev@lists.wxwindows.org ##
20737## ----------------------------------------- ##
3527f29c
VS
20738_ASBOX
20739 ) |
20740 sed "s/^/$as_me: WARNING: /" >&2
20741 ;;
20742esac
20743echo "$as_me:$LINENO: checking for mspack.h" >&5
20744echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20745if test "${ac_cv_header_mspack_h+set}" = set; then
20746 echo $ECHO_N "(cached) $ECHO_C" >&6
20747else
20748 ac_cv_header_mspack_h=$ac_header_preproc
20749fi
20750echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20751echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20752
20753fi
20754if test $ac_cv_header_mspack_h = yes; then
20755 found_mspack_h=1
20756fi
20757
20758
20759 if test "x$found_mspack_h" = "x1"; then
20760 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
20761echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
20762if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
20763 echo $ECHO_N "(cached) $ECHO_C" >&6
20764else
20765 ac_check_lib_save_LIBS=$LIBS
20766LIBS="-lmspack $LIBS"
20767cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
20768/* confdefs.h. */
20769_ACEOF
20770cat confdefs.h >>conftest.$ac_ext
20771cat >>conftest.$ac_ext <<_ACEOF
20772/* end confdefs.h. */
20773
20774/* Override any gcc2 internal prototype to avoid an error. */
20775#ifdef __cplusplus
20776extern "C"
20777#endif
20778/* We use char because int might match the return type of a gcc2
20779 builtin and then its argument prototype would still apply. */
20780char mspack_create_chm_decompressor ();
20781int
20782main ()
20783{
20784mspack_create_chm_decompressor ();
20785 ;
20786 return 0;
20787}
20788_ACEOF
20789rm -f conftest.$ac_objext conftest$ac_exeext
20790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 20791 (eval $ac_link) 2>conftest.er1
3527f29c 20792 ac_status=$?
f95e4495
VS
20793 grep -v '^ *+' conftest.er1 >conftest.err
20794 rm -f conftest.er1
20795 cat conftest.err >&5
3527f29c
VS
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); } &&
f95e4495
VS
20798 { ac_try='test -z "$ac_c_werror_flag"
20799 || test ! -s conftest.err'
20800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20801 (eval $ac_try) 2>&5
20802 ac_status=$?
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); }; } &&
20805 { ac_try='test -s conftest$ac_exeext'
3527f29c
VS
20806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20807 (eval $ac_try) 2>&5
20808 ac_status=$?
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); }; }; then
20811 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
20812else
20813 echo "$as_me: failed program was:" >&5
20814sed 's/^/| /' conftest.$ac_ext >&5
20815
20816ac_cv_lib_mspack_mspack_create_chm_decompressor=no
20817fi
f95e4495
VS
20818rm -f conftest.err conftest.$ac_objext \
20819 conftest$ac_exeext conftest.$ac_ext
3527f29c
VS
20820LIBS=$ac_check_lib_save_LIBS
20821fi
20822echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
20823echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
20824if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
20825 MSPACK_LINK=" -lmspack"
20826fi
20827
20828 fi
20829 if test "x$MSPACK_LINK" = "x" ; then
20830 wxUSE_LIBMSPACK=no
20831 else
20832 cat >>confdefs.h <<\_ACEOF
20833#define wxUSE_LIBMSPACK 1
20834_ACEOF
20835
20836 fi
20837fi
20838
20839
20840
21d1c967 20841AFMINSTALL=
2b5f62a0 20842WIN32INSTALL=
90dd450c 20843
21d1c967
GD
20844TOOLKIT=
20845TOOLKIT_INCLUDE=
20846WIDGET_SET=
20847
20848if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
20849
20850for ac_header in w32api.h
21d1c967 20851do
e6cc62c6
VS
20852as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20853if eval "test \"\${$as_ac_Header+set}\" = set"; then
20854 echo "$as_me:$LINENO: checking for $ac_header" >&5
20855echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20856if eval "test \"\${$as_ac_Header+set}\" = set"; then
20857 echo $ECHO_N "(cached) $ECHO_C" >&6
20858fi
20859echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20860echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20861else
20862 # Is the header compilable?
20863echo "$as_me:$LINENO: checking $ac_header usability" >&5
20864echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20865cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20866/* confdefs.h. */
20867_ACEOF
20868cat confdefs.h >>conftest.$ac_ext
20869cat >>conftest.$ac_ext <<_ACEOF
20870/* end confdefs.h. */
20871$ac_includes_default
20872#include <$ac_header>
20873_ACEOF
20874rm -f conftest.$ac_objext
20875if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 20876 (eval $ac_compile) 2>conftest.er1
e6cc62c6 20877 ac_status=$?
f95e4495
VS
20878 grep -v '^ *+' conftest.er1 >conftest.err
20879 rm -f conftest.er1
20880 cat conftest.err >&5
e6cc62c6
VS
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); } &&
f95e4495
VS
20883 { ac_try='test -z "$ac_c_werror_flag"
20884 || test ! -s conftest.err'
20885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886 (eval $ac_try) 2>&5
20887 ac_status=$?
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; } &&
20890 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20892 (eval $ac_try) 2>&5
20893 ac_status=$?
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); }; }; then
20896 ac_header_compiler=yes
20897else
20898 echo "$as_me: failed program was:" >&5
20899sed 's/^/| /' conftest.$ac_ext >&5
20900
20901ac_header_compiler=no
20902fi
f95e4495 20903rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20904echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20905echo "${ECHO_T}$ac_header_compiler" >&6
20906
20907# Is the header present?
20908echo "$as_me:$LINENO: checking $ac_header presence" >&5
20909echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20910cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20911/* confdefs.h. */
20912_ACEOF
20913cat confdefs.h >>conftest.$ac_ext
20914cat >>conftest.$ac_ext <<_ACEOF
20915/* end confdefs.h. */
20916#include <$ac_header>
20917_ACEOF
20918if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20919 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20920 ac_status=$?
20921 grep -v '^ *+' conftest.er1 >conftest.err
20922 rm -f conftest.er1
20923 cat conftest.err >&5
20924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); } >/dev/null; then
20926 if test -s conftest.err; then
20927 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 20928 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
20929 else
20930 ac_cpp_err=
20931 fi
20932else
20933 ac_cpp_err=yes
20934fi
20935if test -z "$ac_cpp_err"; then
20936 ac_header_preproc=yes
20937else
20938 echo "$as_me: failed program was:" >&5
20939sed 's/^/| /' conftest.$ac_ext >&5
20940
20941 ac_header_preproc=no
20942fi
20943rm -f conftest.err conftest.$ac_ext
20944echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20945echo "${ECHO_T}$ac_header_preproc" >&6
20946
20947# So? What about this header?
f95e4495
VS
20948case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20949 yes:no: )
e6cc62c6
VS
20950 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20951echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
20952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20953echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20954 ac_header_preproc=yes
e6cc62c6 20955 ;;
f95e4495 20956 no:yes:* )
e6cc62c6
VS
20957 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20958echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
20959 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20960echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20961 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20962echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20963 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20964echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
20965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20966echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
20967 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20968echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
20969 (
20970 cat <<\_ASBOX
f95e4495
VS
20971## ----------------------------------------- ##
20972## Report this to wx-dev@lists.wxwindows.org ##
20973## ----------------------------------------- ##
e6cc62c6
VS
20974_ASBOX
20975 ) |
20976 sed "s/^/$as_me: WARNING: /" >&2
20977 ;;
20978esac
20979echo "$as_me:$LINENO: checking for $ac_header" >&5
20980echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20981if eval "test \"\${$as_ac_Header+set}\" = set"; then
20982 echo $ECHO_N "(cached) $ECHO_C" >&6
20983else
f95e4495 20984 eval "$as_ac_Header=\$ac_header_preproc"
f79bd02d 20985fi
e6cc62c6
VS
20986echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20987echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20988
21d1c967 20989fi
e6cc62c6
VS
20990if test `eval echo '${'$as_ac_Header'}'` = yes; then
20991 cat >>confdefs.h <<_ACEOF
20992#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20993_ACEOF
20994
21d1c967 20995fi
e6cc62c6 20996
21d1c967 20997done
f79bd02d 20998
e6cc62c6
VS
20999 if test "${ac_cv_header_windows_h+set}" = set; then
21000 echo "$as_me:$LINENO: checking for windows.h" >&5
21001echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21002if test "${ac_cv_header_windows_h+set}" = set; then
21003 echo $ECHO_N "(cached) $ECHO_C" >&6
21004fi
21005echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21006echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21007else
21008 # Is the header compilable?
21009echo "$as_me:$LINENO: checking windows.h usability" >&5
21010echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
21011cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21012/* confdefs.h. */
21013_ACEOF
21014cat confdefs.h >>conftest.$ac_ext
21015cat >>conftest.$ac_ext <<_ACEOF
21016/* end confdefs.h. */
21017$ac_includes_default
247f5006 21018#include <windows.h>
e6cc62c6
VS
21019_ACEOF
21020rm -f conftest.$ac_objext
21021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 21022 (eval $ac_compile) 2>conftest.er1
e6cc62c6 21023 ac_status=$?
f95e4495
VS
21024 grep -v '^ *+' conftest.er1 >conftest.err
21025 rm -f conftest.er1
21026 cat conftest.err >&5
e6cc62c6
VS
21027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028 (exit $ac_status); } &&
f95e4495
VS
21029 { ac_try='test -z "$ac_c_werror_flag"
21030 || test ! -s conftest.err'
21031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21032 (eval $ac_try) 2>&5
21033 ac_status=$?
21034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21035 (exit $ac_status); }; } &&
21036 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
21037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21038 (eval $ac_try) 2>&5
21039 ac_status=$?
21040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041 (exit $ac_status); }; }; then
21042 ac_header_compiler=yes
21043else
21044 echo "$as_me: failed program was:" >&5
21045sed 's/^/| /' conftest.$ac_ext >&5
21046
21047ac_header_compiler=no
21048fi
f95e4495 21049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
21050echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21051echo "${ECHO_T}$ac_header_compiler" >&6
21052
21053# Is the header present?
21054echo "$as_me:$LINENO: checking windows.h presence" >&5
21055echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
21056cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21057/* confdefs.h. */
21058_ACEOF
21059cat confdefs.h >>conftest.$ac_ext
21060cat >>conftest.$ac_ext <<_ACEOF
21061/* end confdefs.h. */
21062#include <windows.h>
21063_ACEOF
21064if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21065 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21066 ac_status=$?
21067 grep -v '^ *+' conftest.er1 >conftest.err
21068 rm -f conftest.er1
21069 cat conftest.err >&5
21070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21071 (exit $ac_status); } >/dev/null; then
21072 if test -s conftest.err; then
21073 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 21074 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
21075 else
21076 ac_cpp_err=
21077 fi
21078else
21079 ac_cpp_err=yes
21080fi
21081if test -z "$ac_cpp_err"; then
21082 ac_header_preproc=yes
21083else
21084 echo "$as_me: failed program was:" >&5
21085sed 's/^/| /' conftest.$ac_ext >&5
21086
21087 ac_header_preproc=no
21088fi
21089rm -f conftest.err conftest.$ac_ext
21090echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21091echo "${ECHO_T}$ac_header_preproc" >&6
21092
21093# So? What about this header?
f95e4495
VS
21094case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21095 yes:no: )
e6cc62c6
VS
21096 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21097echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
21098 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
21099echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
21100 ac_header_preproc=yes
e6cc62c6 21101 ;;
f95e4495 21102 no:yes:* )
e6cc62c6
VS
21103 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21104echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
f95e4495
VS
21105 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21106echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
21107 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21108echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21109 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
21110echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
21111 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21112echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
21113 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21114echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
21115 (
21116 cat <<\_ASBOX
f95e4495
VS
21117## ----------------------------------------- ##
21118## Report this to wx-dev@lists.wxwindows.org ##
21119## ----------------------------------------- ##
e6cc62c6
VS
21120_ASBOX
21121 ) |
21122 sed "s/^/$as_me: WARNING: /" >&2
21123 ;;
21124esac
21125echo "$as_me:$LINENO: checking for windows.h" >&5
21126echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21127if test "${ac_cv_header_windows_h+set}" = set; then
21128 echo $ECHO_N "(cached) $ECHO_C" >&6
21129else
21130 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 21131fi
e6cc62c6
VS
21132echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21133echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21134
90dd450c 21135fi
e6cc62c6 21136if test $ac_cv_header_windows_h = yes; then
21d1c967 21137 :
90dd450c 21138else
21d1c967 21139
e6cc62c6
VS
21140 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
21141echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
21142 { (exit 1); exit 1; }; }
21143
5c6fa7d2 21144fi
7b4a847f 21145
5c6fa7d2 21146
e6cc62c6 21147
b3dfbbc9 21148 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 21149
7bb2947d
MB
21150 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
21151 LIBS="$LIBS -loleacc"
21152 fi
21153
21d1c967
GD
21154 case "${host}" in
21155 *-*-cygwin* )
b3dfbbc9 21156 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 21157 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 21158 esac
f79bd02d 21159
8647bec6
RG
21160 if test "$wxUSE_ODBC" = "sys" ; then
21161 wxUSE_ODBC = "yes"
21d1c967 21162 fi
8647bec6
RG
21163 if test "$wxUSE_ODBC" = "yes" ; then
21164 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 21165 cat >>confdefs.h <<\_ACEOF
8647bec6 21166#define wxUSE_ODBC 1
e6cc62c6 21167_ACEOF
f79bd02d 21168
8647bec6 21169 fi
e6cc62c6 21170
21d1c967
GD
21171 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
21172 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
21173
21174 WIN32INSTALL=win32install
f79bd02d 21175fi
f79bd02d 21176
21d1c967
GD
21177if test "$wxUSE_GUI" = "yes"; then
21178 USE_GUI=1
f79bd02d 21179
21d1c967 21180 GUI_TK_LIBRARY=
f79bd02d 21181
21d1c967
GD
21182 WXGTK12=
21183 WXGTK127=
21184 WXGTK20=
f79bd02d 21185
21d1c967
GD
21186 if test "$wxUSE_MSW" = 1 ; then
21187 TOOLKIT=MSW
21188 GUIDIST=MSW_DIST
ffef10f6
VS
21189
21190 case "${host}" in
21191 *-*-mingw32* )
21192 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
21193 esac
f79bd02d
JS
21194 fi
21195
21d1c967 21196 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
21197 echo "$as_me:$LINENO: checking for GTK+ version" >&5
21198echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
21199
21200 gtk_version_cached=1
e6cc62c6
VS
21201 if test "${wx_cv_lib_gtk+set}" = set; then
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 21203else
e6cc62c6 21204
21d1c967 21205 gtk_version_cached=0
e6cc62c6
VS
21206 echo "$as_me:$LINENO: result: " >&5
21207echo "${ECHO_T}" >&6
f79bd02d 21208
21d1c967
GD
21209 GTK_MODULES=
21210 if test "$wxUSE_THREADS" = "yes"; then
21211 GTK_MODULES=gthread
21212 fi
f79bd02d 21213
2b5f62a0 21214 wx_cv_lib_gtk=
21d1c967
GD
21215 if test "x$wxUSE_GTK2" = "xyes"; then
21216 # Check whether --enable-gtktest or --disable-gtktest was given.
21217if test "${enable_gtktest+set}" = set; then
21218 enableval="$enable_gtktest"
e6cc62c6 21219
f79bd02d 21220else
21d1c967 21221 enable_gtktest=yes
e6cc62c6 21222fi;
f79bd02d 21223
21d1c967
GD
21224 pkg_config_args=gtk+-2.0
21225 for module in . $GTK_MODULES
21226 do
21227 case "$module" in
e6cc62c6 21228 gthread)
21d1c967
GD
21229 pkg_config_args="$pkg_config_args gthread-2.0"
21230 ;;
21231 esac
21232 done
21233
21234 no_gtk=""
f79bd02d 21235
21d1c967
GD
21236 # Extract the first word of "pkg-config", so it can be a program name with args.
21237set dummy pkg-config; ac_word=$2
e6cc62c6
VS
21238echo "$as_me:$LINENO: checking for $ac_word" >&5
21239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21240if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21241 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 21242else
e6cc62c6
VS
21243 case $PKG_CONFIG in
21244 [\\/]* | ?:[\\/]*)
21d1c967
GD
21245 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21246 ;;
21d1c967 21247 *)
e6cc62c6
VS
21248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21249for as_dir in $PATH
21250do
21251 IFS=$as_save_IFS
21252 test -z "$as_dir" && as_dir=.
21253 for ac_exec_ext in '' $ac_executable_extensions; do
21254 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21255 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21257 break 2
21258 fi
21259done
21260done
21261
21d1c967
GD
21262 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21263 ;;
21264esac
f79bd02d 21265fi
e6cc62c6
VS
21266PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21267
21d1c967 21268if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
21269 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21270echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 21271else
e6cc62c6
VS
21272 echo "$as_me:$LINENO: result: no" >&5
21273echo "${ECHO_T}no" >&6
f79bd02d
JS
21274fi
21275
8284b0c5 21276
21d1c967
GD
21277 if test x$PKG_CONFIG != xno ; then
21278 if pkg-config --atleast-pkgconfig-version 0.7 ; then
21279 :
21280 else
21281 echo *** pkg-config too old; version 0.7 or better required.
21282 no_gtk=yes
21283 PKG_CONFIG=no
21284 fi
21285 else
21286 no_gtk=yes
21287 fi
f79bd02d 21288
21d1c967 21289 min_gtk_version=2.0.0
e6cc62c6
VS
21290 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
21291echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 21292
21d1c967
GD
21293 if test x$PKG_CONFIG != xno ; then
21294 ## don't try to run the test against uninstalled libtool libs
21295 if $PKG_CONFIG --uninstalled $pkg_config_args; then
21296 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
21297 enable_gtktest=no
21298 fi
f79bd02d 21299
21d1c967
GD
21300 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
21301 :
21302 else
21303 no_gtk=yes
21304 fi
21305 fi
f79bd02d 21306
21d1c967
GD
21307 if test x"$no_gtk" = x ; then
21308 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
21309 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
21310 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21311 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21312 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21313 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21314 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21315 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21316 if test "x$enable_gtktest" = "xyes" ; then
21317 ac_save_CFLAGS="$CFLAGS"
21318 ac_save_LIBS="$LIBS"
21319 CFLAGS="$CFLAGS $GTK_CFLAGS"
21320 LIBS="$GTK_LIBS $LIBS"
21321 rm -f conf.gtktest
21322 if test "$cross_compiling" = yes; then
21323 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 21324else
e6cc62c6 21325 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21326/* confdefs.h. */
21327_ACEOF
21328cat confdefs.h >>conftest.$ac_ext
21329cat >>conftest.$ac_ext <<_ACEOF
21330/* end confdefs.h. */
f79bd02d 21331
21d1c967
GD
21332#include <gtk/gtk.h>
21333#include <stdio.h>
21334#include <stdlib.h>
f79bd02d 21335
e6cc62c6 21336int
21d1c967
GD
21337main ()
21338{
21339 int major, minor, micro;
21340 char *tmp_version;
f79bd02d 21341
21d1c967 21342 system ("touch conf.gtktest");
f79bd02d 21343
21d1c967
GD
21344 /* HP/UX 9 (%@#!) writes to sscanf strings */
21345 tmp_version = g_strdup("$min_gtk_version");
21346 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21347 printf("%s, bad version string\n", "$min_gtk_version");
21348 exit(1);
21349 }
f79bd02d 21350
21d1c967
GD
21351 if ((gtk_major_version != $gtk_config_major_version) ||
21352 (gtk_minor_version != $gtk_config_minor_version) ||
21353 (gtk_micro_version != $gtk_config_micro_version))
21354 {
e6cc62c6 21355 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
21356 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21357 gtk_major_version, gtk_minor_version, gtk_micro_version);
21358 printf ("*** was found! If pkg-config was correct, then it is best\n");
21359 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21360 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21361 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21362 printf("*** required on your system.\n");
21363 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
21364 printf("*** to point to the correct configuration files\n");
e6cc62c6 21365 }
21d1c967
GD
21366 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21367 (gtk_minor_version != GTK_MINOR_VERSION) ||
21368 (gtk_micro_version != GTK_MICRO_VERSION))
21369 {
21370 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21371 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21372 printf("*** library (version %d.%d.%d)\n",
21373 gtk_major_version, gtk_minor_version, gtk_micro_version);
21374 }
21375 else
21376 {
21377 if ((gtk_major_version > major) ||
21378 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21379 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21380 {
21381 return 0;
21382 }
21383 else
21384 {
21385 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21386 gtk_major_version, gtk_minor_version, gtk_micro_version);
21387 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21388 major, minor, micro);
21389 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21390 printf("***\n");
21391 printf("*** If you have already installed a sufficiently new version, this error\n");
21392 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
21393 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21394 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
21395 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
21396 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21397 printf("*** so that the correct libraries are found at run-time))\n");
21398 }
21399 }
21400 return 1;
21401}
f79bd02d 21402
e6cc62c6
VS
21403_ACEOF
21404rm -f conftest$ac_exeext
21405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21406 (eval $ac_link) 2>&5
21407 ac_status=$?
21408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21411 (eval $ac_try) 2>&5
21412 ac_status=$?
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); }; }; then
21d1c967 21415 :
f79bd02d 21416else
e6cc62c6
VS
21417 echo "$as_me: program exited with status $ac_status" >&5
21418echo "$as_me: failed program was:" >&5
21419sed 's/^/| /' conftest.$ac_ext >&5
21420
21421( exit $ac_status )
21422no_gtk=yes
f79bd02d 21423fi
f95e4495 21424rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 21425fi
21d1c967
GD
21426 CFLAGS="$ac_save_CFLAGS"
21427 LIBS="$ac_save_LIBS"
21428 fi
21429 fi
21430 if test "x$no_gtk" = x ; then
e6cc62c6
VS
21431 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
21432echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
21433 wx_cv_lib_gtk=2.0
21d1c967 21434 else
e6cc62c6
VS
21435 echo "$as_me:$LINENO: result: no" >&5
21436echo "${ECHO_T}no" >&6
21d1c967
GD
21437 if test "$PKG_CONFIG" = "no" ; then
21438 echo "*** A new enough version of pkg-config was not found."
21439 echo "*** See http://pkgconfig.sourceforge.net"
21440 else
21441 if test -f conf.gtktest ; then
21442 :
21443 else
21444 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
21445 ac_save_CFLAGS="$CFLAGS"
21446 ac_save_LIBS="$LIBS"
21d1c967
GD
21447 CFLAGS="$CFLAGS $GTK_CFLAGS"
21448 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 21449 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21450/* confdefs.h. */
21451_ACEOF
21452cat confdefs.h >>conftest.$ac_ext
21453cat >>conftest.$ac_ext <<_ACEOF
21454/* end confdefs.h. */
21d1c967
GD
21455
21456#include <gtk/gtk.h>
21457#include <stdio.h>
f79bd02d 21458
e6cc62c6
VS
21459int
21460main ()
21461{
21462 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21463 ;
21464 return 0;
21465}
21466_ACEOF
21467rm -f conftest.$ac_objext conftest$ac_exeext
21468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 21469 (eval $ac_link) 2>conftest.er1
e6cc62c6 21470 ac_status=$?
f95e4495
VS
21471 grep -v '^ *+' conftest.er1 >conftest.err
21472 rm -f conftest.er1
21473 cat conftest.err >&5
e6cc62c6
VS
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); } &&
f95e4495
VS
21476 { ac_try='test -z "$ac_c_werror_flag"
21477 || test ! -s conftest.err'
21478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21479 (eval $ac_try) 2>&5
21480 ac_status=$?
21481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); }; } &&
21483 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21485 (eval $ac_try) 2>&5
21486 ac_status=$?
21487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21488 (exit $ac_status); }; }; then
21d1c967
GD
21489 echo "*** The test program compiled, but did not run. This usually means"
21490 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
21491 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
21492 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21493 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21494 echo "*** is required on your system"
21495 echo "***"
21496 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 21497 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 21498else
e6cc62c6
VS
21499 echo "$as_me: failed program was:" >&5
21500sed 's/^/| /' conftest.$ac_ext >&5
21501
21502 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 21503 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 21504fi
f95e4495
VS
21505rm -f conftest.err conftest.$ac_objext \
21506 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
21507 CFLAGS="$ac_save_CFLAGS"
21508 LIBS="$ac_save_LIBS"
21509 fi
21510 fi
21511 GTK_CFLAGS=""
21512 GTK_LIBS=""
21513 :
21514 fi
e6cc62c6
VS
21515
21516
21d1c967 21517 rm -f conf.gtktest
f79bd02d 21518
2b5f62a0 21519 else
e6cc62c6
VS
21520
21521# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
21522if test "${with_gtk_prefix+set}" = set; then
21523 withval="$with_gtk_prefix"
21524 gtk_config_prefix="$withval"
21525else
21526 gtk_config_prefix=""
e6cc62c6 21527fi;
f79bd02d 21528
21d1c967
GD
21529# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21530if test "${with_gtk_exec_prefix+set}" = set; then
21531 withval="$with_gtk_exec_prefix"
21532 gtk_config_exec_prefix="$withval"
21533else
21534 gtk_config_exec_prefix=""
e6cc62c6 21535fi;
21d1c967
GD
21536# Check whether --enable-gtktest or --disable-gtktest was given.
21537if test "${enable_gtktest+set}" = set; then
21538 enableval="$enable_gtktest"
e6cc62c6 21539
21d1c967
GD
21540else
21541 enable_gtktest=yes
e6cc62c6 21542fi;
21d1c967
GD
21543
21544 for module in . $GTK_MODULES
21545 do
21546 case "$module" in
e6cc62c6 21547 gthread)
21d1c967
GD
21548 gtk_config_args="$gtk_config_args gthread"
21549 ;;
21550 esac
21551 done
21552
21553 if test x$gtk_config_exec_prefix != x ; then
21554 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
21555 if test x${GTK_CONFIG+set} != xset ; then
21556 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
21557 fi
21558 fi
21559 if test x$gtk_config_prefix != x ; then
21560 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
21561 if test x${GTK_CONFIG+set} != xset ; then
21562 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
21563 fi
21564 fi
21565
21566 # Extract the first word of "gtk-config", so it can be a program name with args.
21567set dummy gtk-config; ac_word=$2
e6cc62c6
VS
21568echo "$as_me:$LINENO: checking for $ac_word" >&5
21569echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21570if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
21571 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 21572else
e6cc62c6
VS
21573 case $GTK_CONFIG in
21574 [\\/]* | ?:[\\/]*)
21d1c967
GD
21575 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
21576 ;;
21d1c967 21577 *)
e6cc62c6
VS
21578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21579for as_dir in $PATH
21580do
21581 IFS=$as_save_IFS
21582 test -z "$as_dir" && as_dir=.
21583 for ac_exec_ext in '' $ac_executable_extensions; do
21584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21585 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21587 break 2
21588 fi
21589done
21590done
21591
21d1c967
GD
21592 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21593 ;;
21594esac
21595fi
e6cc62c6
VS
21596GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21597
21d1c967 21598if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
21599 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21600echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 21601else
e6cc62c6
VS
21602 echo "$as_me:$LINENO: result: no" >&5
21603echo "${ECHO_T}no" >&6
21d1c967
GD
21604fi
21605
21606 min_gtk_version=1.2.7
e6cc62c6
VS
21607 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21608echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
21609 no_gtk=""
21610 if test "$GTK_CONFIG" = "no" ; then
21611 no_gtk=yes
21612 else
21613 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21614 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21615 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21616 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21617 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21618 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21619 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21620 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21621 if test "x$enable_gtktest" = "xyes" ; then
21622 ac_save_CFLAGS="$CFLAGS"
21623 ac_save_LIBS="$LIBS"
21624 CFLAGS="$CFLAGS $GTK_CFLAGS"
21625 LIBS="$GTK_LIBS $LIBS"
21626 rm -f conf.gtktest
21627 if test "$cross_compiling" = yes; then
21628 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 21629else
e6cc62c6 21630 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21631/* confdefs.h. */
21632_ACEOF
21633cat confdefs.h >>conftest.$ac_ext
21634cat >>conftest.$ac_ext <<_ACEOF
21635/* end confdefs.h. */
f79bd02d 21636
21d1c967
GD
21637#include <gtk/gtk.h>
21638#include <stdio.h>
21639#include <stdlib.h>
f79bd02d 21640
e6cc62c6 21641int
21d1c967
GD
21642main ()
21643{
21644 int major, minor, micro;
21645 char *tmp_version;
21646
21647 system ("touch conf.gtktest");
21648
21649 /* HP/UX 9 (%@#!) writes to sscanf strings */
21650 tmp_version = g_strdup("$min_gtk_version");
21651 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21652 printf("%s, bad version string\n", "$min_gtk_version");
21653 exit(1);
21654 }
90dd450c 21655
21d1c967
GD
21656 if ((gtk_major_version != $gtk_config_major_version) ||
21657 (gtk_minor_version != $gtk_config_minor_version) ||
21658 (gtk_micro_version != $gtk_config_micro_version))
21659 {
e6cc62c6 21660 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
21661 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21662 gtk_major_version, gtk_minor_version, gtk_micro_version);
21663 printf ("*** was found! If gtk-config was correct, then it is best\n");
21664 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21665 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21666 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21667 printf("*** required on your system.\n");
21668 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21669 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21670 printf("*** before re-running configure\n");
e6cc62c6 21671 }
21d1c967
GD
21672#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21673 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21674 (gtk_minor_version != GTK_MINOR_VERSION) ||
21675 (gtk_micro_version != GTK_MICRO_VERSION))
21676 {
21677 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21678 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21679 printf("*** library (version %d.%d.%d)\n",
21680 gtk_major_version, gtk_minor_version, gtk_micro_version);
21681 }
21682#endif /* defined (GTK_MAJOR_VERSION) ... */
21683 else
21684 {
21685 if ((gtk_major_version > major) ||
21686 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21687 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21688 {
21689 return 0;
21690 }
21691 else
21692 {
21693 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21694 gtk_major_version, gtk_minor_version, gtk_micro_version);
21695 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21696 major, minor, micro);
21697 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21698 printf("***\n");
21699 printf("*** If you have already installed a sufficiently new version, this error\n");
21700 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21701 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21702 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21703 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21704 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21705 printf("*** so that the correct libraries are found at run-time))\n");
21706 }
21707 }
21708 return 1;
21709}
21710
e6cc62c6
VS
21711_ACEOF
21712rm -f conftest$ac_exeext
21713if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21714 (eval $ac_link) 2>&5
21715 ac_status=$?
21716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21719 (eval $ac_try) 2>&5
21720 ac_status=$?
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); }; }; then
21d1c967
GD
21723 :
21724else
e6cc62c6
VS
21725 echo "$as_me: program exited with status $ac_status" >&5
21726echo "$as_me: failed program was:" >&5
21727sed 's/^/| /' conftest.$ac_ext >&5
21728
21729( exit $ac_status )
21730no_gtk=yes
21d1c967 21731fi
f95e4495 21732rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 21733fi
21d1c967
GD
21734 CFLAGS="$ac_save_CFLAGS"
21735 LIBS="$ac_save_LIBS"
21736 fi
21737 fi
21738 if test "x$no_gtk" = x ; then
e6cc62c6
VS
21739 echo "$as_me:$LINENO: result: yes" >&5
21740echo "${ECHO_T}yes" >&6
21741 wx_cv_lib_gtk=1.2.7
21d1c967 21742 else
e6cc62c6
VS
21743 echo "$as_me:$LINENO: result: no" >&5
21744echo "${ECHO_T}no" >&6
21d1c967
GD
21745 if test "$GTK_CONFIG" = "no" ; then
21746 echo "*** The gtk-config script installed by GTK could not be found"
21747 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21748 echo "*** your path, or set the GTK_CONFIG environment variable to the"
21749 echo "*** full path to gtk-config."
21750 else
21751 if test -f conf.gtktest ; then
21752 :
21753 else
21754 echo "*** Could not run GTK test program, checking why..."
21755 CFLAGS="$CFLAGS $GTK_CFLAGS"
21756 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 21757 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21758/* confdefs.h. */
21759_ACEOF
21760cat confdefs.h >>conftest.$ac_ext
21761cat >>conftest.$ac_ext <<_ACEOF
21762/* end confdefs.h. */
21d1c967
GD
21763
21764#include <gtk/gtk.h>
21765#include <stdio.h>
21766
e6cc62c6
VS
21767int
21768main ()
21769{
21770 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21771 ;
21772 return 0;
21773}
21774_ACEOF
21775rm -f conftest.$ac_objext conftest$ac_exeext
21776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 21777 (eval $ac_link) 2>conftest.er1
e6cc62c6 21778 ac_status=$?
f95e4495
VS
21779 grep -v '^ *+' conftest.er1 >conftest.err
21780 rm -f conftest.er1
21781 cat conftest.err >&5
e6cc62c6
VS
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); } &&
f95e4495
VS
21784 { ac_try='test -z "$ac_c_werror_flag"
21785 || test ! -s conftest.err'
21786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21787 (eval $ac_try) 2>&5
21788 ac_status=$?
21789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790 (exit $ac_status); }; } &&
21791 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21793 (eval $ac_try) 2>&5
21794 ac_status=$?
21795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21796 (exit $ac_status); }; }; then
21d1c967
GD
21797 echo "*** The test program compiled, but did not run. This usually means"
21798 echo "*** that the run-time linker is not finding GTK or finding the wrong"
21799 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
21800 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21801 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21802 echo "*** is required on your system"
21803 echo "***"
21804 echo "*** If you have an old version installed, it is best to remove it, although"
21805 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21806 echo "***"
21807 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
21808 echo "*** came with the system with the command"
21809 echo "***"
e6cc62c6 21810 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 21811else
e6cc62c6
VS
21812 echo "$as_me: failed program was:" >&5
21813sed 's/^/| /' conftest.$ac_ext >&5
21814
21815 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
21816 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
21817 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 21818 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 21819fi
f95e4495
VS
21820rm -f conftest.err conftest.$ac_objext \
21821 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
21822 CFLAGS="$ac_save_CFLAGS"
21823 LIBS="$ac_save_LIBS"
21824 fi
21825 fi
21826 GTK_CFLAGS=""
21827 GTK_LIBS=""
21828 :
21829 fi
e6cc62c6
VS
21830
21831
21d1c967
GD
21832 rm -f conf.gtktest
21833
21d1c967 21834
2b5f62a0 21835 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
21836
21837# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
21838if test "${with_gtk_prefix+set}" = set; then
21839 withval="$with_gtk_prefix"
21840 gtk_config_prefix="$withval"
21841else
21842 gtk_config_prefix=""
e6cc62c6 21843fi;
f79bd02d 21844
21d1c967
GD
21845# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21846if test "${with_gtk_exec_prefix+set}" = set; then
21847 withval="$with_gtk_exec_prefix"
21848 gtk_config_exec_prefix="$withval"
21849else
21850 gtk_config_exec_prefix=""
e6cc62c6 21851fi;
21d1c967
GD
21852# Check whether --enable-gtktest or --disable-gtktest was given.
21853if test "${enable_gtktest+set}" = set; then
21854 enableval="$enable_gtktest"
e6cc62c6 21855
90dd450c 21856else
21d1c967 21857 enable_gtktest=yes
e6cc62c6 21858fi;
21d1c967
GD
21859
21860 for module in . $GTK_MODULES
21861 do
21862 case "$module" in
e6cc62c6 21863 gthread)
21d1c967
GD
21864 gtk_config_args="$gtk_config_args gthread"
21865 ;;
21866 esac
21867 done
21868
21869 if test x$gtk_config_exec_prefix != x ; then
21870 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
21871 if test x${GTK_CONFIG+set} != xset ; then
21872 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
21873 fi
21874 fi
21875 if test x$gtk_config_prefix != x ; then
21876 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
21877 if test x${GTK_CONFIG+set} != xset ; then
21878 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
21879 fi
21880 fi
21881
21882 # Extract the first word of "gtk-config", so it can be a program name with args.
21883set dummy gtk-config; ac_word=$2
e6cc62c6
VS
21884echo "$as_me:$LINENO: checking for $ac_word" >&5
21885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21886if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
21887 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21888else
e6cc62c6
VS
21889 case $GTK_CONFIG in
21890 [\\/]* | ?:[\\/]*)
21d1c967
GD
21891 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
21892 ;;
21d1c967 21893 *)
e6cc62c6
VS
21894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21895for as_dir in $PATH
21896do
21897 IFS=$as_save_IFS
21898 test -z "$as_dir" && as_dir=.
21899 for ac_exec_ext in '' $ac_executable_extensions; do
21900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21901 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21903 break 2
21904 fi
21905done
21906done
21907
21d1c967
GD
21908 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21909 ;;
21910esac
21911fi
e6cc62c6
VS
21912GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21913
21d1c967 21914if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
21915 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21916echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 21917else
e6cc62c6
VS
21918 echo "$as_me:$LINENO: result: no" >&5
21919echo "${ECHO_T}no" >&6
21d1c967
GD
21920fi
21921
21922 min_gtk_version=1.2.3
e6cc62c6
VS
21923 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21924echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
21925 no_gtk=""
21926 if test "$GTK_CONFIG" = "no" ; then
21927 no_gtk=yes
21928 else
21929 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21930 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21931 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21932 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21933 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21934 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21935 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21936 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21937 if test "x$enable_gtktest" = "xyes" ; then
21938 ac_save_CFLAGS="$CFLAGS"
21939 ac_save_LIBS="$LIBS"
21940 CFLAGS="$CFLAGS $GTK_CFLAGS"
21941 LIBS="$GTK_LIBS $LIBS"
21942 rm -f conf.gtktest
21943 if test "$cross_compiling" = yes; then
21944 echo $ac_n "cross compiling; assumed OK... $ac_c"
21945else
e6cc62c6 21946 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21947/* confdefs.h. */
21948_ACEOF
21949cat confdefs.h >>conftest.$ac_ext
21950cat >>conftest.$ac_ext <<_ACEOF
21951/* end confdefs.h. */
21d1c967
GD
21952
21953#include <gtk/gtk.h>
21954#include <stdio.h>
21955#include <stdlib.h>
21956
e6cc62c6 21957int
21d1c967
GD
21958main ()
21959{
21960 int major, minor, micro;
21961 char *tmp_version;
21962
21963 system ("touch conf.gtktest");
21964
21965 /* HP/UX 9 (%@#!) writes to sscanf strings */
21966 tmp_version = g_strdup("$min_gtk_version");
21967 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21968 printf("%s, bad version string\n", "$min_gtk_version");
21969 exit(1);
21970 }
21971
21972 if ((gtk_major_version != $gtk_config_major_version) ||
21973 (gtk_minor_version != $gtk_config_minor_version) ||
21974 (gtk_micro_version != $gtk_config_micro_version))
21975 {
e6cc62c6 21976 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
21977 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21978 gtk_major_version, gtk_minor_version, gtk_micro_version);
21979 printf ("*** was found! If gtk-config was correct, then it is best\n");
21980 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21981 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21982 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21983 printf("*** required on your system.\n");
21984 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21985 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21986 printf("*** before re-running configure\n");
e6cc62c6 21987 }
21d1c967
GD
21988#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21989 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21990 (gtk_minor_version != GTK_MINOR_VERSION) ||
21991 (gtk_micro_version != GTK_MICRO_VERSION))
21992 {
21993 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21994 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21995 printf("*** library (version %d.%d.%d)\n",
21996 gtk_major_version, gtk_minor_version, gtk_micro_version);
21997 }
21998#endif /* defined (GTK_MAJOR_VERSION) ... */
21999 else
22000 {
22001 if ((gtk_major_version > major) ||
22002 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
22003 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
22004 {
22005 return 0;
22006 }
22007 else
22008 {
22009 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
22010 gtk_major_version, gtk_minor_version, gtk_micro_version);
22011 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
22012 major, minor, micro);
22013 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
22014 printf("***\n");
22015 printf("*** If you have already installed a sufficiently new version, this error\n");
22016 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
22017 printf("*** being found. The easiest way to fix this is to remove the old version\n");
22018 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
22019 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
22020 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
22021 printf("*** so that the correct libraries are found at run-time))\n");
22022 }
22023 }
22024 return 1;
22025}
22026
e6cc62c6
VS
22027_ACEOF
22028rm -f conftest$ac_exeext
22029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22030 (eval $ac_link) 2>&5
22031 ac_status=$?
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22035 (eval $ac_try) 2>&5
22036 ac_status=$?
22037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22038 (exit $ac_status); }; }; then
21d1c967
GD
22039 :
22040else
e6cc62c6
VS
22041 echo "$as_me: program exited with status $ac_status" >&5
22042echo "$as_me: failed program was:" >&5
22043sed 's/^/| /' conftest.$ac_ext >&5
22044
22045( exit $ac_status )
22046no_gtk=yes
21d1c967 22047fi
f95e4495 22048rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 22049fi
21d1c967
GD
22050 CFLAGS="$ac_save_CFLAGS"
22051 LIBS="$ac_save_LIBS"
22052 fi
22053 fi
22054 if test "x$no_gtk" = x ; then
e6cc62c6
VS
22055 echo "$as_me:$LINENO: result: yes" >&5
22056echo "${ECHO_T}yes" >&6
22057 wx_cv_lib_gtk=1.2.3
21d1c967 22058 else
e6cc62c6
VS
22059 echo "$as_me:$LINENO: result: no" >&5
22060echo "${ECHO_T}no" >&6
21d1c967
GD
22061 if test "$GTK_CONFIG" = "no" ; then
22062 echo "*** The gtk-config script installed by GTK could not be found"
22063 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
22064 echo "*** your path, or set the GTK_CONFIG environment variable to the"
22065 echo "*** full path to gtk-config."
22066 else
22067 if test -f conf.gtktest ; then
22068 :
22069 else
22070 echo "*** Could not run GTK test program, checking why..."
22071 CFLAGS="$CFLAGS $GTK_CFLAGS"
22072 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 22073 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22074/* confdefs.h. */
22075_ACEOF
22076cat confdefs.h >>conftest.$ac_ext
22077cat >>conftest.$ac_ext <<_ACEOF
22078/* end confdefs.h. */
21d1c967
GD
22079
22080#include <gtk/gtk.h>
22081#include <stdio.h>
f79bd02d 22082
e6cc62c6
VS
22083int
22084main ()
22085{
22086 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
22087 ;
22088 return 0;
22089}
22090_ACEOF
22091rm -f conftest.$ac_objext conftest$ac_exeext
22092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 22093 (eval $ac_link) 2>conftest.er1
e6cc62c6 22094 ac_status=$?
f95e4495
VS
22095 grep -v '^ *+' conftest.er1 >conftest.err
22096 rm -f conftest.er1
22097 cat conftest.err >&5
e6cc62c6
VS
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); } &&
f95e4495
VS
22100 { ac_try='test -z "$ac_c_werror_flag"
22101 || test ! -s conftest.err'
22102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22103 (eval $ac_try) 2>&5
22104 ac_status=$?
22105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22106 (exit $ac_status); }; } &&
22107 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22109 (eval $ac_try) 2>&5
22110 ac_status=$?
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); }; }; then
21d1c967
GD
22113 echo "*** The test program compiled, but did not run. This usually means"
22114 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22115 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22116 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22117 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22118 echo "*** is required on your system"
22119 echo "***"
22120 echo "*** If you have an old version installed, it is best to remove it, although"
22121 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22122 echo "***"
22123 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22124 echo "*** came with the system with the command"
22125 echo "***"
e6cc62c6 22126 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 22127else
e6cc62c6
VS
22128 echo "$as_me: failed program was:" >&5
22129sed 's/^/| /' conftest.$ac_ext >&5
22130
22131 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
22132 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22133 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 22134 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 22135fi
f95e4495
VS
22136rm -f conftest.err conftest.$ac_objext \
22137 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
22138 CFLAGS="$ac_save_CFLAGS"
22139 LIBS="$ac_save_LIBS"
22140 fi
22141 fi
22142 GTK_CFLAGS=""
22143 GTK_LIBS=""
22144 :
22145 fi
e6cc62c6
VS
22146
22147
21d1c967 22148 rm -f conf.gtktest
f79bd02d 22149
2b5f62a0 22150 fi
21d1c967
GD
22151 fi
22152
22153 if test -z "$wx_cv_lib_gtk"; then
22154 wx_cv_lib_gtk=none
22155 else
22156 wx_cv_cflags_gtk=$GTK_CFLAGS
22157 wx_cv_libs_gtk=$GTK_LIBS
22158 fi
e6cc62c6
VS
22159
22160
5c6fa7d2 22161fi
52127426 22162
8284b0c5 22163
21d1c967 22164 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
22165 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
22166echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
22167 fi
22168
22169 case "$wx_cv_lib_gtk" in
22170 2.0) WXGTK20=1
2b5f62a0 22171 TOOLKIT_VERSION=2
21d1c967
GD
22172 ;;
22173 1.2.7) WXGTK127=1
22174 WXGTK12=1
22175 ;;
22176 1.2.3) WXGTK12=1
22177 ;;
e6cc62c6
VS
22178 *) { { echo "$as_me:$LINENO: error:
22179Please check that gtk-config is in path, the directory
22180where GTK+ libraries are installed (returned by
22181'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22182equivalent variable and GTK+ is version 1.2.3 or above.
22183 " >&5
22184echo "$as_me: error:
247f5006
VZ
22185Please check that gtk-config is in path, the directory
22186where GTK+ libraries are installed (returned by
22187'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22188equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
22189 " >&2;}
22190 { (exit 1); exit 1; }; }
21d1c967
GD
22191 ;;
22192 esac
22193
b13cd66e
VZ
22194 if test "$WXGTK20" = 1; then
22195 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 22196
f09359cf
VS
22197 succeeded=no
22198
22199 if test -z "$PKG_CONFIG"; then
22200 # Extract the first word of "pkg-config", so it can be a program name with args.
22201set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22202echo "$as_me:$LINENO: checking for $ac_word" >&5
22203echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22204if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22205 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 22206else
e6cc62c6
VS
22207 case $PKG_CONFIG in
22208 [\\/]* | ?:[\\/]*)
f09359cf
VS
22209 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22210 ;;
f09359cf 22211 *)
e6cc62c6
VS
22212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22213for as_dir in $PATH
22214do
22215 IFS=$as_save_IFS
22216 test -z "$as_dir" && as_dir=.
22217 for ac_exec_ext in '' $ac_executable_extensions; do
22218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22219 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22221 break 2
22222 fi
22223done
22224done
22225
f09359cf
VS
22226 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22227 ;;
22228esac
22229fi
e6cc62c6
VS
22230PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22231
f09359cf 22232if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22233 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22234echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 22235else
e6cc62c6
VS
22236 echo "$as_me:$LINENO: result: no" >&5
22237echo "${ECHO_T}no" >&6
f09359cf
VS
22238fi
22239
22240 fi
22241
22242 if test "$PKG_CONFIG" = "no" ; then
22243 echo "*** The pkg-config script could not be found. Make sure it is"
22244 echo "*** in your path, or set the PKG_CONFIG environment variable"
22245 echo "*** to the full path to pkg-config."
22246 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22247 else
22248 PKG_CONFIG_MIN_VERSION=0.9.0
22249 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22250 echo "$as_me:$LINENO: checking for pangoft2" >&5
22251echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
22252
22253 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22254 echo "$as_me:$LINENO: result: yes" >&5
22255echo "${ECHO_T}yes" >&6
f09359cf
VS
22256 succeeded=yes
22257
e6cc62c6
VS
22258 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22259echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 22260 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22261 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22262echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 22263
e6cc62c6
VS
22264 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22265echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 22266 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22267 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22268echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
22269 else
22270 PANGOFT2_CFLAGS=""
22271 PANGOFT2_LIBS=""
e6cc62c6 22272 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
22273 ## do set a variable so people can do so.
22274 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22275
f09359cf
VS
22276 fi
22277
e6cc62c6
VS
22278
22279
f09359cf
VS
22280 else
22281 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22282 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22283 fi
22284 fi
22285
22286 if test $succeeded = yes; then
e6cc62c6 22287
b13cd66e 22288 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22289 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22290
f09359cf 22291 else
e6cc62c6
VS
22292
22293 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22294echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 22295 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22296
22297
f09359cf
VS
22298 fi
22299
b13cd66e 22300 fi
2b5f62a0
VZ
22301 else
22302 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
22303 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
22304echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
22305 wxUSE_UNICODE=no
22306 fi
22307 fi
22308
22309 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
22310
22311for ac_func in poll
2b5f62a0 22312do
e6cc62c6
VS
22313as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22314echo "$as_me:$LINENO: checking for $ac_func" >&5
22315echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22316if eval "test \"\${$as_ac_var+set}\" = set"; then
22317 echo $ECHO_N "(cached) $ECHO_C" >&6
22318else
22319 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22320/* confdefs.h. */
22321_ACEOF
22322cat confdefs.h >>conftest.$ac_ext
22323cat >>conftest.$ac_ext <<_ACEOF
22324/* end confdefs.h. */
f95e4495
VS
22325/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22327#define $ac_func innocuous_$ac_func
22328
2b5f62a0 22329/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22330 which can conflict with char $ac_func (); below.
22331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22332 <limits.h> exists even on freestanding compilers. */
f95e4495 22333
e6cc62c6
VS
22334#ifdef __STDC__
22335# include <limits.h>
22336#else
22337# include <assert.h>
22338#endif
f95e4495
VS
22339
22340#undef $ac_func
22341
2b5f62a0 22342/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22343#ifdef __cplusplus
22344extern "C"
22345{
22346#endif
2b5f62a0 22347/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22348 builtin and then its argument prototype would still apply. */
22349char $ac_func ();
2b5f62a0
VZ
22350/* The GNU C library defines this for functions which it implements
22351 to always fail with ENOSYS. Some functions are actually named
22352 something starting with __ and the normal name is an alias. */
22353#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22354choke me
22355#else
e6cc62c6
VS
22356char (*f) () = $ac_func;
22357#endif
22358#ifdef __cplusplus
22359}
2b5f62a0
VZ
22360#endif
22361
e6cc62c6
VS
22362int
22363main ()
22364{
22365return f != $ac_func;
22366 ;
22367 return 0;
22368}
22369_ACEOF
22370rm -f conftest.$ac_objext conftest$ac_exeext
22371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 22372 (eval $ac_link) 2>conftest.er1
e6cc62c6 22373 ac_status=$?
f95e4495
VS
22374 grep -v '^ *+' conftest.er1 >conftest.err
22375 rm -f conftest.er1
22376 cat conftest.err >&5
e6cc62c6
VS
22377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22378 (exit $ac_status); } &&
f95e4495
VS
22379 { ac_try='test -z "$ac_c_werror_flag"
22380 || test ! -s conftest.err'
22381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22382 (eval $ac_try) 2>&5
22383 ac_status=$?
22384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); }; } &&
22386 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22388 (eval $ac_try) 2>&5
22389 ac_status=$?
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); }; }; then
22392 eval "$as_ac_var=yes"
22393else
22394 echo "$as_me: failed program was:" >&5
22395sed 's/^/| /' conftest.$ac_ext >&5
22396
22397eval "$as_ac_var=no"
22398fi
f95e4495
VS
22399rm -f conftest.err conftest.$ac_objext \
22400 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22401fi
22402echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22403echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22404if test `eval echo '${'$as_ac_var'}'` = yes; then
22405 cat >>confdefs.h <<_ACEOF
22406#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22407_ACEOF
2b5f62a0 22408
2b5f62a0
VZ
22409fi
22410done
22411
f09359cf
VS
22412 fi
22413
21d1c967 22414 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 22415 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
22416
22417 AFMINSTALL=afminstall
22418 TOOLKIT=GTK
22419 GUIDIST=GTK_DIST
22420
e6cc62c6
VS
22421 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
22422echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
22423if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
22424 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22425else
e6cc62c6 22426 ac_check_lib_save_LIBS=$LIBS
21d1c967 22427LIBS="-lgdk $LIBS"
e6cc62c6 22428cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22429/* confdefs.h. */
22430_ACEOF
22431cat confdefs.h >>conftest.$ac_ext
22432cat >>conftest.$ac_ext <<_ACEOF
22433/* end confdefs.h. */
22434
5c6fa7d2 22435/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22436#ifdef __cplusplus
22437extern "C"
22438#endif
5c6fa7d2 22439/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22440 builtin and then its argument prototype would still apply. */
22441char gdk_im_open ();
22442int
22443main ()
22444{
22445gdk_im_open ();
22446 ;
22447 return 0;
22448}
22449_ACEOF
22450rm -f conftest.$ac_objext conftest$ac_exeext
22451if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 22452 (eval $ac_link) 2>conftest.er1
e6cc62c6 22453 ac_status=$?
f95e4495
VS
22454 grep -v '^ *+' conftest.er1 >conftest.err
22455 rm -f conftest.er1
22456 cat conftest.err >&5
e6cc62c6
VS
22457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22458 (exit $ac_status); } &&
f95e4495
VS
22459 { ac_try='test -z "$ac_c_werror_flag"
22460 || test ! -s conftest.err'
22461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22462 (eval $ac_try) 2>&5
22463 ac_status=$?
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); }; } &&
22466 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22468 (eval $ac_try) 2>&5
22469 ac_status=$?
22470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); }; }; then
22472 ac_cv_lib_gdk_gdk_im_open=yes
22473else
22474 echo "$as_me: failed program was:" >&5
22475sed 's/^/| /' conftest.$ac_ext >&5
22476
22477ac_cv_lib_gdk_gdk_im_open=no
22478fi
f95e4495
VS
22479rm -f conftest.err conftest.$ac_objext \
22480 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22481LIBS=$ac_check_lib_save_LIBS
22482fi
22483echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
22484echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
22485if test $ac_cv_lib_gdk_gdk_im_open = yes; then
22486 cat >>confdefs.h <<\_ACEOF
21d1c967 22487#define HAVE_XIM 1
e6cc62c6 22488_ACEOF
21d1c967 22489
90dd450c 22490fi
1e6feb95 22491
21d1c967 22492 fi
1e6feb95 22493
21d1c967 22494 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
22495 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
22496echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 22497 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
22498 echo "$as_me:$LINENO: result: not found" >&5
22499echo "${ECHO_T}not found" >&6
22500 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
22501echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
22502 { (exit 1); exit 1; }; }
21d1c967 22503 else
e6cc62c6
VS
22504 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
22505echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
22506 fi
22507
e6cc62c6
VS
22508 echo "$as_me:$LINENO: checking for libmgl location" >&5
22509echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
e46d2a18 22510 case "${host}" in
21d1c967 22511 *-*-linux* )
e46d2a18
VS
22512 if test "x$wxUSE_SHARED" = xyes ; then
22513 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
63a76696 22514 else
e46d2a18 22515 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
63a76696 22516 fi
21d1c967
GD
22517 ;;
22518 *-pc-msdosdjgpp )
63a76696 22519 mgl_os_candidates="dos32/dj2"
21d1c967
GD
22520 ;;
22521 *)
e6cc62c6
VS
22522 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
22523echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
22524 { (exit 1); exit 1; }; }
21d1c967 22525 esac
1e6feb95 22526
21d1c967 22527 mgl_lib_type=""
63a76696
VS
22528 mgl_os=""
22529
22530 for mgl_os_i in $mgl_os_candidates ; do
22531 if test "x$mgl_os" = x ; then
22532 if test "$wxUSE_DEBUG_FLAG" = yes ; then
22533 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
22534 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
22535 mgl_lib_type=debug
22536 mgl_os=$mgl_os_i
22537 fi
22538 fi
22539 if test "x$mgl_lib_type" = x ; then
22540 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
22541 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
22542 mgl_lib_type=release
22543 mgl_os=$mgl_os_i
22544 fi
22545 fi
21d1c967 22546 fi
63a76696 22547 done
2224580a 22548
63a76696 22549 if test "x$mgl_os" = x ; then
e6cc62c6
VS
22550 echo "$as_me:$LINENO: result: not found" >&5
22551echo "${ECHO_T}not found" >&6
22552 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
22553echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
22554 { (exit 1); exit 1; }; }
63a76696 22555 fi
e6cc62c6
VS
22556 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
22557echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 22558
1d1b75ac
VZ
22559 wxUSE_UNIVERSAL="yes"
22560
21d1c967
GD
22561 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
22562 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
22563
90dd450c 22564 AFMINSTALL=afminstall
21d1c967
GD
22565 TOOLKIT=MGL
22566 GUIDIST=MGL_DIST
22567 fi
dad6c0ea 22568
21d1c967 22569 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
22570 echo "$as_me:$LINENO: checking for MicroWindows" >&5
22571echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 22572 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
22573 echo "$as_me:$LINENO: result: not found" >&5
22574echo "${ECHO_T}not found" >&6
22575 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
22576echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
22577 { (exit 1); exit 1; }; }
21d1c967 22578 else
e6cc62c6
VS
22579 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
22580echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 22581 fi
f6bcfd97 22582
21d1c967 22583 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
22584 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
22585echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 22586 else
e6cc62c6
VS
22587 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
22588echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
22589 { (exit 1); exit 1; }; }
90dd450c 22590 fi
0b2effe9 22591
21d1c967
GD
22592 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
22593 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
22594
1d1b75ac
VZ
22595 wxUSE_UNIVERSAL="yes"
22596
21d1c967
GD
22597 AFMINSTALL=afminstall
22598 TOOLKIT=MICROWIN
22599 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
22600
22601 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 22602 fi
f6bcfd97 22603
21d1c967 22604 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
22605 echo "$as_me:$LINENO: checking for X" >&5
22606echo $ECHO_N "checking for X... $ECHO_C" >&6
22607
d8356fa3 22608
21d1c967
GD
22609# Check whether --with-x or --without-x was given.
22610if test "${with_x+set}" = set; then
22611 withval="$with_x"
2224580a 22612
e6cc62c6 22613fi;
21d1c967
GD
22614# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22615if test "x$with_x" = xno; then
22616 # The user explicitly disabled X.
22617 have_x=disabled
22618else
22619 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22620 # Both variables are already set.
22621 have_x=yes
22622 else
e6cc62c6
VS
22623 if test "${ac_cv_have_x+set}" = set; then
22624 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
22625else
22626 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
22627ac_x_includes=no ac_x_libraries=no
22628rm -fr conftest.dir
22629if mkdir conftest.dir; then
22630 cd conftest.dir
21d1c967 22631 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 22632 cat >Imakefile <<'_ACEOF'
21d1c967
GD
22633acfindx:
22634 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 22635_ACEOF
21d1c967
GD
22636 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
22637 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22638 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22639 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22640 for ac_extension in a so sl; do
22641 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
f95e4495
VS
22642 test -f $ac_im_libdir/libX11.$ac_extension; then
22643 ac_im_usrlibdir=$ac_im_libdir; break
21d1c967
GD
22644 fi
22645 done
22646 # Screen out bogus values from the imake configuration. They are
22647 # bogus both because they are the default anyway, and because
22648 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 22649 case $ac_im_incroot in
21d1c967 22650 /usr/include) ;;
e6cc62c6 22651 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 22652 esac
e6cc62c6 22653 case $ac_im_usrlibdir in
21d1c967 22654 /usr/lib | /lib) ;;
e6cc62c6 22655 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
22656 esac
22657 fi
22658 cd ..
e6cc62c6 22659 rm -fr conftest.dir
21d1c967 22660fi
10f2d63a 22661
e6cc62c6
VS
22662# Standard set of common directories for X headers.
22663# Check X11 before X11Rn because it is often a symlink to the current release.
22664ac_x_header_dirs='
22665/usr/X11/include
22666/usr/X11R6/include
22667/usr/X11R5/include
22668/usr/X11R4/include
22669
22670/usr/include/X11
22671/usr/include/X11R6
22672/usr/include/X11R5
22673/usr/include/X11R4
22674
22675/usr/local/X11/include
22676/usr/local/X11R6/include
22677/usr/local/X11R5/include
22678/usr/local/X11R4/include
22679
22680/usr/local/include/X11
22681/usr/local/include/X11R6
22682/usr/local/include/X11R5
22683/usr/local/include/X11R4
22684
22685/usr/X386/include
22686/usr/x386/include
22687/usr/XFree86/include/X11
22688
22689/usr/include
22690/usr/local/include
22691/usr/unsupported/include
22692/usr/athena/include
22693/usr/local/x11r5/include
22694/usr/lpp/Xamples/include
22695
22696/usr/openwin/include
22697/usr/openwin/share/include'
22698
22699if test "$ac_x_includes" = no; then
22700 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 22701 # First, try using that file with no special directory specified.
e6cc62c6 22702 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22703/* confdefs.h. */
22704_ACEOF
22705cat confdefs.h >>conftest.$ac_ext
22706cat >>conftest.$ac_ext <<_ACEOF
22707/* end confdefs.h. */
22708#include <X11/Intrinsic.h>
22709_ACEOF
22710if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22712 ac_status=$?
22713 grep -v '^ *+' conftest.er1 >conftest.err
22714 rm -f conftest.er1
22715 cat conftest.err >&5
22716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22717 (exit $ac_status); } >/dev/null; then
22718 if test -s conftest.err; then
22719 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 22720 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
22721 else
22722 ac_cpp_err=
22723 fi
22724else
22725 ac_cpp_err=yes
22726fi
22727if test -z "$ac_cpp_err"; then
21d1c967
GD
22728 # We can compile using X headers with no special include directory.
22729ac_x_includes=
90dd450c 22730else
e6cc62c6
VS
22731 echo "$as_me: failed program was:" >&5
22732sed 's/^/| /' conftest.$ac_ext >&5
22733
22734 for ac_dir in $ac_x_header_dirs; do
22735 if test -r "$ac_dir/X11/Intrinsic.h"; then
22736 ac_x_includes=$ac_dir
22737 break
22738 fi
22739done
3a922bb4 22740fi
e6cc62c6
VS
22741rm -f conftest.err conftest.$ac_ext
22742fi # $ac_x_includes = no
10f2d63a 22743
e6cc62c6 22744if test "$ac_x_libraries" = no; then
21d1c967 22745 # Check for the libraries.
21d1c967
GD
22746 # See if we find them without any special options.
22747 # Don't add to $LIBS permanently.
e6cc62c6
VS
22748 ac_save_LIBS=$LIBS
22749 LIBS="-lXt $LIBS"
22750 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22751/* confdefs.h. */
22752_ACEOF
22753cat confdefs.h >>conftest.$ac_ext
22754cat >>conftest.$ac_ext <<_ACEOF
22755/* end confdefs.h. */
22756#include <X11/Intrinsic.h>
22757int
22758main ()
22759{
22760XtMalloc (0)
22761 ;
22762 return 0;
22763}
22764_ACEOF
22765rm -f conftest.$ac_objext conftest$ac_exeext
22766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 22767 (eval $ac_link) 2>conftest.er1
e6cc62c6 22768 ac_status=$?
f95e4495
VS
22769 grep -v '^ *+' conftest.er1 >conftest.err
22770 rm -f conftest.er1
22771 cat conftest.err >&5
e6cc62c6
VS
22772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22773 (exit $ac_status); } &&
f95e4495
VS
22774 { ac_try='test -z "$ac_c_werror_flag"
22775 || test ! -s conftest.err'
22776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22777 (eval $ac_try) 2>&5
22778 ac_status=$?
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); }; } &&
22781 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22783 (eval $ac_try) 2>&5
22784 ac_status=$?
22785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22786 (exit $ac_status); }; }; then
22787 LIBS=$ac_save_LIBS
21d1c967
GD
22788# We can link X programs with no special library path.
22789ac_x_libraries=
3a922bb4 22790else
e6cc62c6
VS
22791 echo "$as_me: failed program was:" >&5
22792sed 's/^/| /' conftest.$ac_ext >&5
22793
22794LIBS=$ac_save_LIBS
22795for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 22796do
e6cc62c6 22797 # Don't even attempt the hair of trying to link an X program!
21d1c967 22798 for ac_extension in a so sl; do
e6cc62c6 22799 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
22800 ac_x_libraries=$ac_dir
22801 break 2
22802 fi
22803 done
22804done
3a922bb4 22805fi
f95e4495
VS
22806rm -f conftest.err conftest.$ac_objext \
22807 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 22808fi # $ac_x_libraries = no
90dd450c 22809
e6cc62c6 22810if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
22811 # Didn't find X anywhere. Cache the known absence of X.
22812 ac_cv_have_x="have_x=no"
22813else
22814 # Record where we found X for the cache.
22815 ac_cv_have_x="have_x=yes \
f95e4495 22816 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 22817fi
21d1c967 22818fi
e6cc62c6 22819
21d1c967
GD
22820 fi
22821 eval "$ac_cv_have_x"
22822fi # $with_x != no
90dd450c 22823
21d1c967 22824if test "$have_x" != yes; then
e6cc62c6
VS
22825 echo "$as_me:$LINENO: result: $have_x" >&5
22826echo "${ECHO_T}$have_x" >&6
21d1c967
GD
22827 no_x=yes
22828else
22829 # If each of the values was on the command line, it overrides each guess.
22830 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22831 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22832 # Update the cache value to reflect the command line values.
22833 ac_cv_have_x="have_x=yes \
22834 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
22835 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22836echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 22837fi
90dd450c 22838
21d1c967 22839if test "$no_x" = yes; then
90dd450c 22840 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
22841
22842cat >>confdefs.h <<\_ACEOF
90dd450c 22843#define X_DISPLAY_MISSING 1
e6cc62c6 22844_ACEOF
90dd450c
VZ
22845
22846 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22847else
22848 if test -n "$x_includes"; then
22849 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 22850 fi
3a922bb4 22851
90dd450c
VZ
22852 # It would also be nice to do this for all -L options, not just this one.
22853 if test -n "$x_libraries"; then
22854 X_LIBS="$X_LIBS -L$x_libraries"
22855 # For Solaris; some versions of Sun CC require a space after -R and
22856 # others require no space. Words are not sufficient . . . .
e6cc62c6 22857 case `(uname -sr) 2>/dev/null` in
90dd450c 22858 "SunOS 5"*)
e6cc62c6
VS
22859 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22860echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22861 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22862 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22863/* confdefs.h. */
22864_ACEOF
22865cat confdefs.h >>conftest.$ac_ext
22866cat >>conftest.$ac_ext <<_ACEOF
22867/* end confdefs.h. */
22868
22869int
22870main ()
22871{
90dd450c 22872
e6cc62c6
VS
22873 ;
22874 return 0;
22875}
22876_ACEOF
22877rm -f conftest.$ac_objext conftest$ac_exeext
22878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 22879 (eval $ac_link) 2>conftest.er1
e6cc62c6 22880 ac_status=$?
f95e4495
VS
22881 grep -v '^ *+' conftest.er1 >conftest.err
22882 rm -f conftest.er1
22883 cat conftest.err >&5
e6cc62c6
VS
22884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22885 (exit $ac_status); } &&
f95e4495
VS
22886 { ac_try='test -z "$ac_c_werror_flag"
22887 || test ! -s conftest.err'
22888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22889 (eval $ac_try) 2>&5
22890 ac_status=$?
22891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); }; } &&
22893 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22895 (eval $ac_try) 2>&5
22896 ac_status=$?
22897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22898 (exit $ac_status); }; }; then
90dd450c 22899 ac_R_nospace=yes
3a922bb4 22900else
e6cc62c6
VS
22901 echo "$as_me: failed program was:" >&5
22902sed 's/^/| /' conftest.$ac_ext >&5
22903
22904ac_R_nospace=no
3a922bb4 22905fi
f95e4495
VS
22906rm -f conftest.err conftest.$ac_objext \
22907 conftest$ac_exeext conftest.$ac_ext
90dd450c 22908 if test $ac_R_nospace = yes; then
e6cc62c6
VS
22909 echo "$as_me:$LINENO: result: no" >&5
22910echo "${ECHO_T}no" >&6
90dd450c
VZ
22911 X_LIBS="$X_LIBS -R$x_libraries"
22912 else
22913 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 22914 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22915/* confdefs.h. */
22916_ACEOF
22917cat confdefs.h >>conftest.$ac_ext
22918cat >>conftest.$ac_ext <<_ACEOF
22919/* end confdefs.h. */
22920
22921int
22922main ()
22923{
6f754473 22924
e6cc62c6
VS
22925 ;
22926 return 0;
22927}
22928_ACEOF
22929rm -f conftest.$ac_objext conftest$ac_exeext
22930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 22931 (eval $ac_link) 2>conftest.er1
e6cc62c6 22932 ac_status=$?
f95e4495
VS
22933 grep -v '^ *+' conftest.er1 >conftest.err
22934 rm -f conftest.er1
22935 cat conftest.err >&5
e6cc62c6
VS
22936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22937 (exit $ac_status); } &&
f95e4495
VS
22938 { ac_try='test -z "$ac_c_werror_flag"
22939 || test ! -s conftest.err'
22940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22941 (eval $ac_try) 2>&5
22942 ac_status=$?
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); }; } &&
22945 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22947 (eval $ac_try) 2>&5
22948 ac_status=$?
22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); }; }; then
90dd450c
VZ
22951 ac_R_space=yes
22952else
e6cc62c6
VS
22953 echo "$as_me: failed program was:" >&5
22954sed 's/^/| /' conftest.$ac_ext >&5
22955
22956ac_R_space=no
90dd450c 22957fi
f95e4495
VS
22958rm -f conftest.err conftest.$ac_objext \
22959 conftest$ac_exeext conftest.$ac_ext
90dd450c 22960 if test $ac_R_space = yes; then
e6cc62c6
VS
22961 echo "$as_me:$LINENO: result: yes" >&5
22962echo "${ECHO_T}yes" >&6
90dd450c
VZ
22963 X_LIBS="$X_LIBS -R $x_libraries"
22964 else
e6cc62c6
VS
22965 echo "$as_me:$LINENO: result: neither works" >&5
22966echo "${ECHO_T}neither works" >&6
90dd450c
VZ
22967 fi
22968 fi
e6cc62c6 22969 LIBS=$ac_xsave_LIBS
90dd450c
VZ
22970 esac
22971 fi
22972
22973 # Check for system-dependent libraries X programs must link with.
22974 # Do this before checking for the system-independent R6 libraries
22975 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 22976
90dd450c
VZ
22977 if test "$ISC" = yes; then
22978 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22979 else
e6cc62c6
VS
22980 # Martyn Johnson says this is needed for Ultrix, if the X
22981 # libraries were built with DECnet support. And Karl Berry says
90dd450c 22982 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
22983 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22984 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22985/* confdefs.h. */
22986_ACEOF
22987cat confdefs.h >>conftest.$ac_ext
22988cat >>conftest.$ac_ext <<_ACEOF
22989/* end confdefs.h. */
22990
247f5006 22991/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22992#ifdef __cplusplus
22993extern "C"
22994#endif
247f5006 22995/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22996 builtin and then its argument prototype would still apply. */
22997char XOpenDisplay ();
22998int
22999main ()
23000{
23001XOpenDisplay ();
23002 ;
23003 return 0;
23004}
23005_ACEOF
23006rm -f conftest.$ac_objext conftest$ac_exeext
23007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 23008 (eval $ac_link) 2>conftest.er1
e6cc62c6 23009 ac_status=$?
f95e4495
VS
23010 grep -v '^ *+' conftest.er1 >conftest.err
23011 rm -f conftest.er1
23012 cat conftest.err >&5
e6cc62c6
VS
23013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014 (exit $ac_status); } &&
f95e4495
VS
23015 { ac_try='test -z "$ac_c_werror_flag"
23016 || test ! -s conftest.err'
23017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23018 (eval $ac_try) 2>&5
23019 ac_status=$?
23020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23021 (exit $ac_status); }; } &&
23022 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23024 (eval $ac_try) 2>&5
23025 ac_status=$?
23026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027 (exit $ac_status); }; }; then
23028 :
23029else
23030 echo "$as_me: failed program was:" >&5
23031sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 23032
e6cc62c6
VS
23033echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23034echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23035if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23036 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23037else
e6cc62c6
VS
23038 ac_check_lib_save_LIBS=$LIBS
23039LIBS="-ldnet $LIBS"
23040cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23041/* confdefs.h. */
23042_ACEOF
23043cat confdefs.h >>conftest.$ac_ext
23044cat >>conftest.$ac_ext <<_ACEOF
23045/* end confdefs.h. */
a0b9e27f 23046
e6cc62c6
VS
23047/* Override any gcc2 internal prototype to avoid an error. */
23048#ifdef __cplusplus
23049extern "C"
23050#endif
23051/* We use char because int might match the return type of a gcc2
23052 builtin and then its argument prototype would still apply. */
23053char dnet_ntoa ();
23054int
23055main ()
23056{
23057dnet_ntoa ();
23058 ;
23059 return 0;
23060}
23061_ACEOF
23062rm -f conftest.$ac_objext conftest$ac_exeext
23063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 23064 (eval $ac_link) 2>conftest.er1
e6cc62c6 23065 ac_status=$?
f95e4495
VS
23066 grep -v '^ *+' conftest.er1 >conftest.err
23067 rm -f conftest.er1
23068 cat conftest.err >&5
e6cc62c6
VS
23069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); } &&
f95e4495
VS
23071 { ac_try='test -z "$ac_c_werror_flag"
23072 || test ! -s conftest.err'
23073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23074 (eval $ac_try) 2>&5
23075 ac_status=$?
23076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23077 (exit $ac_status); }; } &&
23078 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23080 (eval $ac_try) 2>&5
23081 ac_status=$?
23082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23083 (exit $ac_status); }; }; then
23084 ac_cv_lib_dnet_dnet_ntoa=yes
23085else
23086 echo "$as_me: failed program was:" >&5
23087sed 's/^/| /' conftest.$ac_ext >&5
23088
23089ac_cv_lib_dnet_dnet_ntoa=no
23090fi
f95e4495
VS
23091rm -f conftest.err conftest.$ac_objext \
23092 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23093LIBS=$ac_check_lib_save_LIBS
23094fi
23095echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23096echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23097if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 23098 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
23099fi
23100
90dd450c 23101 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
23102 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23103echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23104if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23105 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23106else
e6cc62c6 23107 ac_check_lib_save_LIBS=$LIBS
90dd450c 23108LIBS="-ldnet_stub $LIBS"
e6cc62c6 23109cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23110/* confdefs.h. */
23111_ACEOF
23112cat confdefs.h >>conftest.$ac_ext
23113cat >>conftest.$ac_ext <<_ACEOF
23114/* end confdefs.h. */
23115
90dd450c 23116/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23117#ifdef __cplusplus
23118extern "C"
23119#endif
90dd450c 23120/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23121 builtin and then its argument prototype would still apply. */
23122char dnet_ntoa ();
23123int
23124main ()
23125{
23126dnet_ntoa ();
23127 ;
23128 return 0;
23129}
23130_ACEOF
23131rm -f conftest.$ac_objext conftest$ac_exeext
23132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 23133 (eval $ac_link) 2>conftest.er1
e6cc62c6 23134 ac_status=$?
f95e4495
VS
23135 grep -v '^ *+' conftest.er1 >conftest.err
23136 rm -f conftest.er1
23137 cat conftest.err >&5
e6cc62c6
VS
23138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23139 (exit $ac_status); } &&
f95e4495
VS
23140 { ac_try='test -z "$ac_c_werror_flag"
23141 || test ! -s conftest.err'
23142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23143 (eval $ac_try) 2>&5
23144 ac_status=$?
23145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146 (exit $ac_status); }; } &&
23147 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23149 (eval $ac_try) 2>&5
23150 ac_status=$?
23151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23152 (exit $ac_status); }; }; then
23153 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23154else
23155 echo "$as_me: failed program was:" >&5
23156sed 's/^/| /' conftest.$ac_ext >&5
23157
23158ac_cv_lib_dnet_stub_dnet_ntoa=no
23159fi
f95e4495
VS
23160rm -f conftest.err conftest.$ac_objext \
23161 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23162LIBS=$ac_check_lib_save_LIBS
23163fi
23164echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23165echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23166if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 23167 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
23168fi
23169
90dd450c 23170 fi
e6cc62c6 23171fi
f95e4495
VS
23172rm -f conftest.err conftest.$ac_objext \
23173 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 23174 LIBS="$ac_xsave_LIBS"
978f1259 23175
90dd450c
VZ
23176 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23177 # to get the SysV transport functions.
e6cc62c6 23178 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
23179 # needs -lnsl.
23180 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23181 # on Irix 5.2, according to T.E. Dickey.
23182 # The functions gethostbyname, getservbyname, and inet_addr are
23183 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23184 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23185echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23186if test "${ac_cv_func_gethostbyname+set}" = set; then
23187 echo $ECHO_N "(cached) $ECHO_C" >&6
23188else
23189 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23190/* confdefs.h. */
23191_ACEOF
23192cat confdefs.h >>conftest.$ac_ext
23193cat >>conftest.$ac_ext <<_ACEOF
23194/* end confdefs.h. */
f95e4495
VS
23195/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23197#define gethostbyname innocuous_gethostbyname
23198
90dd450c 23199/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23200 which can conflict with char gethostbyname (); below.
23201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23202 <limits.h> exists even on freestanding compilers. */
f95e4495 23203
e6cc62c6
VS
23204#ifdef __STDC__
23205# include <limits.h>
23206#else
23207# include <assert.h>
23208#endif
f95e4495
VS
23209
23210#undef gethostbyname
23211
90dd450c 23212/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23213#ifdef __cplusplus
23214extern "C"
23215{
23216#endif
90dd450c 23217/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23218 builtin and then its argument prototype would still apply. */
23219char gethostbyname ();
90dd450c
VZ
23220/* The GNU C library defines this for functions which it implements
23221 to always fail with ENOSYS. Some functions are actually named
23222 something starting with __ and the normal name is an alias. */
23223#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23224choke me
23225#else
e6cc62c6
VS
23226char (*f) () = gethostbyname;
23227#endif
23228#ifdef __cplusplus
23229}
90dd450c 23230#endif
978f1259 23231
e6cc62c6
VS
23232int
23233main ()
23234{
23235return f != gethostbyname;
23236 ;
23237 return 0;
23238}
23239_ACEOF
23240rm -f conftest.$ac_objext conftest$ac_exeext
23241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 23242 (eval $ac_link) 2>conftest.er1
e6cc62c6 23243 ac_status=$?
f95e4495
VS
23244 grep -v '^ *+' conftest.er1 >conftest.err
23245 rm -f conftest.er1
23246 cat conftest.err >&5
e6cc62c6
VS
23247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248 (exit $ac_status); } &&
f95e4495
VS
23249 { ac_try='test -z "$ac_c_werror_flag"
23250 || test ! -s conftest.err'
23251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23252 (eval $ac_try) 2>&5
23253 ac_status=$?
23254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255 (exit $ac_status); }; } &&
23256 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23258 (eval $ac_try) 2>&5
23259 ac_status=$?
23260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261 (exit $ac_status); }; }; then
23262 ac_cv_func_gethostbyname=yes
23263else
23264 echo "$as_me: failed program was:" >&5
23265sed 's/^/| /' conftest.$ac_ext >&5
23266
23267ac_cv_func_gethostbyname=no
23268fi
f95e4495
VS
23269rm -f conftest.err conftest.$ac_objext \
23270 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23271fi
23272echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23273echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 23274
90dd450c 23275 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23276 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23277echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23278if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23279 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23280else
e6cc62c6 23281 ac_check_lib_save_LIBS=$LIBS
90dd450c 23282LIBS="-lnsl $LIBS"
e6cc62c6 23283cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23284/* confdefs.h. */
23285_ACEOF
23286cat confdefs.h >>conftest.$ac_ext
23287cat >>conftest.$ac_ext <<_ACEOF
23288/* end confdefs.h. */
23289
90dd450c 23290/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23291#ifdef __cplusplus
23292extern "C"
23293#endif
90dd450c 23294/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23295 builtin and then its argument prototype would still apply. */
23296char gethostbyname ();
23297int
23298main ()
23299{
23300gethostbyname ();
23301 ;
23302 return 0;
23303}
23304_ACEOF
23305rm -f conftest.$ac_objext conftest$ac_exeext
23306if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 23307 (eval $ac_link) 2>conftest.er1
e6cc62c6 23308 ac_status=$?
f95e4495
VS
23309 grep -v '^ *+' conftest.er1 >conftest.err
23310 rm -f conftest.er1
23311 cat conftest.err >&5
e6cc62c6
VS
23312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313 (exit $ac_status); } &&
f95e4495
VS
23314 { ac_try='test -z "$ac_c_werror_flag"
23315 || test ! -s conftest.err'
23316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23317 (eval $ac_try) 2>&5
23318 ac_status=$?
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); }; } &&
23321 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23323 (eval $ac_try) 2>&5
23324 ac_status=$?
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); }; }; then
23327 ac_cv_lib_nsl_gethostbyname=yes
23328else
23329 echo "$as_me: failed program was:" >&5
23330sed 's/^/| /' conftest.$ac_ext >&5
23331
23332ac_cv_lib_nsl_gethostbyname=no
23333fi
f95e4495
VS
23334rm -f conftest.err conftest.$ac_objext \
23335 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23336LIBS=$ac_check_lib_save_LIBS
23337fi
23338echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23339echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23340if test $ac_cv_lib_nsl_gethostbyname = yes; then
23341 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23342fi
247f5006 23343
e6cc62c6 23344 if test $ac_cv_lib_nsl_gethostbyname = no; then
f95e4495 23345 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
23346echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23347if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23348 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23349else
e6cc62c6
VS
23350 ac_check_lib_save_LIBS=$LIBS
23351LIBS="-lbsd $LIBS"
23352cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23353/* confdefs.h. */
23354_ACEOF
23355cat confdefs.h >>conftest.$ac_ext
23356cat >>conftest.$ac_ext <<_ACEOF
23357/* end confdefs.h. */
23358
23359/* Override any gcc2 internal prototype to avoid an error. */
23360#ifdef __cplusplus
23361extern "C"
23362#endif
23363/* We use char because int might match the return type of a gcc2
23364 builtin and then its argument prototype would still apply. */
23365char gethostbyname ();
23366int
23367main ()
23368{
23369gethostbyname ();
23370 ;
23371 return 0;
23372}
23373_ACEOF
23374rm -f conftest.$ac_objext conftest$ac_exeext
23375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 23376 (eval $ac_link) 2>conftest.er1
e6cc62c6 23377 ac_status=$?
f95e4495
VS
23378 grep -v '^ *+' conftest.er1 >conftest.err
23379 rm -f conftest.er1
23380 cat conftest.err >&5
e6cc62c6
VS
23381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23382 (exit $ac_status); } &&
f95e4495
VS
23383 { ac_try='test -z "$ac_c_werror_flag"
23384 || test ! -s conftest.err'
23385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386 (eval $ac_try) 2>&5
23387 ac_status=$?
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); }; } &&
23390 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23392 (eval $ac_try) 2>&5
23393 ac_status=$?
23394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395 (exit $ac_status); }; }; then
23396 ac_cv_lib_bsd_gethostbyname=yes
23397else
23398 echo "$as_me: failed program was:" >&5
23399sed 's/^/| /' conftest.$ac_ext >&5
23400
23401ac_cv_lib_bsd_gethostbyname=no
23402fi
f95e4495
VS
23403rm -f conftest.err conftest.$ac_objext \
23404 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23405LIBS=$ac_check_lib_save_LIBS
23406fi
23407echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23408echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23409if test $ac_cv_lib_bsd_gethostbyname = yes; then
23410 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 23411fi
b12915c1 23412
e6cc62c6 23413 fi
90dd450c
VZ
23414 fi
23415
23416 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23417 # socket/setsockopt and other routines are undefined under SCO ODT
23418 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23419 # on later versions), says Simon Leinen: it contains gethostby*
23420 # variants that don't use the name server (or something). -lsocket
23421 # must be given before -lnsl if both are needed. We assume that
23422 # if connect needs -lnsl, so does gethostbyname.
23423 echo "$as_me:$LINENO: checking for connect" >&5
23424echo $ECHO_N "checking for connect... $ECHO_C" >&6
23425if test "${ac_cv_func_connect+set}" = set; then
23426 echo $ECHO_N "(cached) $ECHO_C" >&6
23427else
23428 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23429/* confdefs.h. */
23430_ACEOF
23431cat confdefs.h >>conftest.$ac_ext
23432cat >>conftest.$ac_ext <<_ACEOF
23433/* end confdefs.h. */
f95e4495
VS
23434/* Define connect to an innocuous variant, in case <limits.h> declares connect.
23435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23436#define connect innocuous_connect
23437
90dd450c 23438/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23439 which can conflict with char connect (); below.
23440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23441 <limits.h> exists even on freestanding compilers. */
f95e4495 23442
e6cc62c6
VS
23443#ifdef __STDC__
23444# include <limits.h>
23445#else
23446# include <assert.h>
23447#endif
f95e4495
VS
23448
23449#undef connect
23450
90dd450c 23451/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23452#ifdef __cplusplus
23453extern "C"
23454{
23455#endif
90dd450c 23456/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23457 builtin and then its argument prototype would still apply. */
23458char connect ();
90dd450c
VZ
23459/* The GNU C library defines this for functions which it implements
23460 to always fail with ENOSYS. Some functions are actually named
23461 something starting with __ and the normal name is an alias. */
23462#if defined (__stub_connect) || defined (__stub___connect)
23463choke me
23464#else
e6cc62c6
VS
23465char (*f) () = connect;
23466#endif
23467#ifdef __cplusplus
23468}
90dd450c
VZ
23469#endif
23470
e6cc62c6
VS
23471int
23472main ()
23473{
23474return f != connect;
23475 ;
23476 return 0;
23477}
23478_ACEOF
23479rm -f conftest.$ac_objext conftest$ac_exeext
23480if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 23481 (eval $ac_link) 2>conftest.er1
e6cc62c6 23482 ac_status=$?
f95e4495
VS
23483 grep -v '^ *+' conftest.er1 >conftest.err
23484 rm -f conftest.er1
23485 cat conftest.err >&5
e6cc62c6
VS
23486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487 (exit $ac_status); } &&
f95e4495
VS
23488 { ac_try='test -z "$ac_c_werror_flag"
23489 || test ! -s conftest.err'
23490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23491 (eval $ac_try) 2>&5
23492 ac_status=$?
23493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494 (exit $ac_status); }; } &&
23495 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23497 (eval $ac_try) 2>&5
23498 ac_status=$?
23499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23500 (exit $ac_status); }; }; then
23501 ac_cv_func_connect=yes
23502else
23503 echo "$as_me: failed program was:" >&5
23504sed 's/^/| /' conftest.$ac_ext >&5
23505
23506ac_cv_func_connect=no
23507fi
f95e4495
VS
23508rm -f conftest.err conftest.$ac_objext \
23509 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23510fi
23511echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23512echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 23513
90dd450c 23514 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
23515 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23516echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23517if test "${ac_cv_lib_socket_connect+set}" = set; then
23518 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23519else
e6cc62c6 23520 ac_check_lib_save_LIBS=$LIBS
90dd450c 23521LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 23522cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23523/* confdefs.h. */
23524_ACEOF
23525cat confdefs.h >>conftest.$ac_ext
23526cat >>conftest.$ac_ext <<_ACEOF
23527/* end confdefs.h. */
23528
90dd450c 23529/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23530#ifdef __cplusplus
23531extern "C"
23532#endif
90dd450c 23533/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23534 builtin and then its argument prototype would still apply. */
23535char connect ();
23536int
23537main ()
23538{
23539connect ();
23540 ;
23541 return 0;
23542}
23543_ACEOF
23544rm -f conftest.$ac_objext conftest$ac_exeext
23545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 23546 (eval $ac_link) 2>conftest.er1
e6cc62c6 23547 ac_status=$?
f95e4495
VS
23548 grep -v '^ *+' conftest.er1 >conftest.err
23549 rm -f conftest.er1
23550 cat conftest.err >&5
e6cc62c6
VS
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); } &&
f95e4495
VS
23553 { ac_try='test -z "$ac_c_werror_flag"
23554 || test ! -s conftest.err'
23555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23556 (eval $ac_try) 2>&5
23557 ac_status=$?
23558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559 (exit $ac_status); }; } &&
23560 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23562 (eval $ac_try) 2>&5
23563 ac_status=$?
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); }; }; then
23566 ac_cv_lib_socket_connect=yes
23567else
23568 echo "$as_me: failed program was:" >&5
23569sed 's/^/| /' conftest.$ac_ext >&5
23570
23571ac_cv_lib_socket_connect=no
23572fi
f95e4495
VS
23573rm -f conftest.err conftest.$ac_objext \
23574 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23575LIBS=$ac_check_lib_save_LIBS
23576fi
23577echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23578echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23579if test $ac_cv_lib_socket_connect = yes; then
90dd450c 23580 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 23581fi
77e13408 23582
90dd450c 23583 fi
25d0687a 23584
e6cc62c6
VS
23585 # Guillermo Gomez says -lposix is necessary on A/UX.
23586 echo "$as_me:$LINENO: checking for remove" >&5
23587echo $ECHO_N "checking for remove... $ECHO_C" >&6
23588if test "${ac_cv_func_remove+set}" = set; then
23589 echo $ECHO_N "(cached) $ECHO_C" >&6
23590else
23591 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23592/* confdefs.h. */
23593_ACEOF
23594cat confdefs.h >>conftest.$ac_ext
23595cat >>conftest.$ac_ext <<_ACEOF
23596/* end confdefs.h. */
f95e4495
VS
23597/* Define remove to an innocuous variant, in case <limits.h> declares remove.
23598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23599#define remove innocuous_remove
23600
90dd450c 23601/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23602 which can conflict with char remove (); below.
23603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23604 <limits.h> exists even on freestanding compilers. */
f95e4495 23605
e6cc62c6
VS
23606#ifdef __STDC__
23607# include <limits.h>
23608#else
23609# include <assert.h>
23610#endif
f95e4495
VS
23611
23612#undef remove
23613
90dd450c 23614/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23615#ifdef __cplusplus
23616extern "C"
23617{
23618#endif
90dd450c 23619/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23620 builtin and then its argument prototype would still apply. */
23621char remove ();
90dd450c
VZ
23622/* The GNU C library defines this for functions which it implements
23623 to always fail with ENOSYS. Some functions are actually named
23624 something starting with __ and the normal name is an alias. */
23625#if defined (__stub_remove) || defined (__stub___remove)
23626choke me
23627#else
e6cc62c6
VS
23628char (*f) () = remove;
23629#endif
23630#ifdef __cplusplus
23631}
90dd450c 23632#endif
55e80573 23633
e6cc62c6
VS
23634int
23635main ()
23636{
23637return f != remove;
23638 ;
23639 return 0;
23640}
23641_ACEOF
23642rm -f conftest.$ac_objext conftest$ac_exeext
23643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 23644 (eval $ac_link) 2>conftest.er1
e6cc62c6 23645 ac_status=$?
f95e4495
VS
23646 grep -v '^ *+' conftest.er1 >conftest.err
23647 rm -f conftest.er1
23648 cat conftest.err >&5
e6cc62c6
VS
23649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650 (exit $ac_status); } &&
f95e4495
VS
23651 { ac_try='test -z "$ac_c_werror_flag"
23652 || test ! -s conftest.err'
23653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23654 (eval $ac_try) 2>&5
23655 ac_status=$?
23656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657 (exit $ac_status); }; } &&
23658 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23660 (eval $ac_try) 2>&5
23661 ac_status=$?
23662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23663 (exit $ac_status); }; }; then
23664 ac_cv_func_remove=yes
23665else
23666 echo "$as_me: failed program was:" >&5
23667sed 's/^/| /' conftest.$ac_ext >&5
23668
23669ac_cv_func_remove=no
23670fi
f95e4495
VS
23671rm -f conftest.err conftest.$ac_objext \
23672 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23673fi
23674echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23675echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 23676
90dd450c 23677 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23678 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23679echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23680if test "${ac_cv_lib_posix_remove+set}" = set; then
23681 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23682else
e6cc62c6 23683 ac_check_lib_save_LIBS=$LIBS
90dd450c 23684LIBS="-lposix $LIBS"
e6cc62c6 23685cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23686/* confdefs.h. */
23687_ACEOF
23688cat confdefs.h >>conftest.$ac_ext
23689cat >>conftest.$ac_ext <<_ACEOF
23690/* end confdefs.h. */
23691
90dd450c 23692/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23693#ifdef __cplusplus
23694extern "C"
23695#endif
90dd450c 23696/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23697 builtin and then its argument prototype would still apply. */
23698char remove ();
23699int
23700main ()
23701{
23702remove ();
23703 ;
23704 return 0;
23705}
23706_ACEOF
23707rm -f conftest.$ac_objext conftest$ac_exeext
23708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 23709 (eval $ac_link) 2>conftest.er1
e6cc62c6 23710 ac_status=$?
f95e4495
VS
23711 grep -v '^ *+' conftest.er1 >conftest.err
23712 rm -f conftest.er1
23713 cat conftest.err >&5
e6cc62c6
VS
23714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); } &&
f95e4495
VS
23716 { ac_try='test -z "$ac_c_werror_flag"
23717 || test ! -s conftest.err'
23718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23719 (eval $ac_try) 2>&5
23720 ac_status=$?
23721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23722 (exit $ac_status); }; } &&
23723 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23725 (eval $ac_try) 2>&5
23726 ac_status=$?
23727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728 (exit $ac_status); }; }; then
23729 ac_cv_lib_posix_remove=yes
23730else
23731 echo "$as_me: failed program was:" >&5
23732sed 's/^/| /' conftest.$ac_ext >&5
23733
23734ac_cv_lib_posix_remove=no
23735fi
f95e4495
VS
23736rm -f conftest.err conftest.$ac_objext \
23737 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23738LIBS=$ac_check_lib_save_LIBS
23739fi
23740echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23741echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23742if test $ac_cv_lib_posix_remove = yes; then
90dd450c 23743 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 23744fi
f6bcfd97 23745
6fa882bd
RR
23746 fi
23747
90dd450c 23748 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23749 echo "$as_me:$LINENO: checking for shmat" >&5
23750echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23751if test "${ac_cv_func_shmat+set}" = set; then
23752 echo $ECHO_N "(cached) $ECHO_C" >&6
23753else
23754 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23755/* confdefs.h. */
23756_ACEOF
23757cat confdefs.h >>conftest.$ac_ext
23758cat >>conftest.$ac_ext <<_ACEOF
23759/* end confdefs.h. */
f95e4495
VS
23760/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
23761 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23762#define shmat innocuous_shmat
23763
90dd450c 23764/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23765 which can conflict with char shmat (); below.
23766 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23767 <limits.h> exists even on freestanding compilers. */
f95e4495 23768
e6cc62c6
VS
23769#ifdef __STDC__
23770# include <limits.h>
23771#else
23772# include <assert.h>
23773#endif
f95e4495
VS
23774
23775#undef shmat
23776
90dd450c 23777/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23778#ifdef __cplusplus
23779extern "C"
23780{
23781#endif
90dd450c 23782/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23783 builtin and then its argument prototype would still apply. */
23784char shmat ();
90dd450c
VZ
23785/* The GNU C library defines this for functions which it implements
23786 to always fail with ENOSYS. Some functions are actually named
23787 something starting with __ and the normal name is an alias. */
23788#if defined (__stub_shmat) || defined (__stub___shmat)
23789choke me
23790#else
e6cc62c6
VS
23791char (*f) () = shmat;
23792#endif
23793#ifdef __cplusplus
23794}
90dd450c 23795#endif
10f2d63a 23796
e6cc62c6
VS
23797int
23798main ()
23799{
23800return f != shmat;
23801 ;
23802 return 0;
23803}
23804_ACEOF
23805rm -f conftest.$ac_objext conftest$ac_exeext
23806if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 23807 (eval $ac_link) 2>conftest.er1
e6cc62c6 23808 ac_status=$?
f95e4495
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); } &&
f95e4495
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_func_shmat=yes
23828else
23829 echo "$as_me: failed program was:" >&5
23830sed 's/^/| /' conftest.$ac_ext >&5
23831
23832ac_cv_func_shmat=no
23833fi
f95e4495
VS
23834rm -f conftest.err conftest.$ac_objext \
23835 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23836fi
23837echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23838echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 23839
90dd450c 23840 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23841 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23842echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23843if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23844 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 23845else
e6cc62c6 23846 ac_check_lib_save_LIBS=$LIBS
90dd450c 23847LIBS="-lipc $LIBS"
e6cc62c6 23848cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23849/* confdefs.h. */
23850_ACEOF
23851cat confdefs.h >>conftest.$ac_ext
23852cat >>conftest.$ac_ext <<_ACEOF
23853/* end confdefs.h. */
23854
8284b0c5 23855/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23856#ifdef __cplusplus
23857extern "C"
23858#endif
90dd450c 23859/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23860 builtin and then its argument prototype would still apply. */
23861char shmat ();
23862int
23863main ()
23864{
23865shmat ();
23866 ;
23867 return 0;
23868}
23869_ACEOF
23870rm -f conftest.$ac_objext conftest$ac_exeext
23871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 23872 (eval $ac_link) 2>conftest.er1
e6cc62c6 23873 ac_status=$?
f95e4495
VS
23874 grep -v '^ *+' conftest.er1 >conftest.err
23875 rm -f conftest.er1
23876 cat conftest.err >&5
e6cc62c6
VS
23877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23878 (exit $ac_status); } &&
f95e4495
VS
23879 { ac_try='test -z "$ac_c_werror_flag"
23880 || test ! -s conftest.err'
23881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23882 (eval $ac_try) 2>&5
23883 ac_status=$?
23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885 (exit $ac_status); }; } &&
23886 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23888 (eval $ac_try) 2>&5
23889 ac_status=$?
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); }; }; then
23892 ac_cv_lib_ipc_shmat=yes
23893else
23894 echo "$as_me: failed program was:" >&5
23895sed 's/^/| /' conftest.$ac_ext >&5
23896
23897ac_cv_lib_ipc_shmat=no
23898fi
f95e4495
VS
23899rm -f conftest.err conftest.$ac_objext \
23900 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23901LIBS=$ac_check_lib_save_LIBS
23902fi
23903echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23904echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23905if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 23906 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
23907fi
23908
d558c907 23909 fi
90dd450c 23910 fi
3a922bb4 23911
90dd450c 23912 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23913 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
23914 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23915 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23916 # check for ICE first), but we must link in the order -lSM -lICE or
23917 # we get undefined symbols. So assume we have SM if we have ICE.
23918 # These have to be linked with before -lX11, unlike the other
23919 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23920 # John Interrante, Karl Berry
23921 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23922echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23923if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23924 echo $ECHO_N "(cached) $ECHO_C" >&6
23925else
23926 ac_check_lib_save_LIBS=$LIBS
f09359cf 23927LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 23928cat >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. */
23934
90dd450c 23935/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23936#ifdef __cplusplus
23937extern "C"
23938#endif
90dd450c 23939/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23940 builtin and then its argument prototype would still apply. */
23941char IceConnectionNumber ();
23942int
23943main ()
23944{
23945IceConnectionNumber ();
23946 ;
23947 return 0;
23948}
23949_ACEOF
23950rm -f conftest.$ac_objext conftest$ac_exeext
23951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 23952 (eval $ac_link) 2>conftest.er1
e6cc62c6 23953 ac_status=$?
f95e4495
VS
23954 grep -v '^ *+' conftest.er1 >conftest.err
23955 rm -f conftest.er1
23956 cat conftest.err >&5
e6cc62c6
VS
23957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958 (exit $ac_status); } &&
f95e4495
VS
23959 { ac_try='test -z "$ac_c_werror_flag"
23960 || test ! -s conftest.err'
23961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23962 (eval $ac_try) 2>&5
23963 ac_status=$?
23964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23965 (exit $ac_status); }; } &&
23966 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23968 (eval $ac_try) 2>&5
23969 ac_status=$?
23970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23971 (exit $ac_status); }; }; then
23972 ac_cv_lib_ICE_IceConnectionNumber=yes
23973else
23974 echo "$as_me: failed program was:" >&5
23975sed 's/^/| /' conftest.$ac_ext >&5
23976
23977ac_cv_lib_ICE_IceConnectionNumber=no
23978fi
f95e4495
VS
23979rm -f conftest.err conftest.$ac_objext \
23980 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23981LIBS=$ac_check_lib_save_LIBS
23982fi
23983echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23984echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23985if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 23986 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 23987fi
10f2d63a 23988
e6cc62c6 23989 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
23990
23991fi
23992
8284b0c5 23993
90dd450c 23994 if test "$no_x" = "yes"; then
e6cc62c6
VS
23995 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23996echo "$as_me: error: X11 not found" >&2;}
23997 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
23998 fi
23999
24000 GUI_TK_LIBRARY="$X_LIBS"
24001 TOOLKIT_INCLUDE="$X_CFLAGS"
24002 AFMINSTALL=afminstall
24003 COMPILED_X_PROGRAM=0
24004
21d1c967 24005 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
24006 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
24007echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 24008 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
24009 echo "$as_me:$LINENO: result: not found" >&5
24010echo "${ECHO_T}not found" >&6
24011 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
24012echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
24013 { (exit 1); exit 1; }; }
90dd450c 24014 else
e6cc62c6
VS
24015 echo "$as_me:$LINENO: result: $MICROWIN" >&5
24016echo "${ECHO_T}$MICROWIN" >&6
24017 cat >>confdefs.h <<\_ACEOF
21d1c967 24018#define wxUSE_NANOX 1
e6cc62c6 24019_ACEOF
21d1c967 24020
90dd450c
VZ
24021 fi
24022 fi
24023
2b5f62a0 24024 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 24025
2b5f62a0 24026 succeeded=no
90dd450c 24027
2b5f62a0
VZ
24028 if test -z "$PKG_CONFIG"; then
24029 # Extract the first word of "pkg-config", so it can be a program name with args.
24030set dummy pkg-config; ac_word=$2
e6cc62c6
VS
24031echo "$as_me:$LINENO: checking for $ac_word" >&5
24032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24033if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24034 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 24035else
e6cc62c6
VS
24036 case $PKG_CONFIG in
24037 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
24038 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24039 ;;
2b5f62a0 24040 *)
e6cc62c6
VS
24041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24042for as_dir in $PATH
24043do
24044 IFS=$as_save_IFS
24045 test -z "$as_dir" && as_dir=.
24046 for ac_exec_ext in '' $ac_executable_extensions; do
24047 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24048 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24050 break 2
24051 fi
24052done
24053done
24054
2b5f62a0
VZ
24055 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24056 ;;
24057esac
24058fi
e6cc62c6
VS
24059PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24060
2b5f62a0 24061if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
24062 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24063echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 24064else
e6cc62c6
VS
24065 echo "$as_me:$LINENO: result: no" >&5
24066echo "${ECHO_T}no" >&6
2b5f62a0
VZ
24067fi
24068
24069 fi
24070
24071 if test "$PKG_CONFIG" = "no" ; then
24072 echo "*** The pkg-config script could not be found. Make sure it is"
24073 echo "*** in your path, or set the PKG_CONFIG environment variable"
24074 echo "*** to the full path to pkg-config."
24075 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24076 else
24077 PKG_CONFIG_MIN_VERSION=0.9.0
24078 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
24079 echo "$as_me:$LINENO: checking for pangox" >&5
24080echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
24081
24082 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
24083 echo "$as_me:$LINENO: result: yes" >&5
24084echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
24085 succeeded=yes
24086
e6cc62c6
VS
24087 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
24088echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 24089 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
24090 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
24091echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 24092
e6cc62c6
VS
24093 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
24094echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 24095 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
24096 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
24097echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
24098 else
24099 PANGOX_CFLAGS=""
24100 PANGOX_LIBS=""
e6cc62c6 24101 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24102 ## do set a variable so people can do so.
24103 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 24104
2b5f62a0
VZ
24105 fi
24106
e6cc62c6
VS
24107
24108
2b5f62a0
VZ
24109 else
24110 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24111 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24112 fi
24113 fi
24114
24115 if test $succeeded = yes; then
e6cc62c6 24116
2b5f62a0 24117 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 24118 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 24119
2b5f62a0 24120 else
e6cc62c6
VS
24121
24122 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
24123echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
24124 { (exit 1); exit 1; }; }
24125
24126
2b5f62a0
VZ
24127 fi
24128
e6cc62c6 24129
2b5f62a0
VZ
24130 succeeded=no
24131
24132 if test -z "$PKG_CONFIG"; then
24133 # Extract the first word of "pkg-config", so it can be a program name with args.
24134set dummy pkg-config; ac_word=$2
e6cc62c6
VS
24135echo "$as_me:$LINENO: checking for $ac_word" >&5
24136echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24137if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24138 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 24139else
e6cc62c6
VS
24140 case $PKG_CONFIG in
24141 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
24142 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24143 ;;
2b5f62a0 24144 *)
e6cc62c6
VS
24145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24146for as_dir in $PATH
24147do
24148 IFS=$as_save_IFS
24149 test -z "$as_dir" && as_dir=.
24150 for ac_exec_ext in '' $ac_executable_extensions; do
24151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24152 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24154 break 2
24155 fi
24156done
24157done
24158
2b5f62a0
VZ
24159 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24160 ;;
24161esac
24162fi
e6cc62c6
VS
24163PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24164
2b5f62a0 24165if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
24166 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24167echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 24168else
e6cc62c6
VS
24169 echo "$as_me:$LINENO: result: no" >&5
24170echo "${ECHO_T}no" >&6
2b5f62a0
VZ
24171fi
24172
24173 fi
24174
24175 if test "$PKG_CONFIG" = "no" ; then
24176 echo "*** The pkg-config script could not be found. Make sure it is"
24177 echo "*** in your path, or set the PKG_CONFIG environment variable"
24178 echo "*** to the full path to pkg-config."
24179 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24180 else
24181 PKG_CONFIG_MIN_VERSION=0.9.0
24182 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
24183 echo "$as_me:$LINENO: checking for pangoft2" >&5
24184echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
24185
24186 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
24187 echo "$as_me:$LINENO: result: yes" >&5
24188echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
24189 succeeded=yes
24190
e6cc62c6
VS
24191 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
24192echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 24193 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
24194 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
24195echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 24196
e6cc62c6
VS
24197 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
24198echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 24199 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
24200 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
24201echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
24202 else
24203 PANGOFT2_CFLAGS=""
24204 PANGOFT2_LIBS=""
e6cc62c6 24205 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24206 ## do set a variable so people can do so.
24207 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 24208
2b5f62a0
VZ
24209 fi
24210
e6cc62c6
VS
24211
24212
2b5f62a0
VZ
24213 else
24214 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24215 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24216 fi
24217 fi
24218
24219 if test $succeeded = yes; then
e6cc62c6 24220
2b5f62a0 24221 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 24222 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 24223
2b5f62a0 24224 else
e6cc62c6
VS
24225
24226 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
24227echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 24228 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
24229
24230
2b5f62a0
VZ
24231 fi
24232
e6cc62c6 24233
2b5f62a0
VZ
24234 succeeded=no
24235
24236 if test -z "$PKG_CONFIG"; then
24237 # Extract the first word of "pkg-config", so it can be a program name with args.
24238set dummy pkg-config; ac_word=$2
e6cc62c6
VS
24239echo "$as_me:$LINENO: checking for $ac_word" >&5
24240echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24241if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24242 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 24243else
e6cc62c6
VS
24244 case $PKG_CONFIG in
24245 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
24246 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24247 ;;
2b5f62a0 24248 *)
e6cc62c6
VS
24249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24250for as_dir in $PATH
24251do
24252 IFS=$as_save_IFS
24253 test -z "$as_dir" && as_dir=.
24254 for ac_exec_ext in '' $ac_executable_extensions; do
24255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24256 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24258 break 2
24259 fi
24260done
24261done
24262
2b5f62a0
VZ
24263 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24264 ;;
24265esac
24266fi
e6cc62c6
VS
24267PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24268
2b5f62a0 24269if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
24270 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24271echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 24272else
e6cc62c6
VS
24273 echo "$as_me:$LINENO: result: no" >&5
24274echo "${ECHO_T}no" >&6
2b5f62a0
VZ
24275fi
24276
24277 fi
24278
24279 if test "$PKG_CONFIG" = "no" ; then
24280 echo "*** The pkg-config script could not be found. Make sure it is"
24281 echo "*** in your path, or set the PKG_CONFIG environment variable"
24282 echo "*** to the full path to pkg-config."
24283 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24284 else
24285 PKG_CONFIG_MIN_VERSION=0.9.0
24286 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
24287 echo "$as_me:$LINENO: checking for pangoxft" >&5
24288echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
24289
24290 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
24291 echo "$as_me:$LINENO: result: yes" >&5
24292echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
24293 succeeded=yes
24294
e6cc62c6
VS
24295 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
24296echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 24297 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
24298 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
24299echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 24300
e6cc62c6
VS
24301 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
24302echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 24303 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
24304 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
24305echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
24306 else
24307 PANGOXFT_CFLAGS=""
24308 PANGOXFT_LIBS=""
e6cc62c6 24309 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24310 ## do set a variable so people can do so.
24311 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 24312
2b5f62a0
VZ
24313 fi
24314
e6cc62c6
VS
24315
24316
2b5f62a0
VZ
24317 else
24318 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24319 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24320 fi
24321 fi
24322
24323 if test $succeeded = yes; then
e6cc62c6 24324
2b5f62a0 24325 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 24326 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 24327
2b5f62a0 24328 else
e6cc62c6
VS
24329
24330 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
24331echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
24332
24333
2b5f62a0
VZ
24334 fi
24335
24336 fi
24337
24338 wxUSE_UNIVERSAL="yes"
24339
24340 if test "$wxUSE_NANOX" = "yes"; then
24341 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 24342 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
24343 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
24344 else
93a543aa 24345 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
2b5f62a0
VZ
24346 fi
24347
24348 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
24349 TOOLKIT=X11
24350 GUIDIST=X11_DIST
24351 fi
24352
21d1c967
GD
24353 if test "$wxUSE_MOTIF" = 1; then
24354 if test "$no_x" = yes; then
24355 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
24356
24357cat >>confdefs.h <<\_ACEOF
21d1c967 24358#define X_DISPLAY_MISSING 1
e6cc62c6 24359_ACEOF
21d1c967
GD
24360
24361 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24362else
24363 if test -n "$x_includes"; then
24364 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
24365 fi
24366
21d1c967
GD
24367 # It would also be nice to do this for all -L options, not just this one.
24368 if test -n "$x_libraries"; then
24369 X_LIBS="$X_LIBS -L$x_libraries"
24370 # For Solaris; some versions of Sun CC require a space after -R and
24371 # others require no space. Words are not sufficient . . . .
e6cc62c6 24372 case `(uname -sr) 2>/dev/null` in
21d1c967 24373 "SunOS 5"*)
e6cc62c6
VS
24374 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24375echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24376 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24377 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24378/* confdefs.h. */
24379_ACEOF
24380cat confdefs.h >>conftest.$ac_ext
24381cat >>conftest.$ac_ext <<_ACEOF
24382/* end confdefs.h. */
24383
24384int
24385main ()
24386{
21d1c967 24387
e6cc62c6
VS
24388 ;
24389 return 0;
24390}
24391_ACEOF
24392rm -f conftest.$ac_objext conftest$ac_exeext
24393if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 24394 (eval $ac_link) 2>conftest.er1
e6cc62c6 24395 ac_status=$?
f95e4495
VS
24396 grep -v '^ *+' conftest.er1 >conftest.err
24397 rm -f conftest.er1
24398 cat conftest.err >&5
e6cc62c6
VS
24399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24400 (exit $ac_status); } &&
f95e4495
VS
24401 { ac_try='test -z "$ac_c_werror_flag"
24402 || test ! -s conftest.err'
24403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24404 (eval $ac_try) 2>&5
24405 ac_status=$?
24406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24407 (exit $ac_status); }; } &&
24408 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24410 (eval $ac_try) 2>&5
24411 ac_status=$?
24412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413 (exit $ac_status); }; }; then
21d1c967 24414 ac_R_nospace=yes
698dcdb6 24415else
e6cc62c6
VS
24416 echo "$as_me: failed program was:" >&5
24417sed 's/^/| /' conftest.$ac_ext >&5
24418
24419ac_R_nospace=no
10f2d63a 24420fi
f95e4495
VS
24421rm -f conftest.err conftest.$ac_objext \
24422 conftest$ac_exeext conftest.$ac_ext
21d1c967 24423 if test $ac_R_nospace = yes; then
e6cc62c6
VS
24424 echo "$as_me:$LINENO: result: no" >&5
24425echo "${ECHO_T}no" >&6
21d1c967
GD
24426 X_LIBS="$X_LIBS -R$x_libraries"
24427 else
24428 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 24429 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24430/* confdefs.h. */
24431_ACEOF
24432cat confdefs.h >>conftest.$ac_ext
24433cat >>conftest.$ac_ext <<_ACEOF
24434/* end confdefs.h. */
24435
24436int
24437main ()
24438{
f0c87536 24439
e6cc62c6
VS
24440 ;
24441 return 0;
24442}
24443_ACEOF
24444rm -f conftest.$ac_objext conftest$ac_exeext
24445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 24446 (eval $ac_link) 2>conftest.er1
e6cc62c6 24447 ac_status=$?
f95e4495
VS
24448 grep -v '^ *+' conftest.er1 >conftest.err
24449 rm -f conftest.er1
24450 cat conftest.err >&5
e6cc62c6
VS
24451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452 (exit $ac_status); } &&
f95e4495
VS
24453 { ac_try='test -z "$ac_c_werror_flag"
24454 || test ! -s conftest.err'
24455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24456 (eval $ac_try) 2>&5
24457 ac_status=$?
24458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24459 (exit $ac_status); }; } &&
24460 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
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); }; }; then
21d1c967
GD
24466 ac_R_space=yes
24467else
e6cc62c6
VS
24468 echo "$as_me: failed program was:" >&5
24469sed 's/^/| /' conftest.$ac_ext >&5
24470
24471ac_R_space=no
21d1c967 24472fi
f95e4495
VS
24473rm -f conftest.err conftest.$ac_objext \
24474 conftest$ac_exeext conftest.$ac_ext
21d1c967 24475 if test $ac_R_space = yes; then
e6cc62c6
VS
24476 echo "$as_me:$LINENO: result: yes" >&5
24477echo "${ECHO_T}yes" >&6
21d1c967
GD
24478 X_LIBS="$X_LIBS -R $x_libraries"
24479 else
e6cc62c6
VS
24480 echo "$as_me:$LINENO: result: neither works" >&5
24481echo "${ECHO_T}neither works" >&6
21d1c967
GD
24482 fi
24483 fi
e6cc62c6 24484 LIBS=$ac_xsave_LIBS
21d1c967
GD
24485 esac
24486 fi
90dd450c 24487
21d1c967
GD
24488 # Check for system-dependent libraries X programs must link with.
24489 # Do this before checking for the system-independent R6 libraries
24490 # (-lICE), since we may need -lsocket or whatever for X linking.
24491
24492 if test "$ISC" = yes; then
24493 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24494 else
e6cc62c6
VS
24495 # Martyn Johnson says this is needed for Ultrix, if the X
24496 # libraries were built with DECnet support. And Karl Berry says
21d1c967 24497 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
24498 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24499 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24500/* confdefs.h. */
24501_ACEOF
24502cat confdefs.h >>conftest.$ac_ext
24503cat >>conftest.$ac_ext <<_ACEOF
24504/* end confdefs.h. */
24505
247f5006 24506/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24507#ifdef __cplusplus
24508extern "C"
24509#endif
247f5006 24510/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24511 builtin and then its argument prototype would still apply. */
24512char XOpenDisplay ();
24513int
24514main ()
24515{
24516XOpenDisplay ();
24517 ;
24518 return 0;
24519}
24520_ACEOF
24521rm -f conftest.$ac_objext conftest$ac_exeext
24522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 24523 (eval $ac_link) 2>conftest.er1
e6cc62c6 24524 ac_status=$?
f95e4495
VS
24525 grep -v '^ *+' conftest.er1 >conftest.err
24526 rm -f conftest.er1
24527 cat conftest.err >&5
e6cc62c6
VS
24528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529 (exit $ac_status); } &&
f95e4495
VS
24530 { ac_try='test -z "$ac_c_werror_flag"
24531 || test ! -s conftest.err'
24532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24533 (eval $ac_try) 2>&5
24534 ac_status=$?
24535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536 (exit $ac_status); }; } &&
24537 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24539 (eval $ac_try) 2>&5
24540 ac_status=$?
24541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24542 (exit $ac_status); }; }; then
24543 :
24544else
24545 echo "$as_me: failed program was:" >&5
24546sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 24547
e6cc62c6
VS
24548echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24549echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24550if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24551 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 24552else
e6cc62c6
VS
24553 ac_check_lib_save_LIBS=$LIBS
24554LIBS="-ldnet $LIBS"
24555cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24556/* confdefs.h. */
24557_ACEOF
24558cat confdefs.h >>conftest.$ac_ext
24559cat >>conftest.$ac_ext <<_ACEOF
24560/* end confdefs.h. */
a0b9e27f 24561
e6cc62c6
VS
24562/* Override any gcc2 internal prototype to avoid an error. */
24563#ifdef __cplusplus
24564extern "C"
24565#endif
24566/* We use char because int might match the return type of a gcc2
24567 builtin and then its argument prototype would still apply. */
24568char dnet_ntoa ();
24569int
24570main ()
24571{
24572dnet_ntoa ();
24573 ;
24574 return 0;
24575}
24576_ACEOF
24577rm -f conftest.$ac_objext conftest$ac_exeext
24578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 24579 (eval $ac_link) 2>conftest.er1
e6cc62c6 24580 ac_status=$?
f95e4495
VS
24581 grep -v '^ *+' conftest.er1 >conftest.err
24582 rm -f conftest.er1
24583 cat conftest.err >&5
e6cc62c6
VS
24584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585 (exit $ac_status); } &&
f95e4495
VS
24586 { ac_try='test -z "$ac_c_werror_flag"
24587 || test ! -s conftest.err'
24588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24589 (eval $ac_try) 2>&5
24590 ac_status=$?
24591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592 (exit $ac_status); }; } &&
24593 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24595 (eval $ac_try) 2>&5
24596 ac_status=$?
24597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598 (exit $ac_status); }; }; then
24599 ac_cv_lib_dnet_dnet_ntoa=yes
24600else
24601 echo "$as_me: failed program was:" >&5
24602sed 's/^/| /' conftest.$ac_ext >&5
24603
24604ac_cv_lib_dnet_dnet_ntoa=no
24605fi
f95e4495
VS
24606rm -f conftest.err conftest.$ac_objext \
24607 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24608LIBS=$ac_check_lib_save_LIBS
24609fi
24610echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24611echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24612if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 24613 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 24614fi
0fb0dd83 24615
21d1c967 24616 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
24617 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24618echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24619if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24620 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 24621else
e6cc62c6 24622 ac_check_lib_save_LIBS=$LIBS
21d1c967 24623LIBS="-ldnet_stub $LIBS"
e6cc62c6 24624cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24625/* confdefs.h. */
24626_ACEOF
24627cat confdefs.h >>conftest.$ac_ext
24628cat >>conftest.$ac_ext <<_ACEOF
24629/* end confdefs.h. */
24630
21d1c967 24631/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24632#ifdef __cplusplus
24633extern "C"
24634#endif
21d1c967 24635/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24636 builtin and then its argument prototype would still apply. */
24637char dnet_ntoa ();
24638int
24639main ()
24640{
24641dnet_ntoa ();
24642 ;
24643 return 0;
24644}
24645_ACEOF
24646rm -f conftest.$ac_objext conftest$ac_exeext
24647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 24648 (eval $ac_link) 2>conftest.er1
e6cc62c6 24649 ac_status=$?
f95e4495
VS
24650 grep -v '^ *+' conftest.er1 >conftest.err
24651 rm -f conftest.er1
24652 cat conftest.err >&5
e6cc62c6
VS
24653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654 (exit $ac_status); } &&
f95e4495
VS
24655 { ac_try='test -z "$ac_c_werror_flag"
24656 || test ! -s conftest.err'
24657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24658 (eval $ac_try) 2>&5
24659 ac_status=$?
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); }; } &&
24662 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24664 (eval $ac_try) 2>&5
24665 ac_status=$?
24666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667 (exit $ac_status); }; }; then
24668 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24669else
24670 echo "$as_me: failed program was:" >&5
24671sed 's/^/| /' conftest.$ac_ext >&5
24672
24673ac_cv_lib_dnet_stub_dnet_ntoa=no
24674fi
f95e4495
VS
24675rm -f conftest.err conftest.$ac_objext \
24676 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24677LIBS=$ac_check_lib_save_LIBS
24678fi
24679echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24680echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24681if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 24682 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
24683fi
24684
21d1c967 24685 fi
e6cc62c6 24686fi
f95e4495
VS
24687rm -f conftest.err conftest.$ac_objext \
24688 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 24689 LIBS="$ac_xsave_LIBS"
90dd450c 24690
21d1c967
GD
24691 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24692 # to get the SysV transport functions.
e6cc62c6 24693 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
24694 # needs -lnsl.
24695 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
24696 # on Irix 5.2, according to T.E. Dickey.
24697 # The functions gethostbyname, getservbyname, and inet_addr are
24698 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24699 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24700echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24701if test "${ac_cv_func_gethostbyname+set}" = set; then
24702 echo $ECHO_N "(cached) $ECHO_C" >&6
24703else
24704 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24705/* confdefs.h. */
24706_ACEOF
24707cat confdefs.h >>conftest.$ac_ext
24708cat >>conftest.$ac_ext <<_ACEOF
24709/* end confdefs.h. */
f95e4495
VS
24710/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24712#define gethostbyname innocuous_gethostbyname
24713
21d1c967 24714/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24715 which can conflict with char gethostbyname (); below.
24716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24717 <limits.h> exists even on freestanding compilers. */
f95e4495 24718
e6cc62c6
VS
24719#ifdef __STDC__
24720# include <limits.h>
24721#else
24722# include <assert.h>
24723#endif
f95e4495
VS
24724
24725#undef gethostbyname
24726
21d1c967 24727/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24728#ifdef __cplusplus
24729extern "C"
24730{
24731#endif
21d1c967 24732/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24733 builtin and then its argument prototype would still apply. */
24734char gethostbyname ();
21d1c967
GD
24735/* The GNU C library defines this for functions which it implements
24736 to always fail with ENOSYS. Some functions are actually named
24737 something starting with __ and the normal name is an alias. */
24738#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24739choke me
24740#else
e6cc62c6
VS
24741char (*f) () = gethostbyname;
24742#endif
24743#ifdef __cplusplus
24744}
21d1c967 24745#endif
90dd450c 24746
e6cc62c6
VS
24747int
24748main ()
24749{
24750return f != gethostbyname;
24751 ;
24752 return 0;
24753}
24754_ACEOF
24755rm -f conftest.$ac_objext conftest$ac_exeext
24756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 24757 (eval $ac_link) 2>conftest.er1
e6cc62c6 24758 ac_status=$?
f95e4495
VS
24759 grep -v '^ *+' conftest.er1 >conftest.err
24760 rm -f conftest.er1
24761 cat conftest.err >&5
e6cc62c6
VS
24762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763 (exit $ac_status); } &&
f95e4495
VS
24764 { ac_try='test -z "$ac_c_werror_flag"
24765 || test ! -s conftest.err'
24766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24767 (eval $ac_try) 2>&5
24768 ac_status=$?
24769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770 (exit $ac_status); }; } &&
24771 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24773 (eval $ac_try) 2>&5
24774 ac_status=$?
24775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24776 (exit $ac_status); }; }; then
24777 ac_cv_func_gethostbyname=yes
24778else
24779 echo "$as_me: failed program was:" >&5
24780sed 's/^/| /' conftest.$ac_ext >&5
24781
24782ac_cv_func_gethostbyname=no
24783fi
f95e4495
VS
24784rm -f conftest.err conftest.$ac_objext \
24785 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24786fi
24787echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24788echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 24789
21d1c967 24790 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
24791 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24792echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24793if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24794 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 24795else
e6cc62c6 24796 ac_check_lib_save_LIBS=$LIBS
21d1c967 24797LIBS="-lnsl $LIBS"
e6cc62c6 24798cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24799/* confdefs.h. */
24800_ACEOF
24801cat confdefs.h >>conftest.$ac_ext
24802cat >>conftest.$ac_ext <<_ACEOF
24803/* end confdefs.h. */
24804
21d1c967 24805/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24806#ifdef __cplusplus
24807extern "C"
24808#endif
21d1c967 24809/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24810 builtin and then its argument prototype would still apply. */
24811char gethostbyname ();
24812int
24813main ()
24814{
24815gethostbyname ();
24816 ;
24817 return 0;
24818}
24819_ACEOF
24820rm -f conftest.$ac_objext conftest$ac_exeext
24821if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 24822 (eval $ac_link) 2>conftest.er1
e6cc62c6 24823 ac_status=$?
f95e4495
VS
24824 grep -v '^ *+' conftest.er1 >conftest.err
24825 rm -f conftest.er1
24826 cat conftest.err >&5
e6cc62c6
VS
24827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24828 (exit $ac_status); } &&
f95e4495
VS
24829 { ac_try='test -z "$ac_c_werror_flag"
24830 || test ! -s conftest.err'
24831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24832 (eval $ac_try) 2>&5
24833 ac_status=$?
24834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835 (exit $ac_status); }; } &&
24836 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24838 (eval $ac_try) 2>&5
24839 ac_status=$?
24840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841 (exit $ac_status); }; }; then
24842 ac_cv_lib_nsl_gethostbyname=yes
24843else
24844 echo "$as_me: failed program was:" >&5
24845sed 's/^/| /' conftest.$ac_ext >&5
24846
24847ac_cv_lib_nsl_gethostbyname=no
24848fi
f95e4495
VS
24849rm -f conftest.err conftest.$ac_objext \
24850 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24851LIBS=$ac_check_lib_save_LIBS
24852fi
24853echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24854echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24855if test $ac_cv_lib_nsl_gethostbyname = yes; then
24856 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 24857fi
247f5006 24858
e6cc62c6 24859 if test $ac_cv_lib_nsl_gethostbyname = no; then
f95e4495 24860 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
24861echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24862if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24863 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 24864else
e6cc62c6
VS
24865 ac_check_lib_save_LIBS=$LIBS
24866LIBS="-lbsd $LIBS"
24867cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24868/* confdefs.h. */
24869_ACEOF
24870cat confdefs.h >>conftest.$ac_ext
24871cat >>conftest.$ac_ext <<_ACEOF
24872/* end confdefs.h. */
24873
24874/* Override any gcc2 internal prototype to avoid an error. */
24875#ifdef __cplusplus
24876extern "C"
24877#endif
24878/* We use char because int might match the return type of a gcc2
24879 builtin and then its argument prototype would still apply. */
24880char gethostbyname ();
24881int
24882main ()
24883{
24884gethostbyname ();
24885 ;
24886 return 0;
24887}
24888_ACEOF
24889rm -f conftest.$ac_objext conftest$ac_exeext
24890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 24891 (eval $ac_link) 2>conftest.er1
e6cc62c6 24892 ac_status=$?
f95e4495
VS
24893 grep -v '^ *+' conftest.er1 >conftest.err
24894 rm -f conftest.er1
24895 cat conftest.err >&5
e6cc62c6
VS
24896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24897 (exit $ac_status); } &&
f95e4495
VS
24898 { ac_try='test -z "$ac_c_werror_flag"
24899 || test ! -s conftest.err'
24900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24901 (eval $ac_try) 2>&5
24902 ac_status=$?
24903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24904 (exit $ac_status); }; } &&
24905 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24907 (eval $ac_try) 2>&5
24908 ac_status=$?
24909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910 (exit $ac_status); }; }; then
24911 ac_cv_lib_bsd_gethostbyname=yes
24912else
24913 echo "$as_me: failed program was:" >&5
24914sed 's/^/| /' conftest.$ac_ext >&5
24915
24916ac_cv_lib_bsd_gethostbyname=no
24917fi
f95e4495
VS
24918rm -f conftest.err conftest.$ac_objext \
24919 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24920LIBS=$ac_check_lib_save_LIBS
24921fi
24922echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24923echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24924if test $ac_cv_lib_bsd_gethostbyname = yes; then
24925 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 24926fi
90dd450c 24927
e6cc62c6 24928 fi
90dd450c
VZ
24929 fi
24930
21d1c967
GD
24931 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24932 # socket/setsockopt and other routines are undefined under SCO ODT
24933 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
24934 # on later versions), says Simon Leinen: it contains gethostby*
24935 # variants that don't use the name server (or something). -lsocket
24936 # must be given before -lnsl if both are needed. We assume that
24937 # if connect needs -lnsl, so does gethostbyname.
24938 echo "$as_me:$LINENO: checking for connect" >&5
24939echo $ECHO_N "checking for connect... $ECHO_C" >&6
24940if test "${ac_cv_func_connect+set}" = set; then
24941 echo $ECHO_N "(cached) $ECHO_C" >&6
24942else
24943 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24944/* confdefs.h. */
24945_ACEOF
24946cat confdefs.h >>conftest.$ac_ext
24947cat >>conftest.$ac_ext <<_ACEOF
24948/* end confdefs.h. */
f95e4495
VS
24949/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24951#define connect innocuous_connect
24952
21d1c967 24953/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24954 which can conflict with char connect (); below.
24955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24956 <limits.h> exists even on freestanding compilers. */
f95e4495 24957
e6cc62c6
VS
24958#ifdef __STDC__
24959# include <limits.h>
24960#else
24961# include <assert.h>
24962#endif
f95e4495
VS
24963
24964#undef connect
24965
21d1c967 24966/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24967#ifdef __cplusplus
24968extern "C"
24969{
24970#endif
21d1c967 24971/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24972 builtin and then its argument prototype would still apply. */
24973char connect ();
21d1c967
GD
24974/* The GNU C library defines this for functions which it implements
24975 to always fail with ENOSYS. Some functions are actually named
24976 something starting with __ and the normal name is an alias. */
24977#if defined (__stub_connect) || defined (__stub___connect)
24978choke me
24979#else
e6cc62c6
VS
24980char (*f) () = connect;
24981#endif
24982#ifdef __cplusplus
24983}
21d1c967 24984#endif
90dd450c 24985
e6cc62c6
VS
24986int
24987main ()
24988{
24989return f != connect;
24990 ;
24991 return 0;
24992}
24993_ACEOF
24994rm -f conftest.$ac_objext conftest$ac_exeext
24995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 24996 (eval $ac_link) 2>conftest.er1
e6cc62c6 24997 ac_status=$?
f95e4495
VS
24998 grep -v '^ *+' conftest.er1 >conftest.err
24999 rm -f conftest.er1
25000 cat conftest.err >&5
e6cc62c6
VS
25001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002 (exit $ac_status); } &&
f95e4495
VS
25003 { ac_try='test -z "$ac_c_werror_flag"
25004 || test ! -s conftest.err'
25005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25006 (eval $ac_try) 2>&5
25007 ac_status=$?
25008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009 (exit $ac_status); }; } &&
25010 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25012 (eval $ac_try) 2>&5
25013 ac_status=$?
25014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015 (exit $ac_status); }; }; then
25016 ac_cv_func_connect=yes
25017else
25018 echo "$as_me: failed program was:" >&5
25019sed 's/^/| /' conftest.$ac_ext >&5
25020
25021ac_cv_func_connect=no
25022fi
f95e4495
VS
25023rm -f conftest.err conftest.$ac_objext \
25024 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25025fi
25026echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
25027echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 25028
21d1c967 25029 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
25030 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
25031echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
25032if test "${ac_cv_lib_socket_connect+set}" = set; then
25033 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 25034else
e6cc62c6 25035 ac_check_lib_save_LIBS=$LIBS
21d1c967 25036LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 25037cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25038/* confdefs.h. */
25039_ACEOF
25040cat confdefs.h >>conftest.$ac_ext
25041cat >>conftest.$ac_ext <<_ACEOF
25042/* end confdefs.h. */
25043
21d1c967 25044/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25045#ifdef __cplusplus
25046extern "C"
25047#endif
21d1c967 25048/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25049 builtin and then its argument prototype would still apply. */
25050char connect ();
25051int
25052main ()
25053{
25054connect ();
25055 ;
25056 return 0;
25057}
25058_ACEOF
25059rm -f conftest.$ac_objext conftest$ac_exeext
25060if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 25061 (eval $ac_link) 2>conftest.er1
e6cc62c6 25062 ac_status=$?
f95e4495
VS
25063 grep -v '^ *+' conftest.er1 >conftest.err
25064 rm -f conftest.er1
25065 cat conftest.err >&5
e6cc62c6
VS
25066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067 (exit $ac_status); } &&
f95e4495
VS
25068 { ac_try='test -z "$ac_c_werror_flag"
25069 || test ! -s conftest.err'
25070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25071 (eval $ac_try) 2>&5
25072 ac_status=$?
25073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25074 (exit $ac_status); }; } &&
25075 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25077 (eval $ac_try) 2>&5
25078 ac_status=$?
25079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25080 (exit $ac_status); }; }; then
25081 ac_cv_lib_socket_connect=yes
25082else
25083 echo "$as_me: failed program was:" >&5
25084sed 's/^/| /' conftest.$ac_ext >&5
25085
25086ac_cv_lib_socket_connect=no
25087fi
f95e4495
VS
25088rm -f conftest.err conftest.$ac_objext \
25089 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25090LIBS=$ac_check_lib_save_LIBS
25091fi
25092echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25093echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25094if test $ac_cv_lib_socket_connect = yes; then
21d1c967 25095 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 25096fi
90dd450c 25097
21d1c967 25098 fi
90dd450c 25099
e6cc62c6
VS
25100 # Guillermo Gomez says -lposix is necessary on A/UX.
25101 echo "$as_me:$LINENO: checking for remove" >&5
25102echo $ECHO_N "checking for remove... $ECHO_C" >&6
25103if test "${ac_cv_func_remove+set}" = set; then
25104 echo $ECHO_N "(cached) $ECHO_C" >&6
25105else
25106 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25107/* confdefs.h. */
25108_ACEOF
25109cat confdefs.h >>conftest.$ac_ext
25110cat >>conftest.$ac_ext <<_ACEOF
25111/* end confdefs.h. */
f95e4495
VS
25112/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25114#define remove innocuous_remove
25115
21d1c967 25116/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25117 which can conflict with char remove (); below.
25118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25119 <limits.h> exists even on freestanding compilers. */
f95e4495 25120
e6cc62c6
VS
25121#ifdef __STDC__
25122# include <limits.h>
25123#else
25124# include <assert.h>
25125#endif
f95e4495
VS
25126
25127#undef remove
25128
21d1c967 25129/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25130#ifdef __cplusplus
25131extern "C"
25132{
25133#endif
21d1c967 25134/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25135 builtin and then its argument prototype would still apply. */
25136char remove ();
21d1c967
GD
25137/* The GNU C library defines this for functions which it implements
25138 to always fail with ENOSYS. Some functions are actually named
25139 something starting with __ and the normal name is an alias. */
25140#if defined (__stub_remove) || defined (__stub___remove)
25141choke me
25142#else
e6cc62c6
VS
25143char (*f) () = remove;
25144#endif
25145#ifdef __cplusplus
25146}
21d1c967 25147#endif
90dd450c 25148
e6cc62c6
VS
25149int
25150main ()
25151{
25152return f != remove;
25153 ;
25154 return 0;
25155}
25156_ACEOF
25157rm -f conftest.$ac_objext conftest$ac_exeext
25158if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 25159 (eval $ac_link) 2>conftest.er1
e6cc62c6 25160 ac_status=$?
f95e4495
VS
25161 grep -v '^ *+' conftest.er1 >conftest.err
25162 rm -f conftest.er1
25163 cat conftest.err >&5
e6cc62c6
VS
25164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25165 (exit $ac_status); } &&
f95e4495
VS
25166 { ac_try='test -z "$ac_c_werror_flag"
25167 || test ! -s conftest.err'
25168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25169 (eval $ac_try) 2>&5
25170 ac_status=$?
25171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25172 (exit $ac_status); }; } &&
25173 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25175 (eval $ac_try) 2>&5
25176 ac_status=$?
25177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25178 (exit $ac_status); }; }; then
25179 ac_cv_func_remove=yes
25180else
25181 echo "$as_me: failed program was:" >&5
25182sed 's/^/| /' conftest.$ac_ext >&5
25183
25184ac_cv_func_remove=no
25185fi
f95e4495
VS
25186rm -f conftest.err conftest.$ac_objext \
25187 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25188fi
25189echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25190echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 25191
21d1c967 25192 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
25193 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25194echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25195if test "${ac_cv_lib_posix_remove+set}" = set; then
25196 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 25197else
e6cc62c6 25198 ac_check_lib_save_LIBS=$LIBS
21d1c967 25199LIBS="-lposix $LIBS"
e6cc62c6 25200cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25201/* confdefs.h. */
25202_ACEOF
25203cat confdefs.h >>conftest.$ac_ext
25204cat >>conftest.$ac_ext <<_ACEOF
25205/* end confdefs.h. */
25206
21d1c967 25207/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25208#ifdef __cplusplus
25209extern "C"
25210#endif
21d1c967 25211/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25212 builtin and then its argument prototype would still apply. */
25213char remove ();
25214int
25215main ()
25216{
25217remove ();
25218 ;
25219 return 0;
25220}
25221_ACEOF
25222rm -f conftest.$ac_objext conftest$ac_exeext
25223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 25224 (eval $ac_link) 2>conftest.er1
e6cc62c6 25225 ac_status=$?
f95e4495
VS
25226 grep -v '^ *+' conftest.er1 >conftest.err
25227 rm -f conftest.er1
25228 cat conftest.err >&5
e6cc62c6
VS
25229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230 (exit $ac_status); } &&
f95e4495
VS
25231 { ac_try='test -z "$ac_c_werror_flag"
25232 || test ! -s conftest.err'
25233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25234 (eval $ac_try) 2>&5
25235 ac_status=$?
25236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237 (exit $ac_status); }; } &&
25238 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25240 (eval $ac_try) 2>&5
25241 ac_status=$?
25242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243 (exit $ac_status); }; }; then
25244 ac_cv_lib_posix_remove=yes
25245else
25246 echo "$as_me: failed program was:" >&5
25247sed 's/^/| /' conftest.$ac_ext >&5
25248
25249ac_cv_lib_posix_remove=no
25250fi
f95e4495
VS
25251rm -f conftest.err conftest.$ac_objext \
25252 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25253LIBS=$ac_check_lib_save_LIBS
25254fi
25255echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25256echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25257if test $ac_cv_lib_posix_remove = yes; then
21d1c967 25258 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 25259fi
19bc6aad 25260
90dd450c 25261 fi
19bc6aad 25262
21d1c967 25263 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
25264 echo "$as_me:$LINENO: checking for shmat" >&5
25265echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25266if test "${ac_cv_func_shmat+set}" = set; then
25267 echo $ECHO_N "(cached) $ECHO_C" >&6
25268else
25269 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25270/* confdefs.h. */
25271_ACEOF
25272cat confdefs.h >>conftest.$ac_ext
25273cat >>conftest.$ac_ext <<_ACEOF
25274/* end confdefs.h. */
f95e4495
VS
25275/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25277#define shmat innocuous_shmat
25278
21d1c967 25279/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25280 which can conflict with char shmat (); below.
25281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25282 <limits.h> exists even on freestanding compilers. */
f95e4495 25283
e6cc62c6
VS
25284#ifdef __STDC__
25285# include <limits.h>
25286#else
25287# include <assert.h>
25288#endif
f95e4495
VS
25289
25290#undef shmat
25291
21d1c967 25292/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25293#ifdef __cplusplus
25294extern "C"
25295{
25296#endif
21d1c967 25297/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25298 builtin and then its argument prototype would still apply. */
25299char shmat ();
21d1c967
GD
25300/* The GNU C library defines this for functions which it implements
25301 to always fail with ENOSYS. Some functions are actually named
25302 something starting with __ and the normal name is an alias. */
25303#if defined (__stub_shmat) || defined (__stub___shmat)
25304choke me
25305#else
e6cc62c6
VS
25306char (*f) () = shmat;
25307#endif
25308#ifdef __cplusplus
25309}
21d1c967 25310#endif
90dd450c 25311
e6cc62c6
VS
25312int
25313main ()
25314{
25315return f != shmat;
25316 ;
25317 return 0;
25318}
25319_ACEOF
25320rm -f conftest.$ac_objext conftest$ac_exeext
25321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 25322 (eval $ac_link) 2>conftest.er1
e6cc62c6 25323 ac_status=$?
f95e4495
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); } &&
f95e4495
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_func_shmat=yes
25343else
25344 echo "$as_me: failed program was:" >&5
25345sed 's/^/| /' conftest.$ac_ext >&5
25346
25347ac_cv_func_shmat=no
25348fi
f95e4495
VS
25349rm -f conftest.err conftest.$ac_objext \
25350 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25351fi
25352echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25353echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 25354
21d1c967 25355 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
25356 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25357echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25358if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25359 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 25360else
e6cc62c6 25361 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 25362LIBS="-lipc $LIBS"
e6cc62c6 25363cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25364/* confdefs.h. */
25365_ACEOF
25366cat confdefs.h >>conftest.$ac_ext
25367cat >>conftest.$ac_ext <<_ACEOF
25368/* end confdefs.h. */
25369
5c6fa7d2 25370/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25371#ifdef __cplusplus
25372extern "C"
25373#endif
5c6fa7d2 25374/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25375 builtin and then its argument prototype would still apply. */
25376char shmat ();
25377int
25378main ()
25379{
25380shmat ();
25381 ;
25382 return 0;
25383}
25384_ACEOF
25385rm -f conftest.$ac_objext conftest$ac_exeext
25386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 25387 (eval $ac_link) 2>conftest.er1
e6cc62c6 25388 ac_status=$?
f95e4495
VS
25389 grep -v '^ *+' conftest.er1 >conftest.err
25390 rm -f conftest.er1
25391 cat conftest.err >&5
e6cc62c6
VS
25392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25393 (exit $ac_status); } &&
f95e4495
VS
25394 { ac_try='test -z "$ac_c_werror_flag"
25395 || test ! -s conftest.err'
25396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25397 (eval $ac_try) 2>&5
25398 ac_status=$?
25399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25400 (exit $ac_status); }; } &&
25401 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25403 (eval $ac_try) 2>&5
25404 ac_status=$?
25405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406 (exit $ac_status); }; }; then
25407 ac_cv_lib_ipc_shmat=yes
25408else
25409 echo "$as_me: failed program was:" >&5
25410sed 's/^/| /' conftest.$ac_ext >&5
25411
25412ac_cv_lib_ipc_shmat=no
25413fi
f95e4495
VS
25414rm -f conftest.err conftest.$ac_objext \
25415 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25416LIBS=$ac_check_lib_save_LIBS
25417fi
25418echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25419echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25420if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 25421 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 25422fi
90dd450c 25423
90dd450c 25424 fi
21d1c967 25425 fi
10f2d63a 25426
21d1c967 25427 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 25428 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
25429 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25430 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25431 # check for ICE first), but we must link in the order -lSM -lICE or
25432 # we get undefined symbols. So assume we have SM if we have ICE.
25433 # These have to be linked with before -lX11, unlike the other
25434 # libraries we check for below, so use a different variable.
e6cc62c6
VS
25435 # John Interrante, Karl Berry
25436 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25437echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25438if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25439 echo $ECHO_N "(cached) $ECHO_C" >&6
25440else
25441 ac_check_lib_save_LIBS=$LIBS
f09359cf 25442LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 25443cat >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. */
25449
21d1c967 25450/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25451#ifdef __cplusplus
25452extern "C"
25453#endif
21d1c967 25454/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25455 builtin and then its argument prototype would still apply. */
25456char IceConnectionNumber ();
25457int
25458main ()
25459{
25460IceConnectionNumber ();
25461 ;
25462 return 0;
25463}
25464_ACEOF
25465rm -f conftest.$ac_objext conftest$ac_exeext
25466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 25467 (eval $ac_link) 2>conftest.er1
e6cc62c6 25468 ac_status=$?
f95e4495
VS
25469 grep -v '^ *+' conftest.er1 >conftest.err
25470 rm -f conftest.er1
25471 cat conftest.err >&5
e6cc62c6
VS
25472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25473 (exit $ac_status); } &&
f95e4495
VS
25474 { ac_try='test -z "$ac_c_werror_flag"
25475 || test ! -s conftest.err'
25476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25477 (eval $ac_try) 2>&5
25478 ac_status=$?
25479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25480 (exit $ac_status); }; } &&
25481 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25483 (eval $ac_try) 2>&5
25484 ac_status=$?
25485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25486 (exit $ac_status); }; }; then
25487 ac_cv_lib_ICE_IceConnectionNumber=yes
25488else
25489 echo "$as_me: failed program was:" >&5
25490sed 's/^/| /' conftest.$ac_ext >&5
25491
25492ac_cv_lib_ICE_IceConnectionNumber=no
25493fi
f95e4495
VS
25494rm -f conftest.err conftest.$ac_objext \
25495 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25496LIBS=$ac_check_lib_save_LIBS
25497fi
25498echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25499echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25500if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 25501 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 25502fi
21d1c967 25503
e6cc62c6 25504 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 25505
10f2d63a
VZ
25506fi
25507
8284b0c5 25508
21d1c967 25509 if test "$no_x" = "yes"; then
e6cc62c6
VS
25510 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25511echo "$as_me: error: X11 not found" >&2;}
25512 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
25513 fi
25514
2b5f62a0
VZ
25515 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
25516 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
25517 AFMINSTALL=afminstall
25518 COMPILED_X_PROGRAM=0
25519
e6cc62c6
VS
25520 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25521echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
25522
21d1c967 25523ac_find_includes=
2b5f62a0 25524for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
25525 do
25526 if test -f "$ac_dir/Xm/Xm.h"; then
25527 ac_find_includes=$ac_dir
25528 break
25529 fi
25530 done
25531
25532 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
25533 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25534echo "${ECHO_T}found in $ac_find_includes" >&6
25535
2b5f62a0 25536 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
25537 ac_path_to_include=""
25538 else
2b5f62a0
VZ
25539 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25540 result=$?
25541 if test $result = 0; then
25542 ac_path_to_include=""
25543 else
25544 ac_path_to_include=" -I$ac_find_includes"
25545 fi
dd0e4a90
VZ
25546 fi
25547
25548 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 25549 else
e6cc62c6 25550 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25551/* confdefs.h. */
25552_ACEOF
25553cat confdefs.h >>conftest.$ac_ext
25554cat >>conftest.$ac_ext <<_ACEOF
25555/* end confdefs.h. */
21d1c967
GD
25556
25557 #include <Xm/Xm.h>
e6cc62c6
VS
25558
25559int
25560main ()
25561{
21d1c967
GD
25562
25563 int version;
25564 version = xmUseVersion;
e6cc62c6
VS
25565
25566 ;
25567 return 0;
25568}
25569_ACEOF
25570rm -f conftest.$ac_objext
25571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 25572 (eval $ac_compile) 2>conftest.er1
e6cc62c6 25573 ac_status=$?
f95e4495
VS
25574 grep -v '^ *+' conftest.er1 >conftest.err
25575 rm -f conftest.er1
25576 cat conftest.err >&5
e6cc62c6
VS
25577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25578 (exit $ac_status); } &&
f95e4495
VS
25579 { ac_try='test -z "$ac_c_werror_flag"
25580 || test ! -s conftest.err'
25581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25582 (eval $ac_try) 2>&5
25583 ac_status=$?
25584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25585 (exit $ac_status); }; } &&
25586 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25588 (eval $ac_try) 2>&5
25589 ac_status=$?
25590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591 (exit $ac_status); }; }; then
25592
25593 echo "$as_me:$LINENO: result: found in default search path" >&5
25594echo "${ECHO_T}found in default search path" >&6
21d1c967 25595 COMPILED_X_PROGRAM=1
e6cc62c6 25596
10f2d63a 25597else
e6cc62c6
VS
25598 echo "$as_me: failed program was:" >&5
25599sed 's/^/| /' conftest.$ac_ext >&5
25600
25601
25602 echo "$as_me:$LINENO: result: no" >&5
25603echo "${ECHO_T}no" >&6
25604 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25605echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25606 { (exit 1); exit 1; }; }
25607
25608
10f2d63a 25609fi
f95e4495 25610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967 25611 fi
10f2d63a 25612
21d1c967 25613 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
25614 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25615echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25616
21d1c967 25617ac_find_libraries=
2b5f62a0 25618for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25619 do
25620 for ac_extension in a so sl dylib; do
25621 if test -f "$ac_dir/libXm.$ac_extension"; then
25622 ac_find_libraries=$ac_dir
25623 break 2
25624 fi
25625 done
25626 done
25627
25628 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
25629 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25630echo "${ECHO_T}found at $ac_find_libraries" >&6
25631
21d1c967 25632
21d1c967
GD
25633 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25634 result=$?
25635 if test $result = 0; then
25636 ac_path_to_link=""
25637 else
25638 ac_path_to_link=" -L$ac_find_libraries"
25639 fi
25640
21d1c967 25641 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 25642 else
dd0e4a90
VZ
25643 save_CFLAGS=$CFLAGS
25644 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25645
e6cc62c6 25646 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25647/* confdefs.h. */
25648_ACEOF
25649cat confdefs.h >>conftest.$ac_ext
25650cat >>conftest.$ac_ext <<_ACEOF
25651/* end confdefs.h. */
21d1c967
GD
25652
25653 #include <Xm/Xm.h>
e6cc62c6
VS
25654
25655int
25656main ()
25657{
21d1c967
GD
25658
25659 int version;
25660 version = xmUseVersion;
e6cc62c6
VS
25661
25662 ;
25663 return 0;
25664}
25665_ACEOF
25666rm -f conftest.$ac_objext
25667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 25668 (eval $ac_compile) 2>conftest.er1
e6cc62c6 25669 ac_status=$?
f95e4495
VS
25670 grep -v '^ *+' conftest.er1 >conftest.err
25671 rm -f conftest.er1
25672 cat conftest.err >&5
e6cc62c6
VS
25673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25674 (exit $ac_status); } &&
f95e4495
VS
25675 { ac_try='test -z "$ac_c_werror_flag"
25676 || test ! -s conftest.err'
25677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25678 (eval $ac_try) 2>&5
25679 ac_status=$?
25680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25681 (exit $ac_status); }; } &&
25682 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25684 (eval $ac_try) 2>&5
25685 ac_status=$?
25686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25687 (exit $ac_status); }; }; then
25688
25689 echo "$as_me:$LINENO: result: found in default search path" >&5
25690echo "${ECHO_T}found in default search path" >&6
21d1c967 25691 COMPILED_X_PROGRAM=1
e6cc62c6 25692
d836ee96 25693else
e6cc62c6
VS
25694 echo "$as_me: failed program was:" >&5
25695sed 's/^/| /' conftest.$ac_ext >&5
25696
25697
25698 echo "$as_me:$LINENO: result: no" >&5
25699echo "${ECHO_T}no" >&6
25700 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
25701echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
25702 { (exit 1); exit 1; }; }
25703
25704
d836ee96 25705fi
f95e4495 25706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
25707
25708 CFLAGS=$save_CFLAGS
21d1c967
GD
25709 fi
25710 fi
25711
e6cc62c6
VS
25712 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
25713echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
25714 libp_link=""
25715 libsm_ice_link=""
25716 libs_found=0
25717 for libp in "" " -lXp"; do
25718 if test "$libs_found" = "0"; then
7015ef3a 25719 for libsm_ice in "" " -lSM -lICE"; do
e26c13cf 25720 if test "$libs_found" = "0"; then
6a30f1c8 25721 save_LIBS="$LIBS"
93a543aa 25722 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
25723 save_CFLAGS=$CFLAGS
25724 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25725
e6cc62c6 25726 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25727/* confdefs.h. */
25728_ACEOF
25729cat confdefs.h >>conftest.$ac_ext
25730cat >>conftest.$ac_ext <<_ACEOF
25731/* end confdefs.h. */
17234b26 25732
6a30f1c8
MB
25733 #include <Xm/Xm.h>
25734 #include <Xm/List.h>
e6cc62c6
VS
25735
25736int
25737main ()
25738{
6a30f1c8
MB
25739
25740 XmString string = NULL;
25741 Widget w = NULL;
25742 int position = 0;
25743 XmListAddItem(w, string, position);
e6cc62c6
VS
25744
25745 ;
25746 return 0;
25747}
25748_ACEOF
25749rm -f conftest.$ac_objext conftest$ac_exeext
25750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 25751 (eval $ac_link) 2>conftest.er1
e6cc62c6 25752 ac_status=$?
f95e4495
VS
25753 grep -v '^ *+' conftest.er1 >conftest.err
25754 rm -f conftest.er1
25755 cat conftest.err >&5
e6cc62c6
VS
25756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25757 (exit $ac_status); } &&
f95e4495
VS
25758 { ac_try='test -z "$ac_c_werror_flag"
25759 || test ! -s conftest.err'
25760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25761 (eval $ac_try) 2>&5
25762 ac_status=$?
25763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25764 (exit $ac_status); }; } &&
25765 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25767 (eval $ac_try) 2>&5
25768 ac_status=$?
25769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770 (exit $ac_status); }; }; then
25771
6a30f1c8
MB
25772 libp_link="$libp"
25773 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
25774 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
25775echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 25776 libs_found=1
e6cc62c6 25777
6a30f1c8 25778else
e6cc62c6
VS
25779 echo "$as_me: failed program was:" >&5
25780sed 's/^/| /' conftest.$ac_ext >&5
25781
25782
25783
6a30f1c8 25784fi
f95e4495
VS
25785rm -f conftest.err conftest.$ac_objext \
25786 conftest$ac_exeext conftest.$ac_ext
dd0e4a90 25787
6a30f1c8 25788 LIBS="$save_LIBS"
dd0e4a90 25789 CFLAGS=$save_CFLAGS
6a30f1c8
MB
25790 fi
25791 done
25792 fi
25793 done
25794
25795 if test "$libs_found" = "0"; then
e6cc62c6
VS
25796 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
25797echo "${ECHO_T}can't find the right libraries" >&6
25798 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
25799echo "$as_me: error: can't link a simple motif program" >&2;}
25800 { (exit 1); exit 1; }; }
6a30f1c8
MB
25801 fi
25802
da494b40
MB
25803 save_CFLAGS=$CFLAGS
25804 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
25805 echo "$as_me:$LINENO: checking for Motif 2" >&5
25806echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
25807 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25808/* confdefs.h. */
25809_ACEOF
25810cat confdefs.h >>conftest.$ac_ext
25811cat >>conftest.$ac_ext <<_ACEOF
25812/* end confdefs.h. */
da494b40
MB
25813
25814 #include <Xm/Xm.h>
e6cc62c6
VS
25815
25816int
25817main ()
25818{
da494b40
MB
25819
25820 #if XmVersion < 2000
25821 #error "Not Motif 2"
25822 #endif
e6cc62c6
VS
25823
25824 ;
25825 return 0;
25826}
25827_ACEOF
25828rm -f conftest.$ac_objext
25829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 25830 (eval $ac_compile) 2>conftest.er1
e6cc62c6 25831 ac_status=$?
f95e4495
VS
25832 grep -v '^ *+' conftest.er1 >conftest.err
25833 rm -f conftest.er1
25834 cat conftest.err >&5
e6cc62c6
VS
25835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25836 (exit $ac_status); } &&
f95e4495
VS
25837 { ac_try='test -z "$ac_c_werror_flag"
25838 || test ! -s conftest.err'
25839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25840 (eval $ac_try) 2>&5
25841 ac_status=$?
25842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25843 (exit $ac_status); }; } &&
25844 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25846 (eval $ac_try) 2>&5
25847 ac_status=$?
25848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25849 (exit $ac_status); }; }; then
25850
25851 cat >>confdefs.h <<\_ACEOF
da494b40 25852#define __WXMOTIF20__ 1
e6cc62c6
VS
25853_ACEOF
25854
25855 echo "$as_me:$LINENO: result: found" >&5
25856echo "${ECHO_T}found" >&6
da494b40 25857
da494b40 25858else
e6cc62c6
VS
25859 echo "$as_me: failed program was:" >&5
25860sed 's/^/| /' conftest.$ac_ext >&5
25861
25862
25863 cat >>confdefs.h <<\_ACEOF
da494b40 25864#define __WXMOTIF20__ 0
e6cc62c6
VS
25865_ACEOF
25866
25867 echo "$as_me:$LINENO: result: not found" >&5
25868echo "${ECHO_T}not found" >&6
da494b40 25869
da494b40 25870fi
f95e4495 25871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
da494b40
MB
25872 CFLAGS=$save_CFLAGS
25873
93a543aa 25874 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 25875 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
25876 TOOLKIT=MOTIF
25877 GUIDIST=MOTIF_DIST
f7f78039
MB
25878 fi
25879
89fe663f
VZ
25880 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
25881 if test "$wxUSE_LIBXPM" = "sys"; then
25882 echo "$as_me:$LINENO: checking for Xpm library" >&5
25883echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
25884
25885ac_find_libraries=
25886for ac_dir in $SEARCH_LIB /usr/lib;
25887 do
25888 for ac_extension in a so sl dylib; do
25889 if test -f "$ac_dir/libXpm.$ac_extension"; then
25890 ac_find_libraries=$ac_dir
25891 break 2
25892 fi
25893 done
25894 done
25895
25896 if test "$ac_find_libraries" != "" ; then
25897
25898 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25899 result=$?
25900 if test $result = 0; then
25901 ac_path_to_link=""
25902 else
25903 ac_path_to_link=" -L$ac_find_libraries"
25904 fi
25905
25906 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25907 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25908echo "${ECHO_T}found at $ac_find_libraries" >&6
25909
25910 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
25911echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
25912if test "${wx_cv_x11_xpm_h+set}" = set; then
25913 echo $ECHO_N "(cached) $ECHO_C" >&6
25914else
25915
25916 save_CFLAGS=$CFLAGS
25917 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25918
25919 cat >conftest.$ac_ext <<_ACEOF
89fe663f
VZ
25920/* confdefs.h. */
25921_ACEOF
25922cat confdefs.h >>conftest.$ac_ext
25923cat >>conftest.$ac_ext <<_ACEOF
25924/* end confdefs.h. */
25925
25926 #include <X11/xpm.h>
25927
25928int
25929main ()
25930{
25931
25932 int version;
25933 version = XpmLibraryVersion();
25934
25935 ;
25936 return 0;
25937}
25938_ACEOF
25939rm -f conftest.$ac_objext
25940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 25941 (eval $ac_compile) 2>conftest.er1
89fe663f 25942 ac_status=$?
f95e4495
VS
25943 grep -v '^ *+' conftest.er1 >conftest.err
25944 rm -f conftest.er1
25945 cat conftest.err >&5
89fe663f
VZ
25946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947 (exit $ac_status); } &&
f95e4495
VS
25948 { ac_try='test -z "$ac_c_werror_flag"
25949 || test ! -s conftest.err'
25950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25951 (eval $ac_try) 2>&5
25952 ac_status=$?
25953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25954 (exit $ac_status); }; } &&
25955 { ac_try='test -s conftest.$ac_objext'
89fe663f
VZ
25956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25957 (eval $ac_try) 2>&5
25958 ac_status=$?
25959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25960 (exit $ac_status); }; }; then
25961 wx_cv_x11_xpm_h=yes
25962else
25963 echo "$as_me: failed program was:" >&5
25964sed 's/^/| /' conftest.$ac_ext >&5
25965
25966wx_cv_x11_xpm_h=no
25967
25968fi
f95e4495 25969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
25970
25971 CFLAGS=$save_CFLAGS
25972
25973
25974fi
25975echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
25976echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
25977
25978 if test $wx_cv_x11_xpm_h = "yes"; then
93a543aa 25979 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
89fe663f
VZ
25980 cat >>confdefs.h <<\_ACEOF
25981#define wxHAVE_LIB_XPM 1
25982_ACEOF
25983
25984 else
25985 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
25986echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
25987 fi
25988 fi
25989
25990 fi
f7f78039 25991
89fe663f
VZ
25992 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
25993echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
25994if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
25995 echo $ECHO_N "(cached) $ECHO_C" >&6
25996else
25997 ac_check_lib_save_LIBS=$LIBS
25998LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
25999cat >conftest.$ac_ext <<_ACEOF
89fe663f
VZ
26000/* confdefs.h. */
26001_ACEOF
26002cat confdefs.h >>conftest.$ac_ext
26003cat >>conftest.$ac_ext <<_ACEOF
26004/* end confdefs.h. */
26005
26006/* Override any gcc2 internal prototype to avoid an error. */
26007#ifdef __cplusplus
26008extern "C"
26009#endif
26010/* We use char because int might match the return type of a gcc2
26011 builtin and then its argument prototype would still apply. */
26012char XShapeQueryExtension ();
26013int
26014main ()
26015{
26016XShapeQueryExtension ();
26017 ;
26018 return 0;
26019}
26020_ACEOF
26021rm -f conftest.$ac_objext conftest$ac_exeext
26022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 26023 (eval $ac_link) 2>conftest.er1
89fe663f 26024 ac_status=$?
f95e4495
VS
26025 grep -v '^ *+' conftest.er1 >conftest.err
26026 rm -f conftest.er1
26027 cat conftest.err >&5
89fe663f
VZ
26028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26029 (exit $ac_status); } &&
f95e4495
VS
26030 { ac_try='test -z "$ac_c_werror_flag"
26031 || test ! -s conftest.err'
26032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26033 (eval $ac_try) 2>&5
26034 ac_status=$?
26035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26036 (exit $ac_status); }; } &&
26037 { ac_try='test -s conftest$ac_exeext'
89fe663f
VZ
26038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26039 (eval $ac_try) 2>&5
26040 ac_status=$?
26041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042 (exit $ac_status); }; }; then
26043 ac_cv_lib_Xext_XShapeQueryExtension=yes
26044else
26045 echo "$as_me: failed program was:" >&5
26046sed 's/^/| /' conftest.$ac_ext >&5
26047
26048ac_cv_lib_Xext_XShapeQueryExtension=no
26049fi
f95e4495
VS
26050rm -f conftest.err conftest.$ac_objext \
26051 conftest$ac_exeext conftest.$ac_ext
89fe663f
VZ
26052LIBS=$ac_check_lib_save_LIBS
26053fi
26054echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
26055echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
26056if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
26057
26058 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
26059 wxHAVE_XEXT_LIB=1
26060
26061fi
26062
26063
26064 if test "$wxHAVE_XEXT_LIB" = 1; then
26065 save_CFLAGS="$CFLAGS"
26066 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
26067
26068 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
e6cc62c6 26069echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
89fe663f 26070 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26071/* confdefs.h. */
26072_ACEOF
26073cat confdefs.h >>conftest.$ac_ext
26074cat >>conftest.$ac_ext <<_ACEOF
26075/* end confdefs.h. */
26076
89fe663f
VZ
26077 #include <X11/Xlib.h>
26078 #include <X11/extensions/shape.h>
e6cc62c6
VS
26079
26080int
26081main ()
26082{
f7f78039 26083
89fe663f
VZ
26084 int dummy1, dummy2;
26085 XShapeQueryExtension((Display*)NULL,
26086 (int*)NULL, (int*)NULL);
e6cc62c6
VS
26087
26088 ;
26089 return 0;
26090}
26091_ACEOF
26092rm -f conftest.$ac_objext
26093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 26094 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26095 ac_status=$?
f95e4495
VS
26096 grep -v '^ *+' conftest.er1 >conftest.err
26097 rm -f conftest.er1
26098 cat conftest.err >&5
e6cc62c6
VS
26099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26100 (exit $ac_status); } &&
f95e4495
VS
26101 { ac_try='test -z "$ac_c_werror_flag"
26102 || test ! -s conftest.err'
26103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26104 (eval $ac_try) 2>&5
26105 ac_status=$?
26106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107 (exit $ac_status); }; } &&
26108 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26110 (eval $ac_try) 2>&5
26111 ac_status=$?
26112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26113 (exit $ac_status); }; }; then
26114
89fe663f 26115 cat >>confdefs.h <<\_ACEOF
f7f78039 26116#define HAVE_XSHAPE 1
e6cc62c6
VS
26117_ACEOF
26118
89fe663f 26119 echo "$as_me:$LINENO: result: found" >&5
e6cc62c6 26120echo "${ECHO_T}found" >&6
f7f78039 26121
f7f78039 26122else
e6cc62c6
VS
26123 echo "$as_me: failed program was:" >&5
26124sed 's/^/| /' conftest.$ac_ext >&5
26125
26126
89fe663f 26127 echo "$as_me:$LINENO: result: not found" >&5
e6cc62c6
VS
26128echo "${ECHO_T}not found" >&6
26129
f7f78039 26130fi
f95e4495 26131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
26132 CFLAGS="$save_CFLAGS"
26133
26134 fi
21d1c967
GD
26135 fi
26136
26137 if test "$wxUSE_MAC" = 1; then
8e91c6f3
VZ
26138 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26139echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26140 if test "$GCC" = yes; then
26141 echo "$as_me:$LINENO: result: gcc" >&5
26142echo "${ECHO_T}gcc" >&6
26143 CPPFLAGS_PASCAL="-fpascal-strings"
26144 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26145 echo "$as_me:$LINENO: result: xlc" >&5
26146echo "${ECHO_T}xlc" >&6
26147 CPPFLAGS_PASCAL="-qmacpstr"
26148 else
26149 echo "$as_me:$LINENO: result: none" >&5
26150echo "${ECHO_T}none" >&6
26151 fi
26152
26153 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 26154
0c98a14e 26155 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
26156 TOOLKIT=MAC
26157 GUIDIST=MACX_DIST
cf615ebb 26158 WXBASEPORT="_carbon"
21d1c967
GD
26159 fi
26160
ac0c4cc3
DE
26161 if test "$wxUSE_COCOA" = 1; then
26162 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26163 TOOLKIT=COCOA
26164 GUIDIST=COCOA_DIST
26165 fi
26166
21d1c967
GD
26167 if test "$wxUSE_PM" = 1; then
26168 TOOLKIT=PM
26169 GUIDIST=GTK_DIST
26170 fi
26171
26172 if test "$TOOLKIT" = "PM" ; then
26173 TOOLKIT_DIR="os2"
26174 else
26175 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26176 fi
26177
26178 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26179
26180 if test "$wxUSE_UNIVERSAL" = "yes"; then
26181 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26182
26183 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26184 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26185
26186 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26187 if test "$wxUSE_X11" = 1; then
26188 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26189 else
26190 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26191 fi
26192 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26193 WIDGET_SET=univ
26194 else
26195 ALL_OBJECTS="\$(GUIOBJS)"
26196 ALL_SOURCES="\$(ALL_SOURCES)"
26197 ALL_HEADERS="\$(ALL_HEADERS)"
26198 fi
26199
26200 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26201
26202 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26203 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26204 fi
26205
26206 if test "$wxUSE_HTML" = "yes"; then
26207 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26208 fi
26209
26210 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26211 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26212 fi
26213 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26214 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26215 fi
26216 if test "$wxUSE_LIBPNG" = "builtin" ; then
26217 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26218 fi
26219
26220 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26221 DISTDIR="wx\$(TOOLKIT)"
90dd450c 26222else
21d1c967
GD
26223 USE_GUI=0
26224
26225 TOOLKIT_DIR="base"
26226
26227 if test "$USE_WIN32" = 1 ; then
26228 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26229 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26230
26231 TOOLKIT="MSW"
26232 else
26233 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26234 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26235 fi
26236
26237 ALL_SOURCES="\$(ALL_SOURCES)"
26238 ALL_HEADERS="\$(ALL_HEADERS)"
26239
26240 PORT_FILES="\${top_srcdir}/src/files.lst"
26241
26242 GUIDIST="BASE_DIST"
26243 DISTDIR="wxBase"
d836ee96
VZ
26244fi
26245
8284b0c5 26246
8647bec6
RG
26247
26248
26249IODBC_C_SRC=""
26250
26251
26252if test "$TOOLKIT" != "MSW" ; then
26253
bb41dcbe 26254 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
8647bec6 26255
bb41dcbe 26256 if test "${ac_cv_header_sql_h+set}" = set; then
e6cc62c6
VS
26257 echo "$as_me:$LINENO: checking for sql.h" >&5
26258echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26259if test "${ac_cv_header_sql_h+set}" = set; then
26260 echo $ECHO_N "(cached) $ECHO_C" >&6
26261fi
26262echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26263echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26264else
26265 # Is the header compilable?
26266echo "$as_me:$LINENO: checking sql.h usability" >&5
26267echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26268cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26269/* confdefs.h. */
26270_ACEOF
26271cat confdefs.h >>conftest.$ac_ext
26272cat >>conftest.$ac_ext <<_ACEOF
26273/* end confdefs.h. */
26274$ac_includes_default
8647bec6 26275#include <sql.h>
e6cc62c6
VS
26276_ACEOF
26277rm -f conftest.$ac_objext
26278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 26279 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26280 ac_status=$?
f95e4495
VS
26281 grep -v '^ *+' conftest.er1 >conftest.err
26282 rm -f conftest.er1
26283 cat conftest.err >&5
e6cc62c6
VS
26284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26285 (exit $ac_status); } &&
f95e4495
VS
26286 { ac_try='test -z "$ac_c_werror_flag"
26287 || test ! -s conftest.err'
26288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26289 (eval $ac_try) 2>&5
26290 ac_status=$?
26291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26292 (exit $ac_status); }; } &&
26293 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26295 (eval $ac_try) 2>&5
26296 ac_status=$?
26297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26298 (exit $ac_status); }; }; then
26299 ac_header_compiler=yes
26300else
26301 echo "$as_me: failed program was:" >&5
26302sed 's/^/| /' conftest.$ac_ext >&5
26303
26304ac_header_compiler=no
26305fi
f95e4495 26306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
26307echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26308echo "${ECHO_T}$ac_header_compiler" >&6
26309
26310# Is the header present?
26311echo "$as_me:$LINENO: checking sql.h presence" >&5
26312echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26313cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26314/* confdefs.h. */
26315_ACEOF
26316cat confdefs.h >>conftest.$ac_ext
26317cat >>conftest.$ac_ext <<_ACEOF
26318/* end confdefs.h. */
26319#include <sql.h>
26320_ACEOF
26321if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26322 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26323 ac_status=$?
26324 grep -v '^ *+' conftest.er1 >conftest.err
26325 rm -f conftest.er1
26326 cat conftest.err >&5
26327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26328 (exit $ac_status); } >/dev/null; then
26329 if test -s conftest.err; then
26330 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 26331 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
26332 else
26333 ac_cpp_err=
26334 fi
26335else
26336 ac_cpp_err=yes
26337fi
26338if test -z "$ac_cpp_err"; then
26339 ac_header_preproc=yes
26340else
26341 echo "$as_me: failed program was:" >&5
26342sed 's/^/| /' conftest.$ac_ext >&5
26343
26344 ac_header_preproc=no
26345fi
26346rm -f conftest.err conftest.$ac_ext
26347echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26348echo "${ECHO_T}$ac_header_preproc" >&6
26349
26350# So? What about this header?
f95e4495
VS
26351case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26352 yes:no: )
e6cc62c6
VS
26353 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26354echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
26355 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26356echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26357 ac_header_preproc=yes
e6cc62c6 26358 ;;
f95e4495 26359 no:yes:* )
e6cc62c6
VS
26360 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26361echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
f95e4495
VS
26362 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26363echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26364 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26365echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26366 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26367echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
26368 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26369echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
26370 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26371echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
26372 (
26373 cat <<\_ASBOX
f95e4495
VS
26374## ----------------------------------------- ##
26375## Report this to wx-dev@lists.wxwindows.org ##
26376## ----------------------------------------- ##
e6cc62c6
VS
26377_ASBOX
26378 ) |
26379 sed "s/^/$as_me: WARNING: /" >&2
26380 ;;
26381esac
26382echo "$as_me:$LINENO: checking for sql.h" >&5
26383echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26384if test "${ac_cv_header_sql_h+set}" = set; then
26385 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 26386else
e6cc62c6
VS
26387 ac_cv_header_sql_h=$ac_header_preproc
26388fi
26389echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26390echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26391
bb41dcbe
VS
26392fi
26393if test $ac_cv_header_sql_h = yes; then
26394 found_sql_h=1
8647bec6
RG
26395fi
26396
e6cc62c6 26397
bb41dcbe 26398 if test "x$found_sql_h" = "x1" ; then
e46d2a18
VS
26399 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26400echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26401if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
e6cc62c6 26402 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 26403else
bb41dcbe 26404 ac_check_lib_save_LIBS=$LIBS
e46d2a18 26405LIBS="-liodbc $LIBS"
e6cc62c6 26406cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26407/* confdefs.h. */
26408_ACEOF
26409cat confdefs.h >>conftest.$ac_ext
26410cat >>conftest.$ac_ext <<_ACEOF
26411/* end confdefs.h. */
26412
8647bec6 26413/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26414#ifdef __cplusplus
26415extern "C"
26416#endif
8647bec6 26417/* We use char because int might match the return type of a gcc2
e6cc62c6 26418 builtin and then its argument prototype would still apply. */
e46d2a18 26419char SQLAllocEnv ();
e6cc62c6
VS
26420int
26421main ()
26422{
e46d2a18 26423SQLAllocEnv ();
e6cc62c6
VS
26424 ;
26425 return 0;
26426}
26427_ACEOF
26428rm -f conftest.$ac_objext conftest$ac_exeext
26429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 26430 (eval $ac_link) 2>conftest.er1
e6cc62c6 26431 ac_status=$?
f95e4495
VS
26432 grep -v '^ *+' conftest.er1 >conftest.err
26433 rm -f conftest.er1
26434 cat conftest.err >&5
e6cc62c6
VS
26435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26436 (exit $ac_status); } &&
f95e4495
VS
26437 { ac_try='test -z "$ac_c_werror_flag"
26438 || test ! -s conftest.err'
26439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26440 (eval $ac_try) 2>&5
26441 ac_status=$?
26442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443 (exit $ac_status); }; } &&
26444 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26446 (eval $ac_try) 2>&5
26447 ac_status=$?
26448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26449 (exit $ac_status); }; }; then
e46d2a18 26450 ac_cv_lib_iodbc_SQLAllocEnv=yes
8647bec6 26451else
e6cc62c6
VS
26452 echo "$as_me: failed program was:" >&5
26453sed 's/^/| /' conftest.$ac_ext >&5
26454
e46d2a18 26455ac_cv_lib_iodbc_SQLAllocEnv=no
8647bec6 26456fi
f95e4495
VS
26457rm -f conftest.err conftest.$ac_objext \
26458 conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
26459LIBS=$ac_check_lib_save_LIBS
26460fi
e46d2a18
VS
26461echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26462echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26463if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
26464 ODBC_LINK=" -liodbc"
26465else
26466
e46d2a18
VS
26467 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26468echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26469if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
26470 echo $ECHO_N "(cached) $ECHO_C" >&6
26471else
26472 ac_check_lib_save_LIBS=$LIBS
e46d2a18 26473LIBS="-lunixodbc $LIBS"
bb41dcbe 26474cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26475/* confdefs.h. */
26476_ACEOF
26477cat confdefs.h >>conftest.$ac_ext
26478cat >>conftest.$ac_ext <<_ACEOF
26479/* end confdefs.h. */
26480
8647bec6 26481/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26482#ifdef __cplusplus
26483extern "C"
26484#endif
8647bec6 26485/* We use char because int might match the return type of a gcc2
e6cc62c6 26486 builtin and then its argument prototype would still apply. */
e46d2a18 26487char SQLAllocEnv ();
e6cc62c6
VS
26488int
26489main ()
26490{
e46d2a18 26491SQLAllocEnv ();
e6cc62c6
VS
26492 ;
26493 return 0;
26494}
26495_ACEOF
26496rm -f conftest.$ac_objext conftest$ac_exeext
26497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 26498 (eval $ac_link) 2>conftest.er1
e6cc62c6 26499 ac_status=$?
f95e4495
VS
26500 grep -v '^ *+' conftest.er1 >conftest.err
26501 rm -f conftest.er1
26502 cat conftest.err >&5
e6cc62c6
VS
26503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26504 (exit $ac_status); } &&
f95e4495
VS
26505 { ac_try='test -z "$ac_c_werror_flag"
26506 || test ! -s conftest.err'
26507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26508 (eval $ac_try) 2>&5
26509 ac_status=$?
26510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26511 (exit $ac_status); }; } &&
26512 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26514 (eval $ac_try) 2>&5
26515 ac_status=$?
26516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26517 (exit $ac_status); }; }; then
e46d2a18 26518 ac_cv_lib_unixodbc_SQLAllocEnv=yes
8647bec6 26519else
e6cc62c6
VS
26520 echo "$as_me: failed program was:" >&5
26521sed 's/^/| /' conftest.$ac_ext >&5
26522
e46d2a18 26523ac_cv_lib_unixodbc_SQLAllocEnv=no
8647bec6 26524fi
f95e4495
VS
26525rm -f conftest.err conftest.$ac_objext \
26526 conftest$ac_exeext conftest.$ac_ext
bb41dcbe 26527LIBS=$ac_check_lib_save_LIBS
e6cc62c6 26528fi
e46d2a18
VS
26529echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26530echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26531if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
26532 ODBC_LINK=" -lunixodbc"
26533else
26534
e46d2a18
VS
26535 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26536echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26537if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
26538 echo $ECHO_N "(cached) $ECHO_C" >&6
26539else
26540 ac_check_lib_save_LIBS=$LIBS
e46d2a18 26541LIBS="-lodbc $LIBS"
bb41dcbe 26542cat >conftest.$ac_ext <<_ACEOF
bb41dcbe
VS
26543/* confdefs.h. */
26544_ACEOF
26545cat confdefs.h >>conftest.$ac_ext
26546cat >>conftest.$ac_ext <<_ACEOF
26547/* end confdefs.h. */
e6cc62c6 26548
bb41dcbe
VS
26549/* Override any gcc2 internal prototype to avoid an error. */
26550#ifdef __cplusplus
26551extern "C"
26552#endif
26553/* We use char because int might match the return type of a gcc2
26554 builtin and then its argument prototype would still apply. */
e46d2a18 26555char SQLAllocEnv ();
bb41dcbe
VS
26556int
26557main ()
26558{
e46d2a18 26559SQLAllocEnv ();
bb41dcbe
VS
26560 ;
26561 return 0;
26562}
26563_ACEOF
26564rm -f conftest.$ac_objext conftest$ac_exeext
26565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 26566 (eval $ac_link) 2>conftest.er1
bb41dcbe 26567 ac_status=$?
f95e4495
VS
26568 grep -v '^ *+' conftest.er1 >conftest.err
26569 rm -f conftest.er1
26570 cat conftest.err >&5
bb41dcbe
VS
26571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572 (exit $ac_status); } &&
f95e4495
VS
26573 { ac_try='test -z "$ac_c_werror_flag"
26574 || test ! -s conftest.err'
26575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26576 (eval $ac_try) 2>&5
26577 ac_status=$?
26578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26579 (exit $ac_status); }; } &&
26580 { ac_try='test -s conftest$ac_exeext'
bb41dcbe
VS
26581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26582 (eval $ac_try) 2>&5
26583 ac_status=$?
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); }; }; then
e46d2a18 26586 ac_cv_lib_odbc_SQLAllocEnv=yes
e6cc62c6 26587else
bb41dcbe
VS
26588 echo "$as_me: failed program was:" >&5
26589sed 's/^/| /' conftest.$ac_ext >&5
26590
e46d2a18 26591ac_cv_lib_odbc_SQLAllocEnv=no
bb41dcbe 26592fi
f95e4495
VS
26593rm -f conftest.err conftest.$ac_objext \
26594 conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
26595LIBS=$ac_check_lib_save_LIBS
26596fi
e46d2a18
VS
26597echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26598echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26599if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
bb41dcbe
VS
26600 ODBC_LINK=" -lodbc"
26601fi
26602
26603
26604fi
e6cc62c6 26605
e6cc62c6 26606
8647bec6 26607fi
e6cc62c6 26608
fd3d7534 26609 fi
bb41dcbe
VS
26610 if test "x$ODBC_LINK" = "x" ; then
26611 if test "$wxUSE_ODBC" = "sys" ; then
26612 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26613echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26614 { (exit 1); exit 1; }; }
26615 else
26616 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26617echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26618 wxUSE_ODBC=builtin
26619 fi
26620 else
26621 wxUSE_ODBC=sys
8647bec6 26622 fi
8647bec6 26623 fi
bb41dcbe
VS
26624 if test "$wxUSE_ODBC" != "no" ; then
26625 cat >>confdefs.h <<\_ACEOF
26626#define wxUSE_ODBC 1
26627_ACEOF
e6cc62c6 26628
0bdb08e7
VS
26629 if test "$wxUSE_ODBC" = "builtin" ; then
26630 cat >>confdefs.h <<\_ACEOF
26631#define wxUSE_BUILTIN_IODBC 1
26632_ACEOF
26633
26634 fi
bb41dcbe
VS
26635 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26636
26637 WXODBCFLAG="-D_IODBC_"
26638 fi
6232543b 26639fi
21d1c967
GD
26640
26641if test "$wxUSE_REGEX" = "builtin" ; then
26642 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 26643fi
21d1c967
GD
26644if test "$wxUSE_ZLIB" = "builtin" ; then
26645 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
26646fi
26647
74500461
VS
26648if test "$wxUSE_DISPLAY" = "yes"; then
26649 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
26650 echo "$as_me:$LINENO: checking for Xinerama" >&5
26651echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
26652
26653ac_find_libraries=
26654for ac_dir in $SEARCH_LIB /usr/lib;
26655 do
26656 for ac_extension in a so sl dylib; do
26657 if test -f "$ac_dir/libXinerama.$ac_extension"; then
26658 ac_find_libraries=$ac_dir
26659 break 2
26660 fi
26661 done
26662 done
26663
26664 if test "$ac_find_libraries" != "" ; then
26665
26666 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26667 result=$?
26668 if test $result = 0; then
26669 ac_path_to_link=""
26670 else
26671 ac_path_to_link=" -L$ac_find_libraries"
26672 fi
26673
26674 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26675 LDFLAGS="$LDFLAGS $ac_path_to_link"
26676 fi
26677 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
26678 echo "$as_me:$LINENO: result: yes" >&5
26679echo "${ECHO_T}yes" >&6
505c8ccd
VS
26680
26681 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
26682echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
26683
26684ac_find_libraries=
26685for ac_dir in $SEARCH_LIB /usr/lib;
26686 do
26687 for ac_extension in a so sl dylib; do
26688 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
26689 ac_find_libraries=$ac_dir
26690 break 2
26691 fi
26692 done
26693 done
26694
26695 if test "$ac_find_libraries" != "" ; then
26696 echo "$as_me:$LINENO: result: yes" >&5
26697echo "${ECHO_T}yes" >&6
26698
26699for ac_header in X11/extensions/xf86vmode.h
26700do
26701as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26702echo "$as_me:$LINENO: checking for $ac_header" >&5
26703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26704if eval "test \"\${$as_ac_Header+set}\" = set"; then
26705 echo $ECHO_N "(cached) $ECHO_C" >&6
26706else
26707 cat >conftest.$ac_ext <<_ACEOF
26708/* confdefs.h. */
26709_ACEOF
26710cat confdefs.h >>conftest.$ac_ext
26711cat >>conftest.$ac_ext <<_ACEOF
26712/* end confdefs.h. */
26713
26714 #if HAVE_X11_XLIB_H
26715 #include <X11/Xlib.h>
26716 #endif
26717
26718
26719#include <$ac_header>
26720_ACEOF
26721rm -f conftest.$ac_objext
26722if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 26723 (eval $ac_compile) 2>conftest.er1
505c8ccd 26724 ac_status=$?
f95e4495
VS
26725 grep -v '^ *+' conftest.er1 >conftest.err
26726 rm -f conftest.er1
26727 cat conftest.err >&5
505c8ccd
VS
26728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26729 (exit $ac_status); } &&
f95e4495
VS
26730 { ac_try='test -z "$ac_c_werror_flag"
26731 || test ! -s conftest.err'
26732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26733 (eval $ac_try) 2>&5
26734 ac_status=$?
26735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26736 (exit $ac_status); }; } &&
26737 { ac_try='test -s conftest.$ac_objext'
505c8ccd
VS
26738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26739 (eval $ac_try) 2>&5
26740 ac_status=$?
26741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26742 (exit $ac_status); }; }; then
26743 eval "$as_ac_Header=yes"
26744else
26745 echo "$as_me: failed program was:" >&5
26746sed 's/^/| /' conftest.$ac_ext >&5
26747
26748eval "$as_ac_Header=no"
26749fi
f95e4495 26750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
505c8ccd
VS
26751fi
26752echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26753echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26754if test `eval echo '${'$as_ac_Header'}'` = yes; then
26755 cat >>confdefs.h <<_ACEOF
26756#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26757_ACEOF
26758
26759 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
26760
26761fi
26762
26763done
26764
26765 else
26766 echo "$as_me:$LINENO: result: no" >&5
26767echo "${ECHO_T}no" >&6
26768 fi
26769
74500461
VS
26770 else
26771 echo "$as_me:$LINENO: result: no" >&5
26772echo "${ECHO_T}no" >&6
26773 { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5
26774echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;}
26775 wxUSE_DISPLAY="no"
26776 fi
26777 fi
26778fi
26779
8284b0c5 26780
4d264332 26781USE_OPENGL=0
21d1c967 26782if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 26783 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
26784 OPENGL_LIBS="-framework OpenGL -framework AGL"
26785 elif test "$wxUSE_MSW" = 1; then
26786 OPENGL_LIBS="-lopengl32 -lglu32"
26787 else
01aa5863
VS
26788
26789
26790ac_find_includes=
26791for ac_dir in $SEARCH_INCLUDE /usr/include;
26792 do
26793 if test -f "$ac_dir/GL/gl.h"; then
26794 ac_find_includes=$ac_dir
26795 break
26796 fi
26797 done
26798
26799 if test "$ac_find_includes" != "" ; then
26800 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26801echo "${ECHO_T}found in $ac_find_includes" >&6
01aa5863
VS
26802
26803 if test "x$ac_find_includes" = "x/usr/include"; then
26804 ac_path_to_include=""
26805 else
26806 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
26807 result=$?
26808 if test $result = 0; then
26809 ac_path_to_include=""
26810 else
26811 ac_path_to_include=" -I$ac_find_includes"
26812 fi
26813 fi
26814
26815 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
01aa5863
VS
26816 fi
26817
e6cc62c6
VS
26818 if test "${ac_cv_header_GL_gl_h+set}" = set; then
26819 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
26820echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
26821if test "${ac_cv_header_GL_gl_h+set}" = set; then
26822 echo $ECHO_N "(cached) $ECHO_C" >&6
26823fi
26824echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
26825echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
26826else
26827 # Is the header compilable?
26828echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
26829echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
26830cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26831/* confdefs.h. */
26832_ACEOF
26833cat confdefs.h >>conftest.$ac_ext
26834cat >>conftest.$ac_ext <<_ACEOF
26835/* end confdefs.h. */
26836$ac_includes_default
21d1c967 26837#include <GL/gl.h>
e6cc62c6
VS
26838_ACEOF
26839rm -f conftest.$ac_objext
26840if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 26841 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26842 ac_status=$?
f95e4495
VS
26843 grep -v '^ *+' conftest.er1 >conftest.err
26844 rm -f conftest.er1
26845 cat conftest.err >&5
e6cc62c6
VS
26846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847 (exit $ac_status); } &&
f95e4495
VS
26848 { ac_try='test -z "$ac_c_werror_flag"
26849 || test ! -s conftest.err'
26850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26851 (eval $ac_try) 2>&5
26852 ac_status=$?
26853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26854 (exit $ac_status); }; } &&
26855 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26857 (eval $ac_try) 2>&5
26858 ac_status=$?
26859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860 (exit $ac_status); }; }; then
26861 ac_header_compiler=yes
26862else
26863 echo "$as_me: failed program was:" >&5
26864sed 's/^/| /' conftest.$ac_ext >&5
26865
26866ac_header_compiler=no
26867fi
f95e4495 26868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
26869echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26870echo "${ECHO_T}$ac_header_compiler" >&6
26871
26872# Is the header present?
26873echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
26874echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
26875cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26876/* confdefs.h. */
26877_ACEOF
26878cat confdefs.h >>conftest.$ac_ext
26879cat >>conftest.$ac_ext <<_ACEOF
26880/* end confdefs.h. */
26881#include <GL/gl.h>
26882_ACEOF
26883if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26885 ac_status=$?
26886 grep -v '^ *+' conftest.er1 >conftest.err
26887 rm -f conftest.er1
26888 cat conftest.err >&5
26889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26890 (exit $ac_status); } >/dev/null; then
26891 if test -s conftest.err; then
26892 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 26893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
26894 else
26895 ac_cpp_err=
26896 fi
26897else
26898 ac_cpp_err=yes
26899fi
26900if test -z "$ac_cpp_err"; then
26901 ac_header_preproc=yes
26902else
26903 echo "$as_me: failed program was:" >&5
26904sed 's/^/| /' conftest.$ac_ext >&5
26905
26906 ac_header_preproc=no
26907fi
26908rm -f conftest.err conftest.$ac_ext
26909echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26910echo "${ECHO_T}$ac_header_preproc" >&6
26911
26912# So? What about this header?
f95e4495
VS
26913case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26914 yes:no: )
e6cc62c6
VS
26915 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26916echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
26917 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
26918echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
26919 ac_header_preproc=yes
e6cc62c6 26920 ;;
f95e4495 26921 no:yes:* )
e6cc62c6
VS
26922 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
26923echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
f95e4495
VS
26924 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
26925echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
26926 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
26927echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
26928 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
26929echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
26930 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
26931echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
26932 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
26933echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
26934 (
26935 cat <<\_ASBOX
f95e4495
VS
26936## ----------------------------------------- ##
26937## Report this to wx-dev@lists.wxwindows.org ##
26938## ----------------------------------------- ##
e6cc62c6
VS
26939_ASBOX
26940 ) |
26941 sed "s/^/$as_me: WARNING: /" >&2
26942 ;;
26943esac
26944echo "$as_me:$LINENO: checking for GL/gl.h" >&5
26945echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
26946if test "${ac_cv_header_GL_gl_h+set}" = set; then
26947 echo $ECHO_N "(cached) $ECHO_C" >&6
26948else
26949 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 26950fi
e6cc62c6
VS
26951echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
26952echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
26953
698dcdb6 26954fi
e6cc62c6
VS
26955if test $ac_cv_header_GL_gl_h = yes; then
26956
89e3b3e4
VZ
26957 found_gl=0
26958
e6cc62c6
VS
26959 echo "$as_me:$LINENO: checking for -lGL" >&5
26960echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
26961
21d1c967 26962ac_find_libraries=
2b5f62a0 26963for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
26964 do
26965 for ac_extension in a so sl dylib; do
26966 if test -f "$ac_dir/libGL.$ac_extension"; then
26967 ac_find_libraries=$ac_dir
26968 break 2
26969 fi
26970 done
26971 done
26972
26973 if test "$ac_find_libraries" != "" ; then
e6cc62c6 26974
21d1c967
GD
26975 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26976 result=$?
26977 if test $result = 0; then
26978 ac_path_to_link=""
26979 else
26980 ac_path_to_link=" -L$ac_find_libraries"
26981 fi
26982
89e3b3e4
VZ
26983 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26984 LDFLAGS_GL="$ac_path_to_link"
21d1c967 26985 fi
89e3b3e4 26986
e6cc62c6 26987
89e3b3e4
VZ
26988ac_find_libraries=
26989for ac_dir in $SEARCH_LIB /usr/lib;
26990 do
26991 for ac_extension in a so sl dylib; do
26992 if test -f "$ac_dir/libGLU.$ac_extension"; then
26993 ac_find_libraries=$ac_dir
26994 break 2
26995 fi
26996 done
26997 done
26998
26999 if test "$ac_find_libraries" != "" ; then
e6cc62c6 27000
89e3b3e4
VZ
27001 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27002 result=$?
27003 if test $result = 0; then
27004 ac_path_to_link=""
27005 else
27006 ac_path_to_link=" -L$ac_find_libraries"
27007 fi
27008
27009 if test "$ac_path_to_link" != " -L/usr/lib" -a \
27010 "$ac_path_to_link" != "$LDFLAGS_GL"; then
27011 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
27012 fi
27013
27014 found_gl=1
27015 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
27016 echo "$as_me:$LINENO: result: yes" >&5
27017echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
27018 fi
27019 fi
27020
bb41dcbe 27021 if test "$found_gl" != 1; then
e6cc62c6
VS
27022 echo "$as_me:$LINENO: result: no" >&5
27023echo "${ECHO_T}no" >&6
27024 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
27025echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
27026
21d1c967 27027ac_find_libraries=
2b5f62a0 27028for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
27029 do
27030 for ac_extension in a so sl dylib; do
27031 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
27032 ac_find_libraries=$ac_dir
27033 break 2
27034 fi
27035 done
27036 done
27037
27038 if test "$ac_find_libraries" != "" ; then
e6cc62c6 27039
21d1c967
GD
27040 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
27041 result=$?
27042 if test $result = 0; then
27043 ac_path_to_link=""
27044 else
27045 ac_path_to_link=" -L$ac_find_libraries"
27046 fi
27047
27048 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
27049 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
27050 echo "$as_me:$LINENO: result: yes" >&5
27051echo "${ECHO_T}yes" >&6
21d1c967 27052 else
e6cc62c6
VS
27053 echo "$as_me:$LINENO: result: no" >&5
27054echo "${ECHO_T}no" >&6
21d1c967
GD
27055 fi
27056 fi
e6cc62c6 27057
5c6fa7d2 27058fi
52127426 27059
8284b0c5 27060
e6cc62c6 27061
21d1c967 27062 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
27063 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
27064echo "$as_me: error: OpenGL libraries not available" >&2;}
27065 { (exit 1); exit 1; }; }
21d1c967
GD
27066 fi
27067 fi
90dd450c 27068
21d1c967 27069 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 27070 USE_OPENGL=1
e6cc62c6 27071 cat >>confdefs.h <<\_ACEOF
21d1c967 27072#define wxUSE_OPENGL 1
e6cc62c6 27073_ACEOF
21d1c967 27074
e6cc62c6 27075 cat >>confdefs.h <<\_ACEOF
21d1c967 27076#define wxUSE_GLCANVAS 1
e6cc62c6 27077_ACEOF
21d1c967 27078
520755bb 27079 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
21d1c967 27080 fi
10f2d63a 27081fi
21d1c967
GD
27082
27083if test -z "$TOOLKIT_VPATH" ; then
27084 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 27085fi
21d1c967
GD
27086
27087if test -n "$TOOLKIT" ; then
27088 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
27089fi
27090
fe0895cf 27091UNICODE=0
21d1c967
GD
27092lib_unicode_suffix=
27093if test "$wxUSE_UNICODE" = "yes"; then
27094 lib_unicode_suffix=u
fe0895cf 27095 UNICODE=1
90dd450c 27096fi
698dcdb6 27097
21d1c967 27098lib_debug_suffix=
6c67131a 27099DEBUG_FLAG=0
21d1c967
GD
27100if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27101 lib_debug_suffix=d
6c67131a
VS
27102 DEBUG_FLAG=1
27103fi
27104
27105DEBUG_INFO=0
27106if test "$wxUSE_DEBUG_INFO" = "yes"; then
27107 DEBUG_INFO=1
21d1c967 27108fi
698dcdb6 27109
1cbb95a2 27110WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
2b5f62a0
VZ
27111
27112TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27113TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
27114
27115if test "$cross_compiling" = "yes"; then
27116 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27117 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 27118 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
27119fi
27120
27121WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27122WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
cf615ebb
VS
27123WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27124WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
27125
27126WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27127WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27128
27129WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27130WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27131WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27132WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27133
27134case "${host}" in
27135 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
27136 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27137 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
27138 ;;
27139
27140 *-*-darwin* )
e6cc62c6 27141
05159a27
GD
27142 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27143 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27144
27145 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27146 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27147 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27148 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27149
09d3439c
VZ
27150 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27151 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
f346733b 27152 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
27153 fi
27154 ;;
27155esac
27156
27157WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27158WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27159
27160WXCONFIG_LIBS="-l${WX_LIBRARY}"
27161WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27162
27163if test "$wxUSE_OPENGL" = "yes"; then
27164 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27165 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27166fi
27167
8284b0c5
MB
27168
27169
21d1c967
GD
27170if test "$wxUSE_SHARED" = "yes"; then
27171 case "${host}" in
27172 *-pc-os2_emx | *-pc-os2-emx | \
27173 *-pc-msdosdjgpp )
27174 wxUSE_SHARED=no
e6cc62c6
VS
27175 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27176echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
27177 ;;
27178 esac
27179fi
27180
fe0895cf 27181SHARED=0
2b5f62a0 27182if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 27183 SHARED=1
2b5f62a0 27184
e6cc62c6 27185
2b5f62a0
VZ
27186 found_versioning=no
27187
e6cc62c6 27188
2b5f62a0 27189 if test $found_versioning = no ; then
e6cc62c6
VS
27190 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27191echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27192if test "${wx_cv_version_script+set}" = set; then
27193 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 27194else
e6cc62c6 27195
2b5f62a0
VZ
27196 echo "VER_1 { *; };" >conftest.sym
27197 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 27198
2b5f62a0
VZ
27199 if { ac_try='
27200 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
27201 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27203 (eval $ac_try) 2>&5
27204 ac_status=$?
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206 (exit $ac_status); }; } ; then
2b5f62a0
VZ
27207 if test -s conftest.stderr ; then
27208 wx_cv_version_script=no
27209 else
27210 wx_cv_version_script=yes
27211 fi
27212 else
27213 wx_cv_version_script=no
27214 fi
27215 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 27216
e6cc62c6
VS
27217fi
27218echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27219echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 27220 if test $wx_cv_version_script = yes ; then
e6cc62c6 27221 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
27222 fi
27223 fi
21d1c967 27224
21d1c967 27225
21d1c967 27226 case "${host}" in
fe0895cf 27227 *-*-linux* | *-*-gnu* )
e6cc62c6 27228 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
345b8952 27229 ;;
21d1c967
GD
27230
27231 *-*-solaris2* )
27232 if test "$GCC" = yes ; then
27233 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
27234
27235 saveLdflags="$LDFLAGS"
27236 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
27237 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27238echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27239 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27240/* confdefs.h. */
27241_ACEOF
27242cat confdefs.h >>conftest.$ac_ext
27243cat >>conftest.$ac_ext <<_ACEOF
27244/* end confdefs.h. */
27245
27246int
27247main ()
27248{
fe0895cf 27249
e6cc62c6
VS
27250 ;
27251 return 0;
27252}
27253_ACEOF
27254rm -f conftest.$ac_objext conftest$ac_exeext
27255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 27256 (eval $ac_link) 2>conftest.er1
e6cc62c6 27257 ac_status=$?
f95e4495
VS
27258 grep -v '^ *+' conftest.er1 >conftest.err
27259 rm -f conftest.er1
27260 cat conftest.err >&5
e6cc62c6
VS
27261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27262 (exit $ac_status); } &&
f95e4495
VS
27263 { ac_try='test -z "$ac_c_werror_flag"
27264 || test ! -s conftest.err'
27265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27266 (eval $ac_try) 2>&5
27267 ac_status=$?
27268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27269 (exit $ac_status); }; } &&
27270 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27272 (eval $ac_try) 2>&5
27273 ac_status=$?
27274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275 (exit $ac_status); }; }; then
27276
27277 echo "$as_me:$LINENO: result: yes" >&5
27278echo "${ECHO_T}yes" >&6
27279 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27280
27281else
27282 echo "$as_me: failed program was:" >&5
27283sed 's/^/| /' conftest.$ac_ext >&5
27284
27285
27286 echo "$as_me:$LINENO: result: no" >&5
27287echo "${ECHO_T}no" >&6
27288 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27289echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 27290 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6 27291 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27292/* confdefs.h. */
27293_ACEOF
27294cat confdefs.h >>conftest.$ac_ext
27295cat >>conftest.$ac_ext <<_ACEOF
27296/* end confdefs.h. */
27297
27298int
27299main ()
27300{
27301
27302 ;
27303 return 0;
27304}
27305_ACEOF
27306rm -f conftest.$ac_objext conftest$ac_exeext
27307if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 27308 (eval $ac_link) 2>conftest.er1
e6cc62c6 27309 ac_status=$?
f95e4495
VS
27310 grep -v '^ *+' conftest.er1 >conftest.err
27311 rm -f conftest.er1
27312 cat conftest.err >&5
e6cc62c6
VS
27313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27314 (exit $ac_status); } &&
f95e4495
VS
27315 { ac_try='test -z "$ac_c_werror_flag"
27316 || test ! -s conftest.err'
27317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27318 (eval $ac_try) 2>&5
27319 ac_status=$?
27320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27321 (exit $ac_status); }; } &&
27322 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27324 (eval $ac_try) 2>&5
27325 ac_status=$?
27326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327 (exit $ac_status); }; }; then
27328
27329 echo "$as_me:$LINENO: result: yes" >&5
27330echo "${ECHO_T}yes" >&6
27331 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27332else
27333 echo "$as_me: failed program was:" >&5
27334sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 27335
fe0895cf 27336
e6cc62c6
VS
27337 echo "$as_me:$LINENO: result: no" >&5
27338echo "${ECHO_T}no" >&6
27339
fe0895cf 27340fi
f95e4495
VS
27341rm -f conftest.err conftest.$ac_objext \
27342 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27343
27344fi
f95e4495
VS
27345rm -f conftest.err conftest.$ac_objext \
27346 conftest$ac_exeext conftest.$ac_ext
fe0895cf 27347 LDFLAGS="$saveLdflags"
21d1c967
GD
27348 else
27349 SHARED_LD="${CXX} -G -o"
27350 PIC_FLAG="-KPIC"
e6cc62c6 27351 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
27352 fi
27353 ;;
0f1bc9c2
VS
27354
27355 powerpc-*-darwin* )
ef0add05
VS
27356 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27357 cat <<EOF >change-install-names
27358#!/bin/sh
27359libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27360inst_cmd="install_name_tool "
27361for i in \${libnames} ; do
27362 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27363done
27364\${inst_cmd} \${3}
27365EOF
27366 chmod +x change-install-names
0f1bc9c2
VS
27367 ;;
27368
21d1c967
GD
27369 esac
27370
27371 if test "x$WX_TARGET_LIBRARY" = "x"; then
27372 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
27373 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
27374 fi
27375
27376 WX_TARGET_LIBRARY_TYPE="so"
27377 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 27378fi
10f2d63a 27379
21d1c967
GD
27380if test "$wxUSE_SHARED" = "no"; then
27381
27382 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
27383 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27384 fi
27385
ac0c4cc3 27386 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
27387 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27388 fi
27389
27390 if test "$wxUSE_OPENGL" = "yes"; then
27391 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
27392 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
27393 else
27394 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
27395 fi
27396
27397 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
27398 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
27399
27400 WX_TARGET_LIBRARY_TYPE="a"
27401 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
27402
27403 STATIC_FLAG="yes"
27404else
27405 STATIC_FLAG="no"
90dd450c 27406fi
1e487827 27407
09d3439c 27408if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
e6cc62c6 27409 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
27410 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
27411 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
09d3439c 27412
21d1c967
GD
27413 # Extract the first word of "Rez", so it can be a program name with args.
27414set dummy Rez; ac_word=$2
e6cc62c6
VS
27415echo "$as_me:$LINENO: checking for $ac_word" >&5
27416echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27417if test "${ac_cv_prog_RESCOMP+set}" = set; then
27418 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 27419else
21d1c967
GD
27420 if test -n "$RESCOMP"; then
27421 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 27422else
e6cc62c6
VS
27423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27424for as_dir in $PATH
27425do
27426 IFS=$as_save_IFS
27427 test -z "$as_dir" && as_dir=.
27428 for ac_exec_ext in '' $ac_executable_extensions; do
27429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27430 ac_cv_prog_RESCOMP="Rez"
27431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27432 break 2
27433 fi
27434done
27435done
27436
21d1c967 27437 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 27438fi
b93d0d08 27439fi
e6cc62c6 27440RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 27441if test -n "$RESCOMP"; then
e6cc62c6
VS
27442 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27443echo "${ECHO_T}$RESCOMP" >&6
90dd450c 27444else
e6cc62c6
VS
27445 echo "$as_me:$LINENO: result: no" >&5
27446echo "${ECHO_T}no" >&6
90dd450c 27447fi
b93d0d08 27448
21d1c967
GD
27449 # Extract the first word of "DeRez", so it can be a program name with args.
27450set dummy DeRez; ac_word=$2
e6cc62c6
VS
27451echo "$as_me:$LINENO: checking for $ac_word" >&5
27452echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27453if test "${ac_cv_prog_DEREZ+set}" = set; then
27454 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 27455else
21d1c967
GD
27456 if test -n "$DEREZ"; then
27457 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 27458else
e6cc62c6
VS
27459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27460for as_dir in $PATH
27461do
27462 IFS=$as_save_IFS
27463 test -z "$as_dir" && as_dir=.
27464 for ac_exec_ext in '' $ac_executable_extensions; do
27465 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27466 ac_cv_prog_DEREZ="DeRez"
27467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27468 break 2
27469 fi
27470done
27471done
27472
21d1c967 27473 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 27474fi
90dd450c 27475fi
e6cc62c6 27476DEREZ=$ac_cv_prog_DEREZ
21d1c967 27477if test -n "$DEREZ"; then
e6cc62c6
VS
27478 echo "$as_me:$LINENO: result: $DEREZ" >&5
27479echo "${ECHO_T}$DEREZ" >&6
90dd450c 27480else
e6cc62c6
VS
27481 echo "$as_me:$LINENO: result: no" >&5
27482echo "${ECHO_T}no" >&6
3a922bb4 27483fi
698dcdb6 27484
36825681
GD
27485 # Extract the first word of "SetFile", so it can be a program name with args.
27486set dummy SetFile; ac_word=$2
e6cc62c6
VS
27487echo "$as_me:$LINENO: checking for $ac_word" >&5
27488echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27489if test "${ac_cv_prog_SETFILE+set}" = set; then
27490 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
27491else
27492 if test -n "$SETFILE"; then
27493 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27494else
e6cc62c6
VS
27495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27496for as_dir in $PATH
27497do
27498 IFS=$as_save_IFS
27499 test -z "$as_dir" && as_dir=.
27500 for ac_exec_ext in '' $ac_executable_extensions; do
27501 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27502 ac_cv_prog_SETFILE="SetFile"
27503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27504 break 2
27505 fi
27506done
27507done
27508
36825681
GD
27509 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27510fi
27511fi
e6cc62c6 27512SETFILE=$ac_cv_prog_SETFILE
36825681 27513if test -n "$SETFILE"; then
e6cc62c6
VS
27514 echo "$as_me:$LINENO: result: $SETFILE" >&5
27515echo "${ECHO_T}$SETFILE" >&6
36825681 27516else
e6cc62c6
VS
27517 echo "$as_me:$LINENO: result: no" >&5
27518echo "${ECHO_T}no" >&6
36825681
GD
27519fi
27520
e6cc62c6 27521
09d3439c 27522 MACSETFILE="\$(SETFILE)"
64440d77 27523
09d3439c
VZ
27524 if test "$wxUSE_MAC" = 1; then
27525 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
e6cc62c6 27526
09d3439c
VZ
27527 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27528 else
27529 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27530 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27531 fi
64440d77 27532else
09d3439c
VZ
27533 MACSETFILE="@#"
27534 MACRESWXCONFIG="#"
64440d77 27535
09d3439c 27536 if test "$wxUSE_PM" = 1; then
36825681 27537 MACRESCOMP="emxbind -ep"
09d3439c
VZ
27538 else
27539 MACRESCOMP="@#"
90dd450c 27540 fi
4f14bcd8 27541fi
10f2d63a 27542
8284b0c5 27543
f93ca9fd 27544
e6cc62c6
VS
27545echo "$as_me:$LINENO: checking for mode_t" >&5
27546echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
27547if test "${ac_cv_type_mode_t+set}" = set; then
27548 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 27549else
e6cc62c6 27550 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27551/* confdefs.h. */
27552_ACEOF
27553cat confdefs.h >>conftest.$ac_ext
27554cat >>conftest.$ac_ext <<_ACEOF
27555/* end confdefs.h. */
27556$ac_includes_default
27557int
27558main ()
27559{
27560if ((mode_t *) 0)
27561 return 0;
27562if (sizeof (mode_t))
27563 return 0;
27564 ;
27565 return 0;
27566}
27567_ACEOF
27568rm -f conftest.$ac_objext
27569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 27570 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27571 ac_status=$?
f95e4495
VS
27572 grep -v '^ *+' conftest.er1 >conftest.err
27573 rm -f conftest.er1
27574 cat conftest.err >&5
e6cc62c6
VS
27575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576 (exit $ac_status); } &&
f95e4495
VS
27577 { ac_try='test -z "$ac_c_werror_flag"
27578 || test ! -s conftest.err'
27579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27580 (eval $ac_try) 2>&5
27581 ac_status=$?
27582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583 (exit $ac_status); }; } &&
27584 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27586 (eval $ac_try) 2>&5
27587 ac_status=$?
27588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589 (exit $ac_status); }; }; then
27590 ac_cv_type_mode_t=yes
a0b9e27f 27591else
e6cc62c6
VS
27592 echo "$as_me: failed program was:" >&5
27593sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 27594
e6cc62c6 27595ac_cv_type_mode_t=no
a0b9e27f 27596fi
f95e4495 27597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52127426 27598fi
e6cc62c6
VS
27599echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
27600echo "${ECHO_T}$ac_cv_type_mode_t" >&6
27601if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
27602 :
27603else
a0b9e27f 27604
e6cc62c6
VS
27605cat >>confdefs.h <<_ACEOF
27606#define mode_t int
27607_ACEOF
8284b0c5
MB
27608
27609fi
27610
e6cc62c6
VS
27611echo "$as_me:$LINENO: checking for off_t" >&5
27612echo $ECHO_N "checking for off_t... $ECHO_C" >&6
27613if test "${ac_cv_type_off_t+set}" = set; then
27614 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 27615else
e6cc62c6 27616 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27617/* confdefs.h. */
27618_ACEOF
27619cat confdefs.h >>conftest.$ac_ext
27620cat >>conftest.$ac_ext <<_ACEOF
27621/* end confdefs.h. */
27622$ac_includes_default
27623int
27624main ()
27625{
27626if ((off_t *) 0)
27627 return 0;
27628if (sizeof (off_t))
27629 return 0;
27630 ;
27631 return 0;
27632}
27633_ACEOF
27634rm -f conftest.$ac_objext
27635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 27636 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27637 ac_status=$?
f95e4495
VS
27638 grep -v '^ *+' conftest.er1 >conftest.err
27639 rm -f conftest.er1
27640 cat conftest.err >&5
e6cc62c6
VS
27641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27642 (exit $ac_status); } &&
f95e4495
VS
27643 { ac_try='test -z "$ac_c_werror_flag"
27644 || test ! -s conftest.err'
27645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27646 (eval $ac_try) 2>&5
27647 ac_status=$?
27648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649 (exit $ac_status); }; } &&
27650 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27652 (eval $ac_try) 2>&5
27653 ac_status=$?
27654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655 (exit $ac_status); }; }; then
27656 ac_cv_type_off_t=yes
5c6fa7d2 27657else
e6cc62c6
VS
27658 echo "$as_me: failed program was:" >&5
27659sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 27660
e6cc62c6 27661ac_cv_type_off_t=no
8284b0c5 27662fi
f95e4495 27663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8284b0c5 27664fi
e6cc62c6
VS
27665echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
27666echo "${ECHO_T}$ac_cv_type_off_t" >&6
27667if test $ac_cv_type_off_t = yes; then
27668 :
247f5006
VZ
27669else
27670
e6cc62c6 27671cat >>confdefs.h <<_ACEOF
90dd450c 27672#define off_t long
e6cc62c6 27673_ACEOF
10f2d63a 27674
90dd450c 27675fi
10f2d63a 27676
e6cc62c6
VS
27677echo "$as_me:$LINENO: checking for pid_t" >&5
27678echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27679if test "${ac_cv_type_pid_t+set}" = set; then
27680 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 27681else
e6cc62c6 27682 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27683/* confdefs.h. */
27684_ACEOF
27685cat confdefs.h >>conftest.$ac_ext
27686cat >>conftest.$ac_ext <<_ACEOF
27687/* end confdefs.h. */
27688$ac_includes_default
27689int
27690main ()
27691{
27692if ((pid_t *) 0)
27693 return 0;
27694if (sizeof (pid_t))
27695 return 0;
27696 ;
27697 return 0;
27698}
27699_ACEOF
27700rm -f conftest.$ac_objext
27701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 27702 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27703 ac_status=$?
f95e4495
VS
27704 grep -v '^ *+' conftest.er1 >conftest.err
27705 rm -f conftest.er1
27706 cat conftest.err >&5
e6cc62c6
VS
27707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708 (exit $ac_status); } &&
f95e4495
VS
27709 { ac_try='test -z "$ac_c_werror_flag"
27710 || test ! -s conftest.err'
27711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27712 (eval $ac_try) 2>&5
27713 ac_status=$?
27714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715 (exit $ac_status); }; } &&
27716 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27718 (eval $ac_try) 2>&5
27719 ac_status=$?
27720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721 (exit $ac_status); }; }; then
90dd450c 27722 ac_cv_type_pid_t=yes
698dcdb6 27723else
e6cc62c6
VS
27724 echo "$as_me: failed program was:" >&5
27725sed 's/^/| /' conftest.$ac_ext >&5
247f5006 27726
e6cc62c6
VS
27727ac_cv_type_pid_t=no
27728fi
f95e4495 27729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27730fi
e6cc62c6
VS
27731echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27732echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27733if test $ac_cv_type_pid_t = yes; then
27734 :
27735else
27736
27737cat >>confdefs.h <<_ACEOF
90dd450c 27738#define pid_t int
e6cc62c6 27739_ACEOF
10f2d63a 27740
7b4a847f
RR
27741fi
27742
e6cc62c6
VS
27743echo "$as_me:$LINENO: checking for size_t" >&5
27744echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27745if test "${ac_cv_type_size_t+set}" = set; then
27746 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 27747else
e6cc62c6 27748 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27749/* confdefs.h. */
27750_ACEOF
27751cat confdefs.h >>conftest.$ac_ext
27752cat >>conftest.$ac_ext <<_ACEOF
27753/* end confdefs.h. */
27754$ac_includes_default
27755int
27756main ()
27757{
27758if ((size_t *) 0)
27759 return 0;
27760if (sizeof (size_t))
27761 return 0;
27762 ;
27763 return 0;
27764}
27765_ACEOF
27766rm -f conftest.$ac_objext
27767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 27768 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27769 ac_status=$?
f95e4495
VS
27770 grep -v '^ *+' conftest.er1 >conftest.err
27771 rm -f conftest.er1
27772 cat conftest.err >&5
e6cc62c6
VS
27773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27774 (exit $ac_status); } &&
f95e4495
VS
27775 { ac_try='test -z "$ac_c_werror_flag"
27776 || test ! -s conftest.err'
27777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27778 (eval $ac_try) 2>&5
27779 ac_status=$?
27780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781 (exit $ac_status); }; } &&
27782 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27784 (eval $ac_try) 2>&5
27785 ac_status=$?
27786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787 (exit $ac_status); }; }; then
90dd450c 27788 ac_cv_type_size_t=yes
18dbb1f6 27789else
e6cc62c6
VS
27790 echo "$as_me: failed program was:" >&5
27791sed 's/^/| /' conftest.$ac_ext >&5
247f5006 27792
e6cc62c6 27793ac_cv_type_size_t=no
a0b9e27f 27794fi
f95e4495 27795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
27796fi
27797echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27798echo "${ECHO_T}$ac_cv_type_size_t" >&6
27799if test $ac_cv_type_size_t = yes; then
27800 :
27801else
27802
27803cat >>confdefs.h <<_ACEOF
90dd450c 27804#define size_t unsigned
e6cc62c6 27805_ACEOF
90dd450c
VZ
27806
27807fi
27808
e6cc62c6
VS
27809echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
27810echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
27811if test "${ac_cv_type_uid_t+set}" = set; then
27812 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 27813else
e6cc62c6 27814 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27815/* confdefs.h. */
27816_ACEOF
27817cat confdefs.h >>conftest.$ac_ext
27818cat >>conftest.$ac_ext <<_ACEOF
27819/* end confdefs.h. */
90dd450c 27820#include <sys/types.h>
e6cc62c6
VS
27821
27822_ACEOF
90dd450c 27823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 27824 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 27825 ac_cv_type_uid_t=yes
b3e8d00a 27826else
90dd450c 27827 ac_cv_type_uid_t=no
b3e8d00a 27828fi
90dd450c 27829rm -f conftest*
b3e8d00a 27830
4f14bcd8 27831fi
e6cc62c6
VS
27832echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
27833echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 27834if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
27835
27836cat >>confdefs.h <<\_ACEOF
90dd450c 27837#define uid_t int
e6cc62c6 27838_ACEOF
247f5006 27839
e6cc62c6
VS
27840
27841cat >>confdefs.h <<\_ACEOF
90dd450c 27842#define gid_t int
e6cc62c6 27843_ACEOF
4f14bcd8 27844
b3e8d00a 27845fi
b3e8d00a 27846
8284b0c5
MB
27847
27848
e6cc62c6
VS
27849
27850ac_ext=cc
4f14bcd8 27851ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27852ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27853ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27854ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27855
27856echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
27857echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
27858if test "${wx_cv_size_t_is_uint+set}" = set; then
27859 echo $ECHO_N "(cached) $ECHO_C" >&6
27860else
27861
27862 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27863/* confdefs.h. */
27864_ACEOF
27865cat confdefs.h >>conftest.$ac_ext
27866cat >>conftest.$ac_ext <<_ACEOF
27867/* end confdefs.h. */
90dd450c 27868#include <stddef.h>
e6cc62c6
VS
27869int
27870main ()
27871{
90dd450c
VZ
27872
27873 return 0; }
27874
27875 struct Foo { void foo(size_t); void foo(unsigned int); };
27876
27877 int bar() {
e6cc62c6
VS
27878
27879 ;
27880 return 0;
27881}
27882_ACEOF
27883rm -f conftest.$ac_objext
27884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 27885 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27886 ac_status=$?
f95e4495
VS
27887 grep -v '^ *+' conftest.er1 >conftest.err
27888 rm -f conftest.er1
27889 cat conftest.err >&5
e6cc62c6
VS
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); } &&
f95e4495
VS
27892 { ac_try='test -z "$ac_cxx_werror_flag"
27893 || test ! -s conftest.err'
27894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27895 (eval $ac_try) 2>&5
27896 ac_status=$?
27897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898 (exit $ac_status); }; } &&
27899 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27901 (eval $ac_try) 2>&5
27902 ac_status=$?
27903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904 (exit $ac_status); }; }; then
90dd450c 27905 wx_cv_size_t_is_uint=no
698dcdb6 27906else
e6cc62c6
VS
27907 echo "$as_me: failed program was:" >&5
27908sed 's/^/| /' conftest.$ac_ext >&5
27909
27910wx_cv_size_t_is_uint=yes
8284b0c5 27911
247f5006 27912fi
f95e4495 27913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 27914
a0b9e27f 27915
e6cc62c6
VS
27916fi
27917echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
27918echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 27919
90dd450c 27920if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 27921 cat >>confdefs.h <<\_ACEOF
90dd450c 27922#define wxSIZE_T_IS_UINT 1
e6cc62c6 27923_ACEOF
698dcdb6 27924
90dd450c 27925else
e6cc62c6
VS
27926 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
27927echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
27928if test "${wx_cv_size_t_is_ulong+set}" = set; then
27929 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 27930else
e6cc62c6 27931 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27932/* confdefs.h. */
27933_ACEOF
27934cat confdefs.h >>conftest.$ac_ext
27935cat >>conftest.$ac_ext <<_ACEOF
27936/* end confdefs.h. */
90dd450c 27937#include <stddef.h>
e6cc62c6
VS
27938int
27939main ()
27940{
90dd450c
VZ
27941
27942 return 0; }
27943
27944 struct Foo { void foo(size_t); void foo(unsigned long); };
27945
27946 int bar() {
e6cc62c6
VS
27947
27948 ;
27949 return 0;
27950}
27951_ACEOF
27952rm -f conftest.$ac_objext
27953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 27954 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27955 ac_status=$?
f95e4495
VS
27956 grep -v '^ *+' conftest.er1 >conftest.err
27957 rm -f conftest.er1
27958 cat conftest.err >&5
e6cc62c6
VS
27959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960 (exit $ac_status); } &&
f95e4495
VS
27961 { ac_try='test -z "$ac_cxx_werror_flag"
27962 || test ! -s conftest.err'
27963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27964 (eval $ac_try) 2>&5
27965 ac_status=$?
27966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967 (exit $ac_status); }; } &&
27968 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27970 (eval $ac_try) 2>&5
27971 ac_status=$?
27972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973 (exit $ac_status); }; }; then
90dd450c 27974 wx_cv_size_t_is_ulong=no
698dcdb6 27975else
e6cc62c6
VS
27976 echo "$as_me: failed program was:" >&5
27977sed 's/^/| /' conftest.$ac_ext >&5
27978
27979wx_cv_size_t_is_ulong=yes
27980
247f5006 27981fi
f95e4495 27982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27983
e6cc62c6
VS
27984fi
27985echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
27986echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 27987
90dd450c 27988 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 27989 cat >>confdefs.h <<\_ACEOF
90dd450c 27990#define wxSIZE_T_IS_ULONG 1
e6cc62c6 27991_ACEOF
4f14bcd8
GD
27992
27993 fi
90dd450c 27994fi
1e487827 27995
90dd450c 27996ac_ext=c
4f14bcd8 27997ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28000ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 28001
5c6fa7d2 28002
8284b0c5 28003
e6cc62c6
VS
28004echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28005echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28006if test "${wx_cv_struct_pw_gecos+set}" = set; then
28007 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 28008else
e6cc62c6
VS
28009
28010 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28011/* confdefs.h. */
28012_ACEOF
28013cat confdefs.h >>conftest.$ac_ext
28014cat >>conftest.$ac_ext <<_ACEOF
28015/* end confdefs.h. */
90dd450c 28016#include <pwd.h>
e6cc62c6
VS
28017int
28018main ()
28019{
f6bcfd97 28020
90dd450c
VZ
28021 char *p;
28022 struct passwd *pw;
28023 p = pw->pw_gecos;
e6cc62c6
VS
28024
28025 ;
28026 return 0;
28027}
28028_ACEOF
28029rm -f conftest.$ac_objext
28030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 28031 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28032 ac_status=$?
f95e4495
VS
28033 grep -v '^ *+' conftest.er1 >conftest.err
28034 rm -f conftest.er1
28035 cat conftest.err >&5
e6cc62c6
VS
28036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28037 (exit $ac_status); } &&
f95e4495
VS
28038 { ac_try='test -z "$ac_c_werror_flag"
28039 || test ! -s conftest.err'
28040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28041 (eval $ac_try) 2>&5
28042 ac_status=$?
28043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044 (exit $ac_status); }; } &&
28045 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28047 (eval $ac_try) 2>&5
28048 ac_status=$?
28049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28050 (exit $ac_status); }; }; then
28051
90dd450c 28052 wx_cv_struct_pw_gecos=yes
e6cc62c6 28053
10f2d63a 28054else
e6cc62c6
VS
28055 echo "$as_me: failed program was:" >&5
28056sed 's/^/| /' conftest.$ac_ext >&5
28057
28058
90dd450c 28059 wx_cv_struct_pw_gecos=no
e6cc62c6 28060
247f5006
VZ
28061
28062fi
f95e4495 28063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 28064
e6cc62c6
VS
28065
28066fi
28067echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28068echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 28069
90dd450c 28070if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 28071 cat >>confdefs.h <<\_ACEOF
90dd450c 28072#define HAVE_PW_GECOS 1
e6cc62c6 28073_ACEOF
c521c494 28074
90dd450c 28075fi
4f14bcd8 28076
8284b0c5 28077
d29b553b 28078if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 28079 cat >>confdefs.h <<\_ACEOF
d74f4b5a 28080#define wxUSE_WCHAR_T 1
e6cc62c6 28081_ACEOF
d74f4b5a 28082
8284b0c5 28083
d74f4b5a
VZ
28084 WCSLEN_FOUND=0
28085 WCHAR_LINK=
e6cc62c6
VS
28086
28087for ac_func in wcslen
7a30264c 28088do
e6cc62c6
VS
28089as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28090echo "$as_me:$LINENO: checking for $ac_func" >&5
28091echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28092if eval "test \"\${$as_ac_var+set}\" = set"; then
28093 echo $ECHO_N "(cached) $ECHO_C" >&6
28094else
28095 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28096/* confdefs.h. */
28097_ACEOF
28098cat confdefs.h >>conftest.$ac_ext
28099cat >>conftest.$ac_ext <<_ACEOF
28100/* end confdefs.h. */
f95e4495
VS
28101/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28103#define $ac_func innocuous_$ac_func
28104
7a30264c 28105/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28106 which can conflict with char $ac_func (); below.
28107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28108 <limits.h> exists even on freestanding compilers. */
f95e4495 28109
e6cc62c6
VS
28110#ifdef __STDC__
28111# include <limits.h>
28112#else
28113# include <assert.h>
28114#endif
f95e4495
VS
28115
28116#undef $ac_func
28117
4f14bcd8 28118/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28119#ifdef __cplusplus
28120extern "C"
28121{
28122#endif
4f14bcd8 28123/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28124 builtin and then its argument prototype would still apply. */
28125char $ac_func ();
7a30264c
VZ
28126/* The GNU C library defines this for functions which it implements
28127 to always fail with ENOSYS. Some functions are actually named
28128 something starting with __ and the normal name is an alias. */
28129#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28130choke me
28131#else
e6cc62c6
VS
28132char (*f) () = $ac_func;
28133#endif
28134#ifdef __cplusplus
28135}
7a30264c
VZ
28136#endif
28137
e6cc62c6
VS
28138int
28139main ()
28140{
28141return f != $ac_func;
28142 ;
28143 return 0;
28144}
28145_ACEOF
28146rm -f conftest.$ac_objext conftest$ac_exeext
28147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 28148 (eval $ac_link) 2>conftest.er1
e6cc62c6 28149 ac_status=$?
f95e4495
VS
28150 grep -v '^ *+' conftest.er1 >conftest.err
28151 rm -f conftest.er1
28152 cat conftest.err >&5
e6cc62c6
VS
28153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 (exit $ac_status); } &&
f95e4495
VS
28155 { ac_try='test -z "$ac_c_werror_flag"
28156 || test ! -s conftest.err'
28157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28158 (eval $ac_try) 2>&5
28159 ac_status=$?
28160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161 (exit $ac_status); }; } &&
28162 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28164 (eval $ac_try) 2>&5
28165 ac_status=$?
28166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167 (exit $ac_status); }; }; then
28168 eval "$as_ac_var=yes"
28169else
28170 echo "$as_me: failed program was:" >&5
28171sed 's/^/| /' conftest.$ac_ext >&5
28172
28173eval "$as_ac_var=no"
28174fi
f95e4495
VS
28175rm -f conftest.err conftest.$ac_objext \
28176 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28177fi
28178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28179echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28180if test `eval echo '${'$as_ac_var'}'` = yes; then
28181 cat >>confdefs.h <<_ACEOF
28182#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28183_ACEOF
d74f4b5a 28184 WCSLEN_FOUND=1
7a30264c
VZ
28185fi
28186done
9d8deca0 28187
8284b0c5 28188
d74f4b5a 28189 if test "$WCSLEN_FOUND" = 0; then
7a30264c 28190 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
28191 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28192echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28193if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28194 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28195else
e6cc62c6 28196 ac_check_lib_save_LIBS=$LIBS
7a30264c 28197LIBS="-lmsvcrt $LIBS"
e6cc62c6 28198cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28199/* confdefs.h. */
28200_ACEOF
28201cat confdefs.h >>conftest.$ac_ext
28202cat >>conftest.$ac_ext <<_ACEOF
28203/* end confdefs.h. */
28204
4f14bcd8 28205/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28206#ifdef __cplusplus
28207extern "C"
28208#endif
4f14bcd8 28209/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28210 builtin and then its argument prototype would still apply. */
28211char wcslen ();
28212int
28213main ()
28214{
28215wcslen ();
28216 ;
28217 return 0;
28218}
28219_ACEOF
28220rm -f conftest.$ac_objext conftest$ac_exeext
28221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 28222 (eval $ac_link) 2>conftest.er1
e6cc62c6 28223 ac_status=$?
f95e4495
VS
28224 grep -v '^ *+' conftest.er1 >conftest.err
28225 rm -f conftest.er1
28226 cat conftest.err >&5
e6cc62c6
VS
28227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228 (exit $ac_status); } &&
f95e4495
VS
28229 { ac_try='test -z "$ac_c_werror_flag"
28230 || test ! -s conftest.err'
28231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28232 (eval $ac_try) 2>&5
28233 ac_status=$?
28234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235 (exit $ac_status); }; } &&
28236 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28238 (eval $ac_try) 2>&5
28239 ac_status=$?
28240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28241 (exit $ac_status); }; }; then
28242 ac_cv_lib_msvcrt_wcslen=yes
28243else
28244 echo "$as_me: failed program was:" >&5
28245sed 's/^/| /' conftest.$ac_ext >&5
28246
28247ac_cv_lib_msvcrt_wcslen=no
28248fi
f95e4495
VS
28249rm -f conftest.err conftest.$ac_objext \
28250 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28251LIBS=$ac_check_lib_save_LIBS
28252fi
28253echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28254echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28255if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 28256 WCHAR_OK=1
d29b553b 28257fi
698dcdb6 28258
7a30264c 28259 else
e6cc62c6
VS
28260 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28261echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28262if test "${ac_cv_lib_w_wcslen+set}" = set; then
28263 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 28264else
e6cc62c6 28265 ac_check_lib_save_LIBS=$LIBS
7a30264c 28266LIBS="-lw $LIBS"
e6cc62c6 28267cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28268/* confdefs.h. */
28269_ACEOF
28270cat confdefs.h >>conftest.$ac_ext
28271cat >>conftest.$ac_ext <<_ACEOF
28272/* end confdefs.h. */
28273
4f14bcd8 28274/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28275#ifdef __cplusplus
28276extern "C"
28277#endif
4f14bcd8 28278/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28279 builtin and then its argument prototype would still apply. */
28280char wcslen ();
28281int
28282main ()
28283{
28284wcslen ();
28285 ;
28286 return 0;
28287}
28288_ACEOF
28289rm -f conftest.$ac_objext conftest$ac_exeext
28290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 28291 (eval $ac_link) 2>conftest.er1
e6cc62c6 28292 ac_status=$?
f95e4495
VS
28293 grep -v '^ *+' conftest.er1 >conftest.err
28294 rm -f conftest.er1
28295 cat conftest.err >&5
e6cc62c6
VS
28296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28297 (exit $ac_status); } &&
f95e4495
VS
28298 { ac_try='test -z "$ac_c_werror_flag"
28299 || test ! -s conftest.err'
28300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28301 (eval $ac_try) 2>&5
28302 ac_status=$?
28303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304 (exit $ac_status); }; } &&
28305 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28307 (eval $ac_try) 2>&5
28308 ac_status=$?
28309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310 (exit $ac_status); }; }; then
28311 ac_cv_lib_w_wcslen=yes
28312else
28313 echo "$as_me: failed program was:" >&5
28314sed 's/^/| /' conftest.$ac_ext >&5
28315
28316ac_cv_lib_w_wcslen=no
28317fi
f95e4495
VS
28318rm -f conftest.err conftest.$ac_objext \
28319 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28320LIBS=$ac_check_lib_save_LIBS
28321fi
28322echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28323echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28324if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 28325
7a30264c 28326 WCHAR_LINK=" -lw"
d74f4b5a 28327 WCSLEN_FOUND=1
e6cc62c6 28328
4f14bcd8 28329fi
10f2d63a 28330
7a30264c 28331 fi
d29b553b 28332 fi
95c8801c 28333
d74f4b5a 28334 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 28335 cat >>confdefs.h <<\_ACEOF
d74f4b5a 28336#define HAVE_WCSLEN 1
e6cc62c6 28337_ACEOF
10f2d63a 28338
d74f4b5a 28339 fi
52127426 28340
e6cc62c6
VS
28341
28342for ac_func in wcsrtombs
eb4efbdc 28343do
e6cc62c6
VS
28344as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28345echo "$as_me:$LINENO: checking for $ac_func" >&5
28346echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28347if eval "test \"\${$as_ac_var+set}\" = set"; then
28348 echo $ECHO_N "(cached) $ECHO_C" >&6
28349else
28350 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28351/* confdefs.h. */
28352_ACEOF
28353cat confdefs.h >>conftest.$ac_ext
28354cat >>conftest.$ac_ext <<_ACEOF
28355/* end confdefs.h. */
f95e4495
VS
28356/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28358#define $ac_func innocuous_$ac_func
28359
eb4efbdc 28360/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28361 which can conflict with char $ac_func (); below.
28362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28363 <limits.h> exists even on freestanding compilers. */
f95e4495 28364
e6cc62c6
VS
28365#ifdef __STDC__
28366# include <limits.h>
28367#else
28368# include <assert.h>
28369#endif
f95e4495
VS
28370
28371#undef $ac_func
28372
eb4efbdc 28373/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28374#ifdef __cplusplus
28375extern "C"
28376{
28377#endif
4f14bcd8 28378/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28379 builtin and then its argument prototype would still apply. */
28380char $ac_func ();
10f2d63a
VZ
28381/* The GNU C library defines this for functions which it implements
28382 to always fail with ENOSYS. Some functions are actually named
28383 something starting with __ and the normal name is an alias. */
247f5006 28384#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
28385choke me
28386#else
e6cc62c6
VS
28387char (*f) () = $ac_func;
28388#endif
28389#ifdef __cplusplus
28390}
10f2d63a
VZ
28391#endif
28392
e6cc62c6
VS
28393int
28394main ()
28395{
28396return f != $ac_func;
28397 ;
28398 return 0;
28399}
28400_ACEOF
28401rm -f conftest.$ac_objext conftest$ac_exeext
28402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 28403 (eval $ac_link) 2>conftest.er1
e6cc62c6 28404 ac_status=$?
f95e4495
VS
28405 grep -v '^ *+' conftest.er1 >conftest.err
28406 rm -f conftest.er1
28407 cat conftest.err >&5
e6cc62c6
VS
28408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28409 (exit $ac_status); } &&
f95e4495
VS
28410 { ac_try='test -z "$ac_c_werror_flag"
28411 || test ! -s conftest.err'
28412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28413 (eval $ac_try) 2>&5
28414 ac_status=$?
28415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28416 (exit $ac_status); }; } &&
28417 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28419 (eval $ac_try) 2>&5
28420 ac_status=$?
28421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422 (exit $ac_status); }; }; then
28423 eval "$as_ac_var=yes"
28424else
28425 echo "$as_me: failed program was:" >&5
28426sed 's/^/| /' conftest.$ac_ext >&5
28427
28428eval "$as_ac_var=no"
28429fi
f95e4495
VS
28430rm -f conftest.err conftest.$ac_objext \
28431 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28432fi
28433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28434echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28435if test `eval echo '${'$as_ac_var'}'` = yes; then
28436 cat >>confdefs.h <<_ACEOF
28437#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28438_ACEOF
270a909e 28439
4f14bcd8 28440fi
247f5006 28441done
1e487827 28442
af15babd 28443else
e6cc62c6
VS
28444 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28445echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 28446fi
52127426 28447
8284b0c5 28448
e6cc62c6
VS
28449
28450ac_ext=cc
247f5006 28451ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28452ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28453ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28454ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28455
af15babd 28456
247f5006
VZ
28457
28458for ac_func in vsnprintf
28459do
e6cc62c6
VS
28460as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28461echo "$as_me:$LINENO: checking for $ac_func" >&5
28462echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28463if eval "test \"\${$as_ac_var+set}\" = set"; then
28464 echo $ECHO_N "(cached) $ECHO_C" >&6
28465else
28466 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28467/* confdefs.h. */
28468_ACEOF
28469cat confdefs.h >>conftest.$ac_ext
28470cat >>conftest.$ac_ext <<_ACEOF
28471/* end confdefs.h. */
f95e4495
VS
28472/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28474#define $ac_func innocuous_$ac_func
28475
247f5006 28476/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28477 which can conflict with char $ac_func (); below.
28478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28479 <limits.h> exists even on freestanding compilers. */
f95e4495 28480
e6cc62c6
VS
28481#ifdef __STDC__
28482# include <limits.h>
28483#else
28484# include <assert.h>
28485#endif
f95e4495
VS
28486
28487#undef $ac_func
28488
247f5006
VZ
28489/* Override any gcc2 internal prototype to avoid an error. */
28490#ifdef __cplusplus
28491extern "C"
e6cc62c6 28492{
247f5006
VZ
28493#endif
28494/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28495 builtin and then its argument prototype would still apply. */
28496char $ac_func ();
247f5006
VZ
28497/* The GNU C library defines this for functions which it implements
28498 to always fail with ENOSYS. Some functions are actually named
28499 something starting with __ and the normal name is an alias. */
28500#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28501choke me
28502#else
e6cc62c6
VS
28503char (*f) () = $ac_func;
28504#endif
28505#ifdef __cplusplus
28506}
247f5006 28507#endif
af15babd 28508
e6cc62c6
VS
28509int
28510main ()
28511{
28512return f != $ac_func;
28513 ;
28514 return 0;
28515}
28516_ACEOF
28517rm -f conftest.$ac_objext conftest$ac_exeext
28518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 28519 (eval $ac_link) 2>conftest.er1
e6cc62c6 28520 ac_status=$?
f95e4495
VS
28521 grep -v '^ *+' conftest.er1 >conftest.err
28522 rm -f conftest.er1
28523 cat conftest.err >&5
e6cc62c6
VS
28524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 (exit $ac_status); } &&
f95e4495
VS
28526 { ac_try='test -z "$ac_cxx_werror_flag"
28527 || test ! -s conftest.err'
28528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28529 (eval $ac_try) 2>&5
28530 ac_status=$?
28531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532 (exit $ac_status); }; } &&
28533 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28535 (eval $ac_try) 2>&5
28536 ac_status=$?
28537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538 (exit $ac_status); }; }; then
28539 eval "$as_ac_var=yes"
28540else
28541 echo "$as_me: failed program was:" >&5
28542sed 's/^/| /' conftest.$ac_ext >&5
28543
28544eval "$as_ac_var=no"
28545fi
f95e4495
VS
28546rm -f conftest.err conftest.$ac_objext \
28547 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28548fi
28549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28550echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28551if test `eval echo '${'$as_ac_var'}'` = yes; then
28552 cat >>confdefs.h <<_ACEOF
28553#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28554_ACEOF
52127426 28555
5c6fa7d2 28556fi
247f5006 28557done
8284b0c5 28558
4f14bcd8 28559
8d90d2f2 28560if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
28561 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
28562echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
28563if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
28564 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 28565else
e6cc62c6
VS
28566
28567 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28568/* confdefs.h. */
28569_ACEOF
28570cat confdefs.h >>conftest.$ac_ext
28571cat >>conftest.$ac_ext <<_ACEOF
28572/* end confdefs.h. */
8d90d2f2
VZ
28573
28574 #include <stdio.h>
28575 #include <stdarg.h>
e6cc62c6
VS
28576
28577int
28578main ()
28579{
8d90d2f2
VZ
28580
28581 char *buf;
28582 va_list ap;
28583 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
28584
28585 ;
28586 return 0;
28587}
28588_ACEOF
28589rm -f conftest.$ac_objext
28590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 28591 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28592 ac_status=$?
f95e4495
VS
28593 grep -v '^ *+' conftest.er1 >conftest.err
28594 rm -f conftest.er1
28595 cat conftest.err >&5
e6cc62c6
VS
28596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597 (exit $ac_status); } &&
f95e4495
VS
28598 { ac_try='test -z "$ac_cxx_werror_flag"
28599 || test ! -s conftest.err'
28600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28601 (eval $ac_try) 2>&5
28602 ac_status=$?
28603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604 (exit $ac_status); }; } &&
28605 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28607 (eval $ac_try) 2>&5
28608 ac_status=$?
28609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610 (exit $ac_status); }; }; then
8d90d2f2
VZ
28611 wx_cv_func_vsnprintf_decl=yes
28612else
e6cc62c6
VS
28613 echo "$as_me: failed program was:" >&5
28614sed 's/^/| /' conftest.$ac_ext >&5
28615
28616wx_cv_func_vsnprintf_decl=no
28617
8d90d2f2 28618fi
f95e4495 28619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 28620
8d90d2f2 28621
e6cc62c6
VS
28622fi
28623echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
28624echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
28625
28626 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 28627 cat >>confdefs.h <<\_ACEOF
8d90d2f2 28628#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 28629_ACEOF
8d90d2f2
VZ
28630
28631 fi
28632fi
28633
247f5006 28634if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
28635
28636
28637
28638for ac_func in fputwc wprintf vswprintf
d74f4b5a 28639do
e6cc62c6
VS
28640as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28641echo "$as_me:$LINENO: checking for $ac_func" >&5
28642echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28643if eval "test \"\${$as_ac_var+set}\" = set"; then
28644 echo $ECHO_N "(cached) $ECHO_C" >&6
28645else
28646 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28647/* confdefs.h. */
28648_ACEOF
28649cat confdefs.h >>conftest.$ac_ext
28650cat >>conftest.$ac_ext <<_ACEOF
28651/* end confdefs.h. */
f95e4495
VS
28652/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28654#define $ac_func innocuous_$ac_func
28655
d74f4b5a 28656/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28657 which can conflict with char $ac_func (); below.
28658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28659 <limits.h> exists even on freestanding compilers. */
f95e4495 28660
e6cc62c6
VS
28661#ifdef __STDC__
28662# include <limits.h>
28663#else
28664# include <assert.h>
28665#endif
f95e4495
VS
28666
28667#undef $ac_func
28668
d74f4b5a 28669/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
28670#ifdef __cplusplus
28671extern "C"
e6cc62c6 28672{
247f5006 28673#endif
d74f4b5a 28674/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28675 builtin and then its argument prototype would still apply. */
28676char $ac_func ();
d74f4b5a
VZ
28677/* The GNU C library defines this for functions which it implements
28678 to always fail with ENOSYS. Some functions are actually named
28679 something starting with __ and the normal name is an alias. */
28680#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28681choke me
28682#else
e6cc62c6
VS
28683char (*f) () = $ac_func;
28684#endif
28685#ifdef __cplusplus
28686}
d74f4b5a
VZ
28687#endif
28688
e6cc62c6
VS
28689int
28690main ()
28691{
28692return f != $ac_func;
28693 ;
28694 return 0;
28695}
28696_ACEOF
28697rm -f conftest.$ac_objext conftest$ac_exeext
28698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 28699 (eval $ac_link) 2>conftest.er1
e6cc62c6 28700 ac_status=$?
f95e4495
VS
28701 grep -v '^ *+' conftest.er1 >conftest.err
28702 rm -f conftest.er1
28703 cat conftest.err >&5
e6cc62c6
VS
28704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28705 (exit $ac_status); } &&
f95e4495
VS
28706 { ac_try='test -z "$ac_cxx_werror_flag"
28707 || test ! -s conftest.err'
28708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28709 (eval $ac_try) 2>&5
28710 ac_status=$?
28711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28712 (exit $ac_status); }; } &&
28713 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28715 (eval $ac_try) 2>&5
28716 ac_status=$?
28717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); }; }; then
28719 eval "$as_ac_var=yes"
28720else
28721 echo "$as_me: failed program was:" >&5
28722sed 's/^/| /' conftest.$ac_ext >&5
28723
28724eval "$as_ac_var=no"
28725fi
f95e4495
VS
28726rm -f conftest.err conftest.$ac_objext \
28727 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28728fi
28729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28730echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28731if test `eval echo '${'$as_ac_var'}'` = yes; then
28732 cat >>confdefs.h <<_ACEOF
28733#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28734_ACEOF
d74f4b5a 28735
d74f4b5a
VZ
28736fi
28737done
28738
8d90d2f2 28739
e6cc62c6
VS
28740 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
28741echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
28742 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28743/* confdefs.h. */
28744_ACEOF
28745cat confdefs.h >>conftest.$ac_ext
28746cat >>conftest.$ac_ext <<_ACEOF
28747/* end confdefs.h. */
79668cae 28748#include <wchar.h>
e6cc62c6
VS
28749int
28750main ()
28751{
79668cae 28752&_vsnwprintf;
e6cc62c6
VS
28753 ;
28754 return 0;
28755}
28756_ACEOF
28757rm -f conftest.$ac_objext
28758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 28759 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28760 ac_status=$?
f95e4495
VS
28761 grep -v '^ *+' conftest.er1 >conftest.err
28762 rm -f conftest.er1
28763 cat conftest.err >&5
e6cc62c6
VS
28764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765 (exit $ac_status); } &&
f95e4495
VS
28766 { ac_try='test -z "$ac_cxx_werror_flag"
28767 || test ! -s conftest.err'
28768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28769 (eval $ac_try) 2>&5
28770 ac_status=$?
28771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772 (exit $ac_status); }; } &&
28773 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28775 (eval $ac_try) 2>&5
28776 ac_status=$?
28777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778 (exit $ac_status); }; }; then
28779 echo "$as_me:$LINENO: result: yes" >&5
28780echo "${ECHO_T}yes" >&6
28781 cat >>confdefs.h <<\_ACEOF
79668cae 28782#define HAVE__VSNWPRINTF 1
e6cc62c6 28783_ACEOF
79668cae
MB
28784
28785else
e6cc62c6
VS
28786 echo "$as_me: failed program was:" >&5
28787sed 's/^/| /' conftest.$ac_ext >&5
28788
28789echo "$as_me:$LINENO: result: no" >&5
28790echo "${ECHO_T}no" >&6
79668cae 28791fi
f95e4495 28792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
28793fi
28794
247f5006
VZ
28795ac_ext=c
28796ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28799ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
28800
28801
28802
28803
4f14bcd8 28804if test "$TOOLKIT" != "MSW"; then
af15babd 28805
8284b0c5
MB
28806
28807
e6cc62c6
VS
28808
28809ac_ext=cc
4f14bcd8 28810ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 28814
52127426 28815
e6cc62c6
VS
28816
28817
28818# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
28819if test "${with_libiconv_prefix+set}" = set; then
28820 withval="$with_libiconv_prefix"
e6cc62c6 28821
b040e242
VS
28822 for dir in `echo "$withval" | tr : ' '`; do
28823 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
28824 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
28825 done
b040e242 28826
e6cc62c6 28827fi;
b040e242 28828
e6cc62c6
VS
28829 echo "$as_me:$LINENO: checking for iconv" >&5
28830echo $ECHO_N "checking for iconv... $ECHO_C" >&6
28831if test "${am_cv_func_iconv+set}" = set; then
28832 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 28833else
e6cc62c6 28834
b040e242
VS
28835 am_cv_func_iconv="no, consider installing GNU libiconv"
28836 am_cv_lib_iconv=no
e6cc62c6 28837 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28838/* confdefs.h. */
28839_ACEOF
28840cat confdefs.h >>conftest.$ac_ext
28841cat >>conftest.$ac_ext <<_ACEOF
28842/* end confdefs.h. */
b040e242 28843#include <stdlib.h>
4f14bcd8 28844#include <iconv.h>
e6cc62c6
VS
28845int
28846main ()
28847{
b040e242
VS
28848iconv_t cd = iconv_open("","");
28849 iconv(cd,NULL,NULL,NULL,NULL);
28850 iconv_close(cd);
e6cc62c6
VS
28851 ;
28852 return 0;
28853}
28854_ACEOF
28855rm -f conftest.$ac_objext conftest$ac_exeext
28856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 28857 (eval $ac_link) 2>conftest.er1
e6cc62c6 28858 ac_status=$?
f95e4495
VS
28859 grep -v '^ *+' conftest.er1 >conftest.err
28860 rm -f conftest.er1
28861 cat conftest.err >&5
e6cc62c6
VS
28862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 (exit $ac_status); } &&
f95e4495
VS
28864 { ac_try='test -z "$ac_cxx_werror_flag"
28865 || test ! -s conftest.err'
28866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28867 (eval $ac_try) 2>&5
28868 ac_status=$?
28869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28870 (exit $ac_status); }; } &&
28871 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28873 (eval $ac_try) 2>&5
28874 ac_status=$?
28875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876 (exit $ac_status); }; }; then
b040e242 28877 am_cv_func_iconv=yes
af15babd 28878else
e6cc62c6
VS
28879 echo "$as_me: failed program was:" >&5
28880sed 's/^/| /' conftest.$ac_ext >&5
28881
b040e242 28882fi
f95e4495
VS
28883rm -f conftest.err conftest.$ac_objext \
28884 conftest$ac_exeext conftest.$ac_ext
b040e242
VS
28885 if test "$am_cv_func_iconv" != yes; then
28886 am_save_LIBS="$LIBS"
28887 LIBS="$LIBS -liconv"
e6cc62c6 28888 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28889/* confdefs.h. */
28890_ACEOF
28891cat confdefs.h >>conftest.$ac_ext
28892cat >>conftest.$ac_ext <<_ACEOF
28893/* end confdefs.h. */
b040e242
VS
28894#include <stdlib.h>
28895#include <iconv.h>
e6cc62c6
VS
28896int
28897main ()
28898{
b040e242
VS
28899iconv_t cd = iconv_open("","");
28900 iconv(cd,NULL,NULL,NULL,NULL);
28901 iconv_close(cd);
e6cc62c6
VS
28902 ;
28903 return 0;
28904}
28905_ACEOF
28906rm -f conftest.$ac_objext conftest$ac_exeext
28907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 28908 (eval $ac_link) 2>conftest.er1
e6cc62c6 28909 ac_status=$?
f95e4495
VS
28910 grep -v '^ *+' conftest.er1 >conftest.err
28911 rm -f conftest.er1
28912 cat conftest.err >&5
e6cc62c6
VS
28913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914 (exit $ac_status); } &&
f95e4495
VS
28915 { ac_try='test -z "$ac_cxx_werror_flag"
28916 || test ! -s conftest.err'
28917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28918 (eval $ac_try) 2>&5
28919 ac_status=$?
28920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28921 (exit $ac_status); }; } &&
28922 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28924 (eval $ac_try) 2>&5
28925 ac_status=$?
28926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28927 (exit $ac_status); }; }; then
b040e242
VS
28928 am_cv_lib_iconv=yes
28929 am_cv_func_iconv=yes
28930else
e6cc62c6
VS
28931 echo "$as_me: failed program was:" >&5
28932sed 's/^/| /' conftest.$ac_ext >&5
28933
af15babd 28934fi
f95e4495
VS
28935rm -f conftest.err conftest.$ac_objext \
28936 conftest$ac_exeext conftest.$ac_ext
b040e242
VS
28937 LIBS="$am_save_LIBS"
28938 fi
247f5006 28939
e6cc62c6
VS
28940fi
28941echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
28942echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 28943 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
28944
28945cat >>confdefs.h <<\_ACEOF
b040e242 28946#define HAVE_ICONV 1
e6cc62c6 28947_ACEOF
b040e242 28948
e6cc62c6
VS
28949 echo "$as_me:$LINENO: checking if iconv needs const" >&5
28950echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
28951if test "${wx_cv_func_iconv_const+set}" = set; then
28952 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 28953else
e6cc62c6 28954 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28955/* confdefs.h. */
28956_ACEOF
28957cat confdefs.h >>conftest.$ac_ext
28958cat >>conftest.$ac_ext <<_ACEOF
28959/* end confdefs.h. */
b040e242
VS
28960
28961#include <stdlib.h>
28962#include <iconv.h>
28963extern
28964#ifdef __cplusplus
28965"C"
28966#endif
28967#if defined(__STDC__) || defined(__cplusplus)
28968size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
28969#else
28970size_t iconv();
28971#endif
af15babd 28972
e6cc62c6
VS
28973int
28974main ()
28975{
28976
28977 ;
28978 return 0;
28979}
28980_ACEOF
28981rm -f conftest.$ac_objext
28982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 28983 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28984 ac_status=$?
f95e4495
VS
28985 grep -v '^ *+' conftest.er1 >conftest.err
28986 rm -f conftest.er1
28987 cat conftest.err >&5
e6cc62c6
VS
28988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28989 (exit $ac_status); } &&
f95e4495
VS
28990 { ac_try='test -z "$ac_cxx_werror_flag"
28991 || test ! -s conftest.err'
28992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28993 (eval $ac_try) 2>&5
28994 ac_status=$?
28995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996 (exit $ac_status); }; } &&
28997 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28999 (eval $ac_try) 2>&5
29000 ac_status=$?
29001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002 (exit $ac_status); }; }; then
b7043674 29003 wx_cv_func_iconv_const="no"
b040e242 29004else
e6cc62c6
VS
29005 echo "$as_me: failed program was:" >&5
29006sed 's/^/| /' conftest.$ac_ext >&5
29007
29008wx_cv_func_iconv_const="yes"
29009
247f5006 29010fi
f95e4495 29011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29012
e6cc62c6
VS
29013fi
29014echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29015echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
29016
29017 iconv_const=
1c405bb5 29018 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
29019 iconv_const="const"
29020 fi
29021
e6cc62c6
VS
29022
29023cat >>confdefs.h <<_ACEOF
f09359cf 29024#define ICONV_CONST $iconv_const
e6cc62c6 29025_ACEOF
b040e242
VS
29026
29027 fi
29028 LIBICONV=
29029 if test "$am_cv_lib_iconv" = yes; then
29030 LIBICONV="-liconv"
29031 fi
e6cc62c6 29032
b040e242
VS
29033
29034LIBS="$LIBICONV $LIBS"
4f14bcd8 29035ac_ext=c
4f14bcd8 29036ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29039ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 29040
5c6fa7d2 29041
8284b0c5 29042if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
29043
29044for ac_func in sigaction
af15babd 29045do
e6cc62c6
VS
29046as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29047echo "$as_me:$LINENO: checking for $ac_func" >&5
29048echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29049if eval "test \"\${$as_ac_var+set}\" = set"; then
29050 echo $ECHO_N "(cached) $ECHO_C" >&6
29051else
29052 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29053/* confdefs.h. */
29054_ACEOF
29055cat confdefs.h >>conftest.$ac_ext
29056cat >>conftest.$ac_ext <<_ACEOF
29057/* end confdefs.h. */
f95e4495
VS
29058/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29060#define $ac_func innocuous_$ac_func
29061
af15babd 29062/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29063 which can conflict with char $ac_func (); below.
29064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29065 <limits.h> exists even on freestanding compilers. */
f95e4495 29066
e6cc62c6
VS
29067#ifdef __STDC__
29068# include <limits.h>
29069#else
29070# include <assert.h>
29071#endif
f95e4495
VS
29072
29073#undef $ac_func
29074
af15babd 29075/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29076#ifdef __cplusplus
29077extern "C"
29078{
29079#endif
af15babd 29080/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29081 builtin and then its argument prototype would still apply. */
29082char $ac_func ();
af15babd
VZ
29083/* The GNU C library defines this for functions which it implements
29084 to always fail with ENOSYS. Some functions are actually named
29085 something starting with __ and the normal name is an alias. */
29086#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29087choke me
29088#else
e6cc62c6
VS
29089char (*f) () = $ac_func;
29090#endif
29091#ifdef __cplusplus
29092}
af15babd
VZ
29093#endif
29094
e6cc62c6
VS
29095int
29096main ()
29097{
29098return f != $ac_func;
29099 ;
29100 return 0;
29101}
29102_ACEOF
29103rm -f conftest.$ac_objext conftest$ac_exeext
29104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 29105 (eval $ac_link) 2>conftest.er1
e6cc62c6 29106 ac_status=$?
f95e4495
VS
29107 grep -v '^ *+' conftest.er1 >conftest.err
29108 rm -f conftest.er1
29109 cat conftest.err >&5
e6cc62c6
VS
29110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111 (exit $ac_status); } &&
f95e4495
VS
29112 { ac_try='test -z "$ac_c_werror_flag"
29113 || test ! -s conftest.err'
29114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29115 (eval $ac_try) 2>&5
29116 ac_status=$?
29117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118 (exit $ac_status); }; } &&
29119 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29121 (eval $ac_try) 2>&5
29122 ac_status=$?
29123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29124 (exit $ac_status); }; }; then
29125 eval "$as_ac_var=yes"
29126else
29127 echo "$as_me: failed program was:" >&5
29128sed 's/^/| /' conftest.$ac_ext >&5
29129
29130eval "$as_ac_var=no"
29131fi
f95e4495
VS
29132rm -f conftest.err conftest.$ac_objext \
29133 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29134fi
29135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29136echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29137if test `eval echo '${'$as_ac_var'}'` = yes; then
29138 cat >>confdefs.h <<_ACEOF
29139#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29140_ACEOF
7b4a847f 29141
4f14bcd8
GD
29142fi
29143done
29144
8284b0c5 29145
4f14bcd8 29146 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
29147 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29148echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
29149 wxUSE_ON_FATAL_EXCEPTION=no
29150 fi
29151
29152 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
29153
29154
29155 ac_ext=cc
5c6fa7d2 29156ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
29157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 29160
5c6fa7d2 29161
e6cc62c6
VS
29162 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29163echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29164if test "${wx_cv_type_sa_handler+set}" = set; then
29165 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 29166else
e6cc62c6
VS
29167
29168 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29169/* confdefs.h. */
29170_ACEOF
29171cat confdefs.h >>conftest.$ac_ext
29172cat >>conftest.$ac_ext <<_ACEOF
29173/* end confdefs.h. */
4f14bcd8 29174#include <signal.h>
e6cc62c6
VS
29175int
29176main ()
29177{
4f14bcd8
GD
29178
29179 extern void testSigHandler(int);
29180
29181 struct sigaction sa;
29182 sa.sa_handler = testSigHandler;
e6cc62c6
VS
29183
29184 ;
29185 return 0;
29186}
29187_ACEOF
29188rm -f conftest.$ac_objext
29189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 29190 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29191 ac_status=$?
f95e4495
VS
29192 grep -v '^ *+' conftest.er1 >conftest.err
29193 rm -f conftest.er1
29194 cat conftest.err >&5
e6cc62c6
VS
29195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29196 (exit $ac_status); } &&
f95e4495
VS
29197 { ac_try='test -z "$ac_cxx_werror_flag"
29198 || test ! -s conftest.err'
29199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29200 (eval $ac_try) 2>&5
29201 ac_status=$?
29202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203 (exit $ac_status); }; } &&
29204 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29206 (eval $ac_try) 2>&5
29207 ac_status=$?
29208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29209 (exit $ac_status); }; }; then
29210
4f14bcd8 29211 wx_cv_type_sa_handler=int
e6cc62c6 29212
af15babd 29213else
e6cc62c6
VS
29214 echo "$as_me: failed program was:" >&5
29215sed 's/^/| /' conftest.$ac_ext >&5
29216
29217
4f14bcd8 29218 wx_cv_type_sa_handler=void
e6cc62c6 29219
247f5006 29220fi
f95e4495 29221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29222
e6cc62c6
VS
29223fi
29224echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29225echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
29226
29227 ac_ext=c
4f14bcd8 29228ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29231ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 29232
8284b0c5 29233
e6cc62c6 29234 cat >>confdefs.h <<_ACEOF
4f14bcd8 29235#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 29236_ACEOF
af15babd 29237
4f14bcd8
GD
29238 fi
29239fi
af15babd 29240
e6cc62c6
VS
29241
29242
a1d22ad7 29243for ac_func in mkstemp mktemp
af15babd 29244do
e6cc62c6
VS
29245as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29246echo "$as_me:$LINENO: checking for $ac_func" >&5
29247echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29248if eval "test \"\${$as_ac_var+set}\" = set"; then
29249 echo $ECHO_N "(cached) $ECHO_C" >&6
29250else
29251 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29252/* confdefs.h. */
29253_ACEOF
29254cat confdefs.h >>conftest.$ac_ext
29255cat >>conftest.$ac_ext <<_ACEOF
29256/* end confdefs.h. */
f95e4495
VS
29257/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29259#define $ac_func innocuous_$ac_func
29260
af15babd 29261/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29262 which can conflict with char $ac_func (); below.
29263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29264 <limits.h> exists even on freestanding compilers. */
f95e4495 29265
e6cc62c6
VS
29266#ifdef __STDC__
29267# include <limits.h>
29268#else
29269# include <assert.h>
29270#endif
f95e4495
VS
29271
29272#undef $ac_func
29273
af15babd 29274/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29275#ifdef __cplusplus
29276extern "C"
29277{
29278#endif
af15babd 29279/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29280 builtin and then its argument prototype would still apply. */
29281char $ac_func ();
af15babd
VZ
29282/* The GNU C library defines this for functions which it implements
29283 to always fail with ENOSYS. Some functions are actually named
29284 something starting with __ and the normal name is an alias. */
29285#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29286choke me
29287#else
e6cc62c6
VS
29288char (*f) () = $ac_func;
29289#endif
29290#ifdef __cplusplus
29291}
af15babd
VZ
29292#endif
29293
e6cc62c6
VS
29294int
29295main ()
29296{
29297return f != $ac_func;
29298 ;
29299 return 0;
29300}
29301_ACEOF
29302rm -f conftest.$ac_objext conftest$ac_exeext
29303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 29304 (eval $ac_link) 2>conftest.er1
e6cc62c6 29305 ac_status=$?
f95e4495
VS
29306 grep -v '^ *+' conftest.er1 >conftest.err
29307 rm -f conftest.er1
29308 cat conftest.err >&5
e6cc62c6
VS
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); } &&
f95e4495
VS
29311 { ac_try='test -z "$ac_c_werror_flag"
29312 || test ! -s conftest.err'
29313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29314 (eval $ac_try) 2>&5
29315 ac_status=$?
29316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29317 (exit $ac_status); }; } &&
29318 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29320 (eval $ac_try) 2>&5
29321 ac_status=$?
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); }; }; then
29324 eval "$as_ac_var=yes"
29325else
29326 echo "$as_me: failed program was:" >&5
29327sed 's/^/| /' conftest.$ac_ext >&5
29328
29329eval "$as_ac_var=no"
29330fi
f95e4495
VS
29331rm -f conftest.err conftest.$ac_objext \
29332 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29333fi
29334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29335echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29336if test `eval echo '${'$as_ac_var'}'` = yes; then
29337 cat >>confdefs.h <<_ACEOF
29338#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29339_ACEOF
ade35f11 29340 break
ade35f11
VZ
29341fi
29342done
29343
8284b0c5 29344
e6cc62c6
VS
29345echo "$as_me:$LINENO: checking for statfs" >&5
29346echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29347if test "${wx_cv_func_statfs+set}" = set; then
29348 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29349else
e6cc62c6 29350 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29351/* confdefs.h. */
29352_ACEOF
29353cat confdefs.h >>conftest.$ac_ext
29354cat >>conftest.$ac_ext <<_ACEOF
29355/* end confdefs.h. */
4f14bcd8
GD
29356
29357 #if defined(__BSD__)
29358 #include <sys/param.h>
29359 #include <sys/mount.h>
29360 #else
29361 #include <sys/vfs.h>
29362 #endif
e6cc62c6
VS
29363
29364int
29365main ()
29366{
4f14bcd8
GD
29367
29368 long l;
29369 struct statfs fs;
29370 statfs("/", &fs);
29371 l = fs.f_bsize;
29372 l += fs.f_blocks;
29373 l += fs.f_bavail;
e6cc62c6
VS
29374
29375 ;
29376 return 0;
29377}
29378_ACEOF
29379rm -f conftest.$ac_objext
29380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 29381 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29382 ac_status=$?
f95e4495
VS
29383 grep -v '^ *+' conftest.er1 >conftest.err
29384 rm -f conftest.er1
29385 cat conftest.err >&5
e6cc62c6
VS
29386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29387 (exit $ac_status); } &&
f95e4495
VS
29388 { ac_try='test -z "$ac_c_werror_flag"
29389 || test ! -s conftest.err'
29390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29391 (eval $ac_try) 2>&5
29392 ac_status=$?
29393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394 (exit $ac_status); }; } &&
29395 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29397 (eval $ac_try) 2>&5
29398 ac_status=$?
29399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400 (exit $ac_status); }; }; then
29401
4f14bcd8 29402 wx_cv_func_statfs=yes
e6cc62c6 29403
4f14bcd8 29404else
e6cc62c6
VS
29405 echo "$as_me: failed program was:" >&5
29406sed 's/^/| /' conftest.$ac_ext >&5
29407
29408
4f14bcd8 29409 wx_cv_func_statfs=no
e6cc62c6 29410
8284b0c5 29411
247f5006 29412fi
f95e4495 29413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29414
e6cc62c6
VS
29415fi
29416echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29417echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
29418
29419if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 29420 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 29421 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29422#define HAVE_STATFS 1
e6cc62c6 29423_ACEOF
4f14bcd8
GD
29424
29425else
e6cc62c6
VS
29426 echo "$as_me:$LINENO: checking for statvfs" >&5
29427echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29428if test "${wx_cv_func_statvfs+set}" = set; then
29429 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 29430else
e6cc62c6 29431 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29432/* confdefs.h. */
29433_ACEOF
29434cat confdefs.h >>conftest.$ac_ext
29435cat >>conftest.$ac_ext <<_ACEOF
29436/* end confdefs.h. */
af15babd 29437
54ab82b3
VZ
29438 #include <stddef.h>
29439 #include <sys/statvfs.h>
e6cc62c6
VS
29440
29441int
29442main ()
29443{
af15babd 29444
54ab82b3 29445 statvfs("/", NULL);
e6cc62c6
VS
29446
29447 ;
29448 return 0;
29449}
29450_ACEOF
29451rm -f conftest.$ac_objext
29452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 29453 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29454 ac_status=$?
f95e4495
VS
29455 grep -v '^ *+' conftest.er1 >conftest.err
29456 rm -f conftest.er1
29457 cat conftest.err >&5
e6cc62c6
VS
29458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459 (exit $ac_status); } &&
f95e4495
VS
29460 { ac_try='test -z "$ac_c_werror_flag"
29461 || test ! -s conftest.err'
29462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29463 (eval $ac_try) 2>&5
29464 ac_status=$?
29465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29466 (exit $ac_status); }; } &&
29467 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29469 (eval $ac_try) 2>&5
29470 ac_status=$?
29471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472 (exit $ac_status); }; }; then
54ab82b3 29473 wx_cv_func_statvfs=yes
af15babd 29474else
e6cc62c6
VS
29475 echo "$as_me: failed program was:" >&5
29476sed 's/^/| /' conftest.$ac_ext >&5
29477
29478wx_cv_func_statvfs=no
29479
247f5006 29480fi
f95e4495 29481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29482
e6cc62c6
VS
29483fi
29484echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29485echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 29486
4f14bcd8 29487 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
29488
29489
29490 ac_ext=cc
54ab82b3 29491ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
29492ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29493ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29494ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
29495
29496
e6cc62c6
VS
29497 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29498echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29499if test "${wx_cv_type_statvfs_t+set}" = set; then
29500 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 29501else
e6cc62c6 29502 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29503/* confdefs.h. */
29504_ACEOF
29505cat confdefs.h >>conftest.$ac_ext
29506cat >>conftest.$ac_ext <<_ACEOF
29507/* end confdefs.h. */
54ab82b3
VZ
29508
29509 #include <sys/statvfs.h>
e6cc62c6
VS
29510
29511int
29512main ()
29513{
54ab82b3
VZ
29514
29515 long l;
29516 statvfs_t fs;
29517 statvfs("/", &fs);
29518 l = fs.f_bsize;
29519 l += fs.f_blocks;
29520 l += fs.f_bavail;
e6cc62c6
VS
29521
29522 ;
29523 return 0;
29524}
29525_ACEOF
29526rm -f conftest.$ac_objext
29527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 29528 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29529 ac_status=$?
f95e4495
VS
29530 grep -v '^ *+' conftest.er1 >conftest.err
29531 rm -f conftest.er1
29532 cat conftest.err >&5
e6cc62c6
VS
29533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534 (exit $ac_status); } &&
f95e4495
VS
29535 { ac_try='test -z "$ac_cxx_werror_flag"
29536 || test ! -s conftest.err'
29537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29538 (eval $ac_try) 2>&5
29539 ac_status=$?
29540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541 (exit $ac_status); }; } &&
29542 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29544 (eval $ac_try) 2>&5
29545 ac_status=$?
29546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29547 (exit $ac_status); }; }; then
54ab82b3
VZ
29548 wx_cv_type_statvfs_t=statvfs_t
29549else
e6cc62c6
VS
29550 echo "$as_me: failed program was:" >&5
29551sed 's/^/| /' conftest.$ac_ext >&5
29552
29553
29554 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29555/* confdefs.h. */
29556_ACEOF
29557cat confdefs.h >>conftest.$ac_ext
29558cat >>conftest.$ac_ext <<_ACEOF
29559/* end confdefs.h. */
54ab82b3
VZ
29560
29561 #include <sys/statvfs.h>
e6cc62c6
VS
29562
29563int
29564main ()
29565{
54ab82b3
VZ
29566
29567 long l;
65d8ef1e 29568 struct statvfs fs;
54ab82b3
VZ
29569 statvfs("/", &fs);
29570 l = fs.f_bsize;
29571 l += fs.f_blocks;
29572 l += fs.f_bavail;
e6cc62c6
VS
29573
29574 ;
29575 return 0;
29576}
29577_ACEOF
29578rm -f conftest.$ac_objext
29579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 29580 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29581 ac_status=$?
f95e4495
VS
29582 grep -v '^ *+' conftest.er1 >conftest.err
29583 rm -f conftest.er1
29584 cat conftest.err >&5
e6cc62c6
VS
29585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586 (exit $ac_status); } &&
f95e4495
VS
29587 { ac_try='test -z "$ac_cxx_werror_flag"
29588 || test ! -s conftest.err'
29589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29590 (eval $ac_try) 2>&5
29591 ac_status=$?
29592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29593 (exit $ac_status); }; } &&
29594 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29596 (eval $ac_try) 2>&5
29597 ac_status=$?
29598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29599 (exit $ac_status); }; }; then
54ab82b3
VZ
29600 wx_cv_type_statvfs_t="struct statvfs"
29601else
e6cc62c6
VS
29602 echo "$as_me: failed program was:" >&5
29603sed 's/^/| /' conftest.$ac_ext >&5
29604
29605wx_cv_type_statvfs_t="unknown"
29606
54ab82b3 29607fi
f95e4495 29608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
29609
29610
54ab82b3 29611fi
f95e4495 29612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54ab82b3 29613
e6cc62c6
VS
29614fi
29615echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
29616echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
29617
29618 ac_ext=c
54ab82b3 29619ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29622ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
29623
29624
29625 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 29626 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29627#define HAVE_STATVFS 1
e6cc62c6 29628_ACEOF
af15babd 29629
54ab82b3 29630 fi
4f14bcd8 29631 else
54ab82b3 29632 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
29633 fi
29634fi
af15babd 29635
54ab82b3 29636if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 29637 cat >>confdefs.h <<_ACEOF
54ab82b3 29638#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 29639_ACEOF
54ab82b3
VZ
29640
29641else
e6cc62c6
VS
29642 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
29643echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
29644fi
29645
4f14bcd8 29646if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
29647
29648
29649for ac_func in fcntl flock
af15babd 29650do
e6cc62c6
VS
29651as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29652echo "$as_me:$LINENO: checking for $ac_func" >&5
29653echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29654if eval "test \"\${$as_ac_var+set}\" = set"; then
29655 echo $ECHO_N "(cached) $ECHO_C" >&6
29656else
29657 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29658/* confdefs.h. */
29659_ACEOF
29660cat confdefs.h >>conftest.$ac_ext
29661cat >>conftest.$ac_ext <<_ACEOF
29662/* end confdefs.h. */
f95e4495
VS
29663/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29665#define $ac_func innocuous_$ac_func
29666
af15babd 29667/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29668 which can conflict with char $ac_func (); below.
29669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29670 <limits.h> exists even on freestanding compilers. */
f95e4495 29671
e6cc62c6
VS
29672#ifdef __STDC__
29673# include <limits.h>
29674#else
29675# include <assert.h>
29676#endif
f95e4495
VS
29677
29678#undef $ac_func
29679
af15babd 29680/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29681#ifdef __cplusplus
29682extern "C"
29683{
29684#endif
af15babd 29685/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29686 builtin and then its argument prototype would still apply. */
29687char $ac_func ();
af15babd
VZ
29688/* The GNU C library defines this for functions which it implements
29689 to always fail with ENOSYS. Some functions are actually named
29690 something starting with __ and the normal name is an alias. */
29691#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29692choke me
29693#else
e6cc62c6
VS
29694char (*f) () = $ac_func;
29695#endif
29696#ifdef __cplusplus
29697}
af15babd
VZ
29698#endif
29699
e6cc62c6
VS
29700int
29701main ()
29702{
29703return f != $ac_func;
29704 ;
29705 return 0;
29706}
29707_ACEOF
29708rm -f conftest.$ac_objext conftest$ac_exeext
29709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 29710 (eval $ac_link) 2>conftest.er1
e6cc62c6 29711 ac_status=$?
f95e4495
VS
29712 grep -v '^ *+' conftest.er1 >conftest.err
29713 rm -f conftest.er1
29714 cat conftest.err >&5
e6cc62c6
VS
29715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716 (exit $ac_status); } &&
f95e4495
VS
29717 { ac_try='test -z "$ac_c_werror_flag"
29718 || test ! -s conftest.err'
29719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29720 (eval $ac_try) 2>&5
29721 ac_status=$?
29722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29723 (exit $ac_status); }; } &&
29724 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29726 (eval $ac_try) 2>&5
29727 ac_status=$?
29728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29729 (exit $ac_status); }; }; then
29730 eval "$as_ac_var=yes"
29731else
29732 echo "$as_me: failed program was:" >&5
29733sed 's/^/| /' conftest.$ac_ext >&5
29734
29735eval "$as_ac_var=no"
29736fi
f95e4495
VS
29737rm -f conftest.err conftest.$ac_objext \
29738 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29739fi
29740echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29741echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29742if test `eval echo '${'$as_ac_var'}'` = yes; then
29743 cat >>confdefs.h <<_ACEOF
29744#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29745_ACEOF
4f14bcd8 29746 break
af15babd
VZ
29747fi
29748done
29749
8284b0c5 29750
4f14bcd8 29751 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
29752 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
29753echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
29754 wxUSE_SNGLINST_CHECKER=no
29755 fi
29756fi
af15babd 29757
e6cc62c6 29758
4f14bcd8 29759for ac_func in timegm
af15babd 29760do
e6cc62c6
VS
29761as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29762echo "$as_me:$LINENO: checking for $ac_func" >&5
29763echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29764if eval "test \"\${$as_ac_var+set}\" = set"; then
29765 echo $ECHO_N "(cached) $ECHO_C" >&6
29766else
29767 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29768/* confdefs.h. */
29769_ACEOF
29770cat confdefs.h >>conftest.$ac_ext
29771cat >>conftest.$ac_ext <<_ACEOF
29772/* end confdefs.h. */
f95e4495
VS
29773/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29775#define $ac_func innocuous_$ac_func
29776
af15babd 29777/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29778 which can conflict with char $ac_func (); below.
29779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29780 <limits.h> exists even on freestanding compilers. */
f95e4495 29781
e6cc62c6
VS
29782#ifdef __STDC__
29783# include <limits.h>
29784#else
29785# include <assert.h>
29786#endif
f95e4495
VS
29787
29788#undef $ac_func
29789
af15babd 29790/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29791#ifdef __cplusplus
29792extern "C"
29793{
29794#endif
af15babd 29795/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29796 builtin and then its argument prototype would still apply. */
29797char $ac_func ();
af15babd
VZ
29798/* The GNU C library defines this for functions which it implements
29799 to always fail with ENOSYS. Some functions are actually named
29800 something starting with __ and the normal name is an alias. */
247f5006
VZ
29801#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29802choke me
29803#else
e6cc62c6
VS
29804char (*f) () = $ac_func;
29805#endif
29806#ifdef __cplusplus
29807}
247f5006
VZ
29808#endif
29809
e6cc62c6
VS
29810int
29811main ()
29812{
29813return f != $ac_func;
29814 ;
29815 return 0;
29816}
29817_ACEOF
29818rm -f conftest.$ac_objext conftest$ac_exeext
29819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 29820 (eval $ac_link) 2>conftest.er1
e6cc62c6 29821 ac_status=$?
f95e4495
VS
29822 grep -v '^ *+' conftest.er1 >conftest.err
29823 rm -f conftest.er1
29824 cat conftest.err >&5
e6cc62c6
VS
29825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826 (exit $ac_status); } &&
f95e4495
VS
29827 { ac_try='test -z "$ac_c_werror_flag"
29828 || test ! -s conftest.err'
29829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29830 (eval $ac_try) 2>&5
29831 ac_status=$?
29832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29833 (exit $ac_status); }; } &&
29834 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29836 (eval $ac_try) 2>&5
29837 ac_status=$?
29838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839 (exit $ac_status); }; }; then
29840 eval "$as_ac_var=yes"
29841else
29842 echo "$as_me: failed program was:" >&5
29843sed 's/^/| /' conftest.$ac_ext >&5
29844
29845eval "$as_ac_var=no"
29846fi
f95e4495
VS
29847rm -f conftest.err conftest.$ac_objext \
29848 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29849fi
29850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29851echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29852if test `eval echo '${'$as_ac_var'}'` = yes; then
29853 cat >>confdefs.h <<_ACEOF
29854#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29855_ACEOF
703e0a69 29856
af15babd
VZ
29857fi
29858done
29859
8284b0c5 29860
e6cc62c6
VS
29861
29862
4f14bcd8 29863for ac_func in putenv setenv
10f2d63a 29864do
e6cc62c6
VS
29865as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29866echo "$as_me:$LINENO: checking for $ac_func" >&5
29867echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29868if eval "test \"\${$as_ac_var+set}\" = set"; then
29869 echo $ECHO_N "(cached) $ECHO_C" >&6
29870else
29871 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29872/* confdefs.h. */
29873_ACEOF
29874cat confdefs.h >>conftest.$ac_ext
29875cat >>conftest.$ac_ext <<_ACEOF
29876/* end confdefs.h. */
f95e4495
VS
29877/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29879#define $ac_func innocuous_$ac_func
29880
af15babd 29881/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29882 which can conflict with char $ac_func (); below.
29883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29884 <limits.h> exists even on freestanding compilers. */
f95e4495 29885
e6cc62c6
VS
29886#ifdef __STDC__
29887# include <limits.h>
29888#else
29889# include <assert.h>
29890#endif
f95e4495
VS
29891
29892#undef $ac_func
29893
af15babd 29894/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29895#ifdef __cplusplus
29896extern "C"
29897{
29898#endif
af15babd 29899/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29900 builtin and then its argument prototype would still apply. */
29901char $ac_func ();
af15babd
VZ
29902/* The GNU C library defines this for functions which it implements
29903 to always fail with ENOSYS. Some functions are actually named
29904 something starting with __ and the normal name is an alias. */
29905#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29906choke me
29907#else
e6cc62c6
VS
29908char (*f) () = $ac_func;
29909#endif
29910#ifdef __cplusplus
29911}
af15babd
VZ
29912#endif
29913
e6cc62c6
VS
29914int
29915main ()
29916{
29917return f != $ac_func;
29918 ;
29919 return 0;
29920}
29921_ACEOF
29922rm -f conftest.$ac_objext conftest$ac_exeext
29923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 29924 (eval $ac_link) 2>conftest.er1
e6cc62c6 29925 ac_status=$?
f95e4495
VS
29926 grep -v '^ *+' conftest.er1 >conftest.err
29927 rm -f conftest.er1
29928 cat conftest.err >&5
e6cc62c6
VS
29929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930 (exit $ac_status); } &&
f95e4495
VS
29931 { ac_try='test -z "$ac_c_werror_flag"
29932 || test ! -s conftest.err'
29933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29934 (eval $ac_try) 2>&5
29935 ac_status=$?
29936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29937 (exit $ac_status); }; } &&
29938 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29940 (eval $ac_try) 2>&5
29941 ac_status=$?
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); }; }; then
29944 eval "$as_ac_var=yes"
29945else
29946 echo "$as_me: failed program was:" >&5
29947sed 's/^/| /' conftest.$ac_ext >&5
29948
29949eval "$as_ac_var=no"
29950fi
f95e4495
VS
29951rm -f conftest.err conftest.$ac_objext \
29952 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29953fi
29954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29955echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29956if test `eval echo '${'$as_ac_var'}'` = yes; then
29957 cat >>confdefs.h <<_ACEOF
29958#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29959_ACEOF
4f14bcd8 29960 break
af15babd 29961fi
af15babd
VZ
29962done
29963
8284b0c5 29964
4f14bcd8
GD
29965HAVE_SOME_SLEEP_FUNC=0
29966if test "$USE_BEOS" = 1; then
e6cc62c6 29967 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29968#define HAVE_SLEEP 1
e6cc62c6 29969_ACEOF
af15babd 29970
4f14bcd8 29971 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
29972fi
29973
4f14bcd8 29974if test "$USE_DARWIN" = 1; then
e6cc62c6 29975 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29976#define HAVE_USLEEP 1
e6cc62c6 29977_ACEOF
10f2d63a 29978
4f14bcd8 29979 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
29980fi
29981
4f14bcd8
GD
29982if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
29983 POSIX4_LINK=
e6cc62c6
VS
29984
29985for ac_func in nanosleep
4f14bcd8 29986do
e6cc62c6
VS
29987as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29988echo "$as_me:$LINENO: checking for $ac_func" >&5
29989echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29990if eval "test \"\${$as_ac_var+set}\" = set"; then
29991 echo $ECHO_N "(cached) $ECHO_C" >&6
29992else
29993 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29994/* confdefs.h. */
29995_ACEOF
29996cat confdefs.h >>conftest.$ac_ext
29997cat >>conftest.$ac_ext <<_ACEOF
29998/* end confdefs.h. */
f95e4495
VS
29999/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30001#define $ac_func innocuous_$ac_func
30002
4f14bcd8 30003/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30004 which can conflict with char $ac_func (); below.
30005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30006 <limits.h> exists even on freestanding compilers. */
f95e4495 30007
e6cc62c6
VS
30008#ifdef __STDC__
30009# include <limits.h>
30010#else
30011# include <assert.h>
30012#endif
f95e4495
VS
30013
30014#undef $ac_func
30015
10f2d63a 30016/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30017#ifdef __cplusplus
30018extern "C"
30019{
30020#endif
10f2d63a 30021/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30022 builtin and then its argument prototype would still apply. */
30023char $ac_func ();
4f14bcd8
GD
30024/* The GNU C library defines this for functions which it implements
30025 to always fail with ENOSYS. Some functions are actually named
30026 something starting with __ and the normal name is an alias. */
30027#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30028choke me
30029#else
e6cc62c6
VS
30030char (*f) () = $ac_func;
30031#endif
30032#ifdef __cplusplus
30033}
4f14bcd8
GD
30034#endif
30035
e6cc62c6
VS
30036int
30037main ()
30038{
30039return f != $ac_func;
30040 ;
30041 return 0;
30042}
30043_ACEOF
30044rm -f conftest.$ac_objext conftest$ac_exeext
30045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 30046 (eval $ac_link) 2>conftest.er1
e6cc62c6 30047 ac_status=$?
f95e4495
VS
30048 grep -v '^ *+' conftest.er1 >conftest.err
30049 rm -f conftest.er1
30050 cat conftest.err >&5
e6cc62c6
VS
30051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30052 (exit $ac_status); } &&
f95e4495
VS
30053 { ac_try='test -z "$ac_c_werror_flag"
30054 || test ! -s conftest.err'
30055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30056 (eval $ac_try) 2>&5
30057 ac_status=$?
30058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059 (exit $ac_status); }; } &&
30060 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30062 (eval $ac_try) 2>&5
30063 ac_status=$?
30064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30065 (exit $ac_status); }; }; then
30066 eval "$as_ac_var=yes"
30067else
30068 echo "$as_me: failed program was:" >&5
30069sed 's/^/| /' conftest.$ac_ext >&5
30070
30071eval "$as_ac_var=no"
30072fi
f95e4495
VS
30073rm -f conftest.err conftest.$ac_objext \
30074 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30075fi
30076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30077echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30078if test `eval echo '${'$as_ac_var'}'` = yes; then
30079 cat >>confdefs.h <<_ACEOF
30080#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30081_ACEOF
30082 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30083#define HAVE_NANOSLEEP 1
e6cc62c6 30084_ACEOF
4f14bcd8 30085
10f2d63a 30086else
e6cc62c6
VS
30087
30088 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30089echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30090if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30091 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 30092else
e6cc62c6 30093 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 30094LIBS="-lposix4 $LIBS"
e6cc62c6 30095cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30096/* confdefs.h. */
30097_ACEOF
30098cat confdefs.h >>conftest.$ac_ext
30099cat >>conftest.$ac_ext <<_ACEOF
30100/* end confdefs.h. */
30101
10f2d63a 30102/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30103#ifdef __cplusplus
30104extern "C"
30105#endif
10f2d63a 30106/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30107 builtin and then its argument prototype would still apply. */
30108char nanosleep ();
30109int
30110main ()
30111{
30112nanosleep ();
30113 ;
30114 return 0;
30115}
30116_ACEOF
30117rm -f conftest.$ac_objext conftest$ac_exeext
30118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 30119 (eval $ac_link) 2>conftest.er1
e6cc62c6 30120 ac_status=$?
f95e4495
VS
30121 grep -v '^ *+' conftest.er1 >conftest.err
30122 rm -f conftest.er1
30123 cat conftest.err >&5
e6cc62c6
VS
30124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125 (exit $ac_status); } &&
f95e4495
VS
30126 { ac_try='test -z "$ac_c_werror_flag"
30127 || test ! -s conftest.err'
30128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30129 (eval $ac_try) 2>&5
30130 ac_status=$?
30131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132 (exit $ac_status); }; } &&
30133 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30135 (eval $ac_try) 2>&5
30136 ac_status=$?
30137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138 (exit $ac_status); }; }; then
30139 ac_cv_lib_posix4_nanosleep=yes
30140else
30141 echo "$as_me: failed program was:" >&5
30142sed 's/^/| /' conftest.$ac_ext >&5
30143
30144ac_cv_lib_posix4_nanosleep=no
30145fi
f95e4495
VS
30146rm -f conftest.err conftest.$ac_objext \
30147 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30148LIBS=$ac_check_lib_save_LIBS
30149fi
30150echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30151echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30152if test $ac_cv_lib_posix4_nanosleep = yes; then
30153
30154 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30155#define HAVE_NANOSLEEP 1
e6cc62c6 30156_ACEOF
4f14bcd8 30157
3d63bc3a 30158 POSIX4_LINK=" -lposix4"
e6cc62c6 30159
10f2d63a 30160else
10f2d63a 30161
e6cc62c6
VS
30162
30163for ac_func in usleep
4f14bcd8 30164do
e6cc62c6
VS
30165as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30166echo "$as_me:$LINENO: checking for $ac_func" >&5
30167echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30168if eval "test \"\${$as_ac_var+set}\" = set"; then
30169 echo $ECHO_N "(cached) $ECHO_C" >&6
30170else
30171 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30172/* confdefs.h. */
30173_ACEOF
30174cat confdefs.h >>conftest.$ac_ext
30175cat >>conftest.$ac_ext <<_ACEOF
30176/* end confdefs.h. */
f95e4495
VS
30177/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30179#define $ac_func innocuous_$ac_func
30180
4f14bcd8 30181/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30182 which can conflict with char $ac_func (); below.
30183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30184 <limits.h> exists even on freestanding compilers. */
f95e4495 30185
e6cc62c6
VS
30186#ifdef __STDC__
30187# include <limits.h>
30188#else
30189# include <assert.h>
30190#endif
f95e4495
VS
30191
30192#undef $ac_func
30193
4f14bcd8 30194/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30195#ifdef __cplusplus
30196extern "C"
30197{
30198#endif
4f14bcd8 30199/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30200 builtin and then its argument prototype would still apply. */
30201char $ac_func ();
4f14bcd8
GD
30202/* The GNU C library defines this for functions which it implements
30203 to always fail with ENOSYS. Some functions are actually named
30204 something starting with __ and the normal name is an alias. */
30205#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30206choke me
30207#else
e6cc62c6
VS
30208char (*f) () = $ac_func;
30209#endif
30210#ifdef __cplusplus
30211}
4f14bcd8
GD
30212#endif
30213
e6cc62c6
VS
30214int
30215main ()
30216{
30217return f != $ac_func;
30218 ;
30219 return 0;
30220}
30221_ACEOF
30222rm -f conftest.$ac_objext conftest$ac_exeext
30223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 30224 (eval $ac_link) 2>conftest.er1
e6cc62c6 30225 ac_status=$?
f95e4495
VS
30226 grep -v '^ *+' conftest.er1 >conftest.err
30227 rm -f conftest.er1
30228 cat conftest.err >&5
e6cc62c6
VS
30229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30230 (exit $ac_status); } &&
f95e4495
VS
30231 { ac_try='test -z "$ac_c_werror_flag"
30232 || test ! -s conftest.err'
30233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30234 (eval $ac_try) 2>&5
30235 ac_status=$?
30236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30237 (exit $ac_status); }; } &&
30238 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30240 (eval $ac_try) 2>&5
30241 ac_status=$?
30242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243 (exit $ac_status); }; }; then
30244 eval "$as_ac_var=yes"
30245else
30246 echo "$as_me: failed program was:" >&5
30247sed 's/^/| /' conftest.$ac_ext >&5
30248
30249eval "$as_ac_var=no"
30250fi
f95e4495
VS
30251rm -f conftest.err conftest.$ac_objext \
30252 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30253fi
30254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30255echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30256if test `eval echo '${'$as_ac_var'}'` = yes; then
30257 cat >>confdefs.h <<_ACEOF
30258#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30259_ACEOF
30260 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30261#define HAVE_USLEEP 1
e6cc62c6 30262_ACEOF
4f14bcd8 30263
698dcdb6 30264else
e6cc62c6
VS
30265 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30266echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30267
10f2d63a 30268fi
4f14bcd8 30269done
10f2d63a 30270
e6cc62c6
VS
30271
30272
6232543b 30273fi
10f2d63a 30274
e6cc62c6
VS
30275
30276
1e487827 30277fi
4f14bcd8 30278done
703e0a69 30279
10f2d63a
VZ
30280fi
30281
e6cc62c6
VS
30282
30283
4f14bcd8 30284for ac_func in uname gethostname
70846f0a 30285do
e6cc62c6
VS
30286as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30287echo "$as_me:$LINENO: checking for $ac_func" >&5
30288echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30289if eval "test \"\${$as_ac_var+set}\" = set"; then
30290 echo $ECHO_N "(cached) $ECHO_C" >&6
30291else
30292 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30293/* confdefs.h. */
30294_ACEOF
30295cat confdefs.h >>conftest.$ac_ext
30296cat >>conftest.$ac_ext <<_ACEOF
30297/* end confdefs.h. */
f95e4495
VS
30298/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30300#define $ac_func innocuous_$ac_func
30301
70846f0a 30302/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30303 which can conflict with char $ac_func (); below.
30304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30305 <limits.h> exists even on freestanding compilers. */
f95e4495 30306
e6cc62c6
VS
30307#ifdef __STDC__
30308# include <limits.h>
30309#else
30310# include <assert.h>
30311#endif
f95e4495
VS
30312
30313#undef $ac_func
30314
70846f0a 30315/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30316#ifdef __cplusplus
30317extern "C"
30318{
30319#endif
70846f0a 30320/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30321 builtin and then its argument prototype would still apply. */
30322char $ac_func ();
70846f0a
VZ
30323/* The GNU C library defines this for functions which it implements
30324 to always fail with ENOSYS. Some functions are actually named
30325 something starting with __ and the normal name is an alias. */
30326#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30327choke me
30328#else
e6cc62c6
VS
30329char (*f) () = $ac_func;
30330#endif
30331#ifdef __cplusplus
30332}
70846f0a
VZ
30333#endif
30334
e6cc62c6
VS
30335int
30336main ()
30337{
30338return f != $ac_func;
30339 ;
30340 return 0;
30341}
30342_ACEOF
30343rm -f conftest.$ac_objext conftest$ac_exeext
30344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 30345 (eval $ac_link) 2>conftest.er1
e6cc62c6 30346 ac_status=$?
f95e4495
VS
30347 grep -v '^ *+' conftest.er1 >conftest.err
30348 rm -f conftest.er1
30349 cat conftest.err >&5
e6cc62c6
VS
30350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351 (exit $ac_status); } &&
f95e4495
VS
30352 { ac_try='test -z "$ac_c_werror_flag"
30353 || test ! -s conftest.err'
30354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30355 (eval $ac_try) 2>&5
30356 ac_status=$?
30357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358 (exit $ac_status); }; } &&
30359 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30361 (eval $ac_try) 2>&5
30362 ac_status=$?
30363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364 (exit $ac_status); }; }; then
30365 eval "$as_ac_var=yes"
30366else
30367 echo "$as_me: failed program was:" >&5
30368sed 's/^/| /' conftest.$ac_ext >&5
30369
30370eval "$as_ac_var=no"
30371fi
f95e4495
VS
30372rm -f conftest.err conftest.$ac_objext \
30373 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30374fi
30375echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30376echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30377if test `eval echo '${'$as_ac_var'}'` = yes; then
30378 cat >>confdefs.h <<_ACEOF
30379#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30380_ACEOF
4f14bcd8 30381 break
70846f0a
VZ
30382fi
30383done
30384
8284b0c5
MB
30385
30386
e6cc62c6
VS
30387
30388ac_ext=cc
4f14bcd8 30389ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
30390ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30391ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30392ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30393
8284b0c5 30394
4f14bcd8
GD
30395
30396for ac_func in strtok_r
10f2d63a 30397do
e6cc62c6
VS
30398as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30399echo "$as_me:$LINENO: checking for $ac_func" >&5
30400echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30401if eval "test \"\${$as_ac_var+set}\" = set"; then
30402 echo $ECHO_N "(cached) $ECHO_C" >&6
30403else
30404 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30405/* confdefs.h. */
30406_ACEOF
30407cat confdefs.h >>conftest.$ac_ext
30408cat >>conftest.$ac_ext <<_ACEOF
30409/* end confdefs.h. */
f95e4495
VS
30410/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30412#define $ac_func innocuous_$ac_func
30413
4f14bcd8 30414/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30415 which can conflict with char $ac_func (); below.
30416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30417 <limits.h> exists even on freestanding compilers. */
f95e4495 30418
e6cc62c6
VS
30419#ifdef __STDC__
30420# include <limits.h>
30421#else
30422# include <assert.h>
30423#endif
f95e4495
VS
30424
30425#undef $ac_func
30426
4f14bcd8
GD
30427/* Override any gcc2 internal prototype to avoid an error. */
30428#ifdef __cplusplus
30429extern "C"
e6cc62c6 30430{
4f14bcd8
GD
30431#endif
30432/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30433 builtin and then its argument prototype would still apply. */
30434char $ac_func ();
4f14bcd8
GD
30435/* The GNU C library defines this for functions which it implements
30436 to always fail with ENOSYS. Some functions are actually named
30437 something starting with __ and the normal name is an alias. */
30438#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30439choke me
30440#else
e6cc62c6
VS
30441char (*f) () = $ac_func;
30442#endif
30443#ifdef __cplusplus
30444}
4f14bcd8
GD
30445#endif
30446
e6cc62c6
VS
30447int
30448main ()
30449{
30450return f != $ac_func;
30451 ;
30452 return 0;
30453}
30454_ACEOF
30455rm -f conftest.$ac_objext conftest$ac_exeext
30456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 30457 (eval $ac_link) 2>conftest.er1
e6cc62c6 30458 ac_status=$?
f95e4495
VS
30459 grep -v '^ *+' conftest.er1 >conftest.err
30460 rm -f conftest.er1
30461 cat conftest.err >&5
e6cc62c6
VS
30462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30463 (exit $ac_status); } &&
f95e4495
VS
30464 { ac_try='test -z "$ac_cxx_werror_flag"
30465 || test ! -s conftest.err'
30466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30467 (eval $ac_try) 2>&5
30468 ac_status=$?
30469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30470 (exit $ac_status); }; } &&
30471 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30473 (eval $ac_try) 2>&5
30474 ac_status=$?
30475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476 (exit $ac_status); }; }; then
30477 eval "$as_ac_var=yes"
30478else
30479 echo "$as_me: failed program was:" >&5
30480sed 's/^/| /' conftest.$ac_ext >&5
30481
30482eval "$as_ac_var=no"
30483fi
f95e4495
VS
30484rm -f conftest.err conftest.$ac_objext \
30485 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30486fi
30487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30488echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30489if test `eval echo '${'$as_ac_var'}'` = yes; then
30490 cat >>confdefs.h <<_ACEOF
30491#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30492_ACEOF
4f14bcd8 30493
10f2d63a
VZ
30494fi
30495done
30496
8284b0c5 30497
4f14bcd8 30498ac_ext=c
4f14bcd8 30499ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
30500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30502ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 30503
5c6fa7d2 30504
8284b0c5 30505INET_LINK=
e6cc62c6 30506
4f14bcd8
GD
30507for ac_func in inet_addr
30508do
e6cc62c6
VS
30509as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30510echo "$as_me:$LINENO: checking for $ac_func" >&5
30511echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30512if eval "test \"\${$as_ac_var+set}\" = set"; then
30513 echo $ECHO_N "(cached) $ECHO_C" >&6
30514else
30515 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30516/* confdefs.h. */
30517_ACEOF
30518cat confdefs.h >>conftest.$ac_ext
30519cat >>conftest.$ac_ext <<_ACEOF
30520/* end confdefs.h. */
f95e4495
VS
30521/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30523#define $ac_func innocuous_$ac_func
30524
4f14bcd8 30525/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30526 which can conflict with char $ac_func (); below.
30527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30528 <limits.h> exists even on freestanding compilers. */
f95e4495 30529
e6cc62c6
VS
30530#ifdef __STDC__
30531# include <limits.h>
30532#else
30533# include <assert.h>
30534#endif
f95e4495
VS
30535
30536#undef $ac_func
30537
10f2d63a 30538/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30539#ifdef __cplusplus
30540extern "C"
30541{
30542#endif
10f2d63a 30543/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30544 builtin and then its argument prototype would still apply. */
30545char $ac_func ();
4f14bcd8
GD
30546/* The GNU C library defines this for functions which it implements
30547 to always fail with ENOSYS. Some functions are actually named
30548 something starting with __ and the normal name is an alias. */
30549#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30550choke me
30551#else
e6cc62c6
VS
30552char (*f) () = $ac_func;
30553#endif
30554#ifdef __cplusplus
30555}
4f14bcd8
GD
30556#endif
30557
e6cc62c6
VS
30558int
30559main ()
30560{
30561return f != $ac_func;
30562 ;
30563 return 0;
30564}
30565_ACEOF
30566rm -f conftest.$ac_objext conftest$ac_exeext
30567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 30568 (eval $ac_link) 2>conftest.er1
e6cc62c6 30569 ac_status=$?
f95e4495
VS
30570 grep -v '^ *+' conftest.er1 >conftest.err
30571 rm -f conftest.er1
30572 cat conftest.err >&5
e6cc62c6
VS
30573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30574 (exit $ac_status); } &&
f95e4495
VS
30575 { ac_try='test -z "$ac_c_werror_flag"
30576 || test ! -s conftest.err'
30577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30578 (eval $ac_try) 2>&5
30579 ac_status=$?
30580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581 (exit $ac_status); }; } &&
30582 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30584 (eval $ac_try) 2>&5
30585 ac_status=$?
30586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587 (exit $ac_status); }; }; then
30588 eval "$as_ac_var=yes"
30589else
30590 echo "$as_me: failed program was:" >&5
30591sed 's/^/| /' conftest.$ac_ext >&5
30592
30593eval "$as_ac_var=no"
30594fi
f95e4495
VS
30595rm -f conftest.err conftest.$ac_objext \
30596 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30597fi
30598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30599echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30600if test `eval echo '${'$as_ac_var'}'` = yes; then
30601 cat >>confdefs.h <<_ACEOF
30602#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30603_ACEOF
30604 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30605#define HAVE_INET_ADDR 1
e6cc62c6 30606_ACEOF
10f2d63a
VZ
30607
30608else
e6cc62c6
VS
30609
30610 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
30611echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
30612if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
30613 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 30614else
e6cc62c6 30615 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 30616LIBS="-lnsl $LIBS"
e6cc62c6 30617cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30618/* confdefs.h. */
30619_ACEOF
30620cat confdefs.h >>conftest.$ac_ext
30621cat >>conftest.$ac_ext <<_ACEOF
30622/* end confdefs.h. */
30623
10f2d63a 30624/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30625#ifdef __cplusplus
30626extern "C"
30627#endif
10f2d63a 30628/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30629 builtin and then its argument prototype would still apply. */
30630char inet_addr ();
30631int
30632main ()
30633{
30634inet_addr ();
30635 ;
30636 return 0;
30637}
30638_ACEOF
30639rm -f conftest.$ac_objext conftest$ac_exeext
30640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 30641 (eval $ac_link) 2>conftest.er1
e6cc62c6 30642 ac_status=$?
f95e4495
VS
30643 grep -v '^ *+' conftest.er1 >conftest.err
30644 rm -f conftest.er1
30645 cat conftest.err >&5
e6cc62c6
VS
30646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30647 (exit $ac_status); } &&
f95e4495
VS
30648 { ac_try='test -z "$ac_c_werror_flag"
30649 || test ! -s conftest.err'
30650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30651 (eval $ac_try) 2>&5
30652 ac_status=$?
30653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30654 (exit $ac_status); }; } &&
30655 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30657 (eval $ac_try) 2>&5
30658 ac_status=$?
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660 (exit $ac_status); }; }; then
30661 ac_cv_lib_nsl_inet_addr=yes
30662else
30663 echo "$as_me: failed program was:" >&5
30664sed 's/^/| /' conftest.$ac_ext >&5
30665
30666ac_cv_lib_nsl_inet_addr=no
30667fi
f95e4495
VS
30668rm -f conftest.err conftest.$ac_objext \
30669 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30670LIBS=$ac_check_lib_save_LIBS
30671fi
30672echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
30673echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
30674if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 30675 INET_LINK="nsl"
10f2d63a 30676else
0e012a93
VZ
30677
30678 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
e6cc62c6
VS
30679echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
30680if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
30681 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 30682else
e6cc62c6 30683 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 30684LIBS="-lresolv $LIBS"
e6cc62c6 30685cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30686/* confdefs.h. */
30687_ACEOF
30688cat confdefs.h >>conftest.$ac_ext
30689cat >>conftest.$ac_ext <<_ACEOF
30690/* end confdefs.h. */
30691
5c6fa7d2 30692/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30693#ifdef __cplusplus
30694extern "C"
30695#endif
5c6fa7d2 30696/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30697 builtin and then its argument prototype would still apply. */
30698char inet_addr ();
30699int
30700main ()
30701{
30702inet_addr ();
30703 ;
30704 return 0;
30705}
30706_ACEOF
30707rm -f conftest.$ac_objext conftest$ac_exeext
30708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 30709 (eval $ac_link) 2>conftest.er1
e6cc62c6 30710 ac_status=$?
f95e4495
VS
30711 grep -v '^ *+' conftest.er1 >conftest.err
30712 rm -f conftest.er1
30713 cat conftest.err >&5
e6cc62c6
VS
30714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715 (exit $ac_status); } &&
f95e4495
VS
30716 { ac_try='test -z "$ac_c_werror_flag"
30717 || test ! -s conftest.err'
30718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30719 (eval $ac_try) 2>&5
30720 ac_status=$?
30721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); }; } &&
30723 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30725 (eval $ac_try) 2>&5
30726 ac_status=$?
30727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30728 (exit $ac_status); }; }; then
30729 ac_cv_lib_resolv_inet_addr=yes
30730else
30731 echo "$as_me: failed program was:" >&5
30732sed 's/^/| /' conftest.$ac_ext >&5
30733
30734ac_cv_lib_resolv_inet_addr=no
30735fi
f95e4495
VS
30736rm -f conftest.err conftest.$ac_objext \
30737 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30738LIBS=$ac_check_lib_save_LIBS
30739fi
30740echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
30741echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
30742if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 30743 INET_LINK="resolv"
698dcdb6 30744else
0e012a93
VZ
30745
30746 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
e6cc62c6
VS
30747echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
30748if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
30749 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 30750else
e6cc62c6 30751 ac_check_lib_save_LIBS=$LIBS
3c011993 30752LIBS="-lsocket $LIBS"
e6cc62c6 30753cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30754/* confdefs.h. */
30755_ACEOF
30756cat confdefs.h >>conftest.$ac_ext
30757cat >>conftest.$ac_ext <<_ACEOF
30758/* end confdefs.h. */
30759
3c011993 30760/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30761#ifdef __cplusplus
30762extern "C"
30763#endif
3c011993 30764/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30765 builtin and then its argument prototype would still apply. */
30766char inet_addr ();
30767int
30768main ()
30769{
30770inet_addr ();
30771 ;
30772 return 0;
30773}
30774_ACEOF
30775rm -f conftest.$ac_objext conftest$ac_exeext
30776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 30777 (eval $ac_link) 2>conftest.er1
e6cc62c6 30778 ac_status=$?
f95e4495
VS
30779 grep -v '^ *+' conftest.er1 >conftest.err
30780 rm -f conftest.er1
30781 cat conftest.err >&5
e6cc62c6
VS
30782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783 (exit $ac_status); } &&
f95e4495
VS
30784 { ac_try='test -z "$ac_c_werror_flag"
30785 || test ! -s conftest.err'
30786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30787 (eval $ac_try) 2>&5
30788 ac_status=$?
30789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30790 (exit $ac_status); }; } &&
30791 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30793 (eval $ac_try) 2>&5
30794 ac_status=$?
30795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30796 (exit $ac_status); }; }; then
30797 ac_cv_lib_socket_inet_addr=yes
30798else
30799 echo "$as_me: failed program was:" >&5
30800sed 's/^/| /' conftest.$ac_ext >&5
30801
30802ac_cv_lib_socket_inet_addr=no
30803fi
f95e4495
VS
30804rm -f conftest.err conftest.$ac_objext \
30805 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30806LIBS=$ac_check_lib_save_LIBS
30807fi
30808echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
30809echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
30810if test $ac_cv_lib_socket_inet_addr = yes; then
30811 INET_LINK="socket"
4f14bcd8 30812
8284b0c5 30813fi
e6cc62c6 30814
698dcdb6 30815
0e012a93 30816
7b4a847f 30817fi
e6cc62c6
VS
30818
30819
0e012a93 30820
a0b9e27f 30821fi
579d8138 30822
e6cc62c6
VS
30823
30824
5c6fa7d2 30825fi
e6cc62c6
VS
30826done
30827
30828
30829
30830for ac_func in inet_aton
30831do
30832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30833echo "$as_me:$LINENO: checking for $ac_func" >&5
30834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30835if eval "test \"\${$as_ac_var+set}\" = set"; then
30836 echo $ECHO_N "(cached) $ECHO_C" >&6
30837else
30838 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30839/* confdefs.h. */
30840_ACEOF
30841cat confdefs.h >>conftest.$ac_ext
30842cat >>conftest.$ac_ext <<_ACEOF
30843/* end confdefs.h. */
f95e4495
VS
30844/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30846#define $ac_func innocuous_$ac_func
30847
e6cc62c6
VS
30848/* System header to define __stub macros and hopefully few prototypes,
30849 which can conflict with char $ac_func (); below.
30850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30851 <limits.h> exists even on freestanding compilers. */
f95e4495 30852
e6cc62c6
VS
30853#ifdef __STDC__
30854# include <limits.h>
30855#else
30856# include <assert.h>
30857#endif
f95e4495
VS
30858
30859#undef $ac_func
30860
e6cc62c6
VS
30861/* Override any gcc2 internal prototype to avoid an error. */
30862#ifdef __cplusplus
30863extern "C"
30864{
30865#endif
30866/* We use char because int might match the return type of a gcc2
30867 builtin and then its argument prototype would still apply. */
30868char $ac_func ();
30869/* The GNU C library defines this for functions which it implements
30870 to always fail with ENOSYS. Some functions are actually named
30871 something starting with __ and the normal name is an alias. */
30872#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30873choke me
30874#else
30875char (*f) () = $ac_func;
30876#endif
30877#ifdef __cplusplus
30878}
30879#endif
30880
30881int
30882main ()
30883{
30884return f != $ac_func;
30885 ;
30886 return 0;
30887}
30888_ACEOF
30889rm -f conftest.$ac_objext conftest$ac_exeext
30890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 30891 (eval $ac_link) 2>conftest.er1
e6cc62c6 30892 ac_status=$?
f95e4495
VS
30893 grep -v '^ *+' conftest.er1 >conftest.err
30894 rm -f conftest.er1
30895 cat conftest.err >&5
e6cc62c6
VS
30896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897 (exit $ac_status); } &&
f95e4495
VS
30898 { ac_try='test -z "$ac_c_werror_flag"
30899 || test ! -s conftest.err'
30900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30901 (eval $ac_try) 2>&5
30902 ac_status=$?
30903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30904 (exit $ac_status); }; } &&
30905 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30907 (eval $ac_try) 2>&5
30908 ac_status=$?
30909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910 (exit $ac_status); }; }; then
30911 eval "$as_ac_var=yes"
30912else
30913 echo "$as_me: failed program was:" >&5
30914sed 's/^/| /' conftest.$ac_ext >&5
30915
30916eval "$as_ac_var=no"
30917fi
f95e4495
VS
30918rm -f conftest.err conftest.$ac_objext \
30919 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30920fi
30921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30922echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30923if test `eval echo '${'$as_ac_var'}'` = yes; then
30924 cat >>confdefs.h <<_ACEOF
30925#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30926_ACEOF
30927 cat >>confdefs.h <<\_ACEOF
30928#define HAVE_INET_ATON 1
30929_ACEOF
30930
30931else
30932
30933 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
30934echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
30935echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
30936if eval "test \"\${$as_ac_Lib+set}\" = set"; then
30937 echo $ECHO_N "(cached) $ECHO_C" >&6
30938else
30939 ac_check_lib_save_LIBS=$LIBS
30940LIBS="-l$INET_LINK $LIBS"
30941cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30942/* confdefs.h. */
30943_ACEOF
30944cat confdefs.h >>conftest.$ac_ext
30945cat >>conftest.$ac_ext <<_ACEOF
30946/* end confdefs.h. */
30947
30948/* Override any gcc2 internal prototype to avoid an error. */
30949#ifdef __cplusplus
30950extern "C"
30951#endif
30952/* We use char because int might match the return type of a gcc2
30953 builtin and then its argument prototype would still apply. */
30954char inet_aton ();
30955int
30956main ()
30957{
30958inet_aton ();
30959 ;
30960 return 0;
30961}
30962_ACEOF
30963rm -f conftest.$ac_objext conftest$ac_exeext
30964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 30965 (eval $ac_link) 2>conftest.er1
e6cc62c6 30966 ac_status=$?
f95e4495
VS
30967 grep -v '^ *+' conftest.er1 >conftest.err
30968 rm -f conftest.er1
30969 cat conftest.err >&5
e6cc62c6
VS
30970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30971 (exit $ac_status); } &&
f95e4495
VS
30972 { ac_try='test -z "$ac_c_werror_flag"
30973 || test ! -s conftest.err'
30974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30975 (eval $ac_try) 2>&5
30976 ac_status=$?
30977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978 (exit $ac_status); }; } &&
30979 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30981 (eval $ac_try) 2>&5
30982 ac_status=$?
30983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984 (exit $ac_status); }; }; then
30985 eval "$as_ac_Lib=yes"
30986else
30987 echo "$as_me: failed program was:" >&5
30988sed 's/^/| /' conftest.$ac_ext >&5
30989
30990eval "$as_ac_Lib=no"
30991fi
f95e4495
VS
30992rm -f conftest.err conftest.$ac_objext \
30993 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30994LIBS=$ac_check_lib_save_LIBS
30995fi
30996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
30997echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
30998if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30999 cat >>confdefs.h <<\_ACEOF
31000#define HAVE_INET_ATON 1
31001_ACEOF
52127426 31002
a0b9e27f 31003fi
247f5006 31004
8284b0c5 31005
698dcdb6 31006fi
4f14bcd8
GD
31007done
31008
8284b0c5 31009
e6cc62c6
VS
31010if test "x$INET_LINK" != "x"; then
31011 cat >>confdefs.h <<\_ACEOF
31012#define HAVE_INET_ADDR 1
31013_ACEOF
31014
31015 INET_LINK=" -l$INET_LINK"
31016fi
31017
31018fi
a0b9e27f 31019
a0b9e27f 31020
4f14bcd8 31021
edd891e2
VS
31022EXTRALIBS_ESD=
31023echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31024echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31025if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31026 echo $ECHO_N "(cached) $ECHO_C" >&6
31027else
31028 ac_check_lib_save_LIBS=$LIBS
31029LIBS="-lesd $LIBS"
31030cat >conftest.$ac_ext <<_ACEOF
edd891e2
VS
31031/* confdefs.h. */
31032_ACEOF
31033cat confdefs.h >>conftest.$ac_ext
31034cat >>conftest.$ac_ext <<_ACEOF
31035/* end confdefs.h. */
31036
31037/* Override any gcc2 internal prototype to avoid an error. */
31038#ifdef __cplusplus
31039extern "C"
31040#endif
31041/* We use char because int might match the return type of a gcc2
31042 builtin and then its argument prototype would still apply. */
31043char esd_close ();
31044int
31045main ()
31046{
31047esd_close ();
31048 ;
31049 return 0;
31050}
31051_ACEOF
31052rm -f conftest.$ac_objext conftest$ac_exeext
31053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 31054 (eval $ac_link) 2>conftest.er1
edd891e2 31055 ac_status=$?
f95e4495
VS
31056 grep -v '^ *+' conftest.er1 >conftest.err
31057 rm -f conftest.er1
31058 cat conftest.err >&5
edd891e2
VS
31059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31060 (exit $ac_status); } &&
f95e4495
VS
31061 { ac_try='test -z "$ac_c_werror_flag"
31062 || test ! -s conftest.err'
31063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31064 (eval $ac_try) 2>&5
31065 ac_status=$?
31066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067 (exit $ac_status); }; } &&
31068 { ac_try='test -s conftest$ac_exeext'
edd891e2
VS
31069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31070 (eval $ac_try) 2>&5
31071 ac_status=$?
31072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31073 (exit $ac_status); }; }; then
31074 ac_cv_lib_esd_esd_close=yes
31075else
31076 echo "$as_me: failed program was:" >&5
31077sed 's/^/| /' conftest.$ac_ext >&5
31078
31079ac_cv_lib_esd_esd_close=no
31080fi
f95e4495
VS
31081rm -f conftest.err conftest.$ac_objext \
31082 conftest$ac_exeext conftest.$ac_ext
edd891e2
VS
31083LIBS=$ac_check_lib_save_LIBS
31084fi
31085echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31086echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31087if test $ac_cv_lib_esd_esd_close = yes; then
31088
31089
31090for ac_header in esd.h
31091do
31092as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31093if eval "test \"\${$as_ac_Header+set}\" = set"; then
31094 echo "$as_me:$LINENO: checking for $ac_header" >&5
31095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31096if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
31097 echo $ECHO_N "(cached) $ECHO_C" >&6
31098fi
edd891e2
VS
31099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31100echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
e6cc62c6
VS
31101else
31102 # Is the header compilable?
edd891e2
VS
31103echo "$as_me:$LINENO: checking $ac_header usability" >&5
31104echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6 31105cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31106/* confdefs.h. */
31107_ACEOF
31108cat confdefs.h >>conftest.$ac_ext
31109cat >>conftest.$ac_ext <<_ACEOF
31110/* end confdefs.h. */
31111$ac_includes_default
edd891e2 31112#include <$ac_header>
e6cc62c6
VS
31113_ACEOF
31114rm -f conftest.$ac_objext
31115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 31116 (eval $ac_compile) 2>conftest.er1
e6cc62c6 31117 ac_status=$?
f95e4495
VS
31118 grep -v '^ *+' conftest.er1 >conftest.err
31119 rm -f conftest.er1
31120 cat conftest.err >&5
e6cc62c6
VS
31121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31122 (exit $ac_status); } &&
f95e4495
VS
31123 { ac_try='test -z "$ac_c_werror_flag"
31124 || test ! -s conftest.err'
31125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31126 (eval $ac_try) 2>&5
31127 ac_status=$?
31128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31129 (exit $ac_status); }; } &&
31130 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
31131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31132 (eval $ac_try) 2>&5
31133 ac_status=$?
31134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135 (exit $ac_status); }; }; then
31136 ac_header_compiler=yes
31137else
31138 echo "$as_me: failed program was:" >&5
31139sed 's/^/| /' conftest.$ac_ext >&5
31140
31141ac_header_compiler=no
31142fi
f95e4495 31143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
31144echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31145echo "${ECHO_T}$ac_header_compiler" >&6
31146
31147# Is the header present?
edd891e2
VS
31148echo "$as_me:$LINENO: checking $ac_header presence" >&5
31149echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
e6cc62c6 31150cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31151/* confdefs.h. */
31152_ACEOF
31153cat confdefs.h >>conftest.$ac_ext
31154cat >>conftest.$ac_ext <<_ACEOF
31155/* end confdefs.h. */
edd891e2 31156#include <$ac_header>
e6cc62c6
VS
31157_ACEOF
31158if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31160 ac_status=$?
31161 grep -v '^ *+' conftest.er1 >conftest.err
31162 rm -f conftest.er1
31163 cat conftest.err >&5
31164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31165 (exit $ac_status); } >/dev/null; then
31166 if test -s conftest.err; then
31167 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 31168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
31169 else
31170 ac_cpp_err=
31171 fi
a0b9e27f 31172else
e6cc62c6
VS
31173 ac_cpp_err=yes
31174fi
31175if test -z "$ac_cpp_err"; then
31176 ac_header_preproc=yes
31177else
31178 echo "$as_me: failed program was:" >&5
31179sed 's/^/| /' conftest.$ac_ext >&5
31180
31181 ac_header_preproc=no
31182fi
31183rm -f conftest.err conftest.$ac_ext
31184echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31185echo "${ECHO_T}$ac_header_preproc" >&6
31186
31187# So? What about this header?
f95e4495
VS
31188case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31189 yes:no: )
edd891e2
VS
31190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31191echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
31192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31193echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31194 ac_header_preproc=yes
e6cc62c6 31195 ;;
f95e4495 31196 no:yes:* )
edd891e2
VS
31197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31198echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
31199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31200echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31202echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31204echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
edd891e2
VS
31205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31206echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
31207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31208echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
31209 (
31210 cat <<\_ASBOX
f95e4495
VS
31211## ----------------------------------------- ##
31212## Report this to wx-dev@lists.wxwindows.org ##
31213## ----------------------------------------- ##
e6cc62c6
VS
31214_ASBOX
31215 ) |
31216 sed "s/^/$as_me: WARNING: /" >&2
31217 ;;
31218esac
edd891e2
VS
31219echo "$as_me:$LINENO: checking for $ac_header" >&5
31220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31221if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
31222 echo $ECHO_N "(cached) $ECHO_C" >&6
31223else
f95e4495 31224 eval "$as_ac_Header=\$ac_header_preproc"
a0b9e27f 31225fi
edd891e2
VS
31226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a0b9e27f 31228
e6cc62c6 31229fi
edd891e2
VS
31230if test `eval echo '${'$as_ac_Header'}'` = yes; then
31231 cat >>confdefs.h <<_ACEOF
31232#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e6cc62c6 31233_ACEOF
e6cc62c6 31234
edd891e2 31235 EXTRALIBS_ESD="-lesd"
4f14bcd8 31236
a0b9e27f 31237fi
247f5006 31238
edd891e2 31239done
8284b0c5 31240
4f14bcd8 31241
6232543b 31242fi
10f2d63a 31243
703e0a69 31244
8284b0c5 31245
d19d1899
MB
31246echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31247echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31248cat >conftest.$ac_ext <<_ACEOF
d19d1899
MB
31249/* confdefs.h. */
31250_ACEOF
31251cat confdefs.h >>conftest.$ac_ext
31252cat >>conftest.$ac_ext <<_ACEOF
31253/* end confdefs.h. */
31254#ifdef __linux__
31255 #include <linux/cdrom.h>
31256 #else
31257 /* For Solaris */
31258 #include <sys/cdio.h>
31259 #endif
31260
31261int
31262main ()
31263{
31264struct cdrom_tocentry entry, old_entry;
31265 ;
31266 return 0;
31267}
31268_ACEOF
31269rm -f conftest.$ac_objext
31270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 31271 (eval $ac_compile) 2>conftest.er1
d19d1899 31272 ac_status=$?
f95e4495
VS
31273 grep -v '^ *+' conftest.er1 >conftest.err
31274 rm -f conftest.er1
31275 cat conftest.err >&5
d19d1899
MB
31276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31277 (exit $ac_status); } &&
f95e4495
VS
31278 { ac_try='test -z "$ac_c_werror_flag"
31279 || test ! -s conftest.err'
31280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31281 (eval $ac_try) 2>&5
31282 ac_status=$?
31283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31284 (exit $ac_status); }; } &&
31285 { ac_try='test -s conftest.$ac_objext'
d19d1899
MB
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); }; }; then
31291 echo "$as_me:$LINENO: result: yes" >&5
31292echo "${ECHO_T}yes" >&6
31293 cat >>confdefs.h <<\_ACEOF
31294#define HAVE_KNOWN_CDROM_INTERFACE 1
31295_ACEOF
31296
31297else
31298 echo "$as_me: failed program was:" >&5
31299sed 's/^/| /' conftest.$ac_ext >&5
31300
31301echo "$as_me:$LINENO: result: no" >&5
31302echo "${ECHO_T}no" >&6
31303fi
f95e4495 31304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
31305
31306
31307cat >confcache <<\_ACEOF
4f14bcd8
GD
31308# This file is a shell script that caches the results of configure
31309# tests run on this system so they can be shared between configure
e6cc62c6
VS
31310# scripts and configure runs, see configure's option --config-cache.
31311# It is not useful on other systems. If it contains results you don't
31312# want to keep, you may remove or edit it.
4f14bcd8 31313#
e6cc62c6
VS
31314# config.status only pays attention to the cache file if you give it
31315# the --recheck option to rerun configure.
4f14bcd8 31316#
e6cc62c6
VS
31317# `ac_cv_env_foo' variables (set or unset) will be overridden when
31318# loading this file, other *unset* `ac_cv_foo' will be assigned the
31319# following values.
31320
31321_ACEOF
31322
4f14bcd8
GD
31323# The following way of writing the cache mishandles newlines in values,
31324# but we know of no workaround that is simple, portable, and efficient.
31325# So, don't put newlines in cache variables' values.
31326# Ultrix sh set writes to stderr and can't be redirected directly,
31327# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
31328{
31329 (set) 2>&1 |
31330 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31331 *ac_space=\ *)
31332 # `set' does not quote correctly, so add quotes (double-quote
31333 # substitution turns \\\\ into \\, and sed turns \\ into \).
31334 sed -n \
f95e4495
VS
31335 "s/'/'\\\\''/g;
31336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
31337 ;;
31338 *)
31339 # `set' quotes correctly as required by POSIX, so do not add quotes.
31340 sed -n \
f95e4495 31341 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
31342 ;;
31343 esac;
31344} |
31345 sed '
31346 t clear
31347 : clear
31348 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31349 t end
31350 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31351 : end' >>confcache
31352if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 31353 if test -w $cache_file; then
e6cc62c6
VS
31354 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31355 cat confcache >$cache_file
f6bcfd97 31356 else
4f14bcd8 31357 echo "not updating unwritable cache $cache_file"
f6bcfd97 31358 fi
4f14bcd8
GD
31359fi
31360rm -f confcache
f6bcfd97 31361
8284b0c5 31362
009fead0 31363CPP_MT_FLAG=
73d617c9 31364if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
4f14bcd8 31365
e6cc62c6 31366
7274f1c7 31367 THREADS_LINK=
009fead0 31368 THREADS_CFLAGS=
7274f1c7
RL
31369
31370 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 31371 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
31372 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31373echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
31374 wxUSE_THREADS="no"
31375 fi
4f14bcd8 31376 fi
4f14bcd8 31377
7274f1c7 31378 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
31379
31380
009fead0
VZ
31381 THREAD_OPTS="-pthread"
31382 case "${host}" in
31383 *-*-solaris2* | *-*-sunos4* )
31384 if test "x$GCC" = "xyes"; then
126be6b4 31385 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
31386 else
31387 THREAD_OPTS="-mt $THREAD_OPTS"
31388 fi
31389 ;;
31390 *-*-freebsd*)
31391 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31392 ;;
17234b26
MB
31393 *-*-darwin* | *-*-cygwin* )
31394 THREAD_OPTS=""
4101db81 31395 ;;
8f4a9a10 31396 *-*-aix*)
009fead0
VZ
31397 THREAD_OPTS="pthreads"
31398 ;;
4f5a7f74
VZ
31399 *-hp-hpux* )
31400 if test "x$GCC" != "xyes"; then
31401 THREAD_OPTS=""
31402 fi
89e3b3e4
VZ
31403 ;;
31404
31405 *-*-irix* )
31406 if test "x$GCC" = "xyes"; then
31407 THREAD_OPTS=""
31408 fi
31409 ;;
31410
31411 *-*-*UnixWare*)
31412 if test "x$GCC" != "xyes"; then
31413 THREAD_OPTS="-Ethread"
31414 fi
31415 ;;
009fead0 31416 esac
4f14bcd8 31417
02a1dfba 31418 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 31419
009fead0
VZ
31420 THREADS_OK=no
31421 for flag in $THREAD_OPTS; do
31422 case $flag in
31423 none)
e6cc62c6
VS
31424 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31425echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 31426 ;;
698dcdb6 31427
009fead0 31428 -*)
e6cc62c6
VS
31429 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31430echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
31431 THREADS_CFLAGS="$flag"
31432 ;;
698dcdb6 31433
009fead0 31434 *)
e6cc62c6
VS
31435 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31436echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
31437 THREADS_LINK="-l$flag"
31438 ;;
31439 esac
10f2d63a 31440
009fead0
VZ
31441 save_LIBS="$LIBS"
31442 save_CFLAGS="$CFLAGS"
31443 LIBS="$THREADS_LINK $LIBS"
04727afd 31444 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 31445
e6cc62c6 31446 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31447/* confdefs.h. */
31448_ACEOF
31449cat confdefs.h >>conftest.$ac_ext
31450cat >>conftest.$ac_ext <<_ACEOF
31451/* end confdefs.h. */
009fead0 31452#include <pthread.h>
e6cc62c6
VS
31453int
31454main ()
31455{
009fead0 31456pthread_create(0,0,0,0);
e6cc62c6
VS
31457 ;
31458 return 0;
31459}
31460_ACEOF
31461rm -f conftest.$ac_objext conftest$ac_exeext
31462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 31463 (eval $ac_link) 2>conftest.er1
e6cc62c6 31464 ac_status=$?
f95e4495
VS
31465 grep -v '^ *+' conftest.er1 >conftest.err
31466 rm -f conftest.er1
31467 cat conftest.err >&5
e6cc62c6
VS
31468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31469 (exit $ac_status); } &&
f95e4495
VS
31470 { ac_try='test -z "$ac_c_werror_flag"
31471 || test ! -s conftest.err'
31472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31473 (eval $ac_try) 2>&5
31474 ac_status=$?
31475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31476 (exit $ac_status); }; } &&
31477 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31479 (eval $ac_try) 2>&5
31480 ac_status=$?
31481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482 (exit $ac_status); }; }; then
009fead0 31483 THREADS_OK=yes
10f2d63a 31484else
e6cc62c6
VS
31485 echo "$as_me: failed program was:" >&5
31486sed 's/^/| /' conftest.$ac_ext >&5
31487
6232543b 31488fi
f95e4495
VS
31489rm -f conftest.err conftest.$ac_objext \
31490 conftest$ac_exeext conftest.$ac_ext
698dcdb6 31491
009fead0
VZ
31492 LIBS="$save_LIBS"
31493 CFLAGS="$save_CFLAGS"
d9b9876f 31494
e6cc62c6
VS
31495 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31496echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
31497 if test "x$THREADS_OK" = "xyes"; then
31498 break;
31499 fi
d9b9876f 31500
009fead0
VZ
31501 THREADS_LINK=""
31502 THREADS_CFLAGS=""
31503 done
4f14bcd8 31504
009fead0
VZ
31505 if test "x$THREADS_OK" != "xyes"; then
31506 wxUSE_THREADS=no
e6cc62c6
VS
31507 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
31508echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 31509 else
db82f09e
VZ
31510 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
31511 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 31512
e6cc62c6
VS
31513 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
31514echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
31515 flag=no
31516 case "${host}" in
2b5f62a0
VZ
31517 *-aix*)
31518 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
31519 flag="-D_THREAD_SAFE"
31520 ;;
31521 *-freebsd*)
009fead0
VZ
31522 flag="-D_THREAD_SAFE"
31523 ;;
06313569
GD
31524 *-hp-hpux* )
31525 flag="-D_REENTRANT"
4f5a7f74
VZ
31526 if test "x$GCC" != "xyes"; then
31527 flag="$flag -D_RWSTD_MULTI_THREAD"
31528 fi
06313569 31529 ;;
009fead0
VZ
31530 *solaris* | alpha*-osf*)
31531 flag="-D_REENTRANT"
31532 ;;
31533 esac
e6cc62c6
VS
31534 echo "$as_me:$LINENO: result: ${flag}" >&5
31535echo "${ECHO_T}${flag}" >&6
009fead0 31536 if test "x$flag" != xno; then
04727afd 31537 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
31538 fi
31539
009fead0 31540 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 31541 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
31542 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
31543 fi
31544 fi
4f14bcd8 31545 fi
4f14bcd8 31546
7274f1c7 31547 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
31548
31549for ac_func in thr_setconcurrency
4f14bcd8 31550do
e6cc62c6
VS
31551as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31552echo "$as_me:$LINENO: checking for $ac_func" >&5
31553echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31554if eval "test \"\${$as_ac_var+set}\" = set"; then
31555 echo $ECHO_N "(cached) $ECHO_C" >&6
31556else
31557 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31558/* confdefs.h. */
31559_ACEOF
31560cat confdefs.h >>conftest.$ac_ext
31561cat >>conftest.$ac_ext <<_ACEOF
31562/* end confdefs.h. */
f95e4495
VS
31563/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31565#define $ac_func innocuous_$ac_func
31566
4f14bcd8 31567/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31568 which can conflict with char $ac_func (); below.
31569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31570 <limits.h> exists even on freestanding compilers. */
f95e4495 31571
e6cc62c6
VS
31572#ifdef __STDC__
31573# include <limits.h>
31574#else
31575# include <assert.h>
31576#endif
f95e4495
VS
31577
31578#undef $ac_func
31579
4f14bcd8 31580/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31581#ifdef __cplusplus
31582extern "C"
31583{
31584#endif
4f14bcd8 31585/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31586 builtin and then its argument prototype would still apply. */
31587char $ac_func ();
4f14bcd8
GD
31588/* The GNU C library defines this for functions which it implements
31589 to always fail with ENOSYS. Some functions are actually named
31590 something starting with __ and the normal name is an alias. */
31591#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31592choke me
31593#else
e6cc62c6
VS
31594char (*f) () = $ac_func;
31595#endif
31596#ifdef __cplusplus
31597}
4f14bcd8
GD
31598#endif
31599
e6cc62c6
VS
31600int
31601main ()
31602{
31603return f != $ac_func;
31604 ;
31605 return 0;
31606}
31607_ACEOF
31608rm -f conftest.$ac_objext conftest$ac_exeext
31609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 31610 (eval $ac_link) 2>conftest.er1
e6cc62c6 31611 ac_status=$?
f95e4495
VS
31612 grep -v '^ *+' conftest.er1 >conftest.err
31613 rm -f conftest.er1
31614 cat conftest.err >&5
e6cc62c6
VS
31615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616 (exit $ac_status); } &&
f95e4495
VS
31617 { ac_try='test -z "$ac_c_werror_flag"
31618 || test ! -s conftest.err'
31619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31620 (eval $ac_try) 2>&5
31621 ac_status=$?
31622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31623 (exit $ac_status); }; } &&
31624 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
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); }; }; then
31630 eval "$as_ac_var=yes"
31631else
31632 echo "$as_me: failed program was:" >&5
31633sed 's/^/| /' conftest.$ac_ext >&5
31634
31635eval "$as_ac_var=no"
31636fi
f95e4495
VS
31637rm -f conftest.err conftest.$ac_objext \
31638 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31639fi
31640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31641echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31642if test `eval echo '${'$as_ac_var'}'` = yes; then
31643 cat >>confdefs.h <<_ACEOF
31644#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31645_ACEOF
698dcdb6 31646
10f2d63a 31647fi
4f14bcd8 31648done
10f2d63a 31649
8284b0c5 31650
e6cc62c6
VS
31651
31652for ac_header in sched.h
4f14bcd8 31653do
e6cc62c6
VS
31654as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31655if eval "test \"\${$as_ac_Header+set}\" = set"; then
31656 echo "$as_me:$LINENO: checking for $ac_header" >&5
31657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31658if eval "test \"\${$as_ac_Header+set}\" = set"; then
31659 echo $ECHO_N "(cached) $ECHO_C" >&6
31660fi
31661echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31662echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31663else
31664 # Is the header compilable?
31665echo "$as_me:$LINENO: checking $ac_header usability" >&5
31666echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31667cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31668/* confdefs.h. */
31669_ACEOF
31670cat confdefs.h >>conftest.$ac_ext
31671cat >>conftest.$ac_ext <<_ACEOF
31672/* end confdefs.h. */
31673$ac_includes_default
31674#include <$ac_header>
31675_ACEOF
31676rm -f conftest.$ac_objext
31677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 31678 (eval $ac_compile) 2>conftest.er1
e6cc62c6 31679 ac_status=$?
f95e4495
VS
31680 grep -v '^ *+' conftest.er1 >conftest.err
31681 rm -f conftest.er1
31682 cat conftest.err >&5
e6cc62c6
VS
31683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31684 (exit $ac_status); } &&
f95e4495
VS
31685 { ac_try='test -z "$ac_c_werror_flag"
31686 || test ! -s conftest.err'
31687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31688 (eval $ac_try) 2>&5
31689 ac_status=$?
31690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31691 (exit $ac_status); }; } &&
31692 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
31693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31694 (eval $ac_try) 2>&5
31695 ac_status=$?
31696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31697 (exit $ac_status); }; }; then
31698 ac_header_compiler=yes
31699else
31700 echo "$as_me: failed program was:" >&5
31701sed 's/^/| /' conftest.$ac_ext >&5
31702
31703ac_header_compiler=no
31704fi
f95e4495 31705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
31706echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31707echo "${ECHO_T}$ac_header_compiler" >&6
31708
31709# Is the header present?
31710echo "$as_me:$LINENO: checking $ac_header presence" >&5
31711echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31712cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31713/* confdefs.h. */
31714_ACEOF
31715cat confdefs.h >>conftest.$ac_ext
31716cat >>conftest.$ac_ext <<_ACEOF
31717/* end confdefs.h. */
31718#include <$ac_header>
31719_ACEOF
31720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31722 ac_status=$?
31723 grep -v '^ *+' conftest.er1 >conftest.err
31724 rm -f conftest.er1
31725 cat conftest.err >&5
31726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31727 (exit $ac_status); } >/dev/null; then
31728 if test -s conftest.err; then
31729 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 31730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
31731 else
31732 ac_cpp_err=
31733 fi
31734else
31735 ac_cpp_err=yes
31736fi
31737if test -z "$ac_cpp_err"; then
31738 ac_header_preproc=yes
31739else
31740 echo "$as_me: failed program was:" >&5
31741sed 's/^/| /' conftest.$ac_ext >&5
31742
31743 ac_header_preproc=no
31744fi
31745rm -f conftest.err conftest.$ac_ext
31746echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31747echo "${ECHO_T}$ac_header_preproc" >&6
31748
31749# So? What about this header?
f95e4495
VS
31750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31751 yes:no: )
e6cc62c6
VS
31752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31753echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
31754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31755echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31756 ac_header_preproc=yes
e6cc62c6 31757 ;;
f95e4495 31758 no:yes:* )
e6cc62c6
VS
31759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31760echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
31761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31762echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31763 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31764echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31765 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31766echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
31767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31768echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
31769 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31770echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
31771 (
31772 cat <<\_ASBOX
f95e4495
VS
31773## ----------------------------------------- ##
31774## Report this to wx-dev@lists.wxwindows.org ##
31775## ----------------------------------------- ##
e6cc62c6
VS
31776_ASBOX
31777 ) |
31778 sed "s/^/$as_me: WARNING: /" >&2
31779 ;;
31780esac
31781echo "$as_me:$LINENO: checking for $ac_header" >&5
31782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31783if eval "test \"\${$as_ac_Header+set}\" = set"; then
31784 echo $ECHO_N "(cached) $ECHO_C" >&6
31785else
f95e4495 31786 eval "$as_ac_Header=\$ac_header_preproc"
13111b2a 31787fi
e6cc62c6
VS
31788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31790
10f2d63a 31791fi
e6cc62c6
VS
31792if test `eval echo '${'$as_ac_Header'}'` = yes; then
31793 cat >>confdefs.h <<_ACEOF
31794#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31795_ACEOF
31796
f6bcfd97 31797fi
e6cc62c6 31798
4f14bcd8 31799done
f6bcfd97 31800
009fead0 31801 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
31802 echo "$as_me:$LINENO: checking for sched_yield" >&5
31803echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
31804if test "${ac_cv_func_sched_yield+set}" = set; then
31805 echo $ECHO_N "(cached) $ECHO_C" >&6
31806else
31807 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31808/* confdefs.h. */
31809_ACEOF
31810cat confdefs.h >>conftest.$ac_ext
31811cat >>conftest.$ac_ext <<_ACEOF
31812/* end confdefs.h. */
f95e4495
VS
31813/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
31814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31815#define sched_yield innocuous_sched_yield
31816
009fead0 31817/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31818 which can conflict with char sched_yield (); below.
31819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31820 <limits.h> exists even on freestanding compilers. */
f95e4495 31821
e6cc62c6
VS
31822#ifdef __STDC__
31823# include <limits.h>
31824#else
31825# include <assert.h>
31826#endif
f95e4495
VS
31827
31828#undef sched_yield
31829
4f14bcd8 31830/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31831#ifdef __cplusplus
31832extern "C"
31833{
31834#endif
4f14bcd8 31835/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31836 builtin and then its argument prototype would still apply. */
31837char sched_yield ();
009fead0
VZ
31838/* The GNU C library defines this for functions which it implements
31839 to always fail with ENOSYS. Some functions are actually named
31840 something starting with __ and the normal name is an alias. */
31841#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
31842choke me
31843#else
e6cc62c6
VS
31844char (*f) () = sched_yield;
31845#endif
31846#ifdef __cplusplus
31847}
009fead0
VZ
31848#endif
31849
e6cc62c6
VS
31850int
31851main ()
31852{
31853return f != sched_yield;
31854 ;
31855 return 0;
31856}
31857_ACEOF
31858rm -f conftest.$ac_objext conftest$ac_exeext
31859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 31860 (eval $ac_link) 2>conftest.er1
e6cc62c6 31861 ac_status=$?
f95e4495
VS
31862 grep -v '^ *+' conftest.er1 >conftest.err
31863 rm -f conftest.er1
31864 cat conftest.err >&5
e6cc62c6
VS
31865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31866 (exit $ac_status); } &&
f95e4495
VS
31867 { ac_try='test -z "$ac_c_werror_flag"
31868 || test ! -s conftest.err'
31869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31870 (eval $ac_try) 2>&5
31871 ac_status=$?
31872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31873 (exit $ac_status); }; } &&
31874 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31876 (eval $ac_try) 2>&5
31877 ac_status=$?
31878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879 (exit $ac_status); }; }; then
31880 ac_cv_func_sched_yield=yes
31881else
31882 echo "$as_me: failed program was:" >&5
31883sed 's/^/| /' conftest.$ac_ext >&5
31884
31885ac_cv_func_sched_yield=no
31886fi
f95e4495
VS
31887rm -f conftest.err conftest.$ac_objext \
31888 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31889fi
31890echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
31891echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
31892if test $ac_cv_func_sched_yield = yes; then
31893 cat >>confdefs.h <<\_ACEOF
4f14bcd8 31894#define HAVE_SCHED_YIELD 1
e6cc62c6 31895_ACEOF
10f2d63a 31896
4f14bcd8 31897else
009fead0 31898
e6cc62c6
VS
31899 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
31900echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
31901if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
31902 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 31903else
e6cc62c6 31904 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 31905LIBS="-lposix4 $LIBS"
e6cc62c6 31906cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31907/* confdefs.h. */
31908_ACEOF
31909cat confdefs.h >>conftest.$ac_ext
31910cat >>conftest.$ac_ext <<_ACEOF
31911/* end confdefs.h. */
31912
4f14bcd8 31913/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31914#ifdef __cplusplus
31915extern "C"
31916#endif
4f14bcd8 31917/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31918 builtin and then its argument prototype would still apply. */
31919char sched_yield ();
31920int
31921main ()
31922{
31923sched_yield ();
31924 ;
31925 return 0;
31926}
31927_ACEOF
31928rm -f conftest.$ac_objext conftest$ac_exeext
31929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 31930 (eval $ac_link) 2>conftest.er1
e6cc62c6 31931 ac_status=$?
f95e4495
VS
31932 grep -v '^ *+' conftest.er1 >conftest.err
31933 rm -f conftest.er1
31934 cat conftest.err >&5
e6cc62c6
VS
31935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936 (exit $ac_status); } &&
f95e4495
VS
31937 { ac_try='test -z "$ac_c_werror_flag"
31938 || test ! -s conftest.err'
31939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31940 (eval $ac_try) 2>&5
31941 ac_status=$?
31942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31943 (exit $ac_status); }; } &&
31944 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31946 (eval $ac_try) 2>&5
31947 ac_status=$?
31948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949 (exit $ac_status); }; }; then
31950 ac_cv_lib_posix4_sched_yield=yes
31951else
31952 echo "$as_me: failed program was:" >&5
31953sed 's/^/| /' conftest.$ac_ext >&5
31954
31955ac_cv_lib_posix4_sched_yield=no
31956fi
f95e4495
VS
31957rm -f conftest.err conftest.$ac_objext \
31958 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31959LIBS=$ac_check_lib_save_LIBS
31960fi
31961echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
31962echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
31963if test $ac_cv_lib_posix4_sched_yield = yes; then
31964 cat >>confdefs.h <<\_ACEOF
4f14bcd8 31965#define HAVE_SCHED_YIELD 1
e6cc62c6 31966_ACEOF
3d63bc3a 31967 POSIX4_LINK=" -lposix4"
4f14bcd8 31968else
e6cc62c6
VS
31969 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
31970echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
31971
54276ccf
VZ
31972fi
31973
e6cc62c6
VS
31974
31975
4f14bcd8 31976fi
698dcdb6 31977
009fead0 31978 fi
10f2d63a 31979
7274f1c7 31980 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
31981 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
31982echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
31983if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
31984 echo $ECHO_N "(cached) $ECHO_C" >&6
31985else
31986 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31987/* confdefs.h. */
31988_ACEOF
31989cat confdefs.h >>conftest.$ac_ext
31990cat >>conftest.$ac_ext <<_ACEOF
31991/* end confdefs.h. */
f95e4495
VS
31992/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
31993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31994#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
31995
009fead0 31996/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31997 which can conflict with char pthread_attr_getschedpolicy (); below.
31998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31999 <limits.h> exists even on freestanding compilers. */
f95e4495 32000
e6cc62c6
VS
32001#ifdef __STDC__
32002# include <limits.h>
32003#else
32004# include <assert.h>
32005#endif
f95e4495
VS
32006
32007#undef pthread_attr_getschedpolicy
32008
4f14bcd8 32009/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32010#ifdef __cplusplus
32011extern "C"
32012{
32013#endif
4f14bcd8 32014/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32015 builtin and then its argument prototype would still apply. */
32016char pthread_attr_getschedpolicy ();
009fead0
VZ
32017/* The GNU C library defines this for functions which it implements
32018 to always fail with ENOSYS. Some functions are actually named
32019 something starting with __ and the normal name is an alias. */
32020#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32021choke me
32022#else
e6cc62c6
VS
32023char (*f) () = pthread_attr_getschedpolicy;
32024#endif
32025#ifdef __cplusplus
32026}
009fead0
VZ
32027#endif
32028
e6cc62c6
VS
32029int
32030main ()
32031{
32032return f != pthread_attr_getschedpolicy;
32033 ;
32034 return 0;
32035}
32036_ACEOF
32037rm -f conftest.$ac_objext conftest$ac_exeext
32038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 32039 (eval $ac_link) 2>conftest.er1
e6cc62c6 32040 ac_status=$?
f95e4495
VS
32041 grep -v '^ *+' conftest.er1 >conftest.err
32042 rm -f conftest.er1
32043 cat conftest.err >&5
e6cc62c6
VS
32044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32045 (exit $ac_status); } &&
f95e4495
VS
32046 { ac_try='test -z "$ac_c_werror_flag"
32047 || test ! -s conftest.err'
32048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32049 (eval $ac_try) 2>&5
32050 ac_status=$?
32051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32052 (exit $ac_status); }; } &&
32053 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32055 (eval $ac_try) 2>&5
32056 ac_status=$?
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058 (exit $ac_status); }; }; then
32059 ac_cv_func_pthread_attr_getschedpolicy=yes
32060else
32061 echo "$as_me: failed program was:" >&5
32062sed 's/^/| /' conftest.$ac_ext >&5
32063
32064ac_cv_func_pthread_attr_getschedpolicy=no
32065fi
f95e4495
VS
32066rm -f conftest.err conftest.$ac_objext \
32067 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32068fi
32069echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32070echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32071if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32072 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32073echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32074if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32075 echo $ECHO_N "(cached) $ECHO_C" >&6
32076else
32077 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32078/* confdefs.h. */
32079_ACEOF
32080cat confdefs.h >>conftest.$ac_ext
32081cat >>conftest.$ac_ext <<_ACEOF
32082/* end confdefs.h. */
f95e4495
VS
32083/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32085#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32086
a0b9e27f 32087/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32088 which can conflict with char pthread_attr_setschedparam (); below.
32089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32090 <limits.h> exists even on freestanding compilers. */
f95e4495 32091
e6cc62c6
VS
32092#ifdef __STDC__
32093# include <limits.h>
32094#else
32095# include <assert.h>
32096#endif
f95e4495
VS
32097
32098#undef pthread_attr_setschedparam
32099
422107f9 32100/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32101#ifdef __cplusplus
32102extern "C"
32103{
32104#endif
422107f9 32105/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32106 builtin and then its argument prototype would still apply. */
32107char pthread_attr_setschedparam ();
009fead0
VZ
32108/* The GNU C library defines this for functions which it implements
32109 to always fail with ENOSYS. Some functions are actually named
32110 something starting with __ and the normal name is an alias. */
32111#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32112choke me
32113#else
e6cc62c6
VS
32114char (*f) () = pthread_attr_setschedparam;
32115#endif
32116#ifdef __cplusplus
32117}
009fead0
VZ
32118#endif
32119
e6cc62c6
VS
32120int
32121main ()
32122{
32123return f != pthread_attr_setschedparam;
32124 ;
32125 return 0;
32126}
32127_ACEOF
32128rm -f conftest.$ac_objext conftest$ac_exeext
32129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 32130 (eval $ac_link) 2>conftest.er1
e6cc62c6 32131 ac_status=$?
f95e4495
VS
32132 grep -v '^ *+' conftest.er1 >conftest.err
32133 rm -f conftest.er1
32134 cat conftest.err >&5
e6cc62c6
VS
32135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32136 (exit $ac_status); } &&
f95e4495
VS
32137 { ac_try='test -z "$ac_c_werror_flag"
32138 || test ! -s conftest.err'
32139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32140 (eval $ac_try) 2>&5
32141 ac_status=$?
32142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32143 (exit $ac_status); }; } &&
32144 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32146 (eval $ac_try) 2>&5
32147 ac_status=$?
32148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32149 (exit $ac_status); }; }; then
32150 ac_cv_func_pthread_attr_setschedparam=yes
32151else
32152 echo "$as_me: failed program was:" >&5
32153sed 's/^/| /' conftest.$ac_ext >&5
32154
32155ac_cv_func_pthread_attr_setschedparam=no
32156fi
f95e4495
VS
32157rm -f conftest.err conftest.$ac_objext \
32158 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32159fi
32160echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32161echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32162if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32163 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32164echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32165if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32166 echo $ECHO_N "(cached) $ECHO_C" >&6
32167else
32168 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32169/* confdefs.h. */
32170_ACEOF
32171cat confdefs.h >>conftest.$ac_ext
32172cat >>conftest.$ac_ext <<_ACEOF
32173/* end confdefs.h. */
f95e4495
VS
32174/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32176#define sched_get_priority_max innocuous_sched_get_priority_max
32177
ef33c576 32178/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32179 which can conflict with char sched_get_priority_max (); below.
32180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32181 <limits.h> exists even on freestanding compilers. */
f95e4495 32182
e6cc62c6
VS
32183#ifdef __STDC__
32184# include <limits.h>
32185#else
32186# include <assert.h>
32187#endif
f95e4495
VS
32188
32189#undef sched_get_priority_max
32190
4f14bcd8 32191/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32192#ifdef __cplusplus
32193extern "C"
32194{
32195#endif
4f14bcd8 32196/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32197 builtin and then its argument prototype would still apply. */
32198char sched_get_priority_max ();
009fead0
VZ
32199/* The GNU C library defines this for functions which it implements
32200 to always fail with ENOSYS. Some functions are actually named
32201 something starting with __ and the normal name is an alias. */
32202#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32203choke me
32204#else
e6cc62c6
VS
32205char (*f) () = sched_get_priority_max;
32206#endif
32207#ifdef __cplusplus
32208}
009fead0
VZ
32209#endif
32210
e6cc62c6
VS
32211int
32212main ()
32213{
32214return f != sched_get_priority_max;
32215 ;
32216 return 0;
32217}
32218_ACEOF
32219rm -f conftest.$ac_objext conftest$ac_exeext
32220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 32221 (eval $ac_link) 2>conftest.er1
e6cc62c6 32222 ac_status=$?
f95e4495
VS
32223 grep -v '^ *+' conftest.er1 >conftest.err
32224 rm -f conftest.er1
32225 cat conftest.err >&5
e6cc62c6
VS
32226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32227 (exit $ac_status); } &&
f95e4495
VS
32228 { ac_try='test -z "$ac_c_werror_flag"
32229 || test ! -s conftest.err'
32230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32231 (eval $ac_try) 2>&5
32232 ac_status=$?
32233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32234 (exit $ac_status); }; } &&
32235 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32237 (eval $ac_try) 2>&5
32238 ac_status=$?
32239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32240 (exit $ac_status); }; }; then
32241 ac_cv_func_sched_get_priority_max=yes
32242else
32243 echo "$as_me: failed program was:" >&5
32244sed 's/^/| /' conftest.$ac_ext >&5
32245
32246ac_cv_func_sched_get_priority_max=no
32247fi
f95e4495
VS
32248rm -f conftest.err conftest.$ac_objext \
32249 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32250fi
32251echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32252echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32253if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
32254 HAVE_PRIOR_FUNCS=1
32255else
e6cc62c6
VS
32256 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32257echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32258if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32259 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 32260else
e6cc62c6 32261 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 32262LIBS="-lposix4 $LIBS"
e6cc62c6 32263cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32264/* confdefs.h. */
32265_ACEOF
32266cat confdefs.h >>conftest.$ac_ext
32267cat >>conftest.$ac_ext <<_ACEOF
32268/* end confdefs.h. */
32269
422107f9 32270/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32271#ifdef __cplusplus
32272extern "C"
32273#endif
422107f9 32274/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32275 builtin and then its argument prototype would still apply. */
32276char sched_get_priority_max ();
32277int
32278main ()
32279{
32280sched_get_priority_max ();
32281 ;
32282 return 0;
32283}
32284_ACEOF
32285rm -f conftest.$ac_objext conftest$ac_exeext
32286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 32287 (eval $ac_link) 2>conftest.er1
e6cc62c6 32288 ac_status=$?
f95e4495
VS
32289 grep -v '^ *+' conftest.er1 >conftest.err
32290 rm -f conftest.er1
32291 cat conftest.err >&5
e6cc62c6
VS
32292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293 (exit $ac_status); } &&
f95e4495
VS
32294 { ac_try='test -z "$ac_c_werror_flag"
32295 || test ! -s conftest.err'
32296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32297 (eval $ac_try) 2>&5
32298 ac_status=$?
32299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32300 (exit $ac_status); }; } &&
32301 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32303 (eval $ac_try) 2>&5
32304 ac_status=$?
32305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32306 (exit $ac_status); }; }; then
32307 ac_cv_lib_posix4_sched_get_priority_max=yes
32308else
32309 echo "$as_me: failed program was:" >&5
32310sed 's/^/| /' conftest.$ac_ext >&5
32311
32312ac_cv_lib_posix4_sched_get_priority_max=no
32313fi
f95e4495
VS
32314rm -f conftest.err conftest.$ac_objext \
32315 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32316LIBS=$ac_check_lib_save_LIBS
32317fi
32318echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32319echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32320if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 32321
7274f1c7
RL
32322 HAVE_PRIOR_FUNCS=1
32323 POSIX4_LINK=" -lposix4"
e6cc62c6 32324
4f14bcd8 32325fi
463abc64 32326
e6cc62c6 32327
328a083c 32328fi
463abc64 32329
e6cc62c6 32330
7b4a847f 32331fi
579d8138 32332
e6cc62c6 32333
5c6fa7d2 32334fi
52127426 32335
8284b0c5 32336
7274f1c7 32337 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 32338 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32339#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 32340_ACEOF
463abc64 32341
7274f1c7 32342 else
e6cc62c6
VS
32343 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32344echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 32345 fi
463abc64 32346
e6cc62c6
VS
32347 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32348echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32349if test "${ac_cv_func_pthread_cancel+set}" = set; then
32350 echo $ECHO_N "(cached) $ECHO_C" >&6
32351else
32352 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32353/* confdefs.h. */
32354_ACEOF
32355cat confdefs.h >>conftest.$ac_ext
32356cat >>conftest.$ac_ext <<_ACEOF
32357/* end confdefs.h. */
f95e4495
VS
32358/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32360#define pthread_cancel innocuous_pthread_cancel
32361
009fead0 32362/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32363 which can conflict with char pthread_cancel (); below.
32364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32365 <limits.h> exists even on freestanding compilers. */
f95e4495 32366
e6cc62c6
VS
32367#ifdef __STDC__
32368# include <limits.h>
32369#else
32370# include <assert.h>
32371#endif
f95e4495
VS
32372
32373#undef pthread_cancel
32374
422107f9 32375/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32376#ifdef __cplusplus
32377extern "C"
32378{
32379#endif
422107f9 32380/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32381 builtin and then its argument prototype would still apply. */
32382char pthread_cancel ();
009fead0
VZ
32383/* The GNU C library defines this for functions which it implements
32384 to always fail with ENOSYS. Some functions are actually named
32385 something starting with __ and the normal name is an alias. */
32386#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32387choke me
32388#else
e6cc62c6
VS
32389char (*f) () = pthread_cancel;
32390#endif
32391#ifdef __cplusplus
32392}
009fead0
VZ
32393#endif
32394
e6cc62c6
VS
32395int
32396main ()
32397{
32398return f != pthread_cancel;
32399 ;
32400 return 0;
32401}
32402_ACEOF
32403rm -f conftest.$ac_objext conftest$ac_exeext
32404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 32405 (eval $ac_link) 2>conftest.er1
e6cc62c6 32406 ac_status=$?
f95e4495
VS
32407 grep -v '^ *+' conftest.er1 >conftest.err
32408 rm -f conftest.er1
32409 cat conftest.err >&5
e6cc62c6
VS
32410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32411 (exit $ac_status); } &&
f95e4495
VS
32412 { ac_try='test -z "$ac_c_werror_flag"
32413 || test ! -s conftest.err'
32414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32415 (eval $ac_try) 2>&5
32416 ac_status=$?
32417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32418 (exit $ac_status); }; } &&
32419 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32421 (eval $ac_try) 2>&5
32422 ac_status=$?
32423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32424 (exit $ac_status); }; }; then
32425 ac_cv_func_pthread_cancel=yes
32426else
32427 echo "$as_me: failed program was:" >&5
32428sed 's/^/| /' conftest.$ac_ext >&5
32429
32430ac_cv_func_pthread_cancel=no
32431fi
f95e4495
VS
32432rm -f conftest.err conftest.$ac_objext \
32433 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32434fi
32435echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32436echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32437if test $ac_cv_func_pthread_cancel = yes; then
32438 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32439#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 32440_ACEOF
4f14bcd8 32441
698dcdb6 32442else
e6cc62c6
VS
32443 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32444echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
32445fi
32446
5c6fa7d2 32447
4f14bcd8 32448
e6cc62c6
VS
32449
32450 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32451echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32452if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32453 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 32454else
e6cc62c6
VS
32455
32456 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32457/* confdefs.h. */
32458_ACEOF
32459cat confdefs.h >>conftest.$ac_ext
32460cat >>conftest.$ac_ext <<_ACEOF
32461/* end confdefs.h. */
4f14bcd8 32462#include <pthread.h>
e6cc62c6
VS
32463int
32464main ()
32465{
4f14bcd8 32466
7274f1c7
RL
32467 pthread_mutexattr_t attr;
32468 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
32469
32470 ;
32471 return 0;
32472}
32473_ACEOF
32474rm -f conftest.$ac_objext
32475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 32476 (eval $ac_compile) 2>conftest.er1
e6cc62c6 32477 ac_status=$?
f95e4495
VS
32478 grep -v '^ *+' conftest.er1 >conftest.err
32479 rm -f conftest.er1
32480 cat conftest.err >&5
e6cc62c6
VS
32481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32482 (exit $ac_status); } &&
f95e4495
VS
32483 { ac_try='test -z "$ac_c_werror_flag"
32484 || test ! -s conftest.err'
32485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32486 (eval $ac_try) 2>&5
32487 ac_status=$?
32488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489 (exit $ac_status); }; } &&
32490 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32492 (eval $ac_try) 2>&5
32493 ac_status=$?
32494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32495 (exit $ac_status); }; }; then
32496
7274f1c7 32497 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 32498
3fed1840 32499else
e6cc62c6
VS
32500 echo "$as_me: failed program was:" >&5
32501sed 's/^/| /' conftest.$ac_ext >&5
32502
32503
7274f1c7 32504 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
32505
32506
247f5006 32507fi
f95e4495 32508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 32509
e6cc62c6
VS
32510fi
32511echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
32512echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 32513
7274f1c7 32514 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 32515 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32516#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 32517_ACEOF
4f14bcd8 32518
7274f1c7 32519 else
e6cc62c6
VS
32520 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
32521echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
32522if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
32523 echo $ECHO_N "(cached) $ECHO_C" >&6
32524else
32525
32526 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32527/* confdefs.h. */
32528_ACEOF
32529cat confdefs.h >>conftest.$ac_ext
32530cat >>conftest.$ac_ext <<_ACEOF
32531/* end confdefs.h. */
4f14bcd8 32532#include <pthread.h>
e6cc62c6
VS
32533int
32534main ()
32535{
4f14bcd8 32536
7274f1c7 32537 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
32538
32539 ;
32540 return 0;
32541}
32542_ACEOF
32543rm -f conftest.$ac_objext
32544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 32545 (eval $ac_compile) 2>conftest.er1
e6cc62c6 32546 ac_status=$?
f95e4495
VS
32547 grep -v '^ *+' conftest.er1 >conftest.err
32548 rm -f conftest.er1
32549 cat conftest.err >&5
e6cc62c6
VS
32550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551 (exit $ac_status); } &&
f95e4495
VS
32552 { ac_try='test -z "$ac_c_werror_flag"
32553 || test ! -s conftest.err'
32554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32555 (eval $ac_try) 2>&5
32556 ac_status=$?
32557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32558 (exit $ac_status); }; } &&
32559 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32561 (eval $ac_try) 2>&5
32562 ac_status=$?
32563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32564 (exit $ac_status); }; }; then
32565
7274f1c7 32566 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 32567
698dcdb6 32568else
e6cc62c6
VS
32569 echo "$as_me: failed program was:" >&5
32570sed 's/^/| /' conftest.$ac_ext >&5
32571
32572
7274f1c7 32573 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
32574
32575
247f5006 32576fi
f95e4495 32577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 32578
e6cc62c6
VS
32579fi
32580echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
32581echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 32582 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 32583 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32584#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 32585_ACEOF
3fed1840 32586
7274f1c7 32587 else
e6cc62c6
VS
32588 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
32589echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
32590 fi
32591 fi
7274f1c7 32592 fi
3fed1840 32593
a0b9e27f
MB
32594else
32595 if test "$wxUSE_THREADS" = "yes" ; then
32596 case "${host}" in
32597 *-*-mingw32* )
e6cc62c6
VS
32598 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
32599echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
32600if test "${wx_cv_cflags_mthread+set}" = set; then
32601 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 32602else
e6cc62c6 32603
ca8e52b3
VZ
32604 CFLAGS_OLD="$CFLAGS"
32605 CFLAGS="$CFLAGS -mthreads"
e6cc62c6 32606 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32607/* confdefs.h. */
32608_ACEOF
32609cat confdefs.h >>conftest.$ac_ext
32610cat >>conftest.$ac_ext <<_ACEOF
32611/* end confdefs.h. */
32612
32613int
32614main ()
32615{
ca8e52b3 32616
e6cc62c6
VS
32617 ;
32618 return 0;
32619}
32620_ACEOF
32621rm -f conftest.$ac_objext
32622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 32623 (eval $ac_compile) 2>conftest.er1
e6cc62c6 32624 ac_status=$?
f95e4495
VS
32625 grep -v '^ *+' conftest.er1 >conftest.err
32626 rm -f conftest.er1
32627 cat conftest.err >&5
e6cc62c6
VS
32628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32629 (exit $ac_status); } &&
f95e4495
VS
32630 { ac_try='test -z "$ac_c_werror_flag"
32631 || test ! -s conftest.err'
32632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32633 (eval $ac_try) 2>&5
32634 ac_status=$?
32635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636 (exit $ac_status); }; } &&
32637 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32639 (eval $ac_try) 2>&5
32640 ac_status=$?
32641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642 (exit $ac_status); }; }; then
ca8e52b3
VZ
32643 wx_cv_cflags_mthread=yes
32644else
e6cc62c6
VS
32645 echo "$as_me: failed program was:" >&5
32646sed 's/^/| /' conftest.$ac_ext >&5
32647
32648wx_cv_cflags_mthread=no
32649
ca8e52b3 32650fi
f95e4495 32651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 32652
ca8e52b3 32653
e6cc62c6
VS
32654fi
32655echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
32656echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
32657
32658 if test "$wx_cv_cflags_mthread" = "yes"; then
32659 CXXFLAGS="$CXXFLAGS -mthreads"
32660 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
32661 LDFLAGS="$LDFLAGS -mthreads"
32662 else
32663 CFLAGS="$CFLAGS_OLD"
32664 fi
a0b9e27f 32665 ;;
73d617c9
MB
32666 *-pc-os2*emx )
32667 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
32668 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
32669 LDFLAGS="$LDFLAGS -Zmt"
32670 ;;
a0b9e27f
MB
32671 esac
32672 fi
4f14bcd8
GD
32673fi
32674
32675if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 32676 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32677#define wxUSE_THREADS 1
e6cc62c6 32678_ACEOF
7b6058cd 32679
8284b0c5 32680
4f14bcd8 32681 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 32682else
4f14bcd8 32683 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
32684 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
32685echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
32686 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
32687 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
32688 echo "$as_me:$LINENO: result: yes" >&5
32689echo "${ECHO_T}yes" >&6
4f14bcd8 32690 else
e6cc62c6
VS
32691 echo "$as_me:$LINENO: result: no" >&5
32692echo "${ECHO_T}no" >&6
4f14bcd8
GD
32693 fi
32694 fi
32695fi
32696
32697if test "$WXGTK20" = 1 ; then
e6cc62c6 32698 cat >>confdefs.h <<_ACEOF
4f14bcd8 32699#define __WXGTK20__ $WXGTK20
e6cc62c6 32700_ACEOF
4f14bcd8
GD
32701
32702 WXGTK12=1
10f2d63a 32703fi
4f14bcd8
GD
32704
32705if test "$WXGTK12" = 1 ; then
e6cc62c6 32706 cat >>confdefs.h <<_ACEOF
4f14bcd8 32707#define __WXGTK12__ $WXGTK12
e6cc62c6 32708_ACEOF
4f14bcd8 32709
10f2d63a 32710fi
698dcdb6 32711
4f14bcd8 32712if test "$WXGTK127" = 1 ; then
e6cc62c6 32713 cat >>confdefs.h <<_ACEOF
4f14bcd8 32714#define __WXGTK127__ $WXGTK127
e6cc62c6 32715_ACEOF
4f14bcd8 32716
698dcdb6 32717fi
10f2d63a 32718
4f14bcd8
GD
32719WXDEBUG=
32720
32721if test "$wxUSE_DEBUG_INFO" = "yes" ; then
32722 WXDEBUG="-g"
32723 wxUSE_OPTIMISE=no
698dcdb6 32724fi
4f14bcd8
GD
32725
32726if test "$wxUSE_DEBUG_GDB" = "yes" ; then
32727 wxUSE_DEBUG_INFO=yes
32728 WXDEBUG="-ggdb"
10f2d63a
VZ
32729fi
32730
4f14bcd8 32731if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 32732 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32733#define WXDEBUG 1
e6cc62c6 32734_ACEOF
4f14bcd8
GD
32735
32736 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 32737else
4f14bcd8
GD
32738 if test "$wxUSE_GTK" = 1 ; then
32739 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
32740 fi
32741fi
32742
32743if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 32744 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32745#define wxUSE_MEMORY_TRACING 1
e6cc62c6 32746_ACEOF
4f14bcd8 32747
e6cc62c6 32748 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32749#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 32750_ACEOF
4f14bcd8 32751
e6cc62c6 32752 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32753#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 32754_ACEOF
4f14bcd8
GD
32755
32756 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
32757fi
32758
32759if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 32760 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
32761fi
32762
32763PROFILE=
32764if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 32765 PROFILE=" -pg"
10f2d63a
VZ
32766fi
32767
009fead0
VZ
32768CODE_GEN_FLAGS=
32769CODE_GEN_FLAGS_CXX=
88e30f2b 32770if test "$GCC" = "yes" ; then
4f14bcd8
GD
32771 if test "$wxUSE_NO_RTTI" = "yes" ; then
32772 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 32773 fi
4f14bcd8
GD
32774 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
32775 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
32776 fi
32777 if test "$wxUSE_PERMISSIVE" = "yes" ; then
32778 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
32779 fi
1d1b75ac 32780
2b5f62a0 32781 case "${host}" in
1d1b75ac
VZ
32782 powerpc*-*-aix* )
32783 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
32784 ;;
2b5f62a0
VZ
32785 *-hppa* )
32786 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
32787 ;;
1d1b75ac 32788 esac
4f14bcd8
GD
32789fi
32790
af7b5345 32791OPTIMISE=
4f14bcd8 32792if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
32793 if test "$GCC" = yes ; then
32794 OPTIMISE="-O0"
32795 fi
4f14bcd8
GD
32796else
32797 if test "$GCC" = yes ; then
32798 OPTIMISE="-O2"
af7b5345
VZ
32799
32800 case "${host}" in
4f14bcd8
GD
32801 i586-*-*|i686-*-* )
32802 OPTIMISE="${OPTIMISE} "
32803 ;;
32804 esac
32805 else
32806 OPTIMISE="-O"
32807 fi
32808fi
32809
8d90d2f2 32810
65d8ef1e 32811if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 32812 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32813#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 32814_ACEOF
4f14bcd8 32815
8d90d2f2
VZ
32816
32817 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
32818fi
32819
65d8ef1e 32820if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 32821 cat >>confdefs.h <<\_ACEOF
65d8ef1e 32822#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 32823_ACEOF
65d8ef1e
VS
32824
32825fi
32826
8284b0c5 32827
10f2d63a 32828if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 32829 cat >>confdefs.h <<\_ACEOF
10f2d63a 32830#define wxUSE_GUI 1
e6cc62c6 32831_ACEOF
10f2d63a 32832
8284b0c5 32833
10f2d63a 32834 else
e6cc62c6 32835 cat >>confdefs.h <<\_ACEOF
10f2d63a 32836#define wxUSE_NOGUI 1
e6cc62c6 32837_ACEOF
10f2d63a
VZ
32838
32839fi
32840
8284b0c5 32841
10f2d63a 32842if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 32843 cat >>confdefs.h <<\_ACEOF
10f2d63a 32844#define wxUSE_UNIX 1
e6cc62c6 32845_ACEOF
10f2d63a
VZ
32846
32847fi
32848
8284b0c5 32849
f93ca9fd 32850if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
5c6fa7d2 32851
f93ca9fd
VS
32852 HAVE_DL_FUNCS=0
32853 HAVE_SHL_FUNCS=0
32854 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
32855 if test "$USE_DARWIN" = 1; then
32856 HAVE_DL_FUNCS=1
32857 else
e6cc62c6 32858
f93ca9fd 32859for ac_func in dlopen
83307f33 32860do
e6cc62c6
VS
32861as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32862echo "$as_me:$LINENO: checking for $ac_func" >&5
32863echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32864if eval "test \"\${$as_ac_var+set}\" = set"; then
32865 echo $ECHO_N "(cached) $ECHO_C" >&6
32866else
32867 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32868/* confdefs.h. */
32869_ACEOF
32870cat confdefs.h >>conftest.$ac_ext
32871cat >>conftest.$ac_ext <<_ACEOF
32872/* end confdefs.h. */
f95e4495
VS
32873/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32875#define $ac_func innocuous_$ac_func
32876
83307f33 32877/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32878 which can conflict with char $ac_func (); below.
32879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32880 <limits.h> exists even on freestanding compilers. */
f95e4495 32881
e6cc62c6
VS
32882#ifdef __STDC__
32883# include <limits.h>
32884#else
32885# include <assert.h>
32886#endif
f95e4495
VS
32887
32888#undef $ac_func
32889
83307f33 32890/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32891#ifdef __cplusplus
32892extern "C"
32893{
32894#endif
83307f33 32895/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32896 builtin and then its argument prototype would still apply. */
32897char $ac_func ();
83307f33
VZ
32898/* The GNU C library defines this for functions which it implements
32899 to always fail with ENOSYS. Some functions are actually named
32900 something starting with __ and the normal name is an alias. */
32901#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32902choke me
32903#else
e6cc62c6
VS
32904char (*f) () = $ac_func;
32905#endif
32906#ifdef __cplusplus
32907}
83307f33
VZ
32908#endif
32909
e6cc62c6
VS
32910int
32911main ()
32912{
32913return f != $ac_func;
32914 ;
32915 return 0;
32916}
32917_ACEOF
32918rm -f conftest.$ac_objext conftest$ac_exeext
32919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 32920 (eval $ac_link) 2>conftest.er1
e6cc62c6 32921 ac_status=$?
f95e4495
VS
32922 grep -v '^ *+' conftest.er1 >conftest.err
32923 rm -f conftest.er1
32924 cat conftest.err >&5
e6cc62c6
VS
32925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32926 (exit $ac_status); } &&
f95e4495
VS
32927 { ac_try='test -z "$ac_c_werror_flag"
32928 || test ! -s conftest.err'
32929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32930 (eval $ac_try) 2>&5
32931 ac_status=$?
32932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32933 (exit $ac_status); }; } &&
32934 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32936 (eval $ac_try) 2>&5
32937 ac_status=$?
32938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32939 (exit $ac_status); }; }; then
32940 eval "$as_ac_var=yes"
32941else
32942 echo "$as_me: failed program was:" >&5
32943sed 's/^/| /' conftest.$ac_ext >&5
32944
32945eval "$as_ac_var=no"
32946fi
f95e4495
VS
32947rm -f conftest.err conftest.$ac_objext \
32948 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32949fi
32950echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32951echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32952if test `eval echo '${'$as_ac_var'}'` = yes; then
32953 cat >>confdefs.h <<_ACEOF
32954#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32955_ACEOF
83307f33 32956
f93ca9fd
VS
32957 cat >>confdefs.h <<\_ACEOF
32958#define HAVE_DLOPEN 1
e6cc62c6 32959_ACEOF
e6cc62c6 32960
f93ca9fd 32961 HAVE_DL_FUNCS=1
e6cc62c6 32962
360d6699 32963else
e6cc62c6 32964
f93ca9fd
VS
32965 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
32966echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
32967if test "${ac_cv_lib_dl_dlopen+set}" = set; then
32968 echo $ECHO_N "(cached) $ECHO_C" >&6
5357c8e8 32969else
f93ca9fd
VS
32970 ac_check_lib_save_LIBS=$LIBS
32971LIBS="-ldl $LIBS"
32972cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32973/* confdefs.h. */
32974_ACEOF
32975cat confdefs.h >>conftest.$ac_ext
32976cat >>conftest.$ac_ext <<_ACEOF
32977/* end confdefs.h. */
5357c8e8 32978
f93ca9fd
VS
32979/* Override any gcc2 internal prototype to avoid an error. */
32980#ifdef __cplusplus
32981extern "C"
32982#endif
32983/* We use char because int might match the return type of a gcc2
32984 builtin and then its argument prototype would still apply. */
32985char dlopen ();
e6cc62c6
VS
32986int
32987main ()
32988{
f93ca9fd 32989dlopen ();
e6cc62c6
VS
32990 ;
32991 return 0;
32992}
32993_ACEOF
f93ca9fd
VS
32994rm -f conftest.$ac_objext conftest$ac_exeext
32995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32996 (eval $ac_link) 2>conftest.er1
e6cc62c6 32997 ac_status=$?
f95e4495
VS
32998 grep -v '^ *+' conftest.er1 >conftest.err
32999 rm -f conftest.er1
33000 cat conftest.err >&5
e6cc62c6
VS
33001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33002 (exit $ac_status); } &&
f95e4495
VS
33003 { ac_try='test -z "$ac_c_werror_flag"
33004 || test ! -s conftest.err'
33005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33006 (eval $ac_try) 2>&5
33007 ac_status=$?
33008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33009 (exit $ac_status); }; } &&
f93ca9fd 33010 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33012 (eval $ac_try) 2>&5
33013 ac_status=$?
33014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33015 (exit $ac_status); }; }; then
f93ca9fd 33016 ac_cv_lib_dl_dlopen=yes
360d6699 33017else
e6cc62c6
VS
33018 echo "$as_me: failed program was:" >&5
33019sed 's/^/| /' conftest.$ac_ext >&5
33020
f93ca9fd 33021ac_cv_lib_dl_dlopen=no
247f5006 33022fi
f93ca9fd
VS
33023rm -f conftest.err conftest.$ac_objext \
33024 conftest$ac_exeext conftest.$ac_ext
33025LIBS=$ac_check_lib_save_LIBS
e6cc62c6 33026fi
f93ca9fd
VS
33027echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33028echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33029if test $ac_cv_lib_dl_dlopen = yes; then
698dcdb6 33030
f93ca9fd
VS
33031 cat >>confdefs.h <<\_ACEOF
33032#define HAVE_DLOPEN 1
e6cc62c6 33033_ACEOF
360d6699 33034
f93ca9fd
VS
33035 HAVE_DL_FUNCS=1
33036 DL_LINK=" -ldl$DL_LINK"
698dcdb6 33037
f93ca9fd 33038else
e6cc62c6 33039
f93ca9fd
VS
33040
33041for ac_func in shl_load
afc31813 33042do
e6cc62c6
VS
33043as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33044echo "$as_me:$LINENO: checking for $ac_func" >&5
33045echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33046if eval "test \"\${$as_ac_var+set}\" = set"; then
33047 echo $ECHO_N "(cached) $ECHO_C" >&6
33048else
33049 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33050/* confdefs.h. */
33051_ACEOF
33052cat confdefs.h >>conftest.$ac_ext
33053cat >>conftest.$ac_ext <<_ACEOF
33054/* end confdefs.h. */
f95e4495
VS
33055/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33057#define $ac_func innocuous_$ac_func
33058
afc31813 33059/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33060 which can conflict with char $ac_func (); below.
33061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33062 <limits.h> exists even on freestanding compilers. */
f95e4495 33063
e6cc62c6
VS
33064#ifdef __STDC__
33065# include <limits.h>
33066#else
33067# include <assert.h>
33068#endif
f95e4495
VS
33069
33070#undef $ac_func
33071
afc31813 33072/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33073#ifdef __cplusplus
33074extern "C"
33075{
33076#endif
afc31813 33077/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33078 builtin and then its argument prototype would still apply. */
33079char $ac_func ();
afc31813
VZ
33080/* The GNU C library defines this for functions which it implements
33081 to always fail with ENOSYS. Some functions are actually named
33082 something starting with __ and the normal name is an alias. */
33083#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33084choke me
33085#else
e6cc62c6
VS
33086char (*f) () = $ac_func;
33087#endif
33088#ifdef __cplusplus
33089}
afc31813
VZ
33090#endif
33091
e6cc62c6
VS
33092int
33093main ()
33094{
33095return f != $ac_func;
33096 ;
33097 return 0;
33098}
33099_ACEOF
33100rm -f conftest.$ac_objext conftest$ac_exeext
33101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 33102 (eval $ac_link) 2>conftest.er1
e6cc62c6 33103 ac_status=$?
f95e4495
VS
33104 grep -v '^ *+' conftest.er1 >conftest.err
33105 rm -f conftest.er1
33106 cat conftest.err >&5
e6cc62c6
VS
33107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33108 (exit $ac_status); } &&
f95e4495
VS
33109 { ac_try='test -z "$ac_c_werror_flag"
33110 || test ! -s conftest.err'
33111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33112 (eval $ac_try) 2>&5
33113 ac_status=$?
33114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33115 (exit $ac_status); }; } &&
33116 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33118 (eval $ac_try) 2>&5
33119 ac_status=$?
33120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33121 (exit $ac_status); }; }; then
33122 eval "$as_ac_var=yes"
33123else
33124 echo "$as_me: failed program was:" >&5
33125sed 's/^/| /' conftest.$ac_ext >&5
33126
33127eval "$as_ac_var=no"
33128fi
f95e4495
VS
33129rm -f conftest.err conftest.$ac_objext \
33130 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33131fi
33132echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33133echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33134if test `eval echo '${'$as_ac_var'}'` = yes; then
33135 cat >>confdefs.h <<_ACEOF
33136#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33137_ACEOF
afc31813 33138
f93ca9fd
VS
33139 cat >>confdefs.h <<\_ACEOF
33140#define HAVE_SHL_LOAD 1
33141_ACEOF
afc31813 33142
f93ca9fd 33143 HAVE_SHL_FUNCS=1
5c6fa7d2 33144
a0b9e27f 33145else
e6cc62c6 33146
f93ca9fd
VS
33147 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
33148echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
33149if test "${ac_cv_lib_shl_load_dld+set}" = set; then
33150 echo $ECHO_N "(cached) $ECHO_C" >&6
33151else
33152 ac_check_lib_save_LIBS=$LIBS
33153LIBS="-lshl_load $LIBS"
33154cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33155/* confdefs.h. */
33156_ACEOF
33157cat confdefs.h >>conftest.$ac_ext
33158cat >>conftest.$ac_ext <<_ACEOF
33159/* end confdefs.h. */
0470b1e6 33160
f93ca9fd
VS
33161/* Override any gcc2 internal prototype to avoid an error. */
33162#ifdef __cplusplus
33163extern "C"
33164#endif
33165/* We use char because int might match the return type of a gcc2
33166 builtin and then its argument prototype would still apply. */
33167char dld ();
e6cc62c6
VS
33168int
33169main ()
33170{
f93ca9fd 33171dld ();
e6cc62c6
VS
33172 ;
33173 return 0;
33174}
33175_ACEOF
f93ca9fd
VS
33176rm -f conftest.$ac_objext conftest$ac_exeext
33177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33178 (eval $ac_link) 2>conftest.er1
e6cc62c6 33179 ac_status=$?
f95e4495
VS
33180 grep -v '^ *+' conftest.er1 >conftest.err
33181 rm -f conftest.er1
33182 cat conftest.err >&5
e6cc62c6
VS
33183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33184 (exit $ac_status); } &&
f95e4495
VS
33185 { ac_try='test -z "$ac_c_werror_flag"
33186 || test ! -s conftest.err'
33187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33188 (eval $ac_try) 2>&5
33189 ac_status=$?
33190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33191 (exit $ac_status); }; } &&
f93ca9fd 33192 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33194 (eval $ac_try) 2>&5
33195 ac_status=$?
33196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33197 (exit $ac_status); }; }; then
f93ca9fd 33198 ac_cv_lib_shl_load_dld=yes
0470b1e6 33199else
e6cc62c6
VS
33200 echo "$as_me: failed program was:" >&5
33201sed 's/^/| /' conftest.$ac_ext >&5
33202
f93ca9fd
VS
33203ac_cv_lib_shl_load_dld=no
33204fi
33205rm -f conftest.err conftest.$ac_objext \
33206 conftest$ac_exeext conftest.$ac_ext
33207LIBS=$ac_check_lib_save_LIBS
33208fi
33209echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
33210echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
33211if test $ac_cv_lib_shl_load_dld = yes; then
33212
33213 HAVE_SHL_FUNCS=1
33214 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 33215
247f5006 33216fi
f93ca9fd 33217
a0b9e27f 33218
e6cc62c6 33219fi
f93ca9fd 33220done
6232543b 33221
0470b1e6 33222
f93ca9fd
VS
33223fi
33224
3fcdd07b 33225
f93ca9fd
VS
33226fi
33227done
e6cc62c6
VS
33228
33229
f93ca9fd
VS
33230 if test "$HAVE_DL_FUNCS" = 1; then
33231
33232for ac_func in dlerror
3fcdd07b 33233do
e6cc62c6
VS
33234as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33235echo "$as_me:$LINENO: checking for $ac_func" >&5
33236echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33237if eval "test \"\${$as_ac_var+set}\" = set"; then
33238 echo $ECHO_N "(cached) $ECHO_C" >&6
33239else
33240 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33241/* confdefs.h. */
33242_ACEOF
33243cat confdefs.h >>conftest.$ac_ext
33244cat >>conftest.$ac_ext <<_ACEOF
33245/* end confdefs.h. */
f95e4495
VS
33246/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33248#define $ac_func innocuous_$ac_func
33249
3fcdd07b 33250/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33251 which can conflict with char $ac_func (); below.
33252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33253 <limits.h> exists even on freestanding compilers. */
f95e4495 33254
e6cc62c6
VS
33255#ifdef __STDC__
33256# include <limits.h>
33257#else
33258# include <assert.h>
33259#endif
f95e4495
VS
33260
33261#undef $ac_func
33262
3fcdd07b 33263/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33264#ifdef __cplusplus
33265extern "C"
33266{
33267#endif
3fcdd07b 33268/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33269 builtin and then its argument prototype would still apply. */
33270char $ac_func ();
3fcdd07b
VZ
33271/* The GNU C library defines this for functions which it implements
33272 to always fail with ENOSYS. Some functions are actually named
33273 something starting with __ and the normal name is an alias. */
33274#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33275choke me
33276#else
e6cc62c6
VS
33277char (*f) () = $ac_func;
33278#endif
33279#ifdef __cplusplus
33280}
3fcdd07b
VZ
33281#endif
33282
e6cc62c6
VS
33283int
33284main ()
33285{
33286return f != $ac_func;
33287 ;
33288 return 0;
33289}
33290_ACEOF
33291rm -f conftest.$ac_objext conftest$ac_exeext
33292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 33293 (eval $ac_link) 2>conftest.er1
e6cc62c6 33294 ac_status=$?
f95e4495
VS
33295 grep -v '^ *+' conftest.er1 >conftest.err
33296 rm -f conftest.er1
33297 cat conftest.err >&5
e6cc62c6
VS
33298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33299 (exit $ac_status); } &&
f95e4495
VS
33300 { ac_try='test -z "$ac_c_werror_flag"
33301 || test ! -s conftest.err'
33302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33303 (eval $ac_try) 2>&5
33304 ac_status=$?
33305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33306 (exit $ac_status); }; } &&
33307 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33309 (eval $ac_try) 2>&5
33310 ac_status=$?
33311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312 (exit $ac_status); }; }; then
33313 eval "$as_ac_var=yes"
33314else
33315 echo "$as_me: failed program was:" >&5
33316sed 's/^/| /' conftest.$ac_ext >&5
33317
33318eval "$as_ac_var=no"
33319fi
f95e4495
VS
33320rm -f conftest.err conftest.$ac_objext \
33321 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33322fi
33323echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33324echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33325if test `eval echo '${'$as_ac_var'}'` = yes; then
33326 cat >>confdefs.h <<_ACEOF
33327#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33328_ACEOF
f93ca9fd
VS
33329 cat >>confdefs.h <<\_ACEOF
33330#define HAVE_DLERROR 1
33331_ACEOF
3fcdd07b 33332
f93ca9fd 33333else
698dcdb6 33334
f93ca9fd
VS
33335 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
33336echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
33337if test "${ac_cv_lib_dl_dlerror+set}" = set; then
e6cc62c6
VS
33338 echo $ECHO_N "(cached) $ECHO_C" >&6
33339else
f93ca9fd
VS
33340 ac_check_lib_save_LIBS=$LIBS
33341LIBS="-ldl $LIBS"
33342cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33343/* confdefs.h. */
33344_ACEOF
33345cat confdefs.h >>conftest.$ac_ext
33346cat >>conftest.$ac_ext <<_ACEOF
33347/* end confdefs.h. */
afc31813 33348
f93ca9fd
VS
33349/* Override any gcc2 internal prototype to avoid an error. */
33350#ifdef __cplusplus
33351extern "C"
33352#endif
33353/* We use char because int might match the return type of a gcc2
33354 builtin and then its argument prototype would still apply. */
33355char dlerror ();
e6cc62c6
VS
33356int
33357main ()
33358{
f93ca9fd 33359dlerror ();
e6cc62c6
VS
33360 ;
33361 return 0;
33362}
33363_ACEOF
f93ca9fd
VS
33364rm -f conftest.$ac_objext conftest$ac_exeext
33365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33366 (eval $ac_link) 2>conftest.er1
e6cc62c6 33367 ac_status=$?
f95e4495
VS
33368 grep -v '^ *+' conftest.er1 >conftest.err
33369 rm -f conftest.er1
33370 cat conftest.err >&5
e6cc62c6
VS
33371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33372 (exit $ac_status); } &&
f93ca9fd 33373 { ac_try='test -z "$ac_c_werror_flag"
f95e4495
VS
33374 || test ! -s conftest.err'
33375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33376 (eval $ac_try) 2>&5
33377 ac_status=$?
33378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33379 (exit $ac_status); }; } &&
f93ca9fd 33380 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33382 (eval $ac_try) 2>&5
33383 ac_status=$?
33384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33385 (exit $ac_status); }; }; then
f93ca9fd 33386 ac_cv_lib_dl_dlerror=yes
10f2d63a 33387else
e6cc62c6
VS
33388 echo "$as_me: failed program was:" >&5
33389sed 's/^/| /' conftest.$ac_ext >&5
33390
f93ca9fd
VS
33391ac_cv_lib_dl_dlerror=no
33392fi
33393rm -f conftest.err conftest.$ac_objext \
33394 conftest$ac_exeext conftest.$ac_ext
33395LIBS=$ac_check_lib_save_LIBS
33396fi
33397echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
33398echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
33399if test $ac_cv_lib_dl_dlerror = yes; then
33400 cat >>confdefs.h <<\_ACEOF
33401#define HAVE_DLERROR 1
33402_ACEOF
33403
33404fi
33405
33406
33407
33408fi
33409done
33410
33411 fi
33412 fi
33413
33414 if test "$HAVE_DL_FUNCS" = 0; then
33415 if test "$HAVE_SHL_FUNCS" = 0; then
33416 if test "$USE_UNIX" = 1; then
33417 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
33418echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
33419 wxUSE_DYNAMIC_LOADER=no
33420 wxUSE_DYNLIB_CLASS=no
33421 else
33422 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
33423echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
33424 fi
33425 fi
33426 fi
33427 fi
33428fi
33429
33430if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
33431 cat >>confdefs.h <<\_ACEOF
33432#define wxUSE_DYNAMIC_LOADER 1
33433_ACEOF
33434
33435fi
33436if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
33437 cat >>confdefs.h <<\_ACEOF
33438#define wxUSE_DYNLIB_CLASS 1
33439_ACEOF
33440
33441fi
33442
33443
33444
33445if test "$wxUSE_PLUGINS" = "yes" ; then
33446 if test "$wxUSE_SHARED" = "no" ; then
33447 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
33448echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
33449 wxUSE_PLUGINS=no
33450 fi
33451 if test "$wxUSE_MONOLITHIC" = "yes" ; then
33452 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
33453echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
33454 wxUSE_PLUGINS=no
33455 fi
33456 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
33457 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
33458echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
33459 wxUSE_PLUGINS=no
33460 fi
33461 if test "$wxUSE_PLUGINS" = "yes" ; then
33462 cat >>confdefs.h <<\_ACEOF
33463#define wxUSE_PLUGINS 1
33464_ACEOF
33465
33466 fi
33467fi
33468
33469
33470if test "$wxUSE_STL" = "yes"; then
33471 cat >>confdefs.h <<\_ACEOF
33472#define wxUSE_STL 1
33473_ACEOF
33474
33475fi
33476
33477if test "$wxUSE_APPLE_IEEE" = "yes"; then
33478 cat >>confdefs.h <<\_ACEOF
33479#define wxUSE_APPLE_IEEE 1
33480_ACEOF
33481
33482fi
33483
33484if test "$wxUSE_TIMER" = "yes"; then
33485 cat >>confdefs.h <<\_ACEOF
33486#define wxUSE_TIMER 1
33487_ACEOF
33488
33489fi
33490
33491WITH_PLUGIN_SDL=0
33492if test "$wxUSE_WAVE" = "yes"; then
33493 if test "$USE_UNIX" = "1" ; then
33494
33495for ac_header in sys/soundcard.h
33496do
33497as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33498if eval "test \"\${$as_ac_Header+set}\" = set"; then
33499 echo "$as_me:$LINENO: checking for $ac_header" >&5
33500echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33501if eval "test \"\${$as_ac_Header+set}\" = set"; then
33502 echo $ECHO_N "(cached) $ECHO_C" >&6
33503fi
33504echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33505echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33506else
33507 # Is the header compilable?
33508echo "$as_me:$LINENO: checking $ac_header usability" >&5
33509echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6 33510cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33511/* confdefs.h. */
33512_ACEOF
33513cat confdefs.h >>conftest.$ac_ext
33514cat >>conftest.$ac_ext <<_ACEOF
33515/* end confdefs.h. */
f93ca9fd
VS
33516$ac_includes_default
33517#include <$ac_header>
e6cc62c6
VS
33518_ACEOF
33519rm -f conftest.$ac_objext
33520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 33521 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33522 ac_status=$?
f95e4495
VS
33523 grep -v '^ *+' conftest.er1 >conftest.err
33524 rm -f conftest.er1
33525 cat conftest.err >&5
e6cc62c6
VS
33526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33527 (exit $ac_status); } &&
f93ca9fd 33528 { ac_try='test -z "$ac_c_werror_flag"
f95e4495
VS
33529 || test ! -s conftest.err'
33530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33531 (eval $ac_try) 2>&5
33532 ac_status=$?
33533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33534 (exit $ac_status); }; } &&
33535 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33537 (eval $ac_try) 2>&5
33538 ac_status=$?
33539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33540 (exit $ac_status); }; }; then
f93ca9fd 33541 ac_header_compiler=yes
10f2d63a 33542else
e6cc62c6
VS
33543 echo "$as_me: failed program was:" >&5
33544sed 's/^/| /' conftest.$ac_ext >&5
33545
f93ca9fd 33546ac_header_compiler=no
10f2d63a 33547fi
f95e4495 33548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f93ca9fd
VS
33549echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33550echo "${ECHO_T}$ac_header_compiler" >&6
b089607b 33551
f93ca9fd
VS
33552# Is the header present?
33553echo "$as_me:$LINENO: checking $ac_header presence" >&5
33554echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33555cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33556/* confdefs.h. */
33557_ACEOF
33558cat confdefs.h >>conftest.$ac_ext
33559cat >>conftest.$ac_ext <<_ACEOF
33560/* end confdefs.h. */
f93ca9fd 33561#include <$ac_header>
e6cc62c6 33562_ACEOF
f93ca9fd
VS
33563if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33564 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
e6cc62c6 33565 ac_status=$?
f95e4495
VS
33566 grep -v '^ *+' conftest.er1 >conftest.err
33567 rm -f conftest.er1
33568 cat conftest.err >&5
e6cc62c6 33569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f93ca9fd
VS
33570 (exit $ac_status); } >/dev/null; then
33571 if test -s conftest.err; then
33572 ac_cpp_err=$ac_c_preproc_warn_flag
33573 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
33574 else
33575 ac_cpp_err=
33576 fi
33577else
33578 ac_cpp_err=yes
33579fi
33580if test -z "$ac_cpp_err"; then
33581 ac_header_preproc=yes
33582else
33583 echo "$as_me: failed program was:" >&5
33584sed 's/^/| /' conftest.$ac_ext >&5
33585
33586 ac_header_preproc=no
33587fi
33588rm -f conftest.err conftest.$ac_ext
33589echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33590echo "${ECHO_T}$ac_header_preproc" >&6
33591
33592# So? What about this header?
33593case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33594 yes:no: )
33595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33596echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
33597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
33598echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
33599 ac_header_preproc=yes
33600 ;;
33601 no:yes:* )
33602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33603echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
33604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33605echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
33606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
33607echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
33608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
33609echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
33610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33611echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
33613echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
33614 (
33615 cat <<\_ASBOX
33616## ----------------------------------------- ##
33617## Report this to wx-dev@lists.wxwindows.org ##
33618## ----------------------------------------- ##
33619_ASBOX
33620 ) |
33621 sed "s/^/$as_me: WARNING: /" >&2
33622 ;;
33623esac
33624echo "$as_me:$LINENO: checking for $ac_header" >&5
33625echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33626if eval "test \"\${$as_ac_Header+set}\" = set"; then
33627 echo $ECHO_N "(cached) $ECHO_C" >&6
33628else
33629 eval "$as_ac_Header=\$ac_header_preproc"
33630fi
33631echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33632echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33633
33634fi
33635if test `eval echo '${'$as_ac_Header'}'` = yes; then
33636 cat >>confdefs.h <<_ACEOF
33637#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33638_ACEOF
33639
33640fi
33641
33642done
33643
33644
33645 if test "$wxUSE_LIBSDL" != "no"; then
33646
33647# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
33648if test "${with_sdl_prefix+set}" = set; then
33649 withval="$with_sdl_prefix"
33650 sdl_prefix="$withval"
33651else
33652 sdl_prefix=""
33653fi;
33654
33655# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
33656if test "${with_sdl_exec_prefix+set}" = set; then
33657 withval="$with_sdl_exec_prefix"
33658 sdl_exec_prefix="$withval"
33659else
33660 sdl_exec_prefix=""
33661fi;
33662# Check whether --enable-sdltest or --disable-sdltest was given.
33663if test "${enable_sdltest+set}" = set; then
33664 enableval="$enable_sdltest"
33665
33666else
33667 enable_sdltest=yes
33668fi;
33669
33670 if test x$sdl_exec_prefix != x ; then
33671 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
33672 if test x${SDL_CONFIG+set} != xset ; then
33673 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
33674 fi
33675 fi
33676 if test x$sdl_prefix != x ; then
33677 sdl_args="$sdl_args --prefix=$sdl_prefix"
33678 if test x${SDL_CONFIG+set} != xset ; then
33679 SDL_CONFIG=$sdl_prefix/bin/sdl-config
33680 fi
33681 fi
33682
33683
33684 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
33685 # Extract the first word of "sdl-config", so it can be a program name with args.
33686set dummy sdl-config; ac_word=$2
33687echo "$as_me:$LINENO: checking for $ac_word" >&5
33688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33689if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
33690 echo $ECHO_N "(cached) $ECHO_C" >&6
33691else
33692 case $SDL_CONFIG in
33693 [\\/]* | ?:[\\/]*)
33694 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
33695 ;;
33696 *)
33697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33698for as_dir in $PATH
33699do
33700 IFS=$as_save_IFS
33701 test -z "$as_dir" && as_dir=.
33702 for ac_exec_ext in '' $ac_executable_extensions; do
33703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33704 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33706 break 2
33707 fi
33708done
33709done
33710
33711 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
33712 ;;
33713esac
33714fi
33715SDL_CONFIG=$ac_cv_path_SDL_CONFIG
33716
33717if test -n "$SDL_CONFIG"; then
33718 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
33719echo "${ECHO_T}$SDL_CONFIG" >&6
33720else
33721 echo "$as_me:$LINENO: result: no" >&5
33722echo "${ECHO_T}no" >&6
33723fi
33724
33725 min_sdl_version=1.2.0
33726 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
33727echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
33728 no_sdl=""
33729 if test "$SDL_CONFIG" = "no" ; then
33730 no_sdl=yes
33731 else
33732 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
33733 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
33734
33735 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
33736 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
33737 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
33738 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
33739 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
33740 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
33741 if test "x$enable_sdltest" = "xyes" ; then
33742 ac_save_CFLAGS="$CFLAGS"
33743 ac_save_LIBS="$LIBS"
33744 CFLAGS="$CFLAGS $SDL_CFLAGS"
33745 LIBS="$LIBS $SDL_LIBS"
33746 rm -f conf.sdltest
33747 if test "$cross_compiling" = yes; then
33748 echo $ac_n "cross compiling; assumed OK... $ac_c"
33749else
33750 cat >conftest.$ac_ext <<_ACEOF
33751/* confdefs.h. */
33752_ACEOF
33753cat confdefs.h >>conftest.$ac_ext
33754cat >>conftest.$ac_ext <<_ACEOF
33755/* end confdefs.h. */
33756
33757#include <stdio.h>
33758#include <stdlib.h>
33759#include <string.h>
33760#include "SDL.h"
33761
33762char*
33763my_strdup (char *str)
33764{
33765 char *new_str;
33766
33767 if (str)
33768 {
33769 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
33770 strcpy (new_str, str);
33771 }
33772 else
33773 new_str = NULL;
33774
33775 return new_str;
33776}
33777
33778int main (int argc, char *argv[])
33779{
33780 int major, minor, micro;
33781 char *tmp_version;
33782
33783 /* This hangs on some systems (?)
33784 system ("touch conf.sdltest");
33785 */
33786 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
33787
33788 /* HP/UX 9 (%@#!) writes to sscanf strings */
33789 tmp_version = my_strdup("$min_sdl_version");
33790 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
33791 printf("%s, bad version string\n", "$min_sdl_version");
33792 exit(1);
33793 }
33794
33795 if (($sdl_major_version > major) ||
33796 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
33797 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
33798 {
33799 return 0;
33800 }
33801 else
33802 {
33803 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
33804 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
33805 printf("*** best to upgrade to the required version.\n");
33806 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
33807 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
33808 printf("*** config.cache before re-running configure\n");
33809 return 1;
33810 }
33811}
33812
33813
33814_ACEOF
33815rm -f conftest$ac_exeext
33816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33817 (eval $ac_link) 2>&5
f95e4495
VS
33818 ac_status=$?
33819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f93ca9fd 33820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
e6cc62c6
VS
33821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33822 (eval $ac_try) 2>&5
33823 ac_status=$?
33824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33825 (exit $ac_status); }; }; then
f93ca9fd 33826 :
e6cc62c6 33827else
f93ca9fd
VS
33828 echo "$as_me: program exited with status $ac_status" >&5
33829echo "$as_me: failed program was:" >&5
e6cc62c6
VS
33830sed 's/^/| /' conftest.$ac_ext >&5
33831
f93ca9fd
VS
33832( exit $ac_status )
33833no_sdl=yes
e6cc62c6 33834fi
f93ca9fd 33835rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6 33836fi
f93ca9fd
VS
33837 CFLAGS="$ac_save_CFLAGS"
33838 LIBS="$ac_save_LIBS"
33839 fi
33840 fi
33841 if test "x$no_sdl" = x ; then
33842 echo "$as_me:$LINENO: result: yes" >&5
33843echo "${ECHO_T}yes" >&6
0e012a93 33844
f93ca9fd
VS
33845 EXTRALIBS_SDL="$SDL_LIBS"
33846 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
33847 cat >>confdefs.h <<\_ACEOF
33848#define wxUSE_LIBSDL 1
33849_ACEOF
33850
33851
33852 else
33853 echo "$as_me:$LINENO: result: no" >&5
33854echo "${ECHO_T}no" >&6
33855 if test "$SDL_CONFIG" = "no" ; then
33856 echo "*** The sdl-config script installed by SDL could not be found"
33857 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
33858 echo "*** your path, or set the SDL_CONFIG environment variable to the"
33859 echo "*** full path to sdl-config."
33860 else
33861 if test -f conf.sdltest ; then
33862 :
33863 else
33864 echo "*** Could not run SDL test program, checking why..."
33865 CFLAGS="$CFLAGS $SDL_CFLAGS"
33866 LIBS="$LIBS $SDL_LIBS"
33867 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33868/* confdefs.h. */
33869_ACEOF
33870cat confdefs.h >>conftest.$ac_ext
33871cat >>conftest.$ac_ext <<_ACEOF
33872/* end confdefs.h. */
33873
f93ca9fd
VS
33874#include <stdio.h>
33875#include "SDL.h"
33876
33877int main(int argc, char *argv[])
33878{ return 0; }
33879#undef main
33880#define main K_and_R_C_main
33881
e6cc62c6
VS
33882int
33883main ()
33884{
f93ca9fd 33885 return 0;
e6cc62c6
VS
33886 ;
33887 return 0;
33888}
33889_ACEOF
33890rm -f conftest.$ac_objext conftest$ac_exeext
33891if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 33892 (eval $ac_link) 2>conftest.er1
e6cc62c6 33893 ac_status=$?
f95e4495
VS
33894 grep -v '^ *+' conftest.er1 >conftest.err
33895 rm -f conftest.er1
33896 cat conftest.err >&5
e6cc62c6
VS
33897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33898 (exit $ac_status); } &&
f95e4495
VS
33899 { ac_try='test -z "$ac_c_werror_flag"
33900 || test ! -s conftest.err'
33901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33902 (eval $ac_try) 2>&5
33903 ac_status=$?
33904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33905 (exit $ac_status); }; } &&
33906 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33908 (eval $ac_try) 2>&5
33909 ac_status=$?
33910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33911 (exit $ac_status); }; }; then
f93ca9fd
VS
33912 echo "*** The test program compiled, but did not run. This usually means"
33913 echo "*** that the run-time linker is not finding SDL or finding the wrong"
33914 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
33915 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
33916 echo "*** to the installed location Also, make sure you have run ldconfig if that"
33917 echo "*** is required on your system"
33918 echo "***"
33919 echo "*** If you have an old version installed, it is best to remove it, although"
33920 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
e6cc62c6
VS
33921else
33922 echo "$as_me: failed program was:" >&5
33923sed 's/^/| /' conftest.$ac_ext >&5
33924
f93ca9fd
VS
33925 echo "*** The test program failed to compile or link. See the file config.log for the"
33926 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
33927 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
33928 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
e6cc62c6 33929fi
f95e4495
VS
33930rm -f conftest.err conftest.$ac_objext \
33931 conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
33932 CFLAGS="$ac_save_CFLAGS"
33933 LIBS="$ac_save_LIBS"
33934 fi
33935 fi
33936 SDL_CFLAGS=""
33937 SDL_LIBS=""
33938 wxUSE_LIBSDL="no"
33939 fi
33940
33941
33942 rm -f conf.sdltest
33943
33944 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
33945 WITH_PLUGIN_SDL=1
33946 fi
33947 fi
33948 fi
33949
33950 cat >>confdefs.h <<\_ACEOF
33951#define wxUSE_WAVE 1
33952_ACEOF
33953
33954 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
e6cc62c6 33955fi
afc31813 33956
f93ca9fd
VS
33957if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
33958 cat >>confdefs.h <<\_ACEOF
33959#define wxUSE_CMDLINE_PARSER 1
33960_ACEOF
33961
33962fi
e6cc62c6 33963
f93ca9fd
VS
33964if test "$wxUSE_STOPWATCH" = "yes"; then
33965 cat >>confdefs.h <<\_ACEOF
33966#define wxUSE_STOPWATCH 1
33967_ACEOF
e6cc62c6 33968
6232543b 33969fi
b089607b 33970
f93ca9fd
VS
33971if test "$wxUSE_DATETIME" = "yes"; then
33972 cat >>confdefs.h <<\_ACEOF
33973#define wxUSE_DATETIME 1
33974_ACEOF
e6cc62c6 33975
f93ca9fd
VS
33976fi
33977
33978if test "$wxUSE_FILE" = "yes"; then
33979 cat >>confdefs.h <<\_ACEOF
33980#define wxUSE_FILE 1
33981_ACEOF
0e012a93 33982
1e487827 33983fi
afc31813 33984
f93ca9fd
VS
33985if test "$wxUSE_FFILE" = "yes"; then
33986 cat >>confdefs.h <<\_ACEOF
33987#define wxUSE_FFILE 1
33988_ACEOF
33989
33990fi
33991
33992if test "$wxUSE_FILESYSTEM" = "yes"; then
33993 cat >>confdefs.h <<\_ACEOF
33994#define wxUSE_FILESYSTEM 1
33995_ACEOF
33996
33997fi
33998
33999if test "$wxUSE_FS_ZIP" = "yes"; then
34000 cat >>confdefs.h <<\_ACEOF
34001#define wxUSE_FS_ZIP 1
34002_ACEOF
34003
34004fi
34005
34006if test "$wxUSE_ZIPSTREAM" = "yes"; then
34007 cat >>confdefs.h <<\_ACEOF
34008#define wxUSE_ZIPSTREAM 1
34009_ACEOF
34010
34011fi
34012
34013if test "$wxUSE_GZSTREAM" = "yes"; then
34014 cat >>confdefs.h <<\_ACEOF
34015#define wxUSE_GZSTREAM 1
34016_ACEOF
34017
34018fi
34019
34020if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
34021 cat >>confdefs.h <<\_ACEOF
34022#define wxUSE_ON_FATAL_EXCEPTION 1
34023_ACEOF
34024
34025fi
34026
34027if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
34028 cat >>confdefs.h <<\_ACEOF
34029#define wxUSE_SNGLINST_CHECKER 1
34030_ACEOF
34031
34032fi
34033
34034if test "$wxUSE_BUSYINFO" = "yes"; then
34035 cat >>confdefs.h <<\_ACEOF
34036#define wxUSE_BUSYINFO 1
34037_ACEOF
34038
34039fi
34040
34041if test "$wxUSE_STD_IOSTREAM" = "yes"; then
34042 cat >>confdefs.h <<\_ACEOF
34043#define wxUSE_STD_IOSTREAM 1
34044_ACEOF
34045
34046fi
34047
34048if test "$wxUSE_TEXTBUFFER" = "yes"; then
34049 cat >>confdefs.h <<\_ACEOF
34050#define wxUSE_TEXTBUFFER 1
34051_ACEOF
34052
34053fi
34054
34055if test "$wxUSE_TEXTFILE" = "yes"; then
34056 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
34057 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
34058echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
34059 else
34060 cat >>confdefs.h <<\_ACEOF
34061#define wxUSE_TEXTFILE 1
34062_ACEOF
34063
34064 fi
34065fi
34066
34067if test "$wxUSE_CONFIG" = "yes" ; then
34068 if test "$wxUSE_TEXTFILE" != "yes"; then
34069 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
34070echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
34071 else
34072 cat >>confdefs.h <<\_ACEOF
34073#define wxUSE_CONFIG 1
34074_ACEOF
34075
34076 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
34077 fi
34078fi
34079
34080if test "$wxUSE_INTL" = "yes" ; then
34081 if test "$wxUSE_FILE" != "yes"; then
34082 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
34083echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
34084 else
34085 cat >>confdefs.h <<\_ACEOF
34086#define wxUSE_INTL 1
34087_ACEOF
34088
34089 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
34090 GUIDIST="$GUIDIST INTL_DIST"
34091 fi
34092fi
34093
34094if test "$wxUSE_LOG" = "yes"; then
34095 cat >>confdefs.h <<\_ACEOF
34096#define wxUSE_LOG 1
34097_ACEOF
34098
34099
34100 if test "$wxUSE_LOGGUI" = "yes"; then
34101 cat >>confdefs.h <<\_ACEOF
34102#define wxUSE_LOGGUI 1
34103_ACEOF
34104
34105 fi
34106
34107 if test "$wxUSE_LOGWINDOW" = "yes"; then
34108 cat >>confdefs.h <<\_ACEOF
34109#define wxUSE_LOGWINDOW 1
34110_ACEOF
34111
34112 fi
34113
34114 if test "$wxUSE_LOGDIALOG" = "yes"; then
34115 cat >>confdefs.h <<\_ACEOF
34116#define wxUSE_LOG_DIALOG 1
34117_ACEOF
34118
3a922bb4 34119 fi
0feee163 34120fi
51a9faba 34121
f93ca9fd
VS
34122if test "$wxUSE_LONGLONG" = "yes"; then
34123 cat >>confdefs.h <<\_ACEOF
34124#define wxUSE_LONGLONG 1
34125_ACEOF
e6cc62c6 34126
f93ca9fd
VS
34127fi
34128
34129if test "$wxUSE_GEOMETRY" = "yes"; then
34130 cat >>confdefs.h <<\_ACEOF
34131#define wxUSE_GEOMETRY 1
e6cc62c6 34132_ACEOF
51a9faba 34133
f93ca9fd 34134fi
e6cc62c6 34135
f93ca9fd
VS
34136if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
34137 cat >>confdefs.h <<\_ACEOF
34138#define wxUSE_DIALUP_MANAGER 1
34139_ACEOF
51a9faba 34140
f93ca9fd
VS
34141 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
34142fi
e6cc62c6 34143
f93ca9fd
VS
34144if test "$wxUSE_STREAMS" = "yes" ; then
34145 cat >>confdefs.h <<\_ACEOF
34146#define wxUSE_STREAMS 1
e6cc62c6 34147_ACEOF
e6cc62c6 34148
f93ca9fd 34149fi
e6cc62c6 34150
9711d31e 34151
f93ca9fd
VS
34152if test "$wxUSE_DATETIME" = "yes"; then
34153
34154for ac_func in strptime
34155do
34156as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34157echo "$as_me:$LINENO: checking for $ac_func" >&5
34158echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34159if eval "test \"\${$as_ac_var+set}\" = set"; then
34160 echo $ECHO_N "(cached) $ECHO_C" >&6
34161else
34162 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34163/* confdefs.h. */
34164_ACEOF
34165cat confdefs.h >>conftest.$ac_ext
34166cat >>conftest.$ac_ext <<_ACEOF
34167/* end confdefs.h. */
f93ca9fd
VS
34168/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34170#define $ac_func innocuous_$ac_func
51a9faba 34171
f93ca9fd
VS
34172/* System header to define __stub macros and hopefully few prototypes,
34173 which can conflict with char $ac_func (); below.
34174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34175 <limits.h> exists even on freestanding compilers. */
34176
34177#ifdef __STDC__
34178# include <limits.h>
34179#else
34180# include <assert.h>
34181#endif
34182
34183#undef $ac_func
34184
34185/* Override any gcc2 internal prototype to avoid an error. */
34186#ifdef __cplusplus
34187extern "C"
34188{
34189#endif
34190/* We use char because int might match the return type of a gcc2
34191 builtin and then its argument prototype would still apply. */
34192char $ac_func ();
34193/* The GNU C library defines this for functions which it implements
34194 to always fail with ENOSYS. Some functions are actually named
34195 something starting with __ and the normal name is an alias. */
34196#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34197choke me
34198#else
34199char (*f) () = $ac_func;
34200#endif
34201#ifdef __cplusplus
34202}
34203#endif
e6cc62c6
VS
34204
34205int
34206main ()
34207{
f93ca9fd 34208return f != $ac_func;
e6cc62c6
VS
34209 ;
34210 return 0;
34211}
34212_ACEOF
f93ca9fd
VS
34213rm -f conftest.$ac_objext conftest$ac_exeext
34214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34215 (eval $ac_link) 2>conftest.er1
e6cc62c6 34216 ac_status=$?
f95e4495
VS
34217 grep -v '^ *+' conftest.er1 >conftest.err
34218 rm -f conftest.er1
34219 cat conftest.err >&5
e6cc62c6
VS
34220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34221 (exit $ac_status); } &&
f95e4495
VS
34222 { ac_try='test -z "$ac_c_werror_flag"
34223 || test ! -s conftest.err'
34224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34225 (eval $ac_try) 2>&5
34226 ac_status=$?
34227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34228 (exit $ac_status); }; } &&
f93ca9fd 34229 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34231 (eval $ac_try) 2>&5
34232 ac_status=$?
34233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34234 (exit $ac_status); }; }; then
f93ca9fd 34235 eval "$as_ac_var=yes"
afc31813 34236else
e6cc62c6
VS
34237 echo "$as_me: failed program was:" >&5
34238sed 's/^/| /' conftest.$ac_ext >&5
34239
f93ca9fd
VS
34240eval "$as_ac_var=no"
34241fi
34242rm -f conftest.err conftest.$ac_objext \
34243 conftest$ac_exeext conftest.$ac_ext
34244fi
34245echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34246echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34247if test `eval echo '${'$as_ac_var'}'` = yes; then
34248 cat >>confdefs.h <<_ACEOF
34249#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34250_ACEOF
34251
34252fi
34253done
34254
34255
34256 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
34257echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
34258if test "${wx_cv_var_timezone+set}" = set; then
34259 echo $ECHO_N "(cached) $ECHO_C" >&6
34260else
34261
34262 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34263/* confdefs.h. */
34264_ACEOF
34265cat confdefs.h >>conftest.$ac_ext
34266cat >>conftest.$ac_ext <<_ACEOF
34267/* end confdefs.h. */
51a9faba 34268
f93ca9fd 34269 #include <time.h>
e6cc62c6
VS
34270
34271int
34272main ()
34273{
51a9faba 34274
f93ca9fd
VS
34275 int tz;
34276 tz = timezone;
e6cc62c6
VS
34277
34278 ;
34279 return 0;
34280}
34281_ACEOF
34282rm -f conftest.$ac_objext
34283if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 34284 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34285 ac_status=$?
f95e4495
VS
34286 grep -v '^ *+' conftest.er1 >conftest.err
34287 rm -f conftest.er1
34288 cat conftest.err >&5
e6cc62c6
VS
34289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34290 (exit $ac_status); } &&
f95e4495
VS
34291 { ac_try='test -z "$ac_c_werror_flag"
34292 || test ! -s conftest.err'
34293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34294 (eval $ac_try) 2>&5
34295 ac_status=$?
f93ca9fd
VS
34296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34297 (exit $ac_status); }; } &&
34298 { ac_try='test -s conftest.$ac_objext'
34299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34300 (eval $ac_try) 2>&5
34301 ac_status=$?
34302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34303 (exit $ac_status); }; }; then
8284b0c5 34304
f93ca9fd 34305 wx_cv_var_timezone=timezone
dc3d889d 34306
f93ca9fd
VS
34307else
34308 echo "$as_me: failed program was:" >&5
34309sed 's/^/| /' conftest.$ac_ext >&5
156b2523 34310
e6cc62c6 34311
f93ca9fd 34312 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34313/* confdefs.h. */
34314_ACEOF
34315cat confdefs.h >>conftest.$ac_ext
34316cat >>conftest.$ac_ext <<_ACEOF
34317/* end confdefs.h. */
f93ca9fd
VS
34318
34319 #include <time.h>
34320
34321int
34322main ()
34323{
34324
34325 int tz;
34326 tz = _timezone;
34327
34328 ;
34329 return 0;
34330}
e6cc62c6
VS
34331_ACEOF
34332rm -f conftest.$ac_objext
34333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 34334 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34335 ac_status=$?
f95e4495
VS
34336 grep -v '^ *+' conftest.er1 >conftest.err
34337 rm -f conftest.er1
34338 cat conftest.err >&5
e6cc62c6
VS
34339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34340 (exit $ac_status); } &&
f95e4495
VS
34341 { ac_try='test -z "$ac_c_werror_flag"
34342 || test ! -s conftest.err'
34343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34344 (eval $ac_try) 2>&5
34345 ac_status=$?
34346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34347 (exit $ac_status); }; } &&
34348 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
34349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34350 (eval $ac_try) 2>&5
34351 ac_status=$?
34352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34353 (exit $ac_status); }; }; then
f93ca9fd
VS
34354
34355 wx_cv_var_timezone=_timezone
34356
e6cc62c6
VS
34357else
34358 echo "$as_me: failed program was:" >&5
34359sed 's/^/| /' conftest.$ac_ext >&5
34360
e6cc62c6 34361
f93ca9fd 34362 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34363/* confdefs.h. */
34364_ACEOF
34365cat confdefs.h >>conftest.$ac_ext
34366cat >>conftest.$ac_ext <<_ACEOF
34367/* end confdefs.h. */
f93ca9fd
VS
34368
34369 #include <time.h>
34370
34371int
34372main ()
34373{
34374
34375 int tz;
34376 tz = __timezone;
34377
34378 ;
34379 return 0;
34380}
e6cc62c6 34381_ACEOF
f93ca9fd
VS
34382rm -f conftest.$ac_objext
34383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34384 (eval $ac_compile) 2>conftest.er1
e6cc62c6
VS
34385 ac_status=$?
34386 grep -v '^ *+' conftest.er1 >conftest.err
34387 rm -f conftest.er1
34388 cat conftest.err >&5
34389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f93ca9fd
VS
34390 (exit $ac_status); } &&
34391 { ac_try='test -z "$ac_c_werror_flag"
34392 || test ! -s conftest.err'
34393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34394 (eval $ac_try) 2>&5
34395 ac_status=$?
34396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34397 (exit $ac_status); }; } &&
34398 { ac_try='test -s conftest.$ac_objext'
34399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34400 (eval $ac_try) 2>&5
34401 ac_status=$?
34402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34403 (exit $ac_status); }; }; then
34404
34405 wx_cv_var_timezone=__timezone
34406
e6cc62c6
VS
34407else
34408 echo "$as_me: failed program was:" >&5
34409sed 's/^/| /' conftest.$ac_ext >&5
34410
e6cc62c6 34411
f93ca9fd
VS
34412 if test "$USE_DOS" = 0 ; then
34413 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
34414echo "$as_me: WARNING: no timezone variable" >&2;}
34415 fi
34416
e6cc62c6 34417
10f2d63a 34418fi
f93ca9fd
VS
34419rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34420
e6cc62c6 34421
247f5006 34422fi
f93ca9fd 34423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 34424
10f2d63a 34425
f93ca9fd
VS
34426fi
34427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
b089607b 34428
10f2d63a 34429
dc3d889d 34430fi
f93ca9fd
VS
34431echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
34432echo "${ECHO_T}$wx_cv_var_timezone" >&6
dc3d889d 34433
f93ca9fd
VS
34434 if test "x$wx_cv_var_timezone" != x ; then
34435 cat >>confdefs.h <<_ACEOF
34436#define WX_TIMEZONE $wx_cv_var_timezone
34437_ACEOF
8284b0c5 34438
f93ca9fd 34439 fi
b089607b 34440
e6cc62c6 34441
f93ca9fd 34442for ac_func in localtime
10f2d63a 34443do
e6cc62c6
VS
34444as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34445echo "$as_me:$LINENO: checking for $ac_func" >&5
34446echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34447if eval "test \"\${$as_ac_var+set}\" = set"; then
34448 echo $ECHO_N "(cached) $ECHO_C" >&6
34449else
34450 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34451/* confdefs.h. */
34452_ACEOF
34453cat confdefs.h >>conftest.$ac_ext
34454cat >>conftest.$ac_ext <<_ACEOF
34455/* end confdefs.h. */
f95e4495
VS
34456/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34458#define $ac_func innocuous_$ac_func
34459
10f2d63a 34460/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34461 which can conflict with char $ac_func (); below.
34462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34463 <limits.h> exists even on freestanding compilers. */
f95e4495 34464
e6cc62c6
VS
34465#ifdef __STDC__
34466# include <limits.h>
34467#else
34468# include <assert.h>
34469#endif
f95e4495
VS
34470
34471#undef $ac_func
34472
10f2d63a 34473/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34474#ifdef __cplusplus
34475extern "C"
34476{
34477#endif
10f2d63a 34478/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34479 builtin and then its argument prototype would still apply. */
34480char $ac_func ();
10f2d63a
VZ
34481/* The GNU C library defines this for functions which it implements
34482 to always fail with ENOSYS. Some functions are actually named
34483 something starting with __ and the normal name is an alias. */
34484#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34485choke me
34486#else
e6cc62c6
VS
34487char (*f) () = $ac_func;
34488#endif
34489#ifdef __cplusplus
34490}
10f2d63a
VZ
34491#endif
34492
e6cc62c6
VS
34493int
34494main ()
34495{
34496return f != $ac_func;
34497 ;
34498 return 0;
34499}
34500_ACEOF
34501rm -f conftest.$ac_objext conftest$ac_exeext
34502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 34503 (eval $ac_link) 2>conftest.er1
e6cc62c6 34504 ac_status=$?
f95e4495
VS
34505 grep -v '^ *+' conftest.er1 >conftest.err
34506 rm -f conftest.er1
34507 cat conftest.err >&5
e6cc62c6
VS
34508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34509 (exit $ac_status); } &&
f95e4495
VS
34510 { ac_try='test -z "$ac_c_werror_flag"
34511 || test ! -s conftest.err'
34512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34513 (eval $ac_try) 2>&5
34514 ac_status=$?
34515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34516 (exit $ac_status); }; } &&
34517 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34519 (eval $ac_try) 2>&5
34520 ac_status=$?
34521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34522 (exit $ac_status); }; }; then
34523 eval "$as_ac_var=yes"
34524else
34525 echo "$as_me: failed program was:" >&5
34526sed 's/^/| /' conftest.$ac_ext >&5
34527
34528eval "$as_ac_var=no"
34529fi
f95e4495
VS
34530rm -f conftest.err conftest.$ac_objext \
34531 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34532fi
34533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34534echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34535if test `eval echo '${'$as_ac_var'}'` = yes; then
34536 cat >>confdefs.h <<_ACEOF
34537#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34538_ACEOF
34539
f93ca9fd
VS
34540fi
34541done
e6cc62c6 34542
e6cc62c6 34543
f93ca9fd
VS
34544 if test "$ac_cv_func_localtime" = "yes"; then
34545 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
34546echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
34547if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
e6cc62c6 34548 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 34549else
f93ca9fd
VS
34550
34551 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34552/* confdefs.h. */
34553_ACEOF
34554cat confdefs.h >>conftest.$ac_ext
34555cat >>conftest.$ac_ext <<_ACEOF
34556/* end confdefs.h. */
34557
f93ca9fd
VS
34558 #include <time.h>
34559
e6cc62c6
VS
34560int
34561main ()
34562{
f93ca9fd
VS
34563
34564 struct tm tm;
34565 tm.tm_gmtoff++;
34566
e6cc62c6
VS
34567 ;
34568 return 0;
34569}
34570_ACEOF
f93ca9fd
VS
34571rm -f conftest.$ac_objext
34572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34573 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34574 ac_status=$?
f95e4495
VS
34575 grep -v '^ *+' conftest.er1 >conftest.err
34576 rm -f conftest.er1
34577 cat conftest.err >&5
e6cc62c6
VS
34578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34579 (exit $ac_status); } &&
f95e4495
VS
34580 { ac_try='test -z "$ac_c_werror_flag"
34581 || test ! -s conftest.err'
34582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34583 (eval $ac_try) 2>&5
34584 ac_status=$?
34585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34586 (exit $ac_status); }; } &&
f93ca9fd 34587 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
34588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34589 (eval $ac_try) 2>&5
34590 ac_status=$?
34591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34592 (exit $ac_status); }; }; then
f93ca9fd
VS
34593
34594 wx_cv_struct_tm_has_gmtoff=yes
34595
e6cc62c6
VS
34596else
34597 echo "$as_me: failed program was:" >&5
34598sed 's/^/| /' conftest.$ac_ext >&5
34599
f93ca9fd
VS
34600wx_cv_struct_tm_has_gmtoff=no
34601
e6cc62c6 34602fi
f93ca9fd
VS
34603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34604
e6cc62c6 34605fi
f93ca9fd
VS
34606echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
34607echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
34608 fi
e6cc62c6 34609
f93ca9fd
VS
34610 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
34611 cat >>confdefs.h <<\_ACEOF
34612#define WX_GMTOFF_IN_TM 1
e6cc62c6 34613_ACEOF
10f2d63a 34614
f93ca9fd 34615 fi
e6cc62c6 34616
10f2d63a 34617
e6cc62c6 34618
f93ca9fd 34619for ac_func in gettimeofday ftime
10f2d63a 34620do
e6cc62c6
VS
34621as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34622echo "$as_me:$LINENO: checking for $ac_func" >&5
34623echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34624if eval "test \"\${$as_ac_var+set}\" = set"; then
34625 echo $ECHO_N "(cached) $ECHO_C" >&6
34626else
34627 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34628/* confdefs.h. */
34629_ACEOF
34630cat confdefs.h >>conftest.$ac_ext
34631cat >>conftest.$ac_ext <<_ACEOF
34632/* end confdefs.h. */
f95e4495
VS
34633/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34634 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34635#define $ac_func innocuous_$ac_func
34636
10f2d63a 34637/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34638 which can conflict with char $ac_func (); below.
34639 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34640 <limits.h> exists even on freestanding compilers. */
f95e4495 34641
e6cc62c6
VS
34642#ifdef __STDC__
34643# include <limits.h>
34644#else
34645# include <assert.h>
34646#endif
f95e4495
VS
34647
34648#undef $ac_func
34649
10f2d63a 34650/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34651#ifdef __cplusplus
34652extern "C"
34653{
34654#endif
10f2d63a 34655/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34656 builtin and then its argument prototype would still apply. */
34657char $ac_func ();
10f2d63a
VZ
34658/* The GNU C library defines this for functions which it implements
34659 to always fail with ENOSYS. Some functions are actually named
34660 something starting with __ and the normal name is an alias. */
34661#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34662choke me
34663#else
e6cc62c6
VS
34664char (*f) () = $ac_func;
34665#endif
34666#ifdef __cplusplus
34667}
10f2d63a
VZ
34668#endif
34669
e6cc62c6
VS
34670int
34671main ()
34672{
34673return f != $ac_func;
34674 ;
34675 return 0;
34676}
34677_ACEOF
34678rm -f conftest.$ac_objext conftest$ac_exeext
34679if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 34680 (eval $ac_link) 2>conftest.er1
e6cc62c6 34681 ac_status=$?
f95e4495
VS
34682 grep -v '^ *+' conftest.er1 >conftest.err
34683 rm -f conftest.er1
34684 cat conftest.err >&5
e6cc62c6
VS
34685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34686 (exit $ac_status); } &&
f95e4495
VS
34687 { ac_try='test -z "$ac_c_werror_flag"
34688 || test ! -s conftest.err'
34689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34690 (eval $ac_try) 2>&5
34691 ac_status=$?
34692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34693 (exit $ac_status); }; } &&
34694 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34696 (eval $ac_try) 2>&5
34697 ac_status=$?
34698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34699 (exit $ac_status); }; }; then
34700 eval "$as_ac_var=yes"
34701else
34702 echo "$as_me: failed program was:" >&5
34703sed 's/^/| /' conftest.$ac_ext >&5
34704
34705eval "$as_ac_var=no"
34706fi
f95e4495
VS
34707rm -f conftest.err conftest.$ac_objext \
34708 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34709fi
34710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34711echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34712if test `eval echo '${'$as_ac_var'}'` = yes; then
34713 cat >>confdefs.h <<_ACEOF
34714#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34715_ACEOF
f93ca9fd
VS
34716 break
34717fi
34718done
e6cc62c6 34719
f93ca9fd
VS
34720
34721 if test "$ac_cv_func_gettimeofday" = "yes"; then
34722 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
34723echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
34724if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
34725 echo $ECHO_N "(cached) $ECHO_C" >&6
34726else
34727
34728
34729
34730 ac_ext=cc
34731ac_cpp='$CXXCPP $CPPFLAGS'
34732ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34733ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34734ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34735
34736
34737 cat >conftest.$ac_ext <<_ACEOF
34738/* confdefs.h. */
e6cc62c6 34739_ACEOF
f93ca9fd
VS
34740cat confdefs.h >>conftest.$ac_ext
34741cat >>conftest.$ac_ext <<_ACEOF
34742/* end confdefs.h. */
10f2d63a 34743
f93ca9fd
VS
34744 #include <sys/time.h>
34745 #include <unistd.h>
e6cc62c6 34746
f93ca9fd
VS
34747int
34748main ()
34749{
e6cc62c6 34750
f93ca9fd
VS
34751 struct timeval tv;
34752 gettimeofday(&tv, NULL);
34753
34754 ;
34755 return 0;
34756}
34757_ACEOF
34758rm -f conftest.$ac_objext
34759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34760 (eval $ac_compile) 2>conftest.er1
34761 ac_status=$?
34762 grep -v '^ *+' conftest.er1 >conftest.err
34763 rm -f conftest.er1
34764 cat conftest.err >&5
34765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34766 (exit $ac_status); } &&
34767 { ac_try='test -z "$ac_cxx_werror_flag"
34768 || test ! -s conftest.err'
34769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34770 (eval $ac_try) 2>&5
34771 ac_status=$?
34772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34773 (exit $ac_status); }; } &&
34774 { ac_try='test -s conftest.$ac_objext'
34775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34776 (eval $ac_try) 2>&5
34777 ac_status=$?
34778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779 (exit $ac_status); }; }; then
34780 wx_cv_func_gettimeofday_has_2_args=yes
f6bcfd97 34781else
f93ca9fd
VS
34782 echo "$as_me: failed program was:" >&5
34783sed 's/^/| /' conftest.$ac_ext >&5
34784
e6cc62c6 34785cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34786/* confdefs.h. */
34787_ACEOF
34788cat confdefs.h >>conftest.$ac_ext
34789cat >>conftest.$ac_ext <<_ACEOF
34790/* end confdefs.h. */
34791
f93ca9fd
VS
34792 #include <sys/time.h>
34793 #include <unistd.h>
34794
e6cc62c6
VS
34795int
34796main ()
34797{
f93ca9fd
VS
34798
34799 struct timeval tv;
34800 gettimeofday(&tv);
34801
e6cc62c6
VS
34802 ;
34803 return 0;
34804}
34805_ACEOF
f93ca9fd
VS
34806rm -f conftest.$ac_objext
34807if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34808 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34809 ac_status=$?
f95e4495
VS
34810 grep -v '^ *+' conftest.er1 >conftest.err
34811 rm -f conftest.er1
34812 cat conftest.err >&5
e6cc62c6
VS
34813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34814 (exit $ac_status); } &&
f93ca9fd 34815 { ac_try='test -z "$ac_cxx_werror_flag"
f95e4495
VS
34816 || test ! -s conftest.err'
34817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34818 (eval $ac_try) 2>&5
34819 ac_status=$?
34820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34821 (exit $ac_status); }; } &&
f93ca9fd 34822 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
34823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34824 (eval $ac_try) 2>&5
34825 ac_status=$?
34826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34827 (exit $ac_status); }; }; then
f93ca9fd 34828 wx_cv_func_gettimeofday_has_2_args=no
e6cc62c6
VS
34829else
34830 echo "$as_me: failed program was:" >&5
34831sed 's/^/| /' conftest.$ac_ext >&5
34832
f6bcfd97 34833
f93ca9fd
VS
34834 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
34835echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
34836 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6 34837
f6bcfd97 34838
f93ca9fd
VS
34839fi
34840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 34841
10f2d63a 34842fi
f93ca9fd
VS
34843rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34844 ac_ext=c
34845ac_cpp='$CPP $CPPFLAGS'
34846ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34847ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34848ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a 34849
e6cc62c6 34850
10f2d63a 34851fi
f93ca9fd
VS
34852echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
34853echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
34854
34855 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
34856 cat >>confdefs.h <<\_ACEOF
34857#define WX_GETTIMEOFDAY_NO_TZ 1
34858_ACEOF
10f2d63a 34859
f93ca9fd
VS
34860 fi
34861 fi
e6cc62c6 34862
f93ca9fd 34863 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
10f2d63a 34864fi
10f2d63a 34865
5c6fa7d2 34866
f93ca9fd
VS
34867if test "$wxUSE_SOCKETS" = "yes"; then
34868 if test "$wxUSE_MGL" = "1"; then
34869 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
34870echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
34871 wxUSE_SOCKETS="no"
34872 fi
34873fi
e6cc62c6 34874
f93ca9fd
VS
34875if test "$wxUSE_SOCKETS" = "yes"; then
34876 if test "$TOOLKIT" != "MSW"; then
34877 echo "$as_me:$LINENO: checking for socket" >&5
34878echo $ECHO_N "checking for socket... $ECHO_C" >&6
34879if test "${ac_cv_func_socket+set}" = set; then
e6cc62c6
VS
34880 echo $ECHO_N "(cached) $ECHO_C" >&6
34881else
34882 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34883/* confdefs.h. */
34884_ACEOF
34885cat confdefs.h >>conftest.$ac_ext
34886cat >>conftest.$ac_ext <<_ACEOF
34887/* end confdefs.h. */
f93ca9fd 34888/* Define socket to an innocuous variant, in case <limits.h> declares socket.
f95e4495 34889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
f93ca9fd 34890#define socket innocuous_socket
f95e4495 34891
f6bcfd97 34892/* System header to define __stub macros and hopefully few prototypes,
f93ca9fd 34893 which can conflict with char socket (); below.
e6cc62c6
VS
34894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34895 <limits.h> exists even on freestanding compilers. */
f95e4495 34896
e6cc62c6
VS
34897#ifdef __STDC__
34898# include <limits.h>
34899#else
34900# include <assert.h>
34901#endif
f95e4495 34902
f93ca9fd 34903#undef socket
f95e4495 34904
f6bcfd97 34905/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34906#ifdef __cplusplus
34907extern "C"
34908{
34909#endif
f6bcfd97 34910/* We use char because int might match the return type of a gcc2
e6cc62c6 34911 builtin and then its argument prototype would still apply. */
f93ca9fd 34912char socket ();
f6bcfd97
BP
34913/* The GNU C library defines this for functions which it implements
34914 to always fail with ENOSYS. Some functions are actually named
34915 something starting with __ and the normal name is an alias. */
f93ca9fd 34916#if defined (__stub_socket) || defined (__stub___socket)
f6bcfd97
BP
34917choke me
34918#else
f93ca9fd 34919char (*f) () = socket;
e6cc62c6
VS
34920#endif
34921#ifdef __cplusplus
34922}
f6bcfd97
BP
34923#endif
34924
e6cc62c6
VS
34925int
34926main ()
34927{
f93ca9fd
VS
34928return f != socket;
34929 ;
34930 return 0;
34931}
34932_ACEOF
34933rm -f conftest.$ac_objext conftest$ac_exeext
34934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34935 (eval $ac_link) 2>conftest.er1
34936 ac_status=$?
34937 grep -v '^ *+' conftest.er1 >conftest.err
34938 rm -f conftest.er1
34939 cat conftest.err >&5
34940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34941 (exit $ac_status); } &&
34942 { ac_try='test -z "$ac_c_werror_flag"
34943 || test ! -s conftest.err'
34944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34945 (eval $ac_try) 2>&5
34946 ac_status=$?
34947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34948 (exit $ac_status); }; } &&
34949 { ac_try='test -s conftest$ac_exeext'
34950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34951 (eval $ac_try) 2>&5
34952 ac_status=$?
34953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34954 (exit $ac_status); }; }; then
34955 ac_cv_func_socket=yes
34956else
34957 echo "$as_me: failed program was:" >&5
34958sed 's/^/| /' conftest.$ac_ext >&5
34959
34960ac_cv_func_socket=no
34961fi
34962rm -f conftest.err conftest.$ac_objext \
34963 conftest$ac_exeext conftest.$ac_ext
34964fi
34965echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
34966echo "${ECHO_T}$ac_cv_func_socket" >&6
34967if test $ac_cv_func_socket = yes; then
34968 :
34969else
34970
34971 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
34972echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
34973if test "${ac_cv_lib_socket_socket+set}" = set; then
34974 echo $ECHO_N "(cached) $ECHO_C" >&6
34975else
34976 ac_check_lib_save_LIBS=$LIBS
34977LIBS="-lsocket $LIBS"
34978cat >conftest.$ac_ext <<_ACEOF
34979/* confdefs.h. */
34980_ACEOF
34981cat confdefs.h >>conftest.$ac_ext
34982cat >>conftest.$ac_ext <<_ACEOF
34983/* end confdefs.h. */
34984
34985/* Override any gcc2 internal prototype to avoid an error. */
34986#ifdef __cplusplus
34987extern "C"
34988#endif
34989/* We use char because int might match the return type of a gcc2
34990 builtin and then its argument prototype would still apply. */
34991char socket ();
34992int
34993main ()
34994{
34995socket ();
e6cc62c6
VS
34996 ;
34997 return 0;
34998}
34999_ACEOF
35000rm -f conftest.$ac_objext conftest$ac_exeext
35001if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 35002 (eval $ac_link) 2>conftest.er1
e6cc62c6 35003 ac_status=$?
f95e4495
VS
35004 grep -v '^ *+' conftest.er1 >conftest.err
35005 rm -f conftest.er1
35006 cat conftest.err >&5
e6cc62c6
VS
35007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35008 (exit $ac_status); } &&
f95e4495
VS
35009 { ac_try='test -z "$ac_c_werror_flag"
35010 || test ! -s conftest.err'
35011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35012 (eval $ac_try) 2>&5
35013 ac_status=$?
35014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35015 (exit $ac_status); }; } &&
35016 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
35017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35018 (eval $ac_try) 2>&5
35019 ac_status=$?
35020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35021 (exit $ac_status); }; }; then
f93ca9fd 35022 ac_cv_lib_socket_socket=yes
e6cc62c6
VS
35023else
35024 echo "$as_me: failed program was:" >&5
35025sed 's/^/| /' conftest.$ac_ext >&5
35026
f93ca9fd 35027ac_cv_lib_socket_socket=no
e6cc62c6 35028fi
f95e4495
VS
35029rm -f conftest.err conftest.$ac_objext \
35030 conftest$ac_exeext conftest.$ac_ext
f93ca9fd 35031LIBS=$ac_check_lib_save_LIBS
e6cc62c6 35032fi
f93ca9fd
VS
35033echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
35034echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
35035if test $ac_cv_lib_socket_socket = yes; then
35036 if test "$INET_LINK" != " -lsocket"; then
35037 INET_LINK="$INET_LINK -lsocket"
35038 fi
35039else
35040
35041 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
35042echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
35043 wxUSE_SOCKETS=no
35044
35045
35046fi
35047
35048
35049
35050fi
35051
35052 fi
35053fi
35054
35055if test "$wxUSE_SOCKETS" = "yes" ; then
35056 if test "$TOOLKIT" != "MSW"; then
35057 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
35058echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
35059if test "${wx_cv_type_getsockname3+set}" = set; then
35060 echo $ECHO_N "(cached) $ECHO_C" >&6
35061else
35062
35063 cat >conftest.$ac_ext <<_ACEOF
35064/* confdefs.h. */
e6cc62c6 35065_ACEOF
f93ca9fd
VS
35066cat confdefs.h >>conftest.$ac_ext
35067cat >>conftest.$ac_ext <<_ACEOF
35068/* end confdefs.h. */
35069
35070 #include <sys/types.h>
35071 #include <sys/socket.h>
f6bcfd97 35072
f93ca9fd
VS
35073int
35074main ()
35075{
35076
35077 socklen_t len;
35078 getsockname(0, 0, &len);
35079
35080 ;
35081 return 0;
35082}
35083_ACEOF
35084rm -f conftest.$ac_objext
35085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35086 (eval $ac_compile) 2>conftest.er1
35087 ac_status=$?
35088 grep -v '^ *+' conftest.er1 >conftest.err
35089 rm -f conftest.er1
35090 cat conftest.err >&5
35091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35092 (exit $ac_status); } &&
35093 { ac_try='test -z "$ac_c_werror_flag"
35094 || test ! -s conftest.err'
35095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35096 (eval $ac_try) 2>&5
35097 ac_status=$?
35098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35099 (exit $ac_status); }; } &&
35100 { ac_try='test -s conftest.$ac_objext'
35101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35102 (eval $ac_try) 2>&5
35103 ac_status=$?
35104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35105 (exit $ac_status); }; }; then
35106 wx_cv_type_getsockname3=socklen_t
f6bcfd97 35107else
f93ca9fd
VS
35108 echo "$as_me: failed program was:" >&5
35109sed 's/^/| /' conftest.$ac_ext >&5
0e012a93 35110
f93ca9fd
VS
35111
35112 CFLAGS_OLD="$CFLAGS"
35113 if test "$GCC" = yes ; then
35114 CFLAGS="$CFLAGS -Werror"
35115 fi
35116
35117 cat >conftest.$ac_ext <<_ACEOF
35118/* confdefs.h. */
35119_ACEOF
35120cat confdefs.h >>conftest.$ac_ext
35121cat >>conftest.$ac_ext <<_ACEOF
35122/* end confdefs.h. */
35123
35124 #include <sys/types.h>
35125 #include <sys/socket.h>
35126
35127int
35128main ()
35129{
35130
35131 size_t len;
35132 getsockname(0, 0, &len);
35133
35134 ;
35135 return 0;
35136}
35137_ACEOF
35138rm -f conftest.$ac_objext
35139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35140 (eval $ac_compile) 2>conftest.er1
35141 ac_status=$?
35142 grep -v '^ *+' conftest.er1 >conftest.err
35143 rm -f conftest.er1
35144 cat conftest.err >&5
35145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35146 (exit $ac_status); } &&
35147 { ac_try='test -z "$ac_c_werror_flag"
35148 || test ! -s conftest.err'
35149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35150 (eval $ac_try) 2>&5
35151 ac_status=$?
35152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35153 (exit $ac_status); }; } &&
35154 { ac_try='test -s conftest.$ac_objext'
35155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35156 (eval $ac_try) 2>&5
35157 ac_status=$?
35158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35159 (exit $ac_status); }; }; then
35160 wx_cv_type_getsockname3=size_t
f6bcfd97 35161else
f93ca9fd
VS
35162 echo "$as_me: failed program was:" >&5
35163sed 's/^/| /' conftest.$ac_ext >&5
35164
e6cc62c6 35165cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35166/* confdefs.h. */
35167_ACEOF
35168cat confdefs.h >>conftest.$ac_ext
35169cat >>conftest.$ac_ext <<_ACEOF
35170/* end confdefs.h. */
35171
f93ca9fd
VS
35172 #include <sys/types.h>
35173 #include <sys/socket.h>
35174
e6cc62c6
VS
35175int
35176main ()
35177{
f93ca9fd
VS
35178
35179 int len;
35180 getsockname(0, 0, &len);
35181
e6cc62c6
VS
35182 ;
35183 return 0;
35184}
35185_ACEOF
f93ca9fd
VS
35186rm -f conftest.$ac_objext
35187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35188 (eval $ac_compile) 2>conftest.er1
e6cc62c6 35189 ac_status=$?
f95e4495
VS
35190 grep -v '^ *+' conftest.er1 >conftest.err
35191 rm -f conftest.er1
35192 cat conftest.err >&5
e6cc62c6
VS
35193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35194 (exit $ac_status); } &&
f95e4495
VS
35195 { ac_try='test -z "$ac_c_werror_flag"
35196 || test ! -s conftest.err'
35197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35198 (eval $ac_try) 2>&5
35199 ac_status=$?
35200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35201 (exit $ac_status); }; } &&
f93ca9fd 35202 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
35203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35204 (eval $ac_try) 2>&5
35205 ac_status=$?
35206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35207 (exit $ac_status); }; }; then
f93ca9fd 35208 wx_cv_type_getsockname3=int
e6cc62c6
VS
35209else
35210 echo "$as_me: failed program was:" >&5
35211sed 's/^/| /' conftest.$ac_ext >&5
35212
f93ca9fd
VS
35213wx_cv_type_getsockname3=unknown
35214
e6cc62c6 35215fi
f93ca9fd 35216rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f6bcfd97 35217
f6bcfd97 35218fi
f93ca9fd 35219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f6bcfd97 35220
f93ca9fd 35221 CFLAGS="$CFLAGS_OLD"
0e012a93
VZ
35222
35223
f6bcfd97 35224fi
f93ca9fd 35225rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
f6bcfd97 35226
f93ca9fd
VS
35227fi
35228echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
35229echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
35230
35231 if test "$wx_cv_type_getsockname3" = "unknown"; then
35232 wxUSE_SOCKETS=no
35233 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
35234echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
35235 else
35236 cat >>confdefs.h <<_ACEOF
35237#define SOCKLEN_T $wx_cv_type_getsockname3
35238_ACEOF
f6bcfd97 35239
10f2d63a
VZ
35240 fi
35241 fi
35242fi
35243
f93ca9fd 35244if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 35245 cat >>confdefs.h <<\_ACEOF
f93ca9fd 35246#define wxUSE_SOCKETS 1
e6cc62c6 35247_ACEOF
0b9ab0bd 35248
f93ca9fd 35249 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
1948bb32 35250fi
f93ca9fd
VS
35251
35252if test "$wxUSE_PROTOCOL" = "yes"; then
35253 if test "$wxUSE_SOCKETS" != "yes"; then
35254 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
35255echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
35256 wxUSE_PROTOCOL=no
35257 fi
35258fi
35259
35260if test "$wxUSE_PROTOCOL" = "yes"; then
e6cc62c6 35261 cat >>confdefs.h <<\_ACEOF
f93ca9fd 35262#define wxUSE_PROTOCOL 1
e6cc62c6 35263_ACEOF
10f2d63a 35264
f93ca9fd
VS
35265
35266 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
35267 cat >>confdefs.h <<\_ACEOF
35268#define wxUSE_PROTOCOL_HTTP 1
35269_ACEOF
35270
35271 fi
35272 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
35273 cat >>confdefs.h <<\_ACEOF
35274#define wxUSE_PROTOCOL_FTP 1
35275_ACEOF
35276
35277 fi
35278 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
35279 cat >>confdefs.h <<\_ACEOF
35280#define wxUSE_PROTOCOL_FILE 1
35281_ACEOF
35282
35283 fi
35284else
35285 if test "$wxUSE_FS_INET" = "yes"; then
35286 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
35287echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
35288 wxUSE_FS_INET="no"
35289 fi
10f2d63a
VZ
35290fi
35291
f93ca9fd
VS
35292if test "$wxUSE_URL" = "yes"; then
35293 if test "$wxUSE_PROTOCOL" != "yes"; then
35294 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
35295echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
35296 wxUSE_URL=no
35297 fi
35298 if test "$wxUSE_URL" = "yes"; then
35299 cat >>confdefs.h <<\_ACEOF
35300#define wxUSE_URL 1
35301_ACEOF
35302
35303 fi
35304fi
35305
35306if test "$wxUSE_FS_INET" = "yes"; then
35307 cat >>confdefs.h <<\_ACEOF
35308#define wxUSE_FS_INET 1
35309_ACEOF
35310
35311fi
35312
35313
35314if test "$wxUSE_GUI" = "yes"; then
35315
35316 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
35317 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
35318echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
35319 wxUSE_JOYSTICK=no
35320 fi
35321
35322 if test "$TOOLKIT" != "MSW"; then
35323 if test "$wxUSE_JOYSTICK" = "yes"; then
35324
35325for ac_header in linux/joystick.h
35326do
35327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35328if eval "test \"\${$as_ac_Header+set}\" = set"; then
35329 echo "$as_me:$LINENO: checking for $ac_header" >&5
35330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35331if eval "test \"\${$as_ac_Header+set}\" = set"; then
35332 echo $ECHO_N "(cached) $ECHO_C" >&6
35333fi
35334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35335echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35336else
35337 # Is the header compilable?
35338echo "$as_me:$LINENO: checking $ac_header usability" >&5
35339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35340cat >conftest.$ac_ext <<_ACEOF
35341/* confdefs.h. */
35342_ACEOF
35343cat confdefs.h >>conftest.$ac_ext
35344cat >>conftest.$ac_ext <<_ACEOF
35345/* end confdefs.h. */
35346$ac_includes_default
35347#include <$ac_header>
35348_ACEOF
35349rm -f conftest.$ac_objext
35350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35351 (eval $ac_compile) 2>conftest.er1
35352 ac_status=$?
35353 grep -v '^ *+' conftest.er1 >conftest.err
35354 rm -f conftest.er1
35355 cat conftest.err >&5
35356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35357 (exit $ac_status); } &&
35358 { ac_try='test -z "$ac_c_werror_flag"
35359 || test ! -s conftest.err'
35360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35361 (eval $ac_try) 2>&5
35362 ac_status=$?
35363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35364 (exit $ac_status); }; } &&
35365 { ac_try='test -s conftest.$ac_objext'
35366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35367 (eval $ac_try) 2>&5
35368 ac_status=$?
35369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35370 (exit $ac_status); }; }; then
35371 ac_header_compiler=yes
35372else
35373 echo "$as_me: failed program was:" >&5
35374sed 's/^/| /' conftest.$ac_ext >&5
35375
35376ac_header_compiler=no
35377fi
35378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35379echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35380echo "${ECHO_T}$ac_header_compiler" >&6
35381
35382# Is the header present?
35383echo "$as_me:$LINENO: checking $ac_header presence" >&5
35384echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35385cat >conftest.$ac_ext <<_ACEOF
35386/* confdefs.h. */
35387_ACEOF
35388cat confdefs.h >>conftest.$ac_ext
35389cat >>conftest.$ac_ext <<_ACEOF
35390/* end confdefs.h. */
35391#include <$ac_header>
35392_ACEOF
35393if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35395 ac_status=$?
35396 grep -v '^ *+' conftest.er1 >conftest.err
35397 rm -f conftest.er1
35398 cat conftest.err >&5
35399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35400 (exit $ac_status); } >/dev/null; then
35401 if test -s conftest.err; then
35402 ac_cpp_err=$ac_c_preproc_warn_flag
35403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35404 else
35405 ac_cpp_err=
35406 fi
35407else
35408 ac_cpp_err=yes
35409fi
35410if test -z "$ac_cpp_err"; then
35411 ac_header_preproc=yes
35412else
35413 echo "$as_me: failed program was:" >&5
35414sed 's/^/| /' conftest.$ac_ext >&5
35415
35416 ac_header_preproc=no
35417fi
35418rm -f conftest.err conftest.$ac_ext
35419echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35420echo "${ECHO_T}$ac_header_preproc" >&6
35421
35422# So? What about this header?
35423case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35424 yes:no: )
35425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35426echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35428echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35429 ac_header_preproc=yes
35430 ;;
35431 no:yes:* )
35432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35433echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35435echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35437echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35439echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35441echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35443echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35444 (
35445 cat <<\_ASBOX
35446## ----------------------------------------- ##
35447## Report this to wx-dev@lists.wxwindows.org ##
35448## ----------------------------------------- ##
35449_ASBOX
35450 ) |
35451 sed "s/^/$as_me: WARNING: /" >&2
35452 ;;
35453esac
35454echo "$as_me:$LINENO: checking for $ac_header" >&5
35455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35456if eval "test \"\${$as_ac_Header+set}\" = set"; then
35457 echo $ECHO_N "(cached) $ECHO_C" >&6
35458else
35459 eval "$as_ac_Header=\$ac_header_preproc"
35460fi
35461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35463
35464fi
35465if test `eval echo '${'$as_ac_Header'}'` = yes; then
35466 cat >>confdefs.h <<_ACEOF
35467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35468_ACEOF
35469
35470fi
35471
35472done
35473
35474 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
35475 wxUSE_JOYSTICK=no
35476 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
35477echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
35478 fi
35479 fi
35480 fi
35481
35482 if test "$wxUSE_JOYSTICK" = "yes"; then
35483 cat >>confdefs.h <<\_ACEOF
35484#define wxUSE_JOYSTICK 1
35485_ACEOF
35486
35487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
35488 fi
35489fi
35490
35491
35492
8284b0c5 35493
1e6feb95 35494if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 35495 cat >>confdefs.h <<\_ACEOF
1e6feb95 35496#define wxUSE_FONTMAP 1
e6cc62c6 35497_ACEOF
1e6feb95
VZ
35498
35499fi
35500
10f2d63a 35501if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 35502 cat >>confdefs.h <<\_ACEOF
10f2d63a 35503#define wxUSE_UNICODE 1
e6cc62c6 35504_ACEOF
10f2d63a 35505
8284b0c5 35506
eb854003 35507 if test "$USE_WIN32" != 1; then
bbc3925a
VS
35508 wxUSE_UNICODE_MSLU=no
35509 fi
a72a4bfa 35510
eb854003 35511 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
35512 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
35513echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
35514if test "${ac_cv_lib_unicows_main+set}" = set; then
35515 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 35516else
e6cc62c6 35517 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 35518LIBS="-lunicows $LIBS"
e6cc62c6 35519cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35520/* confdefs.h. */
35521_ACEOF
35522cat confdefs.h >>conftest.$ac_ext
35523cat >>conftest.$ac_ext <<_ACEOF
35524/* end confdefs.h. */
a72a4bfa 35525
8284b0c5 35526
e6cc62c6
VS
35527int
35528main ()
35529{
35530main ();
35531 ;
35532 return 0;
35533}
35534_ACEOF
35535rm -f conftest.$ac_objext conftest$ac_exeext
35536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 35537 (eval $ac_link) 2>conftest.er1
e6cc62c6 35538 ac_status=$?
f95e4495
VS
35539 grep -v '^ *+' conftest.er1 >conftest.err
35540 rm -f conftest.er1
35541 cat conftest.err >&5
e6cc62c6
VS
35542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35543 (exit $ac_status); } &&
f95e4495
VS
35544 { ac_try='test -z "$ac_c_werror_flag"
35545 || test ! -s conftest.err'
35546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35547 (eval $ac_try) 2>&5
35548 ac_status=$?
35549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35550 (exit $ac_status); }; } &&
35551 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
35552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35553 (eval $ac_try) 2>&5
35554 ac_status=$?
35555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35556 (exit $ac_status); }; }; then
35557 ac_cv_lib_unicows_main=yes
35558else
35559 echo "$as_me: failed program was:" >&5
35560sed 's/^/| /' conftest.$ac_ext >&5
35561
35562ac_cv_lib_unicows_main=no
35563fi
f95e4495
VS
35564rm -f conftest.err conftest.$ac_objext \
35565 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
35566LIBS=$ac_check_lib_save_LIBS
35567fi
35568echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
35569echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
35570if test $ac_cv_lib_unicows_main = yes; then
35571
35572 cat >>confdefs.h <<\_ACEOF
a72a4bfa 35573#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
35574_ACEOF
35575
a72a4bfa 35576
a72a4bfa 35577else
a72a4bfa 35578
e6cc62c6
VS
35579 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35580 Applications will only run on Windows NT/2000/XP!" >&5
35581echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35582 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 35583 wxUSE_UNICODE_MSLU=no
e6cc62c6 35584
a72a4bfa
VS
35585fi
35586
35587 fi
10f2d63a
VZ
35588fi
35589
10f2d63a 35590if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 35591 cat >>confdefs.h <<\_ACEOF
10f2d63a 35592#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 35593_ACEOF
10f2d63a
VZ
35594
35595fi
35596
8284b0c5 35597
10f2d63a 35598if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 35599 cat >>confdefs.h <<\_ACEOF
10f2d63a 35600#define wxUSE_POSTSCRIPT 1
e6cc62c6 35601_ACEOF
10f2d63a
VZ
35602
35603fi
35604
e6cc62c6 35605cat >>confdefs.h <<\_ACEOF
10f2d63a 35606#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 35607_ACEOF
10f2d63a 35608
8284b0c5 35609
e6cc62c6 35610cat >>confdefs.h <<\_ACEOF
10f2d63a 35611#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 35612_ACEOF
10f2d63a 35613
8284b0c5
MB
35614
35615
10f2d63a 35616if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 35617 cat >>confdefs.h <<\_ACEOF
10f2d63a 35618#define wxUSE_CONSTRAINTS 1
e6cc62c6 35619_ACEOF
10f2d63a
VZ
35620
35621 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
35622fi
35623
3879ecda 35624if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 35625 cat >>confdefs.h <<\_ACEOF
10f2d63a 35626#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 35627_ACEOF
10f2d63a 35628
1772d20c 35629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
35630fi
35631
35632if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 35633 cat >>confdefs.h <<\_ACEOF
10f2d63a 35634#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 35635_ACEOF
10f2d63a
VZ
35636
35637 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
35638 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
35639 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
35640 fi
35641fi
35642
35643if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 35644 cat >>confdefs.h <<\_ACEOF
10f2d63a 35645#define wxUSE_HELP 1
e6cc62c6 35646_ACEOF
10f2d63a
VZ
35647
35648 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 35649
77e13408 35650 if test "$wxUSE_MSW" = 1; then
031d8228 35651 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 35652 cat >>confdefs.h <<\_ACEOF
29fd3c0c 35653#define wxUSE_MS_HTML_HELP 1
e6cc62c6 35654_ACEOF
29fd3c0c 35655
3e44f09d 35656 fi
3379ed37 35657 fi
031d8228
VS
35658
35659 if test "$wxUSE_WXHTML_HELP" = "yes"; then
35660 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 35661 cat >>confdefs.h <<\_ACEOF
031d8228 35662#define wxUSE_WXHTML_HELP 1
e6cc62c6 35663_ACEOF
031d8228
VS
35664
35665 else
e6cc62c6
VS
35666 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
35667echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
35668 wxUSE_WXHTML_HELP=no
35669 fi
35670 fi
10f2d63a
VZ
35671fi
35672
35673if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
35674 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
35675 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
35676echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 35677 else
e6cc62c6 35678 cat >>confdefs.h <<\_ACEOF
10f2d63a 35679#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 35680_ACEOF
10f2d63a
VZ
35681
35682 fi
35683 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
35684fi
35685
e6cc62c6
VS
35686if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
35687 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
35688echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
35689 { (exit 1); exit 1; }; }
35690fi
35691
35692
f95e4495 35693if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
e6cc62c6
VS
35694 -o "$wxUSE_CLIPBOARD" = "yes" \
35695 -o "$wxUSE_OLE" = "yes" \
35696 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
35697
35698for ac_header in ole2.h
35699do
35700as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35701if eval "test \"\${$as_ac_Header+set}\" = set"; then
35702 echo "$as_me:$LINENO: checking for $ac_header" >&5
35703echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35704if eval "test \"\${$as_ac_Header+set}\" = set"; then
35705 echo $ECHO_N "(cached) $ECHO_C" >&6
35706fi
35707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35708echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35709else
35710 # Is the header compilable?
35711echo "$as_me:$LINENO: checking $ac_header usability" >&5
35712echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35713cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35714/* confdefs.h. */
35715_ACEOF
35716cat confdefs.h >>conftest.$ac_ext
35717cat >>conftest.$ac_ext <<_ACEOF
35718/* end confdefs.h. */
35719$ac_includes_default
35720#include <$ac_header>
35721_ACEOF
35722rm -f conftest.$ac_objext
35723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 35724 (eval $ac_compile) 2>conftest.er1
e6cc62c6 35725 ac_status=$?
f95e4495
VS
35726 grep -v '^ *+' conftest.er1 >conftest.err
35727 rm -f conftest.er1
35728 cat conftest.err >&5
e6cc62c6
VS
35729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35730 (exit $ac_status); } &&
f95e4495
VS
35731 { ac_try='test -z "$ac_c_werror_flag"
35732 || test ! -s conftest.err'
35733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35734 (eval $ac_try) 2>&5
35735 ac_status=$?
35736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35737 (exit $ac_status); }; } &&
35738 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
35739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35740 (eval $ac_try) 2>&5
35741 ac_status=$?
35742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35743 (exit $ac_status); }; }; then
35744 ac_header_compiler=yes
35745else
35746 echo "$as_me: failed program was:" >&5
35747sed 's/^/| /' conftest.$ac_ext >&5
35748
35749ac_header_compiler=no
35750fi
f95e4495 35751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
35752echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35753echo "${ECHO_T}$ac_header_compiler" >&6
35754
35755# Is the header present?
35756echo "$as_me:$LINENO: checking $ac_header presence" >&5
35757echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35758cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35759/* confdefs.h. */
35760_ACEOF
35761cat confdefs.h >>conftest.$ac_ext
35762cat >>conftest.$ac_ext <<_ACEOF
35763/* end confdefs.h. */
35764#include <$ac_header>
35765_ACEOF
35766if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35767 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35768 ac_status=$?
35769 grep -v '^ *+' conftest.er1 >conftest.err
35770 rm -f conftest.er1
35771 cat conftest.err >&5
35772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35773 (exit $ac_status); } >/dev/null; then
35774 if test -s conftest.err; then
35775 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 35776 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
35777 else
35778 ac_cpp_err=
35779 fi
35780else
35781 ac_cpp_err=yes
35782fi
35783if test -z "$ac_cpp_err"; then
35784 ac_header_preproc=yes
35785else
35786 echo "$as_me: failed program was:" >&5
35787sed 's/^/| /' conftest.$ac_ext >&5
35788
35789 ac_header_preproc=no
35790fi
35791rm -f conftest.err conftest.$ac_ext
35792echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35793echo "${ECHO_T}$ac_header_preproc" >&6
35794
35795# So? What about this header?
f95e4495
VS
35796case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35797 yes:no: )
e6cc62c6
VS
35798 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35799echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
35800 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35801echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35802 ac_header_preproc=yes
e6cc62c6 35803 ;;
f95e4495 35804 no:yes:* )
e6cc62c6
VS
35805 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35806echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
35807 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35808echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35809 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35810echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35811 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35812echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
35813 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35814echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
35815 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35816echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
35817 (
35818 cat <<\_ASBOX
f95e4495
VS
35819## ----------------------------------------- ##
35820## Report this to wx-dev@lists.wxwindows.org ##
35821## ----------------------------------------- ##
e6cc62c6
VS
35822_ASBOX
35823 ) |
35824 sed "s/^/$as_me: WARNING: /" >&2
35825 ;;
35826esac
35827echo "$as_me:$LINENO: checking for $ac_header" >&5
35828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35829if eval "test \"\${$as_ac_Header+set}\" = set"; then
35830 echo $ECHO_N "(cached) $ECHO_C" >&6
35831else
f95e4495 35832 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
35833fi
35834echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35835echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35836
10f2d63a 35837fi
e6cc62c6
VS
35838if test `eval echo '${'$as_ac_Header'}'` = yes; then
35839 cat >>confdefs.h <<_ACEOF
35840#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35841_ACEOF
10f2d63a 35842
10f2d63a 35843fi
e6cc62c6 35844
10f2d63a
VZ
35845done
35846
8284b0c5 35847
2b9bdf71
VZ
35848 if test "$ac_cv_header_ole2_h" = "yes" ; then
35849 if test "$GCC" = yes ; then
8284b0c5
MB
35850
35851
e6cc62c6
VS
35852 ac_ext=cc
35853ac_cpp='$CXXCPP $CPPFLAGS'
35854ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35855ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35856ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35857
35858
35859 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
35860echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
35861 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35862/* confdefs.h. */
35863_ACEOF
35864cat confdefs.h >>conftest.$ac_ext
35865cat >>conftest.$ac_ext <<_ACEOF
35866/* end confdefs.h. */
8284b0c5
MB
35867#include <windows.h>
35868 #include <ole2.h>
e6cc62c6
VS
35869int
35870main ()
35871{
8284b0c5 35872
e6cc62c6
VS
35873 ;
35874 return 0;
35875}
35876_ACEOF
35877rm -f conftest.$ac_objext
35878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 35879 (eval $ac_compile) 2>conftest.er1
e6cc62c6 35880 ac_status=$?
f95e4495
VS
35881 grep -v '^ *+' conftest.er1 >conftest.err
35882 rm -f conftest.er1
35883 cat conftest.err >&5
e6cc62c6
VS
35884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35885 (exit $ac_status); } &&
f95e4495
VS
35886 { ac_try='test -z "$ac_cxx_werror_flag"
35887 || test ! -s conftest.err'
35888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35889 (eval $ac_try) 2>&5
35890 ac_status=$?
35891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35892 (exit $ac_status); }; } &&
35893 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
35894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35895 (eval $ac_try) 2>&5
35896 ac_status=$?
35897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35898 (exit $ac_status); }; }; then
35899 echo "$as_me:$LINENO: result: no" >&5
35900echo "${ECHO_T}no" >&6
35901else
35902 echo "$as_me: failed program was:" >&5
35903sed 's/^/| /' conftest.$ac_ext >&5
35904
35905echo "$as_me:$LINENO: result: yes" >&5
35906echo "${ECHO_T}yes" >&6
8284b0c5
MB
35907 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
35908fi
f95e4495 35909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8284b0c5 35910 ac_ext=c
8284b0c5 35911ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
35912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35914ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 35915
2b9bdf71 35916 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 35917 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
f95e4495
VS
35918 if test "$wxUSE_OLE" = "yes" ; then
35919 cat >>confdefs.h <<\_ACEOF
4f11a343 35920#define wxUSE_OLE 1
e6cc62c6 35921_ACEOF
4f11a343 35922
f95e4495 35923 fi
2b9bdf71
VZ
35924 fi
35925
f95e4495
VS
35926 if test "$wxUSE_DATAOBJ" = "yes" ; then
35927 cat >>confdefs.h <<\_ACEOF
2b9bdf71 35928#define wxUSE_DATAOBJ 1
e6cc62c6 35929_ACEOF
2b9bdf71 35930
f95e4495 35931 fi
2b9bdf71 35932 else
e6cc62c6
VS
35933 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
35934echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
35935
35936 wxUSE_CLIPBOARD=no
35937 wxUSE_DRAG_AND_DROP=no
35938 wxUSE_DATAOBJ=no
3bce6687
JS
35939 wxUSE_OLE=no
35940 fi
35941
35942 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 35943 cat >>confdefs.h <<\_ACEOF
3bce6687 35944#define wxUSE_METAFILE 1
e6cc62c6 35945_ACEOF
3bce6687
JS
35946
35947
e6cc62c6 35948 cat >>confdefs.h <<\_ACEOF
3bce6687 35949#define wxUSE_ENH_METAFILE 1
e6cc62c6 35950_ACEOF
3bce6687
JS
35951
35952 fi
35953fi
35954
2b9bdf71
VZ
35955if test "$wxUSE_IPC" = "yes"; then
35956 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
35957 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
35958echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
35959 fi
35960
e6cc62c6 35961 cat >>confdefs.h <<\_ACEOF
2b9bdf71 35962#define wxUSE_IPC 1
e6cc62c6 35963_ACEOF
2b9bdf71
VZ
35964
35965fi
35966
35967if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 35968 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
35969 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
35970echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
35971 wxUSE_CLIPBOARD=no
35972 fi
35973
35974 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 35975 cat >>confdefs.h <<\_ACEOF
2b9bdf71 35976#define wxUSE_CLIPBOARD 1
e6cc62c6 35977_ACEOF
2b9bdf71 35978
8284b0c5 35979
e6cc62c6 35980 cat >>confdefs.h <<\_ACEOF
673f4220 35981#define wxUSE_DATAOBJ 1
e6cc62c6 35982_ACEOF
673f4220 35983
6c657b52 35984 fi
2b9bdf71
VZ
35985fi
35986
35987if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
35988 if test "$wxUSE_GTK" = 1; then
35989 if test "$WXGTK12" != 1; then
e6cc62c6
VS
35990 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
35991echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
35992 wxUSE_DRAG_AND_DROP=no
35993 fi
35994 fi
35995
2b9bdf71 35996 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
35997 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
35998echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
35999 wxUSE_DRAG_AND_DROP=no
36000 fi
36001
f79bd02d 36002 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
36003 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
36004echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
36005 wxUSE_DRAG_AND_DROP=no
36006 fi
36007
6c657b52 36008 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
36009 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
36010echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
36011 wxUSE_DRAG_AND_DROP=no
36012 fi
36013
10f2d63a 36014 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 36015 cat >>confdefs.h <<\_ACEOF
10f2d63a 36016#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 36017_ACEOF
10f2d63a
VZ
36018
36019 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
36020 fi
36021
36022fi
36023
36024if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 36025 cat >>confdefs.h <<\_ACEOF
10f2d63a 36026#define wxUSE_SPLINES 1
e6cc62c6 36027_ACEOF
10f2d63a
VZ
36028
36029fi
36030
8284b0c5 36031
1e6feb95
VZ
36032USES_CONTROLS=0
36033if test "$wxUSE_CONTROLS" = "yes"; then
36034 USES_CONTROLS=1
36035fi
36036
10f2d63a 36037if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 36038 cat >>confdefs.h <<\_ACEOF
10f2d63a 36039#define wxUSE_ACCEL 1
e6cc62c6 36040_ACEOF
10f2d63a 36041
1e6feb95
VZ
36042 USES_CONTROLS=1
36043fi
36044
36045if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 36046 cat >>confdefs.h <<\_ACEOF
1e6feb95 36047#define wxUSE_BUTTON 1
e6cc62c6 36048_ACEOF
1e6feb95
VZ
36049
36050 USES_CONTROLS=1
36051fi
36052
36053if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 36054 cat >>confdefs.h <<\_ACEOF
1e6feb95 36055#define wxUSE_BMPBUTTON 1
e6cc62c6 36056_ACEOF
1e6feb95
VZ
36057
36058 USES_CONTROLS=1
36059fi
36060
36061if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 36062 cat >>confdefs.h <<\_ACEOF
1e6feb95 36063#define wxUSE_CALENDARCTRL 1
e6cc62c6 36064_ACEOF
1e6feb95
VZ
36065
36066 USES_CONTROLS=1
36067 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
36068fi
36069
36070if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 36071 cat >>confdefs.h <<\_ACEOF
10f2d63a 36072#define wxUSE_CARET 1
e6cc62c6 36073_ACEOF
10f2d63a 36074
1e6feb95 36075 USES_CONTROLS=1
10f2d63a
VZ
36076 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
36077fi
36078
36079if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 36080 cat >>confdefs.h <<\_ACEOF
10f2d63a 36081#define wxUSE_COMBOBOX 1
e6cc62c6 36082_ACEOF
10f2d63a 36083
1e6feb95 36084 USES_CONTROLS=1
10f2d63a
VZ
36085fi
36086
36087if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 36088 cat >>confdefs.h <<\_ACEOF
10f2d63a 36089#define wxUSE_CHOICE 1
e6cc62c6 36090_ACEOF
10f2d63a 36091
1e6feb95 36092 USES_CONTROLS=1
10f2d63a
VZ
36093fi
36094
36095if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 36096 cat >>confdefs.h <<\_ACEOF
10f2d63a 36097#define wxUSE_CHECKBOX 1
e6cc62c6 36098_ACEOF
10f2d63a 36099
1e6feb95 36100 USES_CONTROLS=1
10f2d63a
VZ
36101fi
36102
36103if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 36104 cat >>confdefs.h <<\_ACEOF
10f2d63a 36105#define wxUSE_CHECKLISTBOX 1
e6cc62c6 36106_ACEOF
10f2d63a 36107
1e6feb95 36108 USES_CONTROLS=1
10f2d63a
VZ
36109 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
36110fi
36111
da494b40 36112if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 36113 cat >>confdefs.h <<\_ACEOF
da494b40 36114#define wxUSE_DISPLAY 1
e6cc62c6 36115_ACEOF
da494b40
MB
36116
36117 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
36118fi
36119
10f2d63a 36120if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 36121 cat >>confdefs.h <<\_ACEOF
10f2d63a 36122#define wxUSE_GAUGE 1
e6cc62c6 36123_ACEOF
10f2d63a 36124
1e6feb95 36125 USES_CONTROLS=1
10f2d63a
VZ
36126fi
36127
d6a55c4b 36128if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 36129 cat >>confdefs.h <<\_ACEOF
d6a55c4b 36130#define wxUSE_GRID 1
e6cc62c6 36131_ACEOF
10f2d63a 36132
1e6feb95 36133 USES_CONTROLS=1
d6a55c4b 36134 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
36135fi
36136
36137if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 36138 cat >>confdefs.h <<\_ACEOF
10f2d63a 36139#define wxUSE_IMAGLIST 1
e6cc62c6 36140_ACEOF
10f2d63a
VZ
36141
36142fi
36143
0e012a93
VZ
36144if test "$wxUSE_LISTBOOK" = "yes"; then
36145 cat >>confdefs.h <<\_ACEOF
36146#define wxUSE_LISTBOOK 1
36147_ACEOF
36148
36149 USES_CONTROLS=1
36150fi
36151
10f2d63a 36152if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 36153 cat >>confdefs.h <<\_ACEOF
10f2d63a 36154#define wxUSE_LISTBOX 1
e6cc62c6 36155_ACEOF
10f2d63a 36156
1e6feb95 36157 USES_CONTROLS=1
10f2d63a
VZ
36158fi
36159
36160if test "$wxUSE_LISTCTRL" = "yes"; then
36161 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 36162 cat >>confdefs.h <<\_ACEOF
10f2d63a 36163#define wxUSE_LISTCTRL 1
e6cc62c6 36164_ACEOF
10f2d63a 36165
1e6feb95 36166 USES_CONTROLS=1
10f2d63a
VZ
36167 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
36168 else
e6cc62c6
VS
36169 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
36170echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
36171 fi
36172fi
36173
36174if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 36175 cat >>confdefs.h <<\_ACEOF
10f2d63a 36176#define wxUSE_NOTEBOOK 1
e6cc62c6 36177_ACEOF
10f2d63a 36178
1e6feb95 36179 USES_CONTROLS=1
10f2d63a
VZ
36180 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
36181fi
36182
24176f2c 36183
10f2d63a 36184if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 36185 cat >>confdefs.h <<\_ACEOF
10f2d63a 36186#define wxUSE_RADIOBOX 1
e6cc62c6 36187_ACEOF
10f2d63a 36188
1e6feb95 36189 USES_CONTROLS=1
10f2d63a
VZ
36190fi
36191
36192if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 36193 cat >>confdefs.h <<\_ACEOF
10f2d63a 36194#define wxUSE_RADIOBTN 1
e6cc62c6 36195_ACEOF
10f2d63a 36196
1e6feb95 36197 USES_CONTROLS=1
10f2d63a
VZ
36198fi
36199
36200if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 36201 cat >>confdefs.h <<\_ACEOF
10f2d63a 36202#define wxUSE_SASH 1
e6cc62c6 36203_ACEOF
10f2d63a
VZ
36204
36205 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
36206fi
36207
36208if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 36209 cat >>confdefs.h <<\_ACEOF
10f2d63a 36210#define wxUSE_SCROLLBAR 1
e6cc62c6 36211_ACEOF
10f2d63a 36212
1e6feb95 36213 USES_CONTROLS=1
741a9306 36214 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
36215fi
36216
36217if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 36218 cat >>confdefs.h <<\_ACEOF
10f2d63a 36219#define wxUSE_SLIDER 1
e6cc62c6 36220_ACEOF
10f2d63a 36221
1e6feb95 36222 USES_CONTROLS=1
10f2d63a
VZ
36223fi
36224
36225if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 36226 cat >>confdefs.h <<\_ACEOF
10f2d63a 36227#define wxUSE_SPINBTN 1
e6cc62c6 36228_ACEOF
10f2d63a 36229
1e6feb95 36230 USES_CONTROLS=1
10f2d63a
VZ
36231fi
36232
56cfaa52 36233if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 36234 cat >>confdefs.h <<\_ACEOF
56cfaa52 36235#define wxUSE_SPINCTRL 1
e6cc62c6 36236_ACEOF
56cfaa52 36237
1e6feb95 36238 USES_CONTROLS=1
56cfaa52
RR
36239fi
36240
10f2d63a 36241if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 36242 cat >>confdefs.h <<\_ACEOF
10f2d63a 36243#define wxUSE_SPLITTER 1
e6cc62c6 36244_ACEOF
10f2d63a
VZ
36245
36246 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
36247fi
36248
36249if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 36250 cat >>confdefs.h <<\_ACEOF
10f2d63a 36251#define wxUSE_STATBMP 1
e6cc62c6 36252_ACEOF
10f2d63a 36253
1e6feb95 36254 USES_CONTROLS=1
10f2d63a
VZ
36255fi
36256
36257if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 36258 cat >>confdefs.h <<\_ACEOF
10f2d63a 36259#define wxUSE_STATBOX 1
e6cc62c6 36260_ACEOF
10f2d63a 36261
1e6feb95
VZ
36262 USES_CONTROLS=1
36263fi
36264
36265if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 36266 cat >>confdefs.h <<\_ACEOF
1e6feb95 36267#define wxUSE_STATTEXT 1
e6cc62c6 36268_ACEOF
1e6feb95
VZ
36269
36270 USES_CONTROLS=1
10f2d63a
VZ
36271fi
36272
36273if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 36274 cat >>confdefs.h <<\_ACEOF
10f2d63a 36275#define wxUSE_STATLINE 1
e6cc62c6 36276_ACEOF
10f2d63a 36277
89e6bf6d 36278 USES_CONTROLS=1
10f2d63a
VZ
36279fi
36280
36281if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 36282 cat >>confdefs.h <<\_ACEOF
10f2d63a 36283#define wxUSE_STATUSBAR 1
e6cc62c6 36284_ACEOF
10f2d63a 36285
1e6feb95 36286 USES_CONTROLS=1
698dcdb6 36287
2286341c 36288 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
36289fi
36290
36291if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 36292 cat >>confdefs.h <<\_ACEOF
10f2d63a 36293#define wxUSE_TAB_DIALOG 1
e6cc62c6 36294_ACEOF
10f2d63a
VZ
36295
36296 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
36297fi
36298
1e6feb95 36299if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 36300 cat >>confdefs.h <<\_ACEOF
1e6feb95 36301#define wxUSE_TEXTCTRL 1
e6cc62c6 36302_ACEOF
1e6feb95
VZ
36303
36304 USES_CONTROLS=1
36305 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
36306fi
36307
1db8dc4a 36308if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 36309 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
36310 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
36311echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
36312 wxUSE_TOGGLEBTN=no
36313 fi
36314 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
36315 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
36316echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
36317 wxUSE_TOGGLEBTN=no
36318 fi
36319
36320 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 36321 cat >>confdefs.h <<\_ACEOF
1db8dc4a 36322#define wxUSE_TOGGLEBTN 1
e6cc62c6 36323_ACEOF
1db8dc4a 36324
1e6feb95 36325 USES_CONTROLS=1
a45d7ab7 36326 fi
1db8dc4a
VZ
36327fi
36328
360d6699 36329if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 36330 cat >>confdefs.h <<\_ACEOF
360d6699 36331#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 36332_ACEOF
360d6699
VZ
36333
36334 wxUSE_TOOLBAR="yes"
1e6feb95 36335 USES_CONTROLS=1
360d6699
VZ
36336fi
36337
10f2d63a 36338if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 36339 cat >>confdefs.h <<\_ACEOF
10f2d63a 36340#define wxUSE_TOOLBAR 1
e6cc62c6 36341_ACEOF
10f2d63a 36342
1e6feb95 36343 USES_CONTROLS=1
698dcdb6 36344
360d6699
VZ
36345 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
36346 wxUSE_TOOLBAR_NATIVE="yes"
36347 fi
36348
1e6feb95 36349 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 36350 cat >>confdefs.h <<\_ACEOF
360d6699 36351#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 36352_ACEOF
360d6699 36353
1e6feb95
VZ
36354 USES_CONTROLS=1
36355 fi
36356
36357 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
36358fi
36359
10f2d63a
VZ
36360if test "$wxUSE_TOOLTIPS" = "yes"; then
36361 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
36362 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
36363echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 36364 else
89e6bf6d 36365 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
36366 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
36367echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 36368 else
e6cc62c6 36369 cat >>confdefs.h <<\_ACEOF
10f2d63a 36370#define wxUSE_TOOLTIPS 1
e6cc62c6 36371_ACEOF
10f2d63a
VZ
36372
36373 fi
36374 fi
36375fi
36376
36377if test "$wxUSE_TREECTRL" = "yes"; then
36378 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 36379 cat >>confdefs.h <<\_ACEOF
10f2d63a 36380#define wxUSE_TREECTRL 1
e6cc62c6 36381_ACEOF
10f2d63a 36382
1e6feb95 36383 USES_CONTROLS=1
10f2d63a
VZ
36384 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
36385 else
e6cc62c6
VS
36386 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
36387echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
36388 fi
36389fi
36390
9f41d601 36391if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 36392 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
36393 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
36394echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 36395 else
833a51f6
MB
36396 if test "$wxUSE_PM" = 1; then
36397 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
e6cc62c6 36398echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
833a51f6
MB
36399 else
36400 cat >>confdefs.h <<\_ACEOF
9f41d601 36401#define wxUSE_POPUPWIN 1
e6cc62c6 36402_ACEOF
9f41d601 36403
8284b0c5 36404
833a51f6 36405 USES_CONTROLS=1
485cf710 36406 fi
6abe4b65 36407 fi
9f41d601
RR
36408fi
36409
dd964dcc 36410if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 36411 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
36412 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
36413echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 36414 else
e6cc62c6 36415 cat >>confdefs.h <<\_ACEOF
dd964dcc 36416#define wxUSE_TIPWINDOW 1
e6cc62c6 36417_ACEOF
dd964dcc 36418
3c011993 36419 fi
dd964dcc
VZ
36420fi
36421
1e6feb95 36422if test "$USES_CONTROLS" = 1; then
e6cc62c6 36423 cat >>confdefs.h <<\_ACEOF
1e6feb95 36424#define wxUSE_CONTROLS 1
e6cc62c6 36425_ACEOF
10f2d63a 36426
10f2d63a
VZ
36427fi
36428
8284b0c5 36429
e46d2a18
VS
36430if test "$wxUSE_ACCESSIBILITY" = "yes"; then
36431 cat >>confdefs.h <<\_ACEOF
36432#define wxUSE_ACCESSIBILITY 1
36433_ACEOF
36434
36435 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
36436fi
1e6feb95 36437
24fd6d87 36438if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 36439 cat >>confdefs.h <<\_ACEOF
24fd6d87 36440#define wxUSE_DRAGIMAGE 1
e6cc62c6 36441_ACEOF
24fd6d87
VZ
36442
36443 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
36444fi
36445
e46d2a18 36446if test "$wxUSE_EXCEPTIONS" = "yes"; then
e6cc62c6 36447 cat >>confdefs.h <<\_ACEOF
e46d2a18 36448#define wxUSE_EXCEPTIONS 1
e6cc62c6 36449_ACEOF
7bb2947d 36450
e46d2a18
VS
36451fi
36452
36453USE_HTML=0
36454if test "$wxUSE_HTML" = "yes"; then
36455 cat >>confdefs.h <<\_ACEOF
36456#define wxUSE_HTML 1
36457_ACEOF
36458
36459 USE_HTML=1
36460 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
7bb2947d
MB
36461fi
36462
1e6feb95 36463if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 36464 cat >>confdefs.h <<\_ACEOF
1e6feb95 36465#define wxUSE_MENUS 1
e6cc62c6 36466_ACEOF
10f2d63a 36467
1e6feb95 36468 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
36469fi
36470
1e6feb95 36471if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 36472 cat >>confdefs.h <<\_ACEOF
1e6feb95 36473#define wxUSE_METAFILE 1
e6cc62c6 36474_ACEOF
10f2d63a 36475
10f2d63a
VZ
36476fi
36477
1e6feb95 36478if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 36479 cat >>confdefs.h <<\_ACEOF
1e6feb95 36480#define wxUSE_MIMETYPE 1
e6cc62c6 36481_ACEOF
10f2d63a 36482
10f2d63a
VZ
36483fi
36484
36485if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 36486 cat >>confdefs.h <<\_ACEOF
10f2d63a 36487#define wxUSE_MINIFRAME 1
e6cc62c6 36488_ACEOF
10f2d63a
VZ
36489
36490 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
36491fi
36492
e46d2a18 36493if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 36494 cat >>confdefs.h <<\_ACEOF
e46d2a18 36495#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 36496_ACEOF
10f2d63a 36497
e46d2a18
VS
36498 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
36499 "$TOOLKIT" = "MOTIF"; then
36500 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
36501 fi
10f2d63a
VZ
36502fi
36503
e46d2a18 36504
10f2d63a 36505if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 36506 cat >>confdefs.h <<\_ACEOF
1e487827 36507#define wxUSE_VALIDATORS 1
e6cc62c6 36508_ACEOF
703e0a69 36509
698dcdb6
VZ
36510 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
36511fi
36512
edae8572 36513if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 36514 cat >>confdefs.h <<\_ACEOF
edae8572 36515#define wxUSE_PALETTE 1
e6cc62c6 36516_ACEOF
edae8572
VZ
36517
36518fi
36519
e46d2a18
VS
36520if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
36521 LIBS=" -lunicows $LIBS"
36522fi
36523
36524
698dcdb6 36525if test "$wxUSE_IMAGE" = "yes" ; then
e46d2a18 36526 cat >>confdefs.h <<\_ACEOF
698dcdb6 36527#define wxUSE_IMAGE 1
e6cc62c6 36528_ACEOF
698dcdb6 36529
698dcdb6 36530
e46d2a18
VS
36531 if test "$wxUSE_GIF" = "yes" ; then
36532 cat >>confdefs.h <<\_ACEOF
698dcdb6 36533#define wxUSE_GIF 1
e6cc62c6 36534_ACEOF
698dcdb6 36535
e46d2a18 36536 fi
698dcdb6 36537
e46d2a18
VS
36538 if test "$wxUSE_PCX" = "yes" ; then
36539 cat >>confdefs.h <<\_ACEOF
698dcdb6 36540#define wxUSE_PCX 1
e6cc62c6 36541_ACEOF
698dcdb6 36542
e46d2a18 36543 fi
698dcdb6 36544
e46d2a18
VS
36545 if test "$wxUSE_IFF" = "yes" ; then
36546 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 36547#define wxUSE_IFF 1
e6cc62c6 36548_ACEOF
4b6b4dfc 36549
e46d2a18 36550 fi
4b6b4dfc 36551
e46d2a18
VS
36552 if test "$wxUSE_PNM" = "yes" ; then
36553 cat >>confdefs.h <<\_ACEOF
698dcdb6 36554#define wxUSE_PNM 1
e6cc62c6 36555_ACEOF
698dcdb6 36556
e46d2a18 36557 fi
698dcdb6 36558
e46d2a18
VS
36559 if test "$wxUSE_XPM" = "yes" ; then
36560 cat >>confdefs.h <<\_ACEOF
698dcdb6 36561#define wxUSE_XPM 1
e6cc62c6 36562_ACEOF
698dcdb6 36563
e46d2a18 36564 fi
698dcdb6 36565
e46d2a18
VS
36566 if test "$wxUSE_ICO_CUR" = "yes" ; then
36567 cat >>confdefs.h <<\_ACEOF
658974ae 36568#define wxUSE_ICO_CUR 1
e6cc62c6 36569_ACEOF
658974ae 36570
e46d2a18 36571 fi
a72a4bfa
VS
36572fi
36573
8284b0c5 36574
1e6feb95 36575if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 36576 cat >>confdefs.h <<\_ACEOF
1e6feb95 36577#define wxUSE_CHOICEDLG 1
e6cc62c6 36578_ACEOF
1e6feb95
VZ
36579
36580fi
36581
36582if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 36583 cat >>confdefs.h <<\_ACEOF
1e6feb95 36584#define wxUSE_COLOURDLG 1
e6cc62c6 36585_ACEOF
1e6feb95
VZ
36586
36587fi
36588
36589if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 36590 cat >>confdefs.h <<\_ACEOF
1e6feb95 36591#define wxUSE_FILEDLG 1
e6cc62c6 36592_ACEOF
1e6feb95
VZ
36593
36594fi
36595
8db37e06 36596if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 36597 cat >>confdefs.h <<\_ACEOF
8db37e06 36598#define wxUSE_FINDREPLDLG 1
e6cc62c6 36599_ACEOF
8db37e06
VZ
36600
36601fi
36602
1e6feb95 36603if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 36604 cat >>confdefs.h <<\_ACEOF
1e6feb95 36605#define wxUSE_FONTDLG 1
e6cc62c6 36606_ACEOF
1e6feb95
VZ
36607
36608fi
36609
36610if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 36611 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
36612 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
36613echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 36614 else
e6cc62c6 36615 cat >>confdefs.h <<\_ACEOF
1e6feb95 36616#define wxUSE_DIRDLG 1
e6cc62c6 36617_ACEOF
1e6feb95 36618
1e6feb95
VZ
36619 fi
36620fi
36621
36622if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 36623 cat >>confdefs.h <<\_ACEOF
1e6feb95 36624#define wxUSE_MSGDLG 1
e6cc62c6 36625_ACEOF
1e6feb95
VZ
36626
36627fi
36628
36629if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 36630 cat >>confdefs.h <<\_ACEOF
1e6feb95 36631#define wxUSE_NUMBERDLG 1
e6cc62c6 36632_ACEOF
1e6feb95
VZ
36633
36634fi
36635
36636if test "$wxUSE_PROGRESSDLG" = "yes"; then
36637 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
36638 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
36639echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 36640 else
e6cc62c6 36641 cat >>confdefs.h <<\_ACEOF
1e6feb95 36642#define wxUSE_PROGRESSDLG 1
e6cc62c6 36643_ACEOF
1e6feb95
VZ
36644
36645 fi
36646fi
36647
cbca9943 36648if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 36649 cat >>confdefs.h <<\_ACEOF
cbca9943 36650#define wxUSE_SPLASH 1
e6cc62c6 36651_ACEOF
cbca9943
VZ
36652
36653fi
36654
1e6feb95
VZ
36655if test "$wxUSE_STARTUP_TIPS" = "yes"; then
36656 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
36657 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
36658echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 36659 else
e6cc62c6 36660 cat >>confdefs.h <<\_ACEOF
1e6feb95 36661#define wxUSE_STARTUP_TIPS 1
e6cc62c6 36662_ACEOF
1e6feb95 36663
7b4a847f
RR
36664 fi
36665fi
579d8138 36666
8284b0c5 36667if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 36668 cat >>confdefs.h <<\_ACEOF
8284b0c5 36669#define wxUSE_TEXTDLG 1
e6cc62c6 36670_ACEOF
8284b0c5
MB
36671
36672fi
36673
36674if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 36675 cat >>confdefs.h <<\_ACEOF
8284b0c5 36676#define wxUSE_WIZARDDLG 1
e6cc62c6 36677_ACEOF
8284b0c5
MB
36678
36679 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
36680fi
36681
36682
36683if test "$cross_compiling" = "yes"; then
36684 OSINFO="\"$host\""
36685else
36686 OSINFO=`uname -s -r -m`
36687 OSINFO="\"$OSINFO\""
36688fi
36689
e6cc62c6 36690cat >>confdefs.h <<_ACEOF
8284b0c5 36691#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 36692_ACEOF
8284b0c5
MB
36693
36694
36695
36696if test "x$prefix" != "xNONE"; then
36697 wxPREFIX=$prefix
36698else
36699 wxPREFIX=$ac_default_prefix
36700fi
36701
e6cc62c6 36702cat >>confdefs.h <<_ACEOF
8284b0c5 36703#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 36704_ACEOF
8284b0c5
MB
36705
36706
e6cc62c6 36707top_builddir_wxconfig=`pwd`
52c71b80 36708
8284b0c5
MB
36709
36710
edd891e2
VS
36711CORE_BASE_LIBS="net base"
36712CORE_GUI_LIBS="adv core"
36713
36714if test "$wxUSE_XML" = "yes" ; then
36715 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
36716fi
45293562
VS
36717if test "$wxUSE_ODBC" != "no" ; then
36718 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
36719 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
edd891e2
VS
36720fi
36721if test "$wxUSE_HTML" = "yes" ; then
36722 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
36723fi
36724
57e7d4ac
VS
36725if test "$wxUSE_GUI" != "yes"; then
36726 CORE_GUI_LIBS=""
36727fi
36728
edd891e2
VS
36729
36730
36731
36732
36733
36734
8284b0c5
MB
36735
36736if test "$wxUSE_MAC" = 1 ; then
36737 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
36738fi
ac0c4cc3
DE
36739if test "$wxUSE_COCOA" = 1 ; then
36740 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
36741fi
8284b0c5
MB
36742
36743
2b5f62a0
VZ
36744LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
36745
36746have_cos=0
36747have_floor=0
e6cc62c6 36748
2b5f62a0
VZ
36749for ac_func in cos
36750do
e6cc62c6
VS
36751as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36752echo "$as_me:$LINENO: checking for $ac_func" >&5
36753echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36754if eval "test \"\${$as_ac_var+set}\" = set"; then
36755 echo $ECHO_N "(cached) $ECHO_C" >&6
36756else
36757 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36758/* confdefs.h. */
36759_ACEOF
36760cat confdefs.h >>conftest.$ac_ext
36761cat >>conftest.$ac_ext <<_ACEOF
36762/* end confdefs.h. */
f95e4495
VS
36763/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36765#define $ac_func innocuous_$ac_func
36766
2b5f62a0 36767/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
36768 which can conflict with char $ac_func (); below.
36769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36770 <limits.h> exists even on freestanding compilers. */
f95e4495 36771
e6cc62c6
VS
36772#ifdef __STDC__
36773# include <limits.h>
36774#else
36775# include <assert.h>
36776#endif
f95e4495
VS
36777
36778#undef $ac_func
36779
2b5f62a0 36780/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
36781#ifdef __cplusplus
36782extern "C"
36783{
36784#endif
2b5f62a0 36785/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
36786 builtin and then its argument prototype would still apply. */
36787char $ac_func ();
2b5f62a0
VZ
36788/* The GNU C library defines this for functions which it implements
36789 to always fail with ENOSYS. Some functions are actually named
36790 something starting with __ and the normal name is an alias. */
36791#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36792choke me
36793#else
e6cc62c6
VS
36794char (*f) () = $ac_func;
36795#endif
36796#ifdef __cplusplus
36797}
2b5f62a0
VZ
36798#endif
36799
e6cc62c6
VS
36800int
36801main ()
36802{
36803return f != $ac_func;
36804 ;
36805 return 0;
36806}
36807_ACEOF
36808rm -f conftest.$ac_objext conftest$ac_exeext
36809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 36810 (eval $ac_link) 2>conftest.er1
e6cc62c6 36811 ac_status=$?
f95e4495
VS
36812 grep -v '^ *+' conftest.er1 >conftest.err
36813 rm -f conftest.er1
36814 cat conftest.err >&5
e6cc62c6
VS
36815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36816 (exit $ac_status); } &&
f95e4495
VS
36817 { ac_try='test -z "$ac_c_werror_flag"
36818 || test ! -s conftest.err'
36819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36820 (eval $ac_try) 2>&5
36821 ac_status=$?
36822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36823 (exit $ac_status); }; } &&
36824 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
36825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36826 (eval $ac_try) 2>&5
36827 ac_status=$?
36828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36829 (exit $ac_status); }; }; then
36830 eval "$as_ac_var=yes"
36831else
36832 echo "$as_me: failed program was:" >&5
36833sed 's/^/| /' conftest.$ac_ext >&5
36834
36835eval "$as_ac_var=no"
36836fi
f95e4495
VS
36837rm -f conftest.err conftest.$ac_objext \
36838 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
36839fi
36840echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36841echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36842if test `eval echo '${'$as_ac_var'}'` = yes; then
36843 cat >>confdefs.h <<_ACEOF
36844#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36845_ACEOF
2b5f62a0 36846 have_cos=1
2b5f62a0
VZ
36847fi
36848done
36849
e6cc62c6 36850
2b5f62a0
VZ
36851for ac_func in floor
36852do
e6cc62c6
VS
36853as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36854echo "$as_me:$LINENO: checking for $ac_func" >&5
36855echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36856if eval "test \"\${$as_ac_var+set}\" = set"; then
36857 echo $ECHO_N "(cached) $ECHO_C" >&6
36858else
36859 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36860/* confdefs.h. */
36861_ACEOF
36862cat confdefs.h >>conftest.$ac_ext
36863cat >>conftest.$ac_ext <<_ACEOF
36864/* end confdefs.h. */
f95e4495
VS
36865/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36867#define $ac_func innocuous_$ac_func
36868
2b5f62a0 36869/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
36870 which can conflict with char $ac_func (); below.
36871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36872 <limits.h> exists even on freestanding compilers. */
f95e4495 36873
e6cc62c6
VS
36874#ifdef __STDC__
36875# include <limits.h>
36876#else
36877# include <assert.h>
36878#endif
f95e4495
VS
36879
36880#undef $ac_func
36881
2b5f62a0 36882/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
36883#ifdef __cplusplus
36884extern "C"
36885{
36886#endif
2b5f62a0 36887/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
36888 builtin and then its argument prototype would still apply. */
36889char $ac_func ();
2b5f62a0
VZ
36890/* The GNU C library defines this for functions which it implements
36891 to always fail with ENOSYS. Some functions are actually named
36892 something starting with __ and the normal name is an alias. */
36893#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36894choke me
36895#else
e6cc62c6
VS
36896char (*f) () = $ac_func;
36897#endif
36898#ifdef __cplusplus
36899}
2b5f62a0
VZ
36900#endif
36901
e6cc62c6
VS
36902int
36903main ()
36904{
36905return f != $ac_func;
36906 ;
36907 return 0;
36908}
36909_ACEOF
36910rm -f conftest.$ac_objext conftest$ac_exeext
36911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 36912 (eval $ac_link) 2>conftest.er1
e6cc62c6 36913 ac_status=$?
f95e4495
VS
36914 grep -v '^ *+' conftest.er1 >conftest.err
36915 rm -f conftest.er1
36916 cat conftest.err >&5
e6cc62c6
VS
36917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36918 (exit $ac_status); } &&
f95e4495
VS
36919 { ac_try='test -z "$ac_c_werror_flag"
36920 || test ! -s conftest.err'
36921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36922 (eval $ac_try) 2>&5
36923 ac_status=$?
36924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36925 (exit $ac_status); }; } &&
36926 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
36927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36928 (eval $ac_try) 2>&5
36929 ac_status=$?
36930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36931 (exit $ac_status); }; }; then
36932 eval "$as_ac_var=yes"
36933else
36934 echo "$as_me: failed program was:" >&5
36935sed 's/^/| /' conftest.$ac_ext >&5
36936
36937eval "$as_ac_var=no"
36938fi
f95e4495
VS
36939rm -f conftest.err conftest.$ac_objext \
36940 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
36941fi
36942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36943echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36944if test `eval echo '${'$as_ac_var'}'` = yes; then
36945 cat >>confdefs.h <<_ACEOF
36946#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36947_ACEOF
2b5f62a0 36948 have_floor=1
2b5f62a0
VZ
36949fi
36950done
36951
e6cc62c6
VS
36952echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
36953echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 36954if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
36955 echo "$as_me:$LINENO: result: yes" >&5
36956echo "${ECHO_T}yes" >&6
2b5f62a0 36957else
e6cc62c6
VS
36958 echo "$as_me:$LINENO: result: no" >&5
36959echo "${ECHO_T}no" >&6
2b5f62a0
VZ
36960 LIBS="$LIBS -lm"
36961 # use different functions to avoid configure caching
36962 have_sin=0
36963 have_ceil=0
e6cc62c6
VS
36964
36965for ac_func in sin
2b5f62a0 36966do
e6cc62c6
VS
36967as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36968echo "$as_me:$LINENO: checking for $ac_func" >&5
36969echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36970if eval "test \"\${$as_ac_var+set}\" = set"; then
36971 echo $ECHO_N "(cached) $ECHO_C" >&6
36972else
36973 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36974/* confdefs.h. */
36975_ACEOF
36976cat confdefs.h >>conftest.$ac_ext
36977cat >>conftest.$ac_ext <<_ACEOF
36978/* end confdefs.h. */
f95e4495
VS
36979/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36981#define $ac_func innocuous_$ac_func
36982
2b5f62a0 36983/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
36984 which can conflict with char $ac_func (); below.
36985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36986 <limits.h> exists even on freestanding compilers. */
f95e4495 36987
e6cc62c6
VS
36988#ifdef __STDC__
36989# include <limits.h>
36990#else
36991# include <assert.h>
36992#endif
f95e4495
VS
36993
36994#undef $ac_func
36995
2b5f62a0 36996/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
36997#ifdef __cplusplus
36998extern "C"
36999{
37000#endif
2b5f62a0 37001/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
37002 builtin and then its argument prototype would still apply. */
37003char $ac_func ();
2b5f62a0
VZ
37004/* The GNU C library defines this for functions which it implements
37005 to always fail with ENOSYS. Some functions are actually named
37006 something starting with __ and the normal name is an alias. */
37007#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37008choke me
37009#else
e6cc62c6
VS
37010char (*f) () = $ac_func;
37011#endif
37012#ifdef __cplusplus
37013}
2b5f62a0
VZ
37014#endif
37015
e6cc62c6
VS
37016int
37017main ()
37018{
37019return f != $ac_func;
37020 ;
37021 return 0;
37022}
37023_ACEOF
37024rm -f conftest.$ac_objext conftest$ac_exeext
37025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 37026 (eval $ac_link) 2>conftest.er1
e6cc62c6 37027 ac_status=$?
f95e4495
VS
37028 grep -v '^ *+' conftest.er1 >conftest.err
37029 rm -f conftest.er1
37030 cat conftest.err >&5
e6cc62c6
VS
37031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37032 (exit $ac_status); } &&
f95e4495
VS
37033 { ac_try='test -z "$ac_c_werror_flag"
37034 || test ! -s conftest.err'
37035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37036 (eval $ac_try) 2>&5
37037 ac_status=$?
37038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37039 (exit $ac_status); }; } &&
37040 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
37041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37042 (eval $ac_try) 2>&5
37043 ac_status=$?
37044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37045 (exit $ac_status); }; }; then
37046 eval "$as_ac_var=yes"
37047else
37048 echo "$as_me: failed program was:" >&5
37049sed 's/^/| /' conftest.$ac_ext >&5
37050
37051eval "$as_ac_var=no"
37052fi
f95e4495
VS
37053rm -f conftest.err conftest.$ac_objext \
37054 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
37055fi
37056echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37057echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37058if test `eval echo '${'$as_ac_var'}'` = yes; then
37059 cat >>confdefs.h <<_ACEOF
37060#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37061_ACEOF
2b5f62a0 37062 have_sin=1
2b5f62a0
VZ
37063fi
37064done
37065
e6cc62c6
VS
37066
37067for ac_func in ceil
2b5f62a0 37068do
e6cc62c6
VS
37069as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37070echo "$as_me:$LINENO: checking for $ac_func" >&5
37071echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37072if eval "test \"\${$as_ac_var+set}\" = set"; then
37073 echo $ECHO_N "(cached) $ECHO_C" >&6
37074else
37075 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
37076/* confdefs.h. */
37077_ACEOF
37078cat confdefs.h >>conftest.$ac_ext
37079cat >>conftest.$ac_ext <<_ACEOF
37080/* end confdefs.h. */
f95e4495
VS
37081/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37083#define $ac_func innocuous_$ac_func
37084
2b5f62a0 37085/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
37086 which can conflict with char $ac_func (); below.
37087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37088 <limits.h> exists even on freestanding compilers. */
f95e4495 37089
e6cc62c6
VS
37090#ifdef __STDC__
37091# include <limits.h>
37092#else
37093# include <assert.h>
37094#endif
f95e4495
VS
37095
37096#undef $ac_func
37097
2b5f62a0 37098/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
37099#ifdef __cplusplus
37100extern "C"
37101{
37102#endif
2b5f62a0 37103/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
37104 builtin and then its argument prototype would still apply. */
37105char $ac_func ();
2b5f62a0
VZ
37106/* The GNU C library defines this for functions which it implements
37107 to always fail with ENOSYS. Some functions are actually named
37108 something starting with __ and the normal name is an alias. */
37109#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37110choke me
37111#else
e6cc62c6
VS
37112char (*f) () = $ac_func;
37113#endif
37114#ifdef __cplusplus
37115}
2b5f62a0
VZ
37116#endif
37117
e6cc62c6
VS
37118int
37119main ()
37120{
37121return f != $ac_func;
37122 ;
37123 return 0;
37124}
37125_ACEOF
37126rm -f conftest.$ac_objext conftest$ac_exeext
37127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 37128 (eval $ac_link) 2>conftest.er1
e6cc62c6 37129 ac_status=$?
f95e4495
VS
37130 grep -v '^ *+' conftest.er1 >conftest.err
37131 rm -f conftest.er1
37132 cat conftest.err >&5
e6cc62c6
VS
37133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37134 (exit $ac_status); } &&
f95e4495
VS
37135 { ac_try='test -z "$ac_c_werror_flag"
37136 || test ! -s conftest.err'
37137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37138 (eval $ac_try) 2>&5
37139 ac_status=$?
37140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37141 (exit $ac_status); }; } &&
37142 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
37143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37144 (eval $ac_try) 2>&5
37145 ac_status=$?
37146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37147 (exit $ac_status); }; }; then
37148 eval "$as_ac_var=yes"
37149else
37150 echo "$as_me: failed program was:" >&5
37151sed 's/^/| /' conftest.$ac_ext >&5
37152
37153eval "$as_ac_var=no"
37154fi
f95e4495
VS
37155rm -f conftest.err conftest.$ac_objext \
37156 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
37157fi
37158echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37159echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37160if test `eval echo '${'$as_ac_var'}'` = yes; then
37161 cat >>confdefs.h <<_ACEOF
37162#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37163_ACEOF
2b5f62a0 37164 have_ceil=1
2b5f62a0
VZ
37165fi
37166done
37167
e6cc62c6
VS
37168 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
37169echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 37170 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
37171 echo "$as_me:$LINENO: result: yes" >&5
37172echo "${ECHO_T}yes" >&6
2b5f62a0 37173 else
e6cc62c6
VS
37174 echo "$as_me:$LINENO: result: no" >&5
37175echo "${ECHO_T}no" >&6
2b5f62a0
VZ
37176 # not sure we should warn the user, crash, etc.
37177 fi
37178fi
8284b0c5
MB
37179
37180if test "$wxUSE_GUI" = "yes"; then
37181
e6cc62c6 37182
8284b0c5
MB
37183 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
37184 drawing dynamic erase event exec font image \
1dd02ac0 37185 minimal propsize rotate shaped widgets render"
b625909c
VS
37186
37187 if test "$wxUSE_MONOLITHIC" != "yes"; then
37188 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
37189 fi
8284b0c5
MB
37190else
37191 SAMPLES_SUBDIRS="console"
37192fi
37193
37194
e6cc62c6 37195INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
eea650d8 37196-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
8284b0c5 37197
fddeb06b
VS
37198if test "$GXX" = yes ; then
37199 CXXWARNINGS="-Wall"
37200 fi
37201
37202EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
37203
95318f7d 37204CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
37205CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
37206CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
37207
37208
fddeb06b 37209LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 37210EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 37211EXTRALIBS_XML="$EXPAT_LINK"
3527f29c 37212EXTRALIBS_HTML="$MSPACK_LINK"
bb41dcbe 37213EXTRALIBS_ODBC="$ODBC_LINK"
c74dc163
VS
37214if test "$wxUSE_GUI" = "yes"; then
37215 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
37216fi
34b08d2c
VS
37217if test "$wxUSE_OPENGL" = "yes"; then
37218 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
37219fi
fddeb06b
VS
37220
37221LDFLAGS="$LDFLAGS $PROFILE"
37222
8284b0c5
MB
37223if test "$wxUSE_GTK" = 1; then
37224 WXCONFIG_INCLUDE=
37225else
37226 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
37227fi
37228
67c13b6c
VS
37229WXCONFIG_EXTRALIBS="$LIBS"
37230
37231if test "$wxUSE_REGEX" = "builtin" ; then
37232 wxconfig_3rdparty="$wxconfig_3rdparty regex"
37233fi
37234if test "$wxUSE_EXPAT" = "builtin" ; then
37235 wxconfig_3rdparty="$wxconfig_3rdparty expat"
37236fi
37237if test "$wxUSE_ODBC" = "builtin" ; then
37238 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37239fi
37240if test "$wxUSE_LIBTIFF" = "builtin" ; then
37241 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
37242fi
37243if test "$wxUSE_LIBJPEG" = "builtin" ; then
37244 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
37245fi
37246if test "$wxUSE_LIBPNG" = "builtin" ; then
37247 wxconfig_3rdparty="$wxconfig_3rdparty png"
37248fi
37249if test "$wxUSE_ZLIB" = "builtin" ; then
37250 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
37251fi
bb41dcbe
VS
37252if test "$wxUSE_ODBC" = "builtin" ; then
37253 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
37254fi
67c13b6c
VS
37255
37256for i in $wxconfig_3rdparty ; do
37257 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
37258done
37259
37260
fe0895cf
VS
37261if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
37262 WXUNIV=1
37263else
37264 WXUNIV=0
8284b0c5
MB
37265fi
37266
8284b0c5
MB
37267
37268
37269
37270
37271
37272
37273
672abd7a 37274
9747f85d
VS
37275if test $wxUSE_MONOLITHIC = "yes" ; then
37276 MONOLITHIC=1
37277else
37278 MONOLITHIC=0
37279fi
8284b0c5 37280
f93ca9fd
VS
37281if test $wxUSE_PLUGINS = "yes" ; then
37282 USE_PLUGINS=1
37283else
37284 USE_PLUGINS=0
37285fi
37286
bb41dcbe
VS
37287if test $wxUSE_ODBC != "no" ; then
37288 USE_ODBC=1
37289else
37290 USE_ODBC=0
37291fi
37292
029b47ad
VS
37293if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
37294 OFFICIAL_BUILD=1
37295else
37296 OFFICIAL_BUILD=0
37297fi
37298
8ee2dd05
VS
37299
37300
37301
8284b0c5
MB
37302
37303
37304
37305
37306
37307
c74dc163 37308
34b08d2c 37309
672abd7a 37310
cf615ebb 37311
6c67131a
VS
37312
37313
bb41dcbe 37314
f93ca9fd
VS
37315
37316
37317
3527f29c 37318
89fe663f 37319TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
8284b0c5
MB
37320
37321
37322
37323
37324
ea66c762 37325
0f1bc9c2 37326
f95e4495
VS
37327 if test "x$BAKEFILE_HOST" = "x"; then
37328 BAKEFILE_HOST="${host}"
37329 fi
37330
fe0895cf 37331 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
37332
37333 if test -n "$ac_tool_prefix"; then
37334 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
37335set dummy ${ac_tool_prefix}ranlib; ac_word=$2
37336echo "$as_me:$LINENO: checking for $ac_word" >&5
37337echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37338if test "${ac_cv_prog_RANLIB+set}" = set; then
37339 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 37340else
fe0895cf
VS
37341 if test -n "$RANLIB"; then
37342 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 37343else
e6cc62c6
VS
37344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37345for as_dir in $PATH
37346do
37347 IFS=$as_save_IFS
37348 test -z "$as_dir" && as_dir=.
37349 for ac_exec_ext in '' $ac_executable_extensions; do
37350 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37351 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
37352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37353 break 2
37354 fi
37355done
37356done
37357
10f2d63a 37358fi
10f2d63a 37359fi
e6cc62c6 37360RANLIB=$ac_cv_prog_RANLIB
fe0895cf 37361if test -n "$RANLIB"; then
e6cc62c6
VS
37362 echo "$as_me:$LINENO: result: $RANLIB" >&5
37363echo "${ECHO_T}$RANLIB" >&6
37364else
37365 echo "$as_me:$LINENO: result: no" >&5
37366echo "${ECHO_T}no" >&6
37367fi
37368
37369fi
37370if test -z "$ac_cv_prog_RANLIB"; then
37371 ac_ct_RANLIB=$RANLIB
37372 # Extract the first word of "ranlib", so it can be a program name with args.
37373set dummy ranlib; ac_word=$2
37374echo "$as_me:$LINENO: checking for $ac_word" >&5
37375echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37376if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
37377 echo $ECHO_N "(cached) $ECHO_C" >&6
37378else
37379 if test -n "$ac_ct_RANLIB"; then
37380 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
37381else
37382as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37383for as_dir in $PATH
37384do
37385 IFS=$as_save_IFS
37386 test -z "$as_dir" && as_dir=.
37387 for ac_exec_ext in '' $ac_executable_extensions; do
37388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37389 ac_cv_prog_ac_ct_RANLIB="ranlib"
37390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37391 break 2
37392 fi
37393done
37394done
37395
37396 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
37397fi
37398fi
37399ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
37400if test -n "$ac_ct_RANLIB"; then
37401 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
37402echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 37403else
e6cc62c6
VS
37404 echo "$as_me:$LINENO: result: no" >&5
37405echo "${ECHO_T}no" >&6
37406fi
37407
37408 RANLIB=$ac_ct_RANLIB
37409else
37410 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 37411fi
665bbe97 37412
fe0895cf
VS
37413 # Find a good install program. We prefer a C program (faster),
37414# so one script is as good as another. But avoid the broken or
37415# incompatible versions:
37416# SysV /etc/install, /usr/sbin/install
37417# SunOS /usr/etc/install
37418# IRIX /sbin/install
37419# AIX /bin/install
e6cc62c6 37420# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
37421# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
37422# AFS /usr/afsws/bin/install, which mishandles nonexistent args
37423# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
f95e4495 37424# OS/2's system install, which has a completely different semantic
fe0895cf 37425# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
37426echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
37427echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 37428if test -z "$INSTALL"; then
e6cc62c6
VS
37429if test "${ac_cv_path_install+set}" = set; then
37430 echo $ECHO_N "(cached) $ECHO_C" >&6
37431else
37432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37433for as_dir in $PATH
37434do
37435 IFS=$as_save_IFS
37436 test -z "$as_dir" && as_dir=.
37437 # Account for people who put trailing slashes in PATH elements.
37438case $as_dir/ in
37439 ./ | .// | /cC/* | \
37440 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
f95e4495 37441 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
e6cc62c6
VS
37442 /usr/ucb/* ) ;;
37443 *)
37444 # OSF1 and SCO ODT 3.0 have their own names for install.
37445 # Don't use installbsd from OSF since it installs stuff as root
37446 # by default.
37447 for ac_prog in ginstall scoinst install; do
37448 for ac_exec_ext in '' $ac_executable_extensions; do
f95e4495
VS
37449 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
37450 if test $ac_prog = install &&
37451 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37452 # AIX install. It has an incompatible calling convention.
37453 :
37454 elif test $ac_prog = install &&
37455 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
37456 # program-specific install script used by HP pwplus--don't use.
37457 :
37458 else
37459 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
37460 break 3
37461 fi
37462 fi
fe0895cf 37463 done
e6cc62c6
VS
37464 done
37465 ;;
37466esac
37467done
37468
fe0895cf
VS
37469
37470fi
37471 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 37472 INSTALL=$ac_cv_path_install
fe0895cf
VS
37473 else
37474 # As a last resort, use the slow shell script. We don't cache a
37475 # path for INSTALL within a source directory, because that will
37476 # break other packages using the cache if that directory is
37477 # removed, or if the path is relative.
e6cc62c6 37478 INSTALL=$ac_install_sh
fe0895cf
VS
37479 fi
37480fi
e6cc62c6
VS
37481echo "$as_me:$LINENO: result: $INSTALL" >&5
37482echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
37483
37484# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
37485# It thinks the first close brace ends the variable substitution.
37486test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
37487
e6cc62c6 37488test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
37489
37490test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
37491
e6cc62c6
VS
37492 echo "$as_me:$LINENO: checking whether ln -s works" >&5
37493echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
37494LN_S=$as_ln_s
37495if test "$LN_S" = "ln -s"; then
37496 echo "$as_me:$LINENO: result: yes" >&5
37497echo "${ECHO_T}yes" >&6
fe0895cf 37498else
e6cc62c6
VS
37499 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
37500echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
37501fi
37502
37503
e6cc62c6
VS
37504 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
37505echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
f95e4495 37506set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
e6cc62c6
VS
37507if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
37508 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 37509else
e6cc62c6 37510 cat >conftest.make <<\_ACEOF
fe0895cf 37511all:
e6cc62c6
VS
37512 @echo 'ac_maketemp="$(MAKE)"'
37513_ACEOF
fe0895cf 37514# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 37515eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
37516if test -n "$ac_maketemp"; then
37517 eval ac_cv_prog_make_${ac_make}_set=yes
37518else
37519 eval ac_cv_prog_make_${ac_make}_set=no
37520fi
e6cc62c6 37521rm -f conftest.make
fe0895cf
VS
37522fi
37523if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
37524 echo "$as_me:$LINENO: result: yes" >&5
37525echo "${ECHO_T}yes" >&6
fe0895cf
VS
37526 SET_MAKE=
37527else
e6cc62c6
VS
37528 echo "$as_me:$LINENO: result: no" >&5
37529echo "${ECHO_T}no" >&6
fe0895cf
VS
37530 SET_MAKE="MAKE=${MAKE-make}"
37531fi
37532
e6cc62c6
VS
37533
37534
874d12cf
VS
37535 if test -n "$ac_tool_prefix"; then
37536 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
37537set dummy ${ac_tool_prefix}ar; ac_word=$2
e6cc62c6
VS
37538echo "$as_me:$LINENO: checking for $ac_word" >&5
37539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37540if test "${ac_cv_prog_AR+set}" = set; then
37541 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37542else
37543 if test -n "$AR"; then
37544 ac_cv_prog_AR="$AR" # Let the user override the test.
37545else
e6cc62c6
VS
37546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37547for as_dir in $PATH
37548do
37549 IFS=$as_save_IFS
37550 test -z "$as_dir" && as_dir=.
37551 for ac_exec_ext in '' $ac_executable_extensions; do
37552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 37553 ac_cv_prog_AR="${ac_tool_prefix}ar"
e6cc62c6
VS
37554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37555 break 2
37556 fi
37557done
37558done
37559
fe0895cf
VS
37560fi
37561fi
e6cc62c6 37562AR=$ac_cv_prog_AR
fe0895cf 37563if test -n "$AR"; then
e6cc62c6
VS
37564 echo "$as_me:$LINENO: result: $AR" >&5
37565echo "${ECHO_T}$AR" >&6
fe0895cf 37566else
e6cc62c6
VS
37567 echo "$as_me:$LINENO: result: no" >&5
37568echo "${ECHO_T}no" >&6
fe0895cf
VS
37569fi
37570
874d12cf
VS
37571fi
37572if test -z "$ac_cv_prog_AR"; then
37573 ac_ct_AR=$AR
37574 # Extract the first word of "ar", so it can be a program name with args.
37575set dummy ar; ac_word=$2
37576echo "$as_me:$LINENO: checking for $ac_word" >&5
37577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37578if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
37579 echo $ECHO_N "(cached) $ECHO_C" >&6
37580else
37581 if test -n "$ac_ct_AR"; then
37582 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
37583else
37584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37585for as_dir in $PATH
37586do
37587 IFS=$as_save_IFS
37588 test -z "$as_dir" && as_dir=.
37589 for ac_exec_ext in '' $ac_executable_extensions; do
37590 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37591 ac_cv_prog_ac_ct_AR="ar"
37592 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37593 break 2
37594 fi
37595done
37596done
37597
37598 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
37599fi
37600fi
37601ac_ct_AR=$ac_cv_prog_ac_ct_AR
37602if test -n "$ac_ct_AR"; then
37603 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
37604echo "${ECHO_T}$ac_ct_AR" >&6
37605else
37606 echo "$as_me:$LINENO: result: no" >&5
37607echo "${ECHO_T}no" >&6
37608fi
37609
37610 AR=$ac_ct_AR
37611else
37612 AR="$ac_cv_prog_AR"
37613fi
37614
37615 if test -n "$ac_tool_prefix"; then
37616 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
37617set dummy ${ac_tool_prefix}strip; ac_word=$2
e6cc62c6
VS
37618echo "$as_me:$LINENO: checking for $ac_word" >&5
37619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37620if test "${ac_cv_prog_STRIP+set}" = set; then
37621 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37622else
37623 if test -n "$STRIP"; then
37624 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
37625else
e6cc62c6
VS
37626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37627for as_dir in $PATH
37628do
37629 IFS=$as_save_IFS
37630 test -z "$as_dir" && as_dir=.
37631 for ac_exec_ext in '' $ac_executable_extensions; do
37632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 37633 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
e6cc62c6
VS
37634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37635 break 2
37636 fi
37637done
37638done
37639
fe0895cf
VS
37640fi
37641fi
e6cc62c6 37642STRIP=$ac_cv_prog_STRIP
fe0895cf 37643if test -n "$STRIP"; then
e6cc62c6
VS
37644 echo "$as_me:$LINENO: result: $STRIP" >&5
37645echo "${ECHO_T}$STRIP" >&6
fe0895cf 37646else
e6cc62c6
VS
37647 echo "$as_me:$LINENO: result: no" >&5
37648echo "${ECHO_T}no" >&6
fe0895cf
VS
37649fi
37650
874d12cf
VS
37651fi
37652if test -z "$ac_cv_prog_STRIP"; then
37653 ac_ct_STRIP=$STRIP
37654 # Extract the first word of "strip", so it can be a program name with args.
37655set dummy strip; ac_word=$2
37656echo "$as_me:$LINENO: checking for $ac_word" >&5
37657echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37658if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
37659 echo $ECHO_N "(cached) $ECHO_C" >&6
37660else
37661 if test -n "$ac_ct_STRIP"; then
37662 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
37663else
37664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37665for as_dir in $PATH
37666do
37667 IFS=$as_save_IFS
37668 test -z "$as_dir" && as_dir=.
37669 for ac_exec_ext in '' $ac_executable_extensions; do
37670 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37671 ac_cv_prog_ac_ct_STRIP="strip"
37672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37673 break 2
37674 fi
37675done
37676done
37677
37678 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
37679fi
37680fi
37681ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
37682if test -n "$ac_ct_STRIP"; then
37683 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
37684echo "${ECHO_T}$ac_ct_STRIP" >&6
37685else
37686 echo "$as_me:$LINENO: result: no" >&5
37687echo "${ECHO_T}no" >&6
37688fi
37689
37690 STRIP=$ac_ct_STRIP
37691else
37692 STRIP="$ac_cv_prog_STRIP"
37693fi
37694
37695 if test -n "$ac_tool_prefix"; then
37696 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
37697set dummy ${ac_tool_prefix}nm; ac_word=$2
37698echo "$as_me:$LINENO: checking for $ac_word" >&5
37699echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37700if test "${ac_cv_prog_NM+set}" = set; then
37701 echo $ECHO_N "(cached) $ECHO_C" >&6
37702else
37703 if test -n "$NM"; then
37704 ac_cv_prog_NM="$NM" # Let the user override the test.
37705else
37706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37707for as_dir in $PATH
37708do
37709 IFS=$as_save_IFS
37710 test -z "$as_dir" && as_dir=.
37711 for ac_exec_ext in '' $ac_executable_extensions; do
37712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37713 ac_cv_prog_NM="${ac_tool_prefix}nm"
37714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37715 break 2
37716 fi
37717done
37718done
37719
37720fi
37721fi
37722NM=$ac_cv_prog_NM
37723if test -n "$NM"; then
37724 echo "$as_me:$LINENO: result: $NM" >&5
37725echo "${ECHO_T}$NM" >&6
37726else
37727 echo "$as_me:$LINENO: result: no" >&5
37728echo "${ECHO_T}no" >&6
37729fi
37730
37731fi
37732if test -z "$ac_cv_prog_NM"; then
37733 ac_ct_NM=$NM
37734 # Extract the first word of "nm", so it can be a program name with args.
37735set dummy nm; ac_word=$2
37736echo "$as_me:$LINENO: checking for $ac_word" >&5
37737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37738if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
37739 echo $ECHO_N "(cached) $ECHO_C" >&6
37740else
37741 if test -n "$ac_ct_NM"; then
37742 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
37743else
37744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37745for as_dir in $PATH
37746do
37747 IFS=$as_save_IFS
37748 test -z "$as_dir" && as_dir=.
37749 for ac_exec_ext in '' $ac_executable_extensions; do
37750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37751 ac_cv_prog_ac_ct_NM="nm"
37752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37753 break 2
37754 fi
37755done
37756done
37757
37758 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
37759fi
37760fi
37761ac_ct_NM=$ac_cv_prog_ac_ct_NM
37762if test -n "$ac_ct_NM"; then
37763 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
37764echo "${ECHO_T}$ac_ct_NM" >&6
37765else
37766 echo "$as_me:$LINENO: result: no" >&5
37767echo "${ECHO_T}no" >&6
37768fi
37769
37770 NM=$ac_ct_NM
37771else
37772 NM="$ac_cv_prog_NM"
37773fi
37774
fe0895cf 37775
f95e4495 37776 case ${BAKEFILE_HOST} in
fe0895cf
VS
37777 *-hp-hpux* )
37778 INSTALL_DIR="mkdir"
37779 ;;
37780 *) INSTALL_DIR="$INSTALL -d"
37781 ;;
37782 esac
e6cc62c6 37783
fe0895cf 37784
6b9d41a5 37785 LDFLAGS_GUI=
f95e4495 37786 case ${BAKEFILE_HOST} in
6b9d41a5
VS
37787 *-*-cygwin* | *-*-mingw32* )
37788 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
37789 esac
37790
37791
fe0895cf 37792 fi
e6cc62c6
VS
37793
37794 echo "$as_me:$LINENO: checking if make is GNU make" >&5
37795echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 37796if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 37797 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 37798else
e6cc62c6 37799
fe0895cf
VS
37800 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
37801 egrep -s GNU > /dev/null); then
37802 bakefile_cv_prog_makeisgnu="yes"
37803 else
37804 bakefile_cv_prog_makeisgnu="no"
37805 fi
fe0895cf 37806
e6cc62c6 37807fi
49b0a3aa
VS
37808echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
37809echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
37810
37811 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
37812 IF_GNU_MAKE=""
37813 else
37814 IF_GNU_MAKE="#"
37815 fi
fe0895cf 37816
e6cc62c6
VS
37817
37818
fe0895cf
VS
37819 PLATFORM_UNIX=0
37820 PLATFORM_WIN32=0
37821 PLATFORM_MSDOS=0
37822 PLATFORM_MAC=0
37823 PLATFORM_MACOSX=0
96c1699d 37824 PLATFORM_OS2=0
e6cc62c6 37825
f95e4495
VS
37826 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
37827 case "${BAKEFILE_HOST}" in
37828 *-*-cygwin* | *-*-mingw32* )
37829 PLATFORM_WIN32=1
37830 ;;
37831 *-pc-msdosdjgpp )
37832 PLATFORM_MSDOS=1
37833 ;;
37834 *-pc-os2_emx | *-pc-os2-emx )
37835 PLATFORM_OS2=1
37836 ;;
37837 powerpc-*-darwin* )
37838 PLATFORM_MAC=1
37839 PLATFORM_MACOSX=1
37840 ;;
37841 * )
37842 PLATFORM_UNIX=1
37843 ;;
37844 esac
37845 else
37846 case "$BAKEFILE_FORCE_PLATFORM" in
37847 win32 )
37848 PLATFORM_WIN32=1
37849 ;;
37850 msdos )
37851 PLATFORM_MSDOS=1
37852 ;;
37853 os2 )
37854 PLATFORM_OS2=1
37855 ;;
37856 darwin )
37857 PLATFORM_MAC=1
37858 PLATFORM_MACOSX=1
37859 ;;
37860 unix )
37861 PLATFORM_UNIX=1
37862 ;;
37863 * )
37864 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
37865echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
37866 { (exit 1); exit 1; }; }
37867 ;;
37868 esac
37869 fi
fe0895cf 37870
fe0895cf 37871
e6cc62c6
VS
37872
37873
37874
37875
37876
37877
96c1699d 37878
fe0895cf 37879 SO_SUFFIX="so"
131f235d 37880 SO_SUFFIX_MODULE="so"
fe0895cf 37881 EXEEXT=""
4b1f6360 37882 LIBPREFIX=lib
fe0895cf 37883 DLLPREFIX=lib
131f235d 37884 DLLPREFIX_MODULE=
e6cc62c6 37885
f95e4495 37886 case "${BAKEFILE_HOST}" in
fe0895cf
VS
37887 *-hp-hpux* )
37888 SO_SUFFIX="sl"
131f235d 37889 SO_SUFFIX_MODULE="sl"
fe0895cf
VS
37890 ;;
37891 *-*-aix* )
37892 SO_SUFFIX="a"
131f235d 37893 SO_SUFFIX_MODULE="a"
fe0895cf
VS
37894 ;;
37895 *-*-cygwin* | *-*-mingw32* )
37896 SO_SUFFIX="dll"
131f235d 37897 SO_SUFFIX_MODULE="dll"
fe0895cf
VS
37898 EXEEXT=".exe"
37899 DLLPREFIX=""
37900 ;;
4b1f6360
VS
37901 *-pc-msdosdjgpp )
37902 EXEEXT=".exe"
37903 DLLPREFIX=""
37904 ;;
37905 *-pc-os2_emx | *-pc-os2-emx )
fe0895cf
VS
37906 EXEEXT=".exe"
37907 DLLPREFIX=""
4b1f6360 37908 LIBPREFIX=""
fe0895cf
VS
37909 ;;
37910 powerpc-*-darwin* )
37911 SO_SUFFIX="dylib"
131f235d 37912 SO_SUFFIX_MODULE="bundle"
fe0895cf
VS
37913 ;;
37914 esac
37915
fe0895cf 37916
e6cc62c6
VS
37917
37918
37919
37920
131f235d
VS
37921
37922
4b1f6360 37923
fe0895cf
VS
37924 SHARED_LD_CC="\$(CC) -shared -o"
37925 SHARED_LD_CXX="\$(CXX) -shared -o"
37926
37927 if test "x$GCC" = "xyes"; then
37928 PIC_FLAG="-fPIC"
37929 fi
37930
f95e4495 37931 case "${BAKEFILE_HOST}" in
fe0895cf
VS
37932 *-hp-hpux* )
37933 if test "x$GCC" = "xyes"; then
37934 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
37935 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
37936 else
37937 LDFLAGS="$LDFLAGS -L/usr/lib"
37938
37939 SHARED_LD_CC="${CC} -b -o"
37940 SHARED_LD_CXX="${CXX} -b -o"
37941 PIC_FLAG="+Z"
37942 fi
37943 ;;
37944
37945 *-*-linux* )
37946 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
37947 echo "$as_me:$LINENO: checking for Intel compiler" >&5
37948echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
37949if test "${bakefile_cv_prog_icc+set}" = set; then
37950 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 37951else
fe0895cf 37952
e6cc62c6 37953 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
37954/* confdefs.h. */
37955_ACEOF
37956cat confdefs.h >>conftest.$ac_ext
37957cat >>conftest.$ac_ext <<_ACEOF
37958/* end confdefs.h. */
37959
37960int
37961main ()
37962{
fe0895cf
VS
37963
37964 #ifndef __INTEL_COMPILER
37965 #error Not icc
37966 #endif
e6cc62c6
VS
37967
37968 ;
37969 return 0;
37970}
37971_ACEOF
37972rm -f conftest.$ac_objext
37973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 37974 (eval $ac_compile) 2>conftest.er1
e6cc62c6 37975 ac_status=$?
f95e4495
VS
37976 grep -v '^ *+' conftest.er1 >conftest.err
37977 rm -f conftest.er1
37978 cat conftest.err >&5
e6cc62c6
VS
37979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37980 (exit $ac_status); } &&
f95e4495
VS
37981 { ac_try='test -z "$ac_c_werror_flag"
37982 || test ! -s conftest.err'
37983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37984 (eval $ac_try) 2>&5
37985 ac_status=$?
37986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37987 (exit $ac_status); }; } &&
37988 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
37989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37990 (eval $ac_try) 2>&5
37991 ac_status=$?
37992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37993 (exit $ac_status); }; }; then
fe0895cf
VS
37994 bakefile_cv_prog_icc=yes
37995else
e6cc62c6
VS
37996 echo "$as_me: failed program was:" >&5
37997sed 's/^/| /' conftest.$ac_ext >&5
37998
37999bakefile_cv_prog_icc=no
38000
fe0895cf 38001fi
f95e4495 38002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fe0895cf 38003
e6cc62c6
VS
38004fi
38005echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
38006echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
38007 if test "$bakefile_cv_prog_icc" = "yes"; then
38008 PIC_FLAG="-KPIC"
38009 fi
38010 fi
38011 ;;
38012
38013 *-*-solaris2* )
38014 if test "x$GCC" != xyes ; then
38015 SHARED_LD_CC="${CC} -G -o"
38016 SHARED_LD_CXX="${CXX} -G -o"
38017 PIC_FLAG="-KPIC"
38018 fi
38019 ;;
38020
38021 *-*-darwin* )
38022 CFLAGS="$CFLAGS -fno-common"
38023 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
38024
38025
2a879853 38026 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
43948499
RD
38027echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
38028if test "${wx_cv_gcc31+set}" = set; then
38029 echo $ECHO_N "(cached) $ECHO_C" >&6
38030else
38031
2a879853 38032 cat >conftest.$ac_ext <<_ACEOF
43948499
RD
38033/* confdefs.h. */
38034_ACEOF
38035cat confdefs.h >>conftest.$ac_ext
38036cat >>conftest.$ac_ext <<_ACEOF
38037/* end confdefs.h. */
38038
38039int
38040main ()
38041{
38042
2a879853
VS
38043 #if (__GNUC__ < 3) || \
38044 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
38045 #error old gcc
38046 #endif
43948499
RD
38047
38048 ;
38049 return 0;
38050}
38051_ACEOF
38052rm -f conftest.$ac_objext
38053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 38054 (eval $ac_compile) 2>conftest.er1
43948499 38055 ac_status=$?
f95e4495
VS
38056 grep -v '^ *+' conftest.er1 >conftest.err
38057 rm -f conftest.er1
38058 cat conftest.err >&5
43948499
RD
38059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38060 (exit $ac_status); } &&
f95e4495
VS
38061 { ac_try='test -z "$ac_c_werror_flag"
38062 || test ! -s conftest.err'
38063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38064 (eval $ac_try) 2>&5
38065 ac_status=$?
38066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38067 (exit $ac_status); }; } &&
38068 { ac_try='test -s conftest.$ac_objext'
43948499
RD
38069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38070 (eval $ac_try) 2>&5
38071 ac_status=$?
38072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38073 (exit $ac_status); }; }; then
38074
2a879853 38075 wx_cv_gcc31=yes
43948499
RD
38076
38077else
38078 echo "$as_me: failed program was:" >&5
38079sed 's/^/| /' conftest.$ac_ext >&5
38080
38081
2a879853 38082 wx_cv_gcc31=no
43948499
RD
38083
38084
38085fi
f95e4495 38086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43948499
RD
38087
38088fi
38089echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
38090echo "${ECHO_T}$wx_cv_gcc31" >&6
2a879853 38091 if test "$wx_cv_gcc31" = "no"; then
43948499 38092 cat <<EOF >shared-ld-sh
fe0895cf
VS
38093#!/bin/sh
38094#-----------------------------------------------------------------------------
38095#-- Name: distrib/mac/shared-ld-sh
38096#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
38097#-- Author: Gilles Depeyrot
38098#-- Copyright: (c) 2002 Gilles Depeyrot
38099#-- Licence: any use permitted
38100#-----------------------------------------------------------------------------
38101
38102verbose=0
38103args=""
38104objects=""
131f235d 38105linking_flag="-dynamiclib"
fe0895cf
VS
38106
38107while test \${#} -gt 0; do
38108 case \${1} in
38109
38110 -v)
38111 verbose=1
38112 ;;
38113
38114 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
38115 # collect these options and values
38116 args="\${args} \${1} \${2}"
38117 shift
38118 ;;
38119
74500461 38120 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
fe0895cf
VS
38121 # collect these options
38122 args="\${args} \${1}"
38123 ;;
38124
131f235d
VS
38125 -dynamiclib|-bundle)
38126 linking_flag="\${1}"
fe0895cf
VS
38127 ;;
38128
38129 -*)
38130 echo "shared-ld: unhandled option '\${1}'"
38131 exit 1
38132 ;;
38133
4d264332 38134 *.o | *.a | *.dylib)
fe0895cf
VS
38135 # collect object files
38136 objects="\${objects} \${1}"
38137 ;;
38138
38139 *)
38140 echo "shared-ld: unhandled argument '\${1}'"
38141 exit 1
38142 ;;
38143
38144 esac
38145 shift
38146done
38147
38148#
38149# Link one module containing all the others
38150#
38151if test \${verbose} = 1; then
38152 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
38153fi
38154c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
38155status=\$?
38156if test \${status} != 0; then
38157 exit \${status}
38158fi
38159
38160#
38161# Link the shared library from the single module created
38162#
38163if test \${verbose} = 1; then
2a879853 38164 echo "cc \${linking_flag} master.\$\$.o \${args}"
fe0895cf 38165fi
131f235d 38166c++ \${linking_flag} master.\$\$.o \${args}
fe0895cf
VS
38167status=\$?
38168if test \${status} != 0; then
38169 exit \${status}
38170fi
38171
38172#
38173# Remove intermediate module
38174#
38175rm -f master.\$\$.o
38176
38177exit 0
38178EOF
43948499 38179 chmod +x shared-ld-sh
fe0895cf 38180
7f523214
VS
38181 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
38182 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
2a879853
VS
38183 SHARED_LD_CXX="$SHARED_LD_CC"
38184 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
38185 else
7f523214
VS
38186 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
38187 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
38188 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
38189 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
2a879853
VS
38190 fi
38191
fe0895cf 38192 PIC_FLAG="-dynamic -fPIC"
2a879853 38193 ;;
fe0895cf
VS
38194
38195 *-*-aix* )
38196 if test "x$GCC" != "xyes"; then
38197 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
38198set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
38199echo "$as_me:$LINENO: checking for $ac_word" >&5
38200echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38201if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
38202 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
38203else
38204 if test -n "$AIX_CXX_LD"; then
38205 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
38206else
e6cc62c6
VS
38207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38208for as_dir in $PATH
38209do
38210 IFS=$as_save_IFS
38211 test -z "$as_dir" && as_dir=.
38212 for ac_exec_ext in '' $ac_executable_extensions; do
38213 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38214 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
38215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38216 break 2
38217 fi
38218done
38219done
38220
fe0895cf
VS
38221 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
38222fi
38223fi
e6cc62c6 38224AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 38225if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
38226 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
38227echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 38228else
e6cc62c6
VS
38229 echo "$as_me:$LINENO: result: no" >&5
38230echo "${ECHO_T}no" >&6
fe0895cf
VS
38231fi
38232
38233 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
38234 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
38235 fi
38236 ;;
38237
38238 *-*-beos* )
38239 SHARED_LD_CC="${LD} -shared -o"
38240 SHARED_LD_CXX="${LD} -shared -o"
38241 ;;
38242
38243 *-*-irix* )
38244 if test "x$GCC" != "xyes"; then
38245 PIC_FLAG="-KPIC"
38246 fi
38247 ;;
e6cc62c6 38248
fe0895cf
VS
38249 *-*-cygwin* | *-*-mingw32* )
38250 PIC_FLAG=""
38251 ;;
e6cc62c6 38252
fe0895cf
VS
38253 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
38254 *-*-sunos4* | \
38255 *-*-osf* | \
38256 *-*-dgux5* | \
4b1f6360 38257 *-pc-os2_emx | *-pc-os2-emx | \
fe0895cf
VS
38258 *-*-sysv5* )
38259 ;;
38260
38261 *)
f95e4495
VS
38262 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
38263echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
e6cc62c6 38264 { (exit 1); exit 1; }; }
fe0895cf
VS
38265 esac
38266
131f235d
VS
38267 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
38268 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
38269 fi
38270 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
239394fb 38271 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
131f235d
VS
38272 fi
38273
38274
38275
fe0895cf 38276
e6cc62c6
VS
38277
38278
38279
38280
fe0895cf
VS
38281 USE_SOVERSION=0
38282 USE_SOVERLINUX=0
38283 USE_SOVERSOLARIS=0
38284 USE_SOSYMLINKS=0
38285 USE_MACVERSION=0
38286 SONAME_FLAG=
38287
f95e4495 38288 case "${BAKEFILE_HOST}" in
fe0895cf
VS
38289 *-*-linux* )
38290 SONAME_FLAG="-Wl,-soname,"
38291 USE_SOVERSION=1
38292 USE_SOVERLINUX=1
38293 USE_SOSYMLINKS=1
38294 ;;
38295
38296 *-*-solaris2* )
38297 SONAME_FLAG="-h "
38298 USE_SOVERSION=1
38299 USE_SOVERSOLARIS=1
38300 USE_SOSYMLINKS=1
38301 ;;
38302
38303 *-*-darwin* )
38304 USE_MACVERSION=1
38305 USE_SOVERSION=1
38306 USE_SOSYMLINKS=1
e6cc62c6 38307 ;;
fe0895cf
VS
38308 esac
38309
fe0895cf 38310
e6cc62c6
VS
38311
38312
38313
38314
38315
38316
38317
49b0a3aa
VS
38318 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
38319echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
38320 DEPS_TRACKING=0
38321
fe0895cf 38322 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
38323 DEPSMODE=gcc
38324 DEPS_TRACKING=1
f95e4495 38325 case "${BAKEFILE_HOST}" in
3e5c3c83
VS
38326 powerpc-*-darwin* )
38327 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
38328 ;;
38329 * )
38330 DEPSFLAG_GCC="-MMD"
38331 ;;
38332 esac
49b0a3aa
VS
38333 echo "$as_me:$LINENO: result: gcc" >&5
38334echo "${ECHO_T}gcc" >&6
38335 else
38336 echo "$as_me:$LINENO: result: none" >&5
38337echo "${ECHO_T}none" >&6
38338 fi
38339
38340 if test $DEPS_TRACKING = 1 ; then
38341 cat <<EOF >bk-deps
38342#!/bin/sh
38343
45842500
VS
38344# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
38345# script. It is used to track C/C++ files dependencies in portable way.
49b0a3aa
VS
38346#
38347# Permission is given to use this file in any way.
38348
38349DEPSMODE=$DEPSMODE
38350DEPSDIR=.deps
3e5c3c83 38351DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
38352
38353mkdir -p \$DEPSDIR
38354
38355if test \$DEPSMODE = gcc ; then
3e5c3c83 38356 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
38357 status=\${?}
38358 if test \${status} != 0 ; then
38359 exit \${status}
38360 fi
38361 # move created file to the location we want it in:
38362 while test \${#} -gt 0; do
38363 case "\${1}" in
38364 -o )
38365 shift
38366 objfile=\${1}
38367 ;;
38368 -* )
38369 ;;
38370 * )
38371 srcfile=\${1}
38372 ;;
38373 esac
38374 shift
38375 done
38376 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
38377 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
38378 if test -f \$depfile ; then
38379 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
38380 rm -f \$depfile
38381 else
38382 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
38383 if test -f \$depfile ; then
9d0be83a 38384 sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
38385 rm -f \$depfile
38386 fi
38387 fi
49b0a3aa
VS
38388 exit 0
38389else
38390 \${*}
38391 exit \${?}
38392fi
38393EOF
38394 chmod +x bk-deps
fe0895cf 38395 fi
fe0895cf 38396
e6cc62c6
VS
38397
38398
38399
fe0895cf
VS
38400 RESCOMP=
38401 SETFILE=
38402
f95e4495 38403 case ${BAKEFILE_HOST} in
fe0895cf
VS
38404 *-*-cygwin* | *-*-mingw32* )
38405 if test "$build" != "$host" ; then
38406 RESCOMP=$host_alias-windres
38407 else
38408 # Extract the first word of "windres", so it can be a program name with args.
38409set dummy windres; ac_word=$2
e6cc62c6
VS
38410echo "$as_me:$LINENO: checking for $ac_word" >&5
38411echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38412if test "${ac_cv_prog_RESCOMP+set}" = set; then
38413 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
38414else
38415 if test -n "$RESCOMP"; then
38416 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
38417else
e6cc62c6
VS
38418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38419for as_dir in $PATH
38420do
38421 IFS=$as_save_IFS
38422 test -z "$as_dir" && as_dir=.
38423 for ac_exec_ext in '' $ac_executable_extensions; do
38424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38425 ac_cv_prog_RESCOMP="windres"
38426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38427 break 2
38428 fi
38429done
38430done
38431
fe0895cf
VS
38432 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
38433fi
38434fi
e6cc62c6 38435RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 38436if test -n "$RESCOMP"; then
e6cc62c6
VS
38437 echo "$as_me:$LINENO: result: $RESCOMP" >&5
38438echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 38439else
e6cc62c6
VS
38440 echo "$as_me:$LINENO: result: no" >&5
38441echo "${ECHO_T}no" >&6
fe0895cf
VS
38442fi
38443
38444 fi
38445 ;;
e6cc62c6 38446
fe0895cf
VS
38447 *-*-darwin* )
38448 # Extract the first word of "Rez", so it can be a program name with args.
38449set dummy Rez; ac_word=$2
e6cc62c6
VS
38450echo "$as_me:$LINENO: checking for $ac_word" >&5
38451echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38452if test "${ac_cv_prog_RESCOMP+set}" = set; then
38453 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
38454else
38455 if test -n "$RESCOMP"; then
38456 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
38457else
e6cc62c6
VS
38458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38459for as_dir in $PATH
38460do
38461 IFS=$as_save_IFS
38462 test -z "$as_dir" && as_dir=.
38463 for ac_exec_ext in '' $ac_executable_extensions; do
38464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38465 ac_cv_prog_RESCOMP="Rez"
38466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38467 break 2
38468 fi
38469done
38470done
38471
fe0895cf
VS
38472 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
38473fi
38474fi
e6cc62c6 38475RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 38476if test -n "$RESCOMP"; then
e6cc62c6
VS
38477 echo "$as_me:$LINENO: result: $RESCOMP" >&5
38478echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 38479else
e6cc62c6
VS
38480 echo "$as_me:$LINENO: result: no" >&5
38481echo "${ECHO_T}no" >&6
fe0895cf
VS
38482fi
38483
38484 # Extract the first word of "SetFile", so it can be a program name with args.
38485set dummy SetFile; ac_word=$2
e6cc62c6
VS
38486echo "$as_me:$LINENO: checking for $ac_word" >&5
38487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
38488if test "${ac_cv_prog_SETFILE+set}" = set; then
38489 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
38490else
38491 if test -n "$SETFILE"; then
38492 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
38493else
e6cc62c6
VS
38494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38495for as_dir in $PATH
38496do
38497 IFS=$as_save_IFS
38498 test -z "$as_dir" && as_dir=.
38499 for ac_exec_ext in '' $ac_executable_extensions; do
38500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38501 ac_cv_prog_SETFILE="SetFile"
38502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38503 break 2
38504 fi
38505done
38506done
38507
fe0895cf
VS
38508 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
38509fi
38510fi
e6cc62c6 38511SETFILE=$ac_cv_prog_SETFILE
fe0895cf 38512if test -n "$SETFILE"; then
e6cc62c6
VS
38513 echo "$as_me:$LINENO: result: $SETFILE" >&5
38514echo "${ECHO_T}$SETFILE" >&6
fe0895cf 38515else
e6cc62c6
VS
38516 echo "$as_me:$LINENO: result: no" >&5
38517echo "${ECHO_T}no" >&6
fe0895cf
VS
38518fi
38519
38520 ;;
38521 esac
38522
fe0895cf
VS
38523
38524
e6cc62c6
VS
38525
38526
38527
38528
45842500 38529
f93ca9fd
VS
38530
38531
45842500
VS
38532 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
38533if test "${enable_precomp_headers+set}" = set; then
38534 enableval="$enable_precomp_headers"
38535 bk_use_pch="$enableval"
38536fi;
38537
38538 GCC_PCH=0
38539
38540 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
38541 if test "x$GCC" = "xyes"; then
38542 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
38543echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
38544 cat >conftest.$ac_ext <<_ACEOF
45842500
VS
38545/* confdefs.h. */
38546_ACEOF
38547cat confdefs.h >>conftest.$ac_ext
38548cat >>conftest.$ac_ext <<_ACEOF
38549/* end confdefs.h. */
38550
38551int
38552main ()
38553{
38554
8bcf2d20
VS
38555 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
38556 #error "no pch support"
38557 #endif
38558 #if (__GNUC__ < 3)
38559 #error "no pch support"
38560 #endif
38561 #if (__GNUC__ == 3) && \
38562 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
38563 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
38564 #error "no pch support"
45842500
VS
38565 #endif
38566
38567 ;
38568 return 0;
38569}
38570_ACEOF
38571rm -f conftest.$ac_objext
38572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 38573 (eval $ac_compile) 2>conftest.er1
45842500 38574 ac_status=$?
f95e4495
VS
38575 grep -v '^ *+' conftest.er1 >conftest.err
38576 rm -f conftest.er1
38577 cat conftest.err >&5
45842500
VS
38578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38579 (exit $ac_status); } &&
f95e4495
VS
38580 { ac_try='test -z "$ac_c_werror_flag"
38581 || test ! -s conftest.err'
38582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38583 (eval $ac_try) 2>&5
38584 ac_status=$?
38585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38586 (exit $ac_status); }; } &&
38587 { ac_try='test -s conftest.$ac_objext'
45842500
VS
38588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38589 (eval $ac_try) 2>&5
38590 ac_status=$?
38591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38592 (exit $ac_status); }; }; then
38593
38594 echo "$as_me:$LINENO: result: yes" >&5
38595echo "${ECHO_T}yes" >&6
38596 CPPFLAGS="-fpch-deps $CPPFLAGS"
38597 GCC_PCH=1
38598
38599else
38600 echo "$as_me: failed program was:" >&5
38601sed 's/^/| /' conftest.$ac_ext >&5
38602
38603
38604 echo "$as_me:$LINENO: result: no" >&5
38605echo "${ECHO_T}no" >&6
38606
38607fi
f95e4495 38608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45842500
VS
38609 if test $GCC_PCH = 1 ; then
38610 cat <<EOF >bk-make-pch
38611#!/bin/sh
38612
38613# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
38614# script. It is used to generated precompiled headers.
38615#
38616# Permission is given to use this file in any way.
38617
38618outfile="\${1}"
38619header="\${2}"
38620shift
38621shift
38622
38623compiler=
38624headerfile=
38625while test \${#} -gt 0; do
38626 case "\${1}" in
38627 -I* )
38628 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
38629 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
38630 headerfile="\${incdir}/\${header}"
38631 fi
38632 ;;
38633 esac
38634 compiler="\${compiler} \${1}"
38635 shift
38636done
38637
38638if test "x\${headerfile}" = "x" ; then
38639 echo "error: can't find header \${header} in include paths" >2
38640else
38641 if test -f \${outfile} ; then
38642 rm -f \${outfile}
38643 else
38644 mkdir -p \`dirname \${outfile}\`
38645 fi
38646 depsfile=".deps/\`basename \${outfile}\`.d"
38647 mkdir -p .deps
38648 # can do this because gcc is >= 3.4:
38649 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
38650 exit \${?}
38651fi
38652EOF
38653 chmod +x bk-make-pch
38654 fi
38655 fi
38656 fi
38657
38658
38659
38660
38661
d78c94f2 38662 COND_BUILD_DEBUG="#"
6f628073 38663 if test "x$BUILD" = "xdebug" ; then
d78c94f2 38664 COND_BUILD_DEBUG=""
6f628073
VS
38665 fi
38666
6c67131a
VS
38667 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
38668 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
38669 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
38670 fi
38671
38672 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
38673 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
38674 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
38675 fi
38676
f93ca9fd
VS
38677 COND_BUILD_DEBUG_UNICODE_0="#"
38678 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
38679 COND_BUILD_DEBUG_UNICODE_0=""
38680 fi
38681
38682 COND_BUILD_DEBUG_UNICODE_1="#"
38683 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
38684 COND_BUILD_DEBUG_UNICODE_1=""
38685 fi
38686
d78c94f2 38687 COND_BUILD_RELEASE="#"
6f628073 38688 if test "x$BUILD" = "xrelease" ; then
d78c94f2 38689 COND_BUILD_RELEASE=""
6b9d41a5
VS
38690 fi
38691
6c67131a
VS
38692 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
38693 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
38694 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
38695 fi
38696
f93ca9fd
VS
38697 COND_BUILD_RELEASE_UNICODE_0="#"
38698 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
38699 COND_BUILD_RELEASE_UNICODE_0=""
38700 fi
38701
38702 COND_BUILD_RELEASE_UNICODE_1="#"
38703 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
38704 COND_BUILD_RELEASE_UNICODE_1=""
38705 fi
38706
6c67131a
VS
38707 COND_DEBUG_FLAG_1="#"
38708 if test "x$DEBUG_FLAG" = "x1" ; then
38709 COND_DEBUG_FLAG_1=""
38710 fi
38711
38712 COND_DEBUG_INFO_0="#"
38713 if test "x$DEBUG_INFO" = "x0" ; then
38714 COND_DEBUG_INFO_0=""
38715 fi
38716
38717 COND_DEBUG_INFO_1="#"
38718 if test "x$DEBUG_INFO" = "x1" ; then
38719 COND_DEBUG_INFO_1=""
38720 fi
38721
f95cd8fa
VS
38722 COND_DEPS_TRACKING_0="#"
38723 if test "x$DEPS_TRACKING" = "x0" ; then
38724 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
38725 fi
38726
8ee2dd05
VS
38727 COND_DEPS_TRACKING_1="#"
38728 if test "x$DEPS_TRACKING" = "x1" ; then
38729 COND_DEPS_TRACKING_1=""
38730 fi
38731
45842500
VS
38732 COND_GCC_PCH_1="#"
38733 if test "x$GCC_PCH" = "x1" ; then
38734 COND_GCC_PCH_1=""
38735 fi
38736
6f628073
VS
38737 COND_MONOLITHIC_0="#"
38738 if test "x$MONOLITHIC" = "x0" ; then
38739 COND_MONOLITHIC_0=""
6b9d41a5
VS
38740 fi
38741
6f628073
VS
38742 COND_MONOLITHIC_0_SHARED_0="#"
38743 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
38744 COND_MONOLITHIC_0_SHARED_0=""
38745 fi
38746
38747 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
38748 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
38749 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 38750 fi
e6cc62c6 38751
8772a1a7
VS
38752 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
38753 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
38754 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
38755 fi
38756
250700e4
RD
38757 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
38758 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
38759 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
38760 fi
38761
eb69fda5
VS
38762 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
38763 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
38764 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
38765 fi
38766
8ee2dd05
VS
38767 COND_MONOLITHIC_0_SHARED_1="#"
38768 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
38769 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 38770 fi
e6cc62c6 38771
6f628073
VS
38772 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
38773 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
38774 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
38775 fi
38776
8772a1a7
VS
38777 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
38778 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
38779 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
38780 fi
38781
250700e4
RD
38782 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
38783 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
38784 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
38785 fi
38786
eb69fda5
VS
38787 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
38788 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
38789 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
38790 fi
38791
f95e4495
VS
38792 COND_MONOLITHIC_0_USE_ODBC_1="#"
38793 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
38794 COND_MONOLITHIC_0_USE_ODBC_1=""
38795 fi
38796
3af038c0
VS
38797 COND_MONOLITHIC_1="#"
38798 if test "x$MONOLITHIC" = "x1" ; then
38799 COND_MONOLITHIC_1=""
38800 fi
38801
6f628073
VS
38802 COND_MONOLITHIC_1_SHARED_0="#"
38803 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
38804 COND_MONOLITHIC_1_SHARED_0=""
38805 fi
38806
38807 COND_MONOLITHIC_1_SHARED_1="#"
38808 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
38809 COND_MONOLITHIC_1_SHARED_1=""
38810 fi
38811
3af038c0
VS
38812 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
38813 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
38814 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
38815 fi
38816
38817 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
38818 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
38819 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
38820 fi
38821
6f628073
VS
38822 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
38823 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
38824 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
38825 fi
38826
3af038c0
VS
38827 COND_PLATFORM_MACOSX_1="#"
38828 if test "x$PLATFORM_MACOSX" = "x1" ; then
38829 COND_PLATFORM_MACOSX_1=""
38830 fi
38831
250700e4
RD
38832 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
38833 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
38834 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
38835 fi
38836
38837 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
38838 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
38839 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
38840 fi
38841
38842 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
38843 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
38844 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
38845 fi
38846
3527f29c
VS
38847 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
38848 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
38849 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
38850 fi
38851
8ee2dd05
VS
38852 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
38853 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
38854 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
38855 fi
38856
45842500
VS
38857 COND_PLATFORM_MAC_1="#"
38858 if test "x$PLATFORM_MAC" = "x1" ; then
38859 COND_PLATFORM_MAC_1=""
38860 fi
38861
3d8c1de0
VS
38862 COND_PLATFORM_OS2_1="#"
38863 if test "x$PLATFORM_OS2" = "x1" ; then
38864 COND_PLATFORM_OS2_1=""
38865 fi
38866
8772a1a7
VS
38867 COND_PLATFORM_UNIX_0="#"
38868 if test "x$PLATFORM_UNIX" = "x0" ; then
38869 COND_PLATFORM_UNIX_0=""
38870 fi
38871
3af038c0
VS
38872 COND_PLATFORM_UNIX_1="#"
38873 if test "x$PLATFORM_UNIX" = "x1" ; then
38874 COND_PLATFORM_UNIX_1=""
38875 fi
38876
3527f29c
VS
38877 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
38878 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
38879 COND_PLATFORM_UNIX_1_USE_GUI_1=""
38880 fi
38881
f93ca9fd
VS
38882 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
38883 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
38884 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
38885 fi
38886
3af038c0
VS
38887 COND_PLATFORM_WIN32_0="#"
38888 if test "x$PLATFORM_WIN32" = "x0" ; then
38889 COND_PLATFORM_WIN32_0=""
38890 fi
38891
38892 COND_PLATFORM_WIN32_1="#"
38893 if test "x$PLATFORM_WIN32" = "x1" ; then
38894 COND_PLATFORM_WIN32_1=""
38895 fi
38896
45842500
VS
38897 COND_SHARED_0="#"
38898 if test "x$SHARED" = "x0" ; then
38899 COND_SHARED_0=""
38900 fi
38901
250700e4
RD
38902 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
38903 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
38904 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
38905 fi
38906
52a5a009
VS
38907 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
38908 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38909 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
38910 fi
38911
38912 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
38913 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38914 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
38915 fi
38916
38917 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
38918 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38919 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
38920 fi
38921
38922 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
38923 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
38924 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
38925 fi
38926
38927 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
38928 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
38929 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
38930 fi
38931
38932 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
38933 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
38934 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
38935 fi
38936
38937 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
38938 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
38939 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
38940 fi
38941
45842500
VS
38942 COND_SHARED_1="#"
38943 if test "x$SHARED" = "x1" ; then
38944 COND_SHARED_1=""
38945 fi
38946
250700e4
RD
38947 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
38948 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
38949 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
38950 fi
38951
6f628073
VS
38952 COND_TOOLKIT_COCOA="#"
38953 if test "x$TOOLKIT" = "xCOCOA" ; then
38954 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
38955 fi
38956
6f628073
VS
38957 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
38958 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38959 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
38960 fi
38961
6f628073
VS
38962 COND_TOOLKIT_GTK="#"
38963 if test "x$TOOLKIT" = "xGTK" ; then
38964 COND_TOOLKIT_GTK=""
f95cd8fa
VS
38965 fi
38966
6f628073
VS
38967 COND_TOOLKIT_GTK_USE_GUI_1="#"
38968 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
38969 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
38970 fi
38971
6f628073
VS
38972 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
38973 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38974 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
38975 fi
38976
3af038c0
VS
38977 COND_TOOLKIT_MAC="#"
38978 if test "x$TOOLKIT" = "xMAC" ; then
38979 COND_TOOLKIT_MAC=""
38980 fi
38981
8772a1a7
VS
38982 COND_TOOLKIT_MAC_USE_GUI_1="#"
38983 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
38984 COND_TOOLKIT_MAC_USE_GUI_1=""
38985 fi
38986
6f628073
VS
38987 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
38988 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38989 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
38990 fi
38991
6f628073
VS
38992 COND_TOOLKIT_MGL="#"
38993 if test "x$TOOLKIT" = "xMGL" ; then
38994 COND_TOOLKIT_MGL=""
8ee2dd05
VS
38995 fi
38996
6f628073
VS
38997 COND_TOOLKIT_MGL_USE_GUI_1="#"
38998 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
38999 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
39000 fi
39001
6f628073
VS
39002 COND_TOOLKIT_MOTIF="#"
39003 if test "x$TOOLKIT" = "xMOTIF" ; then
39004 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
39005 fi
39006
6f628073
VS
39007 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
39008 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
39009 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 39010 fi
e6cc62c6 39011
6f628073
VS
39012 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
39013 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39014 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
39015 fi
39016
6f628073
VS
39017 COND_TOOLKIT_MSW="#"
39018 if test "x$TOOLKIT" = "xMSW" ; then
39019 COND_TOOLKIT_MSW=""
8ee2dd05
VS
39020 fi
39021
6f628073
VS
39022 COND_TOOLKIT_MSW_USE_GUI_1="#"
39023 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
39024 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 39025 fi
e6cc62c6 39026
6f628073
VS
39027 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
39028 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39029 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 39030 fi
e6cc62c6 39031
96c1699d
VS
39032 COND_TOOLKIT_PM="#"
39033 if test "x$TOOLKIT" = "xPM" ; then
39034 COND_TOOLKIT_PM=""
39035 fi
39036
39037 COND_TOOLKIT_PM_USE_GUI_1="#"
39038 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
39039 COND_TOOLKIT_PM_USE_GUI_1=""
39040 fi
39041
39042 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
39043 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39044 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
39045 fi
39046
6f628073
VS
39047 COND_TOOLKIT_X11="#"
39048 if test "x$TOOLKIT" = "xX11" ; then
39049 COND_TOOLKIT_X11=""
9747f85d
VS
39050 fi
39051
6f628073
VS
39052 COND_TOOLKIT_X11_USE_GUI_1="#"
39053 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
39054 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
39055 fi
39056
3af038c0
VS
39057 COND_UNICODE_1="#"
39058 if test "x$UNICODE" = "x1" ; then
39059 COND_UNICODE_1=""
39060 fi
39061
7015ef3a
VZ
39062 COND_USE_EXCEPTIONS_0="#"
39063 if test "x$USE_EXCEPTIONS" = "x0" ; then
39064 COND_USE_EXCEPTIONS_0=""
39065 fi
39066
39067 COND_USE_EXCEPTIONS_1="#"
39068 if test "x$USE_EXCEPTIONS" = "x1" ; then
39069 COND_USE_EXCEPTIONS_1=""
39070 fi
39071
3af038c0
VS
39072 COND_USE_GUI_0="#"
39073 if test "x$USE_GUI" = "x0" ; then
39074 COND_USE_GUI_0=""
39075 fi
39076
39077 COND_USE_GUI_1="#"
39078 if test "x$USE_GUI" = "x1" ; then
39079 COND_USE_GUI_1=""
39080 fi
39081
e6cc62c6 39082 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
39083 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
39084 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 39085 fi
e6cc62c6
VS
39086
39087 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
39088 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
39089 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
39090 fi
39091
66a96744
VS
39092 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
39093 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39094 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
39095 fi
39096
39097 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
39098 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39099 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
39100 fi
39101
39102 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
39103 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39104 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
39105 fi
39106
57e7d4ac
VS
39107 COND_USE_ODBC_1="#"
39108 if test "x$USE_ODBC" = "x1" ; then
39109 COND_USE_ODBC_1=""
39110 fi
39111
f93ca9fd
VS
39112 COND_USE_PLUGINS_0="#"
39113 if test "x$USE_PLUGINS" = "x0" ; then
39114 COND_USE_PLUGINS_0=""
39115 fi
39116
6f628073
VS
39117 COND_USE_SOSYMLINKS_1="#"
39118 if test "x$USE_SOSYMLINKS" = "x1" ; then
39119 COND_USE_SOSYMLINKS_1=""
b625909c
VS
39120 fi
39121
6f628073
VS
39122 COND_USE_SOVERLINUX_1="#"
39123 if test "x$USE_SOVERLINUX" = "x1" ; then
39124 COND_USE_SOVERLINUX_1=""
b625909c
VS
39125 fi
39126
6f628073
VS
39127 COND_USE_SOVERSION_0="#"
39128 if test "x$USE_SOVERSION" = "x0" ; then
39129 COND_USE_SOVERSION_0=""
fddeb06b 39130 fi
fe0895cf 39131
6f628073
VS
39132 COND_USE_SOVERSOLARIS_1="#"
39133 if test "x$USE_SOVERSOLARIS" = "x1" ; then
39134 COND_USE_SOVERSOLARIS_1=""
fddeb06b 39135 fi
fe0895cf 39136
f93ca9fd
VS
39137 COND_WITH_PLUGIN_SDL_1="#"
39138 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
39139 COND_WITH_PLUGIN_SDL_1=""
39140 fi
39141
39142 COND_WITH_SDL_1="#"
39143 if test "x$WITH_SDL" = "x1" ; then
39144 COND_WITH_SDL_1=""
39145 fi
39146
3af038c0
VS
39147 COND_WXUNIV_1="#"
39148 if test "x$WXUNIV" = "x1" ; then
39149 COND_WXUNIV_1=""
39150 fi
39151
66a96744
VS
39152 COND_WXUSE_EXPAT_BUILTIN="#"
39153 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
39154 COND_WXUSE_EXPAT_BUILTIN=""
39155 fi
39156
02980527
VS
39157 COND_WXUSE_LIBJPEG_BUILTIN="#"
39158 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
39159 COND_WXUSE_LIBJPEG_BUILTIN=""
39160 fi
39161
39162 COND_WXUSE_LIBPNG_BUILTIN="#"
39163 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
39164 COND_WXUSE_LIBPNG_BUILTIN=""
39165 fi
39166
39167 COND_WXUSE_LIBTIFF_BUILTIN="#"
39168 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
39169 COND_WXUSE_LIBTIFF_BUILTIN=""
39170 fi
39171
39172 COND_WXUSE_ODBC_BUILTIN="#"
39173 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
39174 COND_WXUSE_ODBC_BUILTIN=""
39175 fi
39176
39177 COND_WXUSE_REGEX_BUILTIN="#"
39178 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
39179 COND_WXUSE_REGEX_BUILTIN=""
39180 fi
39181
39182 COND_WXUSE_ZLIB_BUILTIN="#"
39183 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
39184 COND_WXUSE_ZLIB_BUILTIN=""
39185 fi
39186
1772d20c 39187
fe0895cf 39188
fe0895cf 39189
fe0895cf 39190
45842500 39191if test $GCC_PCH = 1 ; then
130711ba 39192 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
45842500
VS
39193 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
39194else
39195 case "${host}" in
39196 powerpc-*-darwin* )
130711ba
VS
39197 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
39198 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
45842500 39199 ;;
45842500
VS
39200 esac
39201fi
fe0895cf
VS
39202
39203
fddeb06b 39204SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
39205
39206
39207
39208
39209
39210
39211
39212
39213
39214
39215
39216
39217
39218
39219
39220
39221
39222
39223
39224
39225
39226
39227
39228
39229
39230
39231
39232
39233
39234
39235
39236
39237
39238
39239
39240
39241
39242
39243
39244
39245
39246
39247
39248
39249
39250
39251
39252
39253
39254
39255
39256
39257
39258
39259
39260
39261
39262
39263
39264
39265
39266
39267
39268
39269
39270
39271
39272
39273
39274
39275
39276
39277
39278
39279
39280
39281
39282
39283
39284
39285
39286
39287
39288
39289
39290
39291
39292
39293
39294
39295
39296
39297
39298
fe0895cf 39299
f0290fca
VS
39300
39301
e6cc62c6
VS
39302
39303
39304echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
39305echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
f95e4495 39306set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
e6cc62c6
VS
39307if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
39308 echo $ECHO_N "(cached) $ECHO_C" >&6
39309else
39310 cat >conftest.make <<\_ACEOF
39311all:
39312 @echo 'ac_maketemp="$(MAKE)"'
39313_ACEOF
39314# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
39315eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
39316if test -n "$ac_maketemp"; then
39317 eval ac_cv_prog_make_${ac_make}_set=yes
39318else
39319 eval ac_cv_prog_make_${ac_make}_set=no
39320fi
39321rm -f conftest.make
39322fi
39323if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
39324 echo "$as_me:$LINENO: result: yes" >&5
39325echo "${ECHO_T}yes" >&6
39326 SET_MAKE=
39327else
39328 echo "$as_me:$LINENO: result: no" >&5
39329echo "${ECHO_T}no" >&6
39330 SET_MAKE="MAKE=${MAKE-make}"
39331fi
39332
39333
39334if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
39335 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
39336fi
39337
39338 ac_config_headers="$ac_config_headers setup.h"
39339
39340
81345eef 39341 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
39342
39343
39344 ac_config_commands="$ac_config_commands default"
39345
39346
9de9b8f0 39347
6c3e36af
VZ
39348if test "$wxUSE_GUI" = "yes"; then
39349 SUBDIRS="samples demos utils contrib"
39350else SUBDIRS="samples utils"
39351fi
e6cc62c6 39352
166263e6 39353for subdir in `echo $SUBDIRS`; do
9747f85d 39354 if test -d ${srcdir}/${subdir} ; then
6c3e36af 39355 if test "$wxUSE_GUI" = "yes"; then
166263e6 39356 if test ${subdir} = "samples"; then
8772a1a7
VS
39357 makefiles="samples/Makefile.in $makefiles"
39358 for sample in `echo $SAMPLES_SUBDIRS`; do
166263e6
VZ
39359 if test -d $srcdir/samples/$sample; then
39360 makefiles="samples/$sample/Makefile.in $makefiles"
39361 fi
39362 done
39363 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
39364 fi
6c3e36af 39365 else if test ${subdir} = "samples"; then
8772a1a7 39366 makefiles="samples/Makefile.in samples/console/Makefile.in"
6c3e36af 39367 else makefiles="utils/HelpGen/Makefile.in \
2bf8cafb
VS
39368 utils/HelpGen/src/Makefile.in \
39369 utils/tex2rtf/Makefile.in \
39370 utils/tex2rtf/src/Makefile.in"
6c3e36af
VZ
39371 fi
39372 fi
39373
9747f85d
VS
39374 for mkin in $makefiles ; do
39375 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
39376 ac_config_files="$ac_config_files $mk"
e6cc62c6 39377
9747f85d
VS
39378 done
39379 fi
39380done
e6cc62c6 39381
9de9b8f0 39382
e6cc62c6
VS
39383cat >confcache <<\_ACEOF
39384# This file is a shell script that caches the results of configure
39385# tests run on this system so they can be shared between configure
39386# scripts and configure runs, see configure's option --config-cache.
39387# It is not useful on other systems. If it contains results you don't
39388# want to keep, you may remove or edit it.
39389#
39390# config.status only pays attention to the cache file if you give it
39391# the --recheck option to rerun configure.
39392#
39393# `ac_cv_env_foo' variables (set or unset) will be overridden when
39394# loading this file, other *unset* `ac_cv_foo' will be assigned the
39395# following values.
39396
39397_ACEOF
39398
39399# The following way of writing the cache mishandles newlines in values,
39400# but we know of no workaround that is simple, portable, and efficient.
39401# So, don't put newlines in cache variables' values.
39402# Ultrix sh set writes to stderr and can't be redirected directly,
39403# and sets the high bit in the cache file unless we assign to the vars.
39404{
39405 (set) 2>&1 |
39406 case `(ac_space=' '; set | grep ac_space) 2>&1` in
39407 *ac_space=\ *)
39408 # `set' does not quote correctly, so add quotes (double-quote
39409 # substitution turns \\\\ into \\, and sed turns \\ into \).
39410 sed -n \
f95e4495
VS
39411 "s/'/'\\\\''/g;
39412 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
39413 ;;
39414 *)
39415 # `set' quotes correctly as required by POSIX, so do not add quotes.
39416 sed -n \
f95e4495 39417 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
39418 ;;
39419 esac;
39420} |
39421 sed '
39422 t clear
39423 : clear
39424 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39425 t end
39426 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39427 : end' >>confcache
39428if diff $cache_file confcache >/dev/null 2>&1; then :; else
39429 if test -w $cache_file; then
39430 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
39431 cat confcache >$cache_file
39432 else
39433 echo "not updating unwritable cache $cache_file"
39434 fi
39435fi
39436rm -f confcache
39437
39438test "x$prefix" = xNONE && prefix=$ac_default_prefix
39439# Let make expand exec_prefix.
39440test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39441
39442# VPATH may cause trouble with some makes, so we remove $(srcdir),
39443# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39444# trailing colons and then remove the whole line if VPATH becomes empty
39445# (actually we leave an empty line to preserve line numbers).
39446if test "x$srcdir" = x.; then
f95e4495 39447 ac_vpsub='/^[ ]*VPATH[ ]*=/{
e6cc62c6
VS
39448s/:*\$(srcdir):*/:/;
39449s/:*\${srcdir}:*/:/;
39450s/:*@srcdir@:*/:/;
f95e4495 39451s/^\([^=]*=[ ]*\):*/\1/;
e6cc62c6 39452s/:*$//;
f95e4495 39453s/^[^=]*=[ ]*$//;
e6cc62c6
VS
39454}'
39455fi
39456
39457DEFS=-DHAVE_CONFIG_H
39458
39459ac_libobjs=
39460ac_ltlibobjs=
39461for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39462 # 1. Remove the extension, and $U if already installed.
39463 ac_i=`echo "$ac_i" |
f95e4495 39464 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
e6cc62c6
VS
39465 # 2. Add them.
39466 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
39467 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
39468done
39469LIBOBJS=$ac_libobjs
39470
39471LTLIBOBJS=$ac_ltlibobjs
39472
39473
39474
39475: ${CONFIG_STATUS=./config.status}
39476ac_clean_files_save=$ac_clean_files
39477ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39478{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39479echo "$as_me: creating $CONFIG_STATUS" >&6;}
39480cat >$CONFIG_STATUS <<_ACEOF
39481#! $SHELL
39482# Generated by $as_me.
39483# Run this file to recreate the current configuration.
39484# Compiler output produced by configure, useful for debugging
39485# configure, is in config.log if it exists.
39486
39487debug=false
39488ac_cs_recheck=false
39489ac_cs_silent=false
39490SHELL=\${CONFIG_SHELL-$SHELL}
39491_ACEOF
39492
39493cat >>$CONFIG_STATUS <<\_ACEOF
39494## --------------------- ##
39495## M4sh Initialization. ##
39496## --------------------- ##
39497
39498# Be Bourne compatible
39499if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39500 emulate sh
39501 NULLCMD=:
39502 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39503 # is contrary to our usage. Disable this feature.
39504 alias -g '${1+"$@"}'='"$@"'
39505elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
39506 set -o posix
39507fi
f95e4495 39508DUALCASE=1; export DUALCASE # for MKS sh
e6cc62c6
VS
39509
39510# Support unset when possible.
f95e4495 39511if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
e6cc62c6
VS
39512 as_unset=unset
39513else
39514 as_unset=false
39515fi
39516
39517
39518# Work around bugs in pre-3.0 UWIN ksh.
39519$as_unset ENV MAIL MAILPATH
39520PS1='$ '
39521PS2='> '
39522PS4='+ '
39523
39524# NLS nuisances.
39525for as_var in \
39526 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39527 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39528 LC_TELEPHONE LC_TIME
39529do
f95e4495 39530 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
e6cc62c6
VS
39531 eval $as_var=C; export $as_var
39532 else
39533 $as_unset $as_var
39534 fi
39535done
39536
39537# Required to use basename.
39538if expr a : '\(a\)' >/dev/null 2>&1; then
39539 as_expr=expr
39540else
39541 as_expr=false
39542fi
39543
39544if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
39545 as_basename=basename
39546else
39547 as_basename=false
39548fi
39549
39550
39551# Name of the executable.
39552as_me=`$as_basename "$0" ||
39553$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39554 X"$0" : 'X\(//\)$' \| \
39555 X"$0" : 'X\(/\)$' \| \
39556 . : '\(.\)' 2>/dev/null ||
39557echo X/"$0" |
39558 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
39559 /^X\/\(\/\/\)$/{ s//\1/; q; }
39560 /^X\/\(\/\).*/{ s//\1/; q; }
39561 s/.*/./; q'`
39562
39563
39564# PATH needs CR, and LINENO needs CR and PATH.
39565# Avoid depending upon Character Ranges.
39566as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39567as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39568as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39569as_cr_digits='0123456789'
39570as_cr_alnum=$as_cr_Letters$as_cr_digits
39571
39572# The user is always right.
39573if test "${PATH_SEPARATOR+set}" != set; then
39574 echo "#! /bin/sh" >conf$$.sh
39575 echo "exit 0" >>conf$$.sh
39576 chmod +x conf$$.sh
39577 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39578 PATH_SEPARATOR=';'
39579 else
39580 PATH_SEPARATOR=:
39581 fi
39582 rm -f conf$$.sh
39583fi
39584
39585
39586 as_lineno_1=$LINENO
39587 as_lineno_2=$LINENO
39588 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39589 test "x$as_lineno_1" != "x$as_lineno_2" &&
39590 test "x$as_lineno_3" = "x$as_lineno_2" || {
39591 # Find who we are. Look in the path if we contain no path at all
39592 # relative or not.
39593 case $0 in
39594 *[\\/]* ) as_myself=$0 ;;
39595 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39596for as_dir in $PATH
39597do
39598 IFS=$as_save_IFS
39599 test -z "$as_dir" && as_dir=.
39600 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39601done
39602
39603 ;;
39604 esac
39605 # We did not find ourselves, most probably we were run as `sh COMMAND'
39606 # in which case we are not to be found in the path.
39607 if test "x$as_myself" = x; then
39608 as_myself=$0
39609 fi
39610 if test ! -f "$as_myself"; then
39611 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39612echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39613 { (exit 1); exit 1; }; }
39614 fi
39615 case $CONFIG_SHELL in
39616 '')
39617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39618for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39619do
39620 IFS=$as_save_IFS
39621 test -z "$as_dir" && as_dir=.
39622 for as_base in sh bash ksh sh5; do
39623 case $as_dir in
39624 /*)
39625 if ("$as_dir/$as_base" -c '
39626 as_lineno_1=$LINENO
39627 as_lineno_2=$LINENO
39628 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39629 test "x$as_lineno_1" != "x$as_lineno_2" &&
39630 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
39631 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39632 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39633 CONFIG_SHELL=$as_dir/$as_base
39634 export CONFIG_SHELL
39635 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39636 fi;;
39637 esac
39638 done
39639done
39640;;
39641 esac
39642
39643 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39644 # uniformly replaced by the line number. The first 'sed' inserts a
39645 # line-number line before each line; the second 'sed' does the real
39646 # work. The second script uses 'N' to pair each line-number line
39647 # with the numbered line, and appends trailing '-' during
39648 # substitution so that $LINENO is not a special case at line end.
39649 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39650 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
39651 sed '=' <$as_myself |
39652 sed '
39653 N
39654 s,$,-,
39655 : loop
39656 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39657 t loop
39658 s,-$,,
39659 s,^['$as_cr_digits']*\n,,
39660 ' >$as_me.lineno &&
39661 chmod +x $as_me.lineno ||
39662 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39663echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39664 { (exit 1); exit 1; }; }
39665
39666 # Don't try to exec as it changes $[0], causing all sort of problems
39667 # (the dirname of $[0] is not the place where we might find the
39668 # original and so on. Autoconf is especially sensible to this).
39669 . ./$as_me.lineno
39670 # Exit status is that of the last command.
39671 exit
39672}
39673
39674
39675case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39676 *c*,-n*) ECHO_N= ECHO_C='
39677' ECHO_T=' ' ;;
39678 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39679 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
39680esac
39681
39682if expr a : '\(a\)' >/dev/null 2>&1; then
39683 as_expr=expr
39684else
39685 as_expr=false
39686fi
39687
39688rm -f conf$$ conf$$.exe conf$$.file
39689echo >conf$$.file
39690if ln -s conf$$.file conf$$ 2>/dev/null; then
39691 # We could just check for DJGPP; but this test a) works b) is more generic
39692 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39693 if test -f conf$$.exe; then
39694 # Don't use ln at all; we don't have any links
39695 as_ln_s='cp -p'
39696 else
39697 as_ln_s='ln -s'
39698 fi
39699elif ln conf$$.file conf$$ 2>/dev/null; then
39700 as_ln_s=ln
39701else
39702 as_ln_s='cp -p'
39703fi
39704rm -f conf$$ conf$$.exe conf$$.file
39705
39706if mkdir -p . 2>/dev/null; then
39707 as_mkdir_p=:
39708else
f95e4495 39709 test -d ./-p && rmdir ./-p
e6cc62c6
VS
39710 as_mkdir_p=false
39711fi
39712
39713as_executable_p="test -f"
39714
39715# Sed expression to map a string onto a valid CPP name.
f95e4495 39716as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
e6cc62c6
VS
39717
39718# Sed expression to map a string onto a valid variable name.
f95e4495 39719as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e6cc62c6
VS
39720
39721
39722# IFS
39723# We need space, tab and new line, in precisely that order.
39724as_nl='
39725'
39726IFS=" $as_nl"
39727
39728# CDPATH.
39729$as_unset CDPATH
39730
39731exec 6>&1
39732
39733# Open the log real soon, to keep \$[0] and so on meaningful, and to
39734# report actual input values of CONFIG_FILES etc. instead of their
39735# values after options handling. Logging --version etc. is OK.
39736exec 5>>config.log
39737{
39738 echo
39739 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39740## Running $as_me. ##
39741_ASBOX
39742} >&5
39743cat >&5 <<_CSEOF
39744
e46d2a18 39745This file was extended by wxWindows $as_me 2.5.1, which was
f95e4495 39746generated by GNU Autoconf 2.59. Invocation command line was
e6cc62c6
VS
39747
39748 CONFIG_FILES = $CONFIG_FILES
39749 CONFIG_HEADERS = $CONFIG_HEADERS
39750 CONFIG_LINKS = $CONFIG_LINKS
39751 CONFIG_COMMANDS = $CONFIG_COMMANDS
39752 $ $0 $@
39753
39754_CSEOF
39755echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39756echo >&5
39757_ACEOF
39758
39759# Files that config.status was made for.
39760if test -n "$ac_config_files"; then
39761 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39762fi
39763
39764if test -n "$ac_config_headers"; then
39765 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39766fi
39767
39768if test -n "$ac_config_links"; then
39769 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39770fi
39771
39772if test -n "$ac_config_commands"; then
39773 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39774fi
39775
39776cat >>$CONFIG_STATUS <<\_ACEOF
39777
39778ac_cs_usage="\
39779\`$as_me' instantiates files from templates according to the
39780current configuration.
39781
39782Usage: $0 [OPTIONS] [FILE]...
39783
39784 -h, --help print this help, then exit
39785 -V, --version print version number, then exit
39786 -q, --quiet do not print progress messages
39787 -d, --debug don't remove temporary files
39788 --recheck update $as_me by reconfiguring in the same conditions
39789 --file=FILE[:TEMPLATE]
f95e4495 39790 instantiate the configuration file FILE
e6cc62c6 39791 --header=FILE[:TEMPLATE]
f95e4495 39792 instantiate the configuration header FILE
e6cc62c6
VS
39793
39794Configuration files:
39795$config_files
39796
39797Configuration headers:
39798$config_headers
39799
39800Configuration commands:
39801$config_commands
39802
39803Report bugs to <bug-autoconf@gnu.org>."
39804_ACEOF
39805
39806cat >>$CONFIG_STATUS <<_ACEOF
39807ac_cs_version="\\
e46d2a18 39808wxWindows config.status 2.5.1
f95e4495 39809configured by $0, generated by GNU Autoconf 2.59,
e6cc62c6
VS
39810 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39811
f95e4495 39812Copyright (C) 2003 Free Software Foundation, Inc.
e6cc62c6
VS
39813This config.status script is free software; the Free Software Foundation
39814gives unlimited permission to copy, distribute and modify it."
39815srcdir=$srcdir
39816INSTALL="$INSTALL"
39817_ACEOF
39818
39819cat >>$CONFIG_STATUS <<\_ACEOF
39820# If no file are specified by the user, then we need to provide default
39821# value. By we need to know if files were specified by the user.
39822ac_need_defaults=:
39823while test $# != 0
39824do
39825 case $1 in
39826 --*=*)
39827 ac_option=`expr "x$1" : 'x\([^=]*\)='`
39828 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39829 ac_shift=:
39830 ;;
39831 -*)
39832 ac_option=$1
39833 ac_optarg=$2
39834 ac_shift=shift
39835 ;;
39836 *) # This is not an option, so the user has probably given explicit
39837 # arguments.
39838 ac_option=$1
39839 ac_need_defaults=false;;
39840 esac
39841
39842 case $ac_option in
39843 # Handling of the options.
39844_ACEOF
39845cat >>$CONFIG_STATUS <<\_ACEOF
39846 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39847 ac_cs_recheck=: ;;
39848 --version | --vers* | -V )
39849 echo "$ac_cs_version"; exit 0 ;;
39850 --he | --h)
39851 # Conflict between --help and --header
39852 { { echo "$as_me:$LINENO: error: ambiguous option: $1
39853Try \`$0 --help' for more information." >&5
39854echo "$as_me: error: ambiguous option: $1
39855Try \`$0 --help' for more information." >&2;}
39856 { (exit 1); exit 1; }; };;
39857 --help | --hel | -h )
39858 echo "$ac_cs_usage"; exit 0 ;;
39859 --debug | --d* | -d )
39860 debug=: ;;
39861 --file | --fil | --fi | --f )
39862 $ac_shift
39863 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39864 ac_need_defaults=false;;
39865 --header | --heade | --head | --hea )
39866 $ac_shift
39867 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39868 ac_need_defaults=false;;
39869 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39870 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39871 ac_cs_silent=: ;;
39872
39873 # This is an error.
39874 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39875Try \`$0 --help' for more information." >&5
39876echo "$as_me: error: unrecognized option: $1
39877Try \`$0 --help' for more information." >&2;}
39878 { (exit 1); exit 1; }; } ;;
39879
39880 *) ac_config_targets="$ac_config_targets $1" ;;
39881
39882 esac
39883 shift
39884done
39885
39886ac_configure_extra_args=
39887
39888if $ac_cs_silent; then
39889 exec 6>/dev/null
39890 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
39891fi
39892
e6cc62c6
VS
39893_ACEOF
39894cat >>$CONFIG_STATUS <<_ACEOF
39895if \$ac_cs_recheck; then
39896 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39897 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
39898fi
39899
e6cc62c6 39900_ACEOF
fe0895cf 39901
e6cc62c6 39902cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 39903#
e6cc62c6 39904# INIT-COMMANDS section.
10f2d63a 39905#
10f2d63a 39906
a0b9e27f 39907
e6cc62c6
VS
39908 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
39909 LN_S="${LN_S}"
10f2d63a 39910
10f2d63a 39911
10f2d63a 39912
e6cc62c6 39913_ACEOF
8284b0c5 39914
52127426 39915
247f5006 39916
e6cc62c6
VS
39917cat >>$CONFIG_STATUS <<\_ACEOF
39918for ac_config_target in $ac_config_targets
247f5006 39919do
e6cc62c6
VS
39920 case "$ac_config_target" in
39921 # Handling of arguments.
81345eef
VZ
39922 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
39923 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
39924 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 39925 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
39926 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39927 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
39928 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39929echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39930 { (exit 1); exit 1; }; };;
247f5006
VZ
39931 esac
39932done
39933
e6cc62c6
VS
39934# If the user did not use the arguments to specify the items to instantiate,
39935# then the envvar interface is used. Set only those that are not.
39936# We use the long form for the default assignment because of an extremely
39937# bizarre bug on SunOS 4.1.3.
39938if $ac_need_defaults; then
39939 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39940 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39941 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39942fi
39943
39944# Have a temporary directory for convenience. Make it in the build tree
39945# simply because there is no reason to put it here, and in addition,
39946# creating and moving files from /tmp can sometimes cause problems.
39947# Create a temporary directory, and hook for its removal unless debugging.
39948$debug ||
39949{
39950 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
39951 trap '{ (exit 1); exit 1; }' 1 2 13 15
39952}
247f5006 39953
e6cc62c6 39954# Create a (secure) tmp directory for tmp files.
247f5006 39955
e6cc62c6
VS
39956{
39957 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
39958 test -n "$tmp" && test -d "$tmp"
39959} ||
39960{
39961 tmp=./confstat$$-$RANDOM
39962 (umask 077 && mkdir $tmp)
39963} ||
39964{
39965 echo "$me: cannot create a temporary directory in ." >&2
39966 { (exit 1); exit 1; }
39967}
39968
39969_ACEOF
39970
39971cat >>$CONFIG_STATUS <<_ACEOF
39972
39973#
39974# CONFIG_FILES section.
39975#
247f5006 39976
e6cc62c6
VS
39977# No need to generate the scripts if there are no CONFIG_FILES.
39978# This happens for instance when ./config.status config.h
39979if test -n "\$CONFIG_FILES"; then
39980 # Protect against being on the right side of a sed subst in config.status.
39981 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
39982 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
39983s,@SHELL@,$SHELL,;t t
39984s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
39985s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
39986s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
39987s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
39988s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
39989s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
39990s,@exec_prefix@,$exec_prefix,;t t
39991s,@prefix@,$prefix,;t t
39992s,@program_transform_name@,$program_transform_name,;t t
39993s,@bindir@,$bindir,;t t
39994s,@sbindir@,$sbindir,;t t
39995s,@libexecdir@,$libexecdir,;t t
39996s,@datadir@,$datadir,;t t
39997s,@sysconfdir@,$sysconfdir,;t t
39998s,@sharedstatedir@,$sharedstatedir,;t t
39999s,@localstatedir@,$localstatedir,;t t
40000s,@libdir@,$libdir,;t t
40001s,@includedir@,$includedir,;t t
40002s,@oldincludedir@,$oldincludedir,;t t
40003s,@infodir@,$infodir,;t t
40004s,@mandir@,$mandir,;t t
40005s,@build_alias@,$build_alias,;t t
40006s,@host_alias@,$host_alias,;t t
40007s,@target_alias@,$target_alias,;t t
40008s,@DEFS@,$DEFS,;t t
40009s,@ECHO_C@,$ECHO_C,;t t
40010s,@ECHO_N@,$ECHO_N,;t t
40011s,@ECHO_T@,$ECHO_T,;t t
40012s,@LIBS@,$LIBS,;t t
40013s,@build@,$build,;t t
40014s,@build_cpu@,$build_cpu,;t t
40015s,@build_vendor@,$build_vendor,;t t
40016s,@build_os@,$build_os,;t t
40017s,@host@,$host,;t t
40018s,@host_cpu@,$host_cpu,;t t
40019s,@host_vendor@,$host_vendor,;t t
40020s,@host_os@,$host_os,;t t
40021s,@target@,$target,;t t
40022s,@target_cpu@,$target_cpu,;t t
40023s,@target_vendor@,$target_vendor,;t t
40024s,@target_os@,$target_os,;t t
40025s,@CC@,$CC,;t t
40026s,@CFLAGS@,$CFLAGS,;t t
40027s,@LDFLAGS@,$LDFLAGS,;t t
40028s,@CPPFLAGS@,$CPPFLAGS,;t t
40029s,@ac_ct_CC@,$ac_ct_CC,;t t
40030s,@EXEEXT@,$EXEEXT,;t t
40031s,@OBJEXT@,$OBJEXT,;t t
40032s,@CPP@,$CPP,;t t
40033s,@EGREP@,$EGREP,;t t
40034s,@CXX@,$CXX,;t t
40035s,@CXXFLAGS@,$CXXFLAGS,;t t
40036s,@ac_ct_CXX@,$ac_ct_CXX,;t t
40037s,@RANLIB@,$RANLIB,;t t
40038s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
40039s,@AR@,$AR,;t t
40040s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
40041s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
40042s,@INSTALL_DATA@,$INSTALL_DATA,;t t
40043s,@STRIP@,$STRIP,;t t
40044s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
e6cc62c6
VS
40045s,@LN_S@,$LN_S,;t t
40046s,@CXXCPP@,$CXXCPP,;t t
672abd7a 40047s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
40048s,@PKG_CONFIG@,$PKG_CONFIG,;t t
40049s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
40050s,@GTK_LIBS@,$GTK_LIBS,;t t
40051s,@GTK_CONFIG@,$GTK_CONFIG,;t t
40052s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
40053s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
40054s,@X_CFLAGS@,$X_CFLAGS,;t t
40055s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
40056s,@X_LIBS@,$X_LIBS,;t t
40057s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
40058s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
40059s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
40060s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
40061s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
40062s,@RESCOMP@,$RESCOMP,;t t
40063s,@DEREZ@,$DEREZ,;t t
40064s,@SETFILE@,$SETFILE,;t t
40065s,@LIBICONV@,$LIBICONV,;t t
edd891e2 40066s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
f93ca9fd
VS
40067s,@SDL_CONFIG@,$SDL_CONFIG,;t t
40068s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
40069s,@SDL_LIBS@,$SDL_LIBS,;t t
edd891e2
VS
40070s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
40071s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
e6cc62c6
VS
40072s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
40073s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 40074s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
40075s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
40076s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
40077s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
40078s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
40079s,@VENDOR@,$VENDOR,;t t
40080s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
40081s,@WXUNIV@,$WXUNIV,;t t
40082s,@MONOLITHIC@,$MONOLITHIC,;t t
f93ca9fd 40083s,@USE_PLUGINS@,$USE_PLUGINS,;t t
e6cc62c6 40084s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 40085s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
3527f29c 40086s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
bb41dcbe 40087s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
c74dc163 40088s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 40089s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
f93ca9fd
VS
40090s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
40091s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
e6cc62c6
VS
40092s,@UNICODE@,$UNICODE,;t t
40093s,@BUILD@,$BUILD,;t t
6c67131a
VS
40094s,@DEBUG_INFO@,$DEBUG_INFO,;t t
40095s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
e6cc62c6
VS
40096s,@SHARED@,$SHARED,;t t
40097s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
40098s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
40099s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
0f1bc9c2 40100s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
ea66c762 40101s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
40102s,@SET_MAKE@,$SET_MAKE,;t t
40103s,@MAKE_SET@,$MAKE_SET,;t t
874d12cf
VS
40104s,@ac_ct_AR@,$ac_ct_AR,;t t
40105s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
40106s,@NM@,$NM,;t t
40107s,@ac_ct_NM@,$ac_ct_NM,;t t
e6cc62c6 40108s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 40109s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
40110s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
40111s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
40112s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
40113s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
40114s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
96c1699d 40115s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
e6cc62c6 40116s,@SO_SUFFIX@,$SO_SUFFIX,;t t
131f235d 40117s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
4b1f6360 40118s,@LIBPREFIX@,$LIBPREFIX,;t t
e6cc62c6 40119s,@DLLPREFIX@,$DLLPREFIX,;t t
131f235d 40120s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
dc838d98 40121s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
40122s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
40123s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
131f235d
VS
40124s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
40125s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
e6cc62c6
VS
40126s,@PIC_FLAG@,$PIC_FLAG,;t t
40127s,@USE_SOVERSION@,$USE_SOVERSION,;t t
40128s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
40129s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
40130s,@USE_MACVERSION@,$USE_MACVERSION,;t t
40131s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
40132s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 40133s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45842500 40134s,@GCC_PCH@,$GCC_PCH,;t t
d78c94f2 40135s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
6c67131a
VS
40136s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
40137s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
f93ca9fd
VS
40138s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
40139s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
d78c94f2 40140s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
6c67131a 40141s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
f93ca9fd
VS
40142s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
40143s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
6c67131a
VS
40144s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
40145s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
40146s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
f95cd8fa 40147s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 40148s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45842500 40149s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
6f628073 40150s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
40151s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
40152s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8772a1a7 40153s,@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 40154s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
eb69fda5 40155s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8ee2dd05 40156s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 40157s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
8772a1a7 40158s,@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 40159s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
eb69fda5 40160s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
f95e4495 40161s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
3af038c0 40162s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
40163s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
40164s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
40165s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
40166s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 40167s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 40168s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
40169s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
40170s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
40171s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
3527f29c 40172s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
8ee2dd05 40173s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
45842500 40174s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
3d8c1de0 40175s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
8772a1a7 40176s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
3af038c0 40177s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
3527f29c 40178s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
f93ca9fd 40179s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
3af038c0
VS
40180s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
40181s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45842500 40182s,@COND_SHARED_0@,$COND_SHARED_0,;t t
250700e4 40183s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
52a5a009
VS
40184s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
40185s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
40186s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
40187s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
40188s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
40189s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
40190s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45842500 40191s,@COND_SHARED_1@,$COND_SHARED_1,;t t
250700e4 40192s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
40193s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
40194s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
40195s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
40196s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05 40197s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
3af038c0 40198s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
8772a1a7 40199s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
6f628073
VS
40200s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
40201s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
40202s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
6f628073
VS
40203s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
40204s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
40205s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 40206s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
40207s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
40208s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
96c1699d
VS
40209s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
40210s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
40211s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
6f628073
VS
40212s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
40213s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
3af038c0 40214s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
7015ef3a
VZ
40215s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
40216s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
3af038c0
VS
40217s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
40218s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
40219s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
40220s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
40221s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
40222s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
40223s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
57e7d4ac 40224s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
f93ca9fd 40225s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
6f628073
VS
40226s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
40227s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
40228s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
40229s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
f93ca9fd
VS
40230s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
40231s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
3af038c0 40232s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 40233s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
40234s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
40235s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
40236s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
40237s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
40238s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
40239s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6
VS
40240s,@PATH_IFS@,$PATH_IFS,;t t
40241s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
40242s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
40243s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
40244s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
40245s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
cf615ebb
VS
40246s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
40247s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
e6cc62c6
VS
40248s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
40249s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
40250s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
40251s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
40252s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
40253s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
40254s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
40255s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
40256s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
40257s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
40258s,@WX_ALL@,$WX_ALL,;t t
40259s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
40260s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
40261s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
40262s,@STATIC_FLAG@,$STATIC_FLAG,;t t
40263s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
40264s,@USE_GUI@,$USE_GUI,;t t
40265s,@AFMINSTALL@,$AFMINSTALL,;t t
40266s,@WIN32INSTALL@,$WIN32INSTALL,;t t
40267s,@TOOLKIT@,$TOOLKIT,;t t
40268s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
40269s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
40270s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
40271s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
40272s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
40273s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
40274s,@cross_compiling@,$cross_compiling,;t t
67c13b6c 40275s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
e6cc62c6
VS
40276s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
40277s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
40278s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
40279s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
40280s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
40281s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
ffef10f6 40282s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
e6cc62c6 40283s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
40284s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
40285s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
40286s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
40287s,@ALL_HEADERS@,$ALL_HEADERS,;t t
40288s,@ALL_SOURCES@,$ALL_SOURCES,;t t
40289s,@GUIDIST@,$GUIDIST,;t t
40290s,@PORT_FILES@,$PORT_FILES,;t t
40291s,@DISTDIR@,$DISTDIR,;t t
40292s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
40293s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
40294s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
40295s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
40296s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
40297s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
40298s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
40299s,@RESFLAGS@,$RESFLAGS,;t t
40300s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
40301s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
40302s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
e6cc62c6
VS
40303s,@LIBWXMACRES@,$LIBWXMACRES,;t t
40304s,@MACRESCOMP@,$MACRESCOMP,;t t
40305s,@MACSETFILE@,$MACSETFILE,;t t
40306s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
40307s,@GCC@,$GCC,;t t
40308s,@DLLTOOL@,$DLLTOOL,;t t
40309s,@AS@,$AS,;t t
e6cc62c6
VS
40310s,@LD@,$LD,;t t
40311s,@MAKEINFO@,$MAKEINFO,;t t
40312s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
e6cc62c6
VS
40313s,@LIBOBJS@,$LIBOBJS,;t t
40314s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
40315CEOF
40316
e6cc62c6
VS
40317_ACEOF
40318
40319 cat >>$CONFIG_STATUS <<\_ACEOF
40320 # Split the substitutions into bite-sized pieces for seds with
40321 # small command number limits, like on Digital OSF/1 and HP-UX.
40322 ac_max_sed_lines=48
40323 ac_sed_frag=1 # Number of current file.
40324 ac_beg=1 # First line for current file.
40325 ac_end=$ac_max_sed_lines # Line after last line for current file.
40326 ac_more_lines=:
40327 ac_sed_cmds=
40328 while $ac_more_lines; do
40329 if test $ac_beg -gt 1; then
40330 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 40331 else
e6cc62c6
VS
40332 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
40333 fi
40334 if test ! -s $tmp/subs.frag; then
40335 ac_more_lines=false
40336 else
40337 # The purpose of the label and of the branching condition is to
40338 # speed up the sed processing (if there are no `@' at all, there
40339 # is no need to browse any of the substitutions).
40340 # These are the two extra sed commands mentioned above.
40341 (echo ':t
40342 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
40343 if test -z "$ac_sed_cmds"; then
f95e4495 40344 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6 40345 else
f95e4495 40346 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6
VS
40347 fi
40348 ac_sed_frag=`expr $ac_sed_frag + 1`
40349 ac_beg=$ac_end
40350 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 40351 fi
e6cc62c6
VS
40352 done
40353 if test -z "$ac_sed_cmds"; then
40354 ac_sed_cmds=cat
10f2d63a 40355 fi
e6cc62c6 40356fi # test -n "$CONFIG_FILES"
10f2d63a 40357
e6cc62c6
VS
40358_ACEOF
40359cat >>$CONFIG_STATUS <<\_ACEOF
40360for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 40361 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
40362 case $ac_file in
40363 - | *:- | *:-:* ) # input from stdin
f95e4495
VS
40364 cat >$tmp/stdin
40365 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40366 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 40367 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
f95e4495 40368 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 40369 * ) ac_file_in=$ac_file.in ;;
10f2d63a 40370 esac
247f5006 40371
e6cc62c6
VS
40372 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
40373 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40374$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f95e4495
VS
40375 X"$ac_file" : 'X\(//\)[^/]' \| \
40376 X"$ac_file" : 'X\(//\)$' \| \
40377 X"$ac_file" : 'X\(/\)' \| \
40378 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
40379echo X"$ac_file" |
40380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40381 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40382 /^X\(\/\/\)$/{ s//\1/; q; }
40383 /^X\(\/\).*/{ s//\1/; q; }
40384 s/.*/./; q'`
40385 { if $as_mkdir_p; then
40386 mkdir -p "$ac_dir"
a0b9e27f 40387 else
e6cc62c6
VS
40388 as_dir="$ac_dir"
40389 as_dirs=
40390 while test ! -d "$as_dir"; do
40391 as_dirs="$as_dir $as_dirs"
40392 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40393$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f95e4495
VS
40394 X"$as_dir" : 'X\(//\)[^/]' \| \
40395 X"$as_dir" : 'X\(//\)$' \| \
40396 X"$as_dir" : 'X\(/\)' \| \
40397 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
40398echo X"$as_dir" |
40399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40400 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40401 /^X\(\/\/\)$/{ s//\1/; q; }
40402 /^X\(\/\).*/{ s//\1/; q; }
40403 s/.*/./; q'`
40404 done
40405 test ! -n "$as_dirs" || mkdir $as_dirs
40406 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40407echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40408 { (exit 1); exit 1; }; }; }
40409
40410 ac_builddir=.
40411
40412if test "$ac_dir" != .; then
40413 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40414 # A "../" for each directory in $ac_dir_suffix.
40415 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40416else
40417 ac_dir_suffix= ac_top_builddir=
40418fi
247f5006 40419
e6cc62c6
VS
40420case $srcdir in
40421 .) # No --srcdir option. We are building in place.
40422 ac_srcdir=.
40423 if test -z "$ac_top_builddir"; then
40424 ac_top_srcdir=.
40425 else
40426 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40427 fi ;;
40428 [\\/]* | ?:[\\/]* ) # Absolute path.
40429 ac_srcdir=$srcdir$ac_dir_suffix;
40430 ac_top_srcdir=$srcdir ;;
247f5006 40431 *) # Relative path.
e6cc62c6
VS
40432 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40433 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40434esac
f95e4495
VS
40435
40436# Do not use `cd foo && pwd` to compute absolute paths, because
40437# the directories may not exist.
40438case `pwd` in
40439.) ac_abs_builddir="$ac_dir";;
40440*)
40441 case "$ac_dir" in
40442 .) ac_abs_builddir=`pwd`;;
40443 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40444 *) ac_abs_builddir=`pwd`/"$ac_dir";;
40445 esac;;
40446esac
40447case $ac_abs_builddir in
40448.) ac_abs_top_builddir=${ac_top_builddir}.;;
40449*)
40450 case ${ac_top_builddir}. in
40451 .) ac_abs_top_builddir=$ac_abs_builddir;;
40452 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40453 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40454 esac;;
40455esac
40456case $ac_abs_builddir in
40457.) ac_abs_srcdir=$ac_srcdir;;
40458*)
40459 case $ac_srcdir in
40460 .) ac_abs_srcdir=$ac_abs_builddir;;
40461 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40462 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40463 esac;;
40464esac
40465case $ac_abs_builddir in
40466.) ac_abs_top_srcdir=$ac_top_srcdir;;
40467*)
40468 case $ac_top_srcdir in
40469 .) ac_abs_top_srcdir=$ac_abs_builddir;;
40470 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40471 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40472 esac;;
40473esac
10f2d63a 40474
247f5006 40475
e6cc62c6
VS
40476 case $INSTALL in
40477 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40478 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 40479 esac
247f5006 40480
e6cc62c6
VS
40481 if test x"$ac_file" != x-; then
40482 { echo "$as_me:$LINENO: creating $ac_file" >&5
40483echo "$as_me: creating $ac_file" >&6;}
40484 rm -f "$ac_file"
40485 fi
40486 # Let's still pretend it is `configure' which instantiates (i.e., don't
40487 # use $as_me), people would be surprised to read:
40488 # /* config.h. Generated by config.status. */
40489 if test x"$ac_file" = x-; then
40490 configure_input=
40491 else
40492 configure_input="$ac_file. "
40493 fi
40494 configure_input=$configure_input"Generated from `echo $ac_file_in |
f95e4495 40495 sed 's,.*/,,'` by configure."
e6cc62c6
VS
40496
40497 # First look for the input files in the build tree, otherwise in the
40498 # src tree.
40499 ac_file_inputs=`IFS=:
40500 for f in $ac_file_in; do
40501 case $f in
40502 -) echo $tmp/stdin ;;
40503 [\\/$]*)
f95e4495
VS
40504 # Absolute (can't be DOS-style, as IFS=:)
40505 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
40506echo "$as_me: error: cannot find input file: $f" >&2;}
40507 { (exit 1); exit 1; }; }
f95e4495 40508 echo "$f";;
e6cc62c6 40509 *) # Relative
f95e4495
VS
40510 if test -f "$f"; then
40511 # Build tree
40512 echo "$f"
40513 elif test -f "$srcdir/$f"; then
40514 # Source tree
40515 echo "$srcdir/$f"
40516 else
40517 # /dev/null tree
40518 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
40519echo "$as_me: error: cannot find input file: $f" >&2;}
40520 { (exit 1); exit 1; }; }
f95e4495 40521 fi;;
e6cc62c6
VS
40522 esac
40523 done` || { (exit 1); exit 1; }
40524_ACEOF
40525cat >>$CONFIG_STATUS <<_ACEOF
40526 sed "$ac_vpsub
40527$extrasub
40528_ACEOF
40529cat >>$CONFIG_STATUS <<\_ACEOF
40530:t
40531/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40532s,@configure_input@,$configure_input,;t t
40533s,@srcdir@,$ac_srcdir,;t t
40534s,@abs_srcdir@,$ac_abs_srcdir,;t t
40535s,@top_srcdir@,$ac_top_srcdir,;t t
40536s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
40537s,@builddir@,$ac_builddir,;t t
40538s,@abs_builddir@,$ac_abs_builddir,;t t
40539s,@top_builddir@,$ac_top_builddir,;t t
40540s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
40541s,@INSTALL@,$ac_INSTALL,;t t
40542" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
40543 rm -f $tmp/stdin
40544 if test x"$ac_file" != x-; then
40545 mv $tmp/out $ac_file
40546 else
40547 cat $tmp/out
40548 rm -f $tmp/out
40549 fi
40550
40551done
40552_ACEOF
40553cat >>$CONFIG_STATUS <<\_ACEOF
40554
40555#
40556# CONFIG_HEADER section.
40557#
10f2d63a
VZ
40558
40559# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
40560# NAME is the cpp macro being defined and VALUE is the value it is being given.
40561#
40562# ac_d sets the value in "#define NAME VALUE" lines.
f95e4495
VS
40563ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
40564ac_dB='[ ].*$,\1#\2'
e6cc62c6
VS
40565ac_dC=' '
40566ac_dD=',;t'
40567# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
f95e4495 40568ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
e6cc62c6 40569ac_uB='$,\1#\2define\3'
10f2d63a 40570ac_uC=' '
e6cc62c6
VS
40571ac_uD=',;t'
40572
40573for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 40574 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
40575 case $ac_file in
40576 - | *:- | *:-:* ) # input from stdin
f95e4495
VS
40577 cat >$tmp/stdin
40578 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
40579 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 40580 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
f95e4495 40581 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 40582 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
40583 esac
40584
e6cc62c6
VS
40585 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40586echo "$as_me: creating $ac_file" >&6;}
40587
40588 # First look for the input files in the build tree, otherwise in the
40589 # src tree.
40590 ac_file_inputs=`IFS=:
40591 for f in $ac_file_in; do
40592 case $f in
40593 -) echo $tmp/stdin ;;
40594 [\\/$]*)
f95e4495
VS
40595 # Absolute (can't be DOS-style, as IFS=:)
40596 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
40597echo "$as_me: error: cannot find input file: $f" >&2;}
40598 { (exit 1); exit 1; }; }
f95e4495
VS
40599 # Do quote $f, to prevent DOS paths from being IFS'd.
40600 echo "$f";;
e6cc62c6 40601 *) # Relative
f95e4495
VS
40602 if test -f "$f"; then
40603 # Build tree
40604 echo "$f"
40605 elif test -f "$srcdir/$f"; then
40606 # Source tree
40607 echo "$srcdir/$f"
40608 else
40609 # /dev/null tree
40610 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
40611echo "$as_me: error: cannot find input file: $f" >&2;}
40612 { (exit 1); exit 1; }; }
f95e4495 40613 fi;;
e6cc62c6
VS
40614 esac
40615 done` || { (exit 1); exit 1; }
40616 # Remove the trailing spaces.
f95e4495 40617 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
e6cc62c6
VS
40618
40619_ACEOF
40620
40621# Transform confdefs.h into two sed scripts, `conftest.defines' and
40622# `conftest.undefs', that substitutes the proper values into
40623# config.h.in to produce config.h. The first handles `#define'
40624# templates, and the second `#undef' templates.
40625# And first: Protect against being on the right side of a sed subst in
40626# config.status. Protect against being in an unquoted here document
40627# in config.status.
40628rm -f conftest.defines conftest.undefs
40629# Using a here document instead of a string reduces the quoting nightmare.
40630# Putting comments in sed scripts is not portable.
40631#
40632# `end' is used to avoid that the second main sed command (meant for
40633# 0-ary CPP macros) applies to n-ary macro definitions.
40634# See the Autoconf documentation for `clear'.
40635cat >confdef2sed.sed <<\_ACEOF
40636s/[\\&,]/\\&/g
40637s,[\\$`],\\&,g
40638t clear
40639: clear
f95e4495 40640s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
e6cc62c6 40641t end
f95e4495 40642s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
e6cc62c6
VS
40643: end
40644_ACEOF
40645# If some macros were called several times there might be several times
40646# the same #defines, which is useless. Nevertheless, we may not want to
40647# sort them, since we want the *last* AC-DEFINE to be honored.
40648uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40649sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40650rm -f confdef2sed.sed
10f2d63a
VZ
40651
40652# This sed command replaces #undef with comments. This is necessary, for
40653# example, in the case of _POSIX_SOURCE, which is predefined and required
40654# on some systems where configure will not decide to define it.
e6cc62c6 40655cat >>conftest.undefs <<\_ACEOF
f95e4495 40656s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
e6cc62c6
VS
40657_ACEOF
40658
40659# Break up conftest.defines because some shells have a limit on the size
40660# of here documents, and old seds have small limits too (100 cmds).
40661echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
f95e4495 40662echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
e6cc62c6
VS
40663echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40664echo ' :' >>$CONFIG_STATUS
40665rm -f conftest.tail
40666while grep . conftest.defines >/dev/null
40667do
40668 # Write a limited-size here document to $tmp/defines.sed.
40669 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40670 # Speed up: don't consider the non `#define' lines.
f95e4495 40671 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
e6cc62c6
VS
40672 # Work around the forget-to-reset-the-flag bug.
40673 echo 't clr' >>$CONFIG_STATUS
40674 echo ': clr' >>$CONFIG_STATUS
40675 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40676 echo 'CEOF
40677 sed -f $tmp/defines.sed $tmp/in >$tmp/out
40678 rm -f $tmp/in
40679 mv $tmp/out $tmp/in
40680' >>$CONFIG_STATUS
40681 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40682 rm -f conftest.defines
40683 mv conftest.tail conftest.defines
40684done
40685rm -f conftest.defines
40686echo ' fi # grep' >>$CONFIG_STATUS
40687echo >>$CONFIG_STATUS
10f2d63a 40688
e6cc62c6
VS
40689# Break up conftest.undefs because some shells have a limit on the size
40690# of here documents, and old seds have small limits too (100 cmds).
40691echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 40692rm -f conftest.tail
e6cc62c6 40693while grep . conftest.undefs >/dev/null
10f2d63a 40694do
e6cc62c6
VS
40695 # Write a limited-size here document to $tmp/undefs.sed.
40696 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40697 # Speed up: don't consider the non `#undef'
f95e4495 40698 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
e6cc62c6
VS
40699 # Work around the forget-to-reset-the-flag bug.
40700 echo 't clr' >>$CONFIG_STATUS
40701 echo ': clr' >>$CONFIG_STATUS
40702 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 40703 echo 'CEOF
e6cc62c6
VS
40704 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40705 rm -f $tmp/in
40706 mv $tmp/out $tmp/in
40707' >>$CONFIG_STATUS
40708 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40709 rm -f conftest.undefs
40710 mv conftest.tail conftest.undefs
10f2d63a 40711done
e6cc62c6
VS
40712rm -f conftest.undefs
40713
40714cat >>$CONFIG_STATUS <<\_ACEOF
40715 # Let's still pretend it is `configure' which instantiates (i.e., don't
40716 # use $as_me), people would be surprised to read:
40717 # /* config.h. Generated by config.status. */
40718 if test x"$ac_file" = x-; then
40719 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 40720 else
e6cc62c6 40721 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 40722 fi
e6cc62c6
VS
40723 cat $tmp/in >>$tmp/config.h
40724 rm -f $tmp/in
40725 if test x"$ac_file" != x-; then
40726 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40727 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40728echo "$as_me: $ac_file is unchanged" >&6;}
40729 else
40730 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40731$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f95e4495
VS
40732 X"$ac_file" : 'X\(//\)[^/]' \| \
40733 X"$ac_file" : 'X\(//\)$' \| \
40734 X"$ac_file" : 'X\(/\)' \| \
40735 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
40736echo X"$ac_file" |
40737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40738 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40739 /^X\(\/\/\)$/{ s//\1/; q; }
40740 /^X\(\/\).*/{ s//\1/; q; }
40741 s/.*/./; q'`
40742 { if $as_mkdir_p; then
40743 mkdir -p "$ac_dir"
40744 else
40745 as_dir="$ac_dir"
40746 as_dirs=
40747 while test ! -d "$as_dir"; do
40748 as_dirs="$as_dir $as_dirs"
40749 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40750$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f95e4495
VS
40751 X"$as_dir" : 'X\(//\)[^/]' \| \
40752 X"$as_dir" : 'X\(//\)$' \| \
40753 X"$as_dir" : 'X\(/\)' \| \
40754 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
40755echo X"$as_dir" |
40756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40757 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40758 /^X\(\/\/\)$/{ s//\1/; q; }
40759 /^X\(\/\).*/{ s//\1/; q; }
40760 s/.*/./; q'`
40761 done
40762 test ! -n "$as_dirs" || mkdir $as_dirs
40763 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40764echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40765 { (exit 1); exit 1; }; }; }
a0b9e27f 40766
e6cc62c6
VS
40767 rm -f $ac_file
40768 mv $tmp/config.h $ac_file
40769 fi
40770 else
40771 cat $tmp/config.h
40772 rm -f $tmp/config.h
40773 fi
40774done
40775_ACEOF
40776cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 40777
e6cc62c6
VS
40778#
40779# CONFIG_COMMANDS section.
40780#
40781for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40782 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40783 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40784 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40785$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f95e4495
VS
40786 X"$ac_dest" : 'X\(//\)[^/]' \| \
40787 X"$ac_dest" : 'X\(//\)$' \| \
40788 X"$ac_dest" : 'X\(/\)' \| \
40789 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
40790echo X"$ac_dest" |
40791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40792 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40793 /^X\(\/\/\)$/{ s//\1/; q; }
40794 /^X\(\/\).*/{ s//\1/; q; }
40795 s/.*/./; q'`
f95e4495
VS
40796 { if $as_mkdir_p; then
40797 mkdir -p "$ac_dir"
40798 else
40799 as_dir="$ac_dir"
40800 as_dirs=
40801 while test ! -d "$as_dir"; do
40802 as_dirs="$as_dir $as_dirs"
40803 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40804$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40805 X"$as_dir" : 'X\(//\)[^/]' \| \
40806 X"$as_dir" : 'X\(//\)$' \| \
40807 X"$as_dir" : 'X\(/\)' \| \
40808 . : '\(.\)' 2>/dev/null ||
40809echo X"$as_dir" |
40810 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40811 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40812 /^X\(\/\/\)$/{ s//\1/; q; }
40813 /^X\(\/\).*/{ s//\1/; q; }
40814 s/.*/./; q'`
40815 done
40816 test ! -n "$as_dirs" || mkdir $as_dirs
40817 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40818echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40819 { (exit 1); exit 1; }; }; }
40820
e6cc62c6
VS
40821 ac_builddir=.
40822
40823if test "$ac_dir" != .; then
40824 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40825 # A "../" for each directory in $ac_dir_suffix.
40826 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40827else
40828 ac_dir_suffix= ac_top_builddir=
40829fi
40830
40831case $srcdir in
40832 .) # No --srcdir option. We are building in place.
40833 ac_srcdir=.
40834 if test -z "$ac_top_builddir"; then
40835 ac_top_srcdir=.
40836 else
40837 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40838 fi ;;
40839 [\\/]* | ?:[\\/]* ) # Absolute path.
40840 ac_srcdir=$srcdir$ac_dir_suffix;
40841 ac_top_srcdir=$srcdir ;;
40842 *) # Relative path.
40843 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40844 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40845esac
f95e4495
VS
40846
40847# Do not use `cd foo && pwd` to compute absolute paths, because
40848# the directories may not exist.
40849case `pwd` in
40850.) ac_abs_builddir="$ac_dir";;
40851*)
40852 case "$ac_dir" in
40853 .) ac_abs_builddir=`pwd`;;
40854 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40855 *) ac_abs_builddir=`pwd`/"$ac_dir";;
40856 esac;;
40857esac
40858case $ac_abs_builddir in
40859.) ac_abs_top_builddir=${ac_top_builddir}.;;
40860*)
40861 case ${ac_top_builddir}. in
40862 .) ac_abs_top_builddir=$ac_abs_builddir;;
40863 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40864 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40865 esac;;
40866esac
40867case $ac_abs_builddir in
40868.) ac_abs_srcdir=$ac_srcdir;;
40869*)
40870 case $ac_srcdir in
40871 .) ac_abs_srcdir=$ac_abs_builddir;;
40872 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40873 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40874 esac;;
40875esac
40876case $ac_abs_builddir in
40877.) ac_abs_top_srcdir=$ac_top_srcdir;;
40878*)
40879 case $ac_top_srcdir in
40880 .) ac_abs_top_srcdir=$ac_abs_builddir;;
40881 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40882 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40883 esac;;
40884esac
e6cc62c6
VS
40885
40886
40887 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40888echo "$as_me: executing $ac_dest commands" >&6;}
40889 case $ac_dest in
40890 default )
652d930d 40891 if test ! -h wx-config; then
991a5759 40892 chmod +x wx-config
3a922bb4
RL
40893 mv wx-config wx${TOOLCHAIN_NAME}-config
40894 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 40895 fi
665bbe97 40896
00cf1208
RR
40897 if test ! -d lib; then
40898 mkdir lib
40899 fi
40900 if test ! -d lib/wx; then
40901 mkdir lib/wx
40902 fi
40903 if test ! -d lib/wx/include; then
40904 mkdir lib/wx/include
40905 fi
3a922bb4
RL
40906 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
40907 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 40908 fi
3a922bb4
RL
40909 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
40910 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
40911 fi
40912 if test -f setup.h; then
3a922bb4 40913 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 40914 fi
e6cc62c6
VS
40915 ;;
40916 esac
40917done
40918_ACEOF
2224580a 40919
e6cc62c6 40920cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 40921
e6cc62c6
VS
40922{ (exit 0); exit 0; }
40923_ACEOF
40924chmod +x $CONFIG_STATUS
40925ac_clean_files=$ac_clean_files_save
40926
40927
40928# configure is writing to config.log, and then calls config.status.
40929# config.status does its own redirection, appending to config.log.
40930# Unfortunately, on DOS this fails, as config.log is still kept open
40931# by configure, so config.status won't be able to write to it; its
40932# output is simply discarded. So we exec the FD to /dev/null,
40933# effectively closing config.log, so it can be properly (re)opened and
40934# appended to by config.status. When coming back to configure, we
40935# need to make the FD available again.
40936if test "$no_create" != yes; then
40937 ac_cs_success=:
40938 ac_config_status_args=
40939 test "$silent" = yes &&
40940 ac_config_status_args="$ac_config_status_args --quiet"
40941 exec 5>/dev/null
40942 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40943 exec 5>>config.log
40944 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40945 # would make configure fail if this is the last instruction.
40946 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
40947fi
40948
672abd7a
VS
40949#
40950# CONFIG_SUBDIRS section.
40951#
40952if test "$no_recursion" != yes; then
40953
40954 # Remove --cache-file and --srcdir arguments so they do not pile up.
40955 ac_sub_configure_args=
40956 ac_prev=
40957 for ac_arg in $ac_configure_args; do
40958 if test -n "$ac_prev"; then
40959 ac_prev=
40960 continue
40961 fi
40962 case $ac_arg in
40963 -cache-file | --cache-file | --cache-fil | --cache-fi \
40964 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
40965 ac_prev=cache_file ;;
40966 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
40967 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
40968 | --c=*)
40969 ;;
40970 --config-cache | -C)
40971 ;;
40972 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
40973 ac_prev=srcdir ;;
40974 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
40975 ;;
40976 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
40977 ac_prev=prefix ;;
40978 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
40979 ;;
40980 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
40981 esac
40982 done
40983
40984 # Always prepend --prefix to ensure using the same prefix
40985 # in subdir configurations.
40986 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
40987
40988 ac_popdir=`pwd`
40989 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
40990
40991 # Do not complain, so a configure script can configure whichever
40992 # parts of a large source tree are present.
40993 test -d $srcdir/$ac_dir || continue
40994
40995 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
40996echo "$as_me: configuring in $ac_dir" >&6;}
40997 { if $as_mkdir_p; then
40998 mkdir -p "$ac_dir"
40999 else
41000 as_dir="$ac_dir"
41001 as_dirs=
41002 while test ! -d "$as_dir"; do
41003 as_dirs="$as_dir $as_dirs"
41004 as_dir=`(dirname "$as_dir") 2>/dev/null ||
41005$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f95e4495
VS
41006 X"$as_dir" : 'X\(//\)[^/]' \| \
41007 X"$as_dir" : 'X\(//\)$' \| \
41008 X"$as_dir" : 'X\(/\)' \| \
41009 . : '\(.\)' 2>/dev/null ||
672abd7a
VS
41010echo X"$as_dir" |
41011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
41012 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
41013 /^X\(\/\/\)$/{ s//\1/; q; }
41014 /^X\(\/\).*/{ s//\1/; q; }
41015 s/.*/./; q'`
41016 done
41017 test ! -n "$as_dirs" || mkdir $as_dirs
41018 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
41019echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
41020 { (exit 1); exit 1; }; }; }
41021
41022 ac_builddir=.
41023
41024if test "$ac_dir" != .; then
41025 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
41026 # A "../" for each directory in $ac_dir_suffix.
41027 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
41028else
41029 ac_dir_suffix= ac_top_builddir=
41030fi
41031
41032case $srcdir in
41033 .) # No --srcdir option. We are building in place.
41034 ac_srcdir=.
41035 if test -z "$ac_top_builddir"; then
41036 ac_top_srcdir=.
41037 else
41038 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
41039 fi ;;
41040 [\\/]* | ?:[\\/]* ) # Absolute path.
41041 ac_srcdir=$srcdir$ac_dir_suffix;
41042 ac_top_srcdir=$srcdir ;;
41043 *) # Relative path.
41044 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
41045 ac_top_srcdir=$ac_top_builddir$srcdir ;;
41046esac
f95e4495
VS
41047
41048# Do not use `cd foo && pwd` to compute absolute paths, because
41049# the directories may not exist.
41050case `pwd` in
41051.) ac_abs_builddir="$ac_dir";;
41052*)
41053 case "$ac_dir" in
41054 .) ac_abs_builddir=`pwd`;;
41055 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
41056 *) ac_abs_builddir=`pwd`/"$ac_dir";;
41057 esac;;
41058esac
41059case $ac_abs_builddir in
41060.) ac_abs_top_builddir=${ac_top_builddir}.;;
41061*)
41062 case ${ac_top_builddir}. in
41063 .) ac_abs_top_builddir=$ac_abs_builddir;;
41064 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
41065 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
41066 esac;;
41067esac
41068case $ac_abs_builddir in
41069.) ac_abs_srcdir=$ac_srcdir;;
41070*)
41071 case $ac_srcdir in
41072 .) ac_abs_srcdir=$ac_abs_builddir;;
41073 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
41074 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
41075 esac;;
41076esac
41077case $ac_abs_builddir in
41078.) ac_abs_top_srcdir=$ac_top_srcdir;;
41079*)
41080 case $ac_top_srcdir in
41081 .) ac_abs_top_srcdir=$ac_abs_builddir;;
41082 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
41083 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
41084 esac;;
41085esac
672abd7a
VS
41086
41087
41088 cd $ac_dir
41089
41090 # Check for guested configure; otherwise get Cygnus style configure.
41091 if test -f $ac_srcdir/configure.gnu; then
41092 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
41093 elif test -f $ac_srcdir/configure; then
41094 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
41095 elif test -f $ac_srcdir/configure.in; then
41096 ac_sub_configure=$ac_configure
41097 else
41098 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
41099echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
41100 ac_sub_configure=
41101 fi
41102
41103 # The recursion is here.
41104 if test -n "$ac_sub_configure"; then
41105 # Make the cache file name correct relative to the subdirectory.
41106 case $cache_file in
41107 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
41108 *) # Relative path.
f95e4495 41109 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
672abd7a
VS
41110 esac
41111
41112 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
41113echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
41114 # The eval makes quoting arguments work.
41115 eval $ac_sub_configure $ac_sub_configure_args \
f95e4495
VS
41116 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
41117 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
672abd7a
VS
41118echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
41119 { (exit 1); exit 1; }; }
41120 fi
41121
41122 cd $ac_popdir
41123 done
41124fi
41125
8284b0c5 41126
2b5f62a0
VZ
41127echo
41128echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
41129echo ""
89fe663f 41130echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}"
9747f85d 41131echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
41132
41133echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
41134echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
41135echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
41136
0c98a14e 41137echo " What level of wxWindows compatibility should be enabled?"
65d8ef1e
VS
41138echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
41139echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 41140
2b5f62a0
VZ
41141echo " Which libraries should wxWindows use?"
41142echo " jpeg ${wxUSE_LIBJPEG-none}"
41143echo " png ${wxUSE_LIBPNG-none}"
41144echo " regex ${wxUSE_REGEX}"
41145echo " tiff ${wxUSE_LIBTIFF-none}"
89fe663f
VZ
41146if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
41147echo " xpm ${wxUSE_LIBXPM-none}"
41148fi
2b5f62a0 41149echo " zlib ${wxUSE_ZLIB}"
fd3d7534 41150echo " odbc ${wxUSE_ODBC}"
5f0b6dff 41151echo " expat ${wxUSE_EXPAT}"
3527f29c 41152echo " libmspack ${wxUSE_LIBMSPACK}"
f93ca9fd 41153echo " sdl ${wxUSE_LIBSDL}"
2b5f62a0
VZ
41154
41155echo ""
41156