]> git.saurik.com Git - wxWidgets.git/blame - configure
fix yet another assert when the initial combo box value was empty (replaces patch...
[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.
789c5f4a 4# Generated by GNU Autoconf 2.57 for wxWindows 2.5.1.
e6cc62c6
VS
5#
6# Report bugs to <wx-dev@lists.wxwindows.org>.
7#
789c5f4a
VZ
8# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9# Free Software Foundation, Inc.
e6cc62c6
VS
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
12## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
fe0895cf 15
e6cc62c6
VS
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
fe0895cf 26
e6cc62c6 27# Support unset when possible.
789c5f4a 28if (FOO=FOO; unset FOO) >/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
789c5f4a 47 if (set +x; test -n "`(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
224 as_mkdir_p=false
225fi
fe0895cf 226
e6cc62c6 227as_executable_p="test -f"
fe0895cf 228
e6cc62c6 229# Sed expression to map a string onto a valid CPP name.
789c5f4a 230as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
fe0895cf 231
e6cc62c6 232# Sed expression to map a string onto a valid variable name.
789c5f4a 233as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
fe0895cf
VS
234
235
e6cc62c6
VS
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
fe0895cf 241
e6cc62c6
VS
242# CDPATH.
243$as_unset CDPATH
fe0895cf
VS
244
245
e6cc62c6
VS
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
fe0895cf 250
e6cc62c6 251exec 6>&1
fe0895cf 252
a0b9e27f 253#
e6cc62c6
VS
254# Initializations.
255#
a0b9e27f 256ac_default_prefix=/usr/local
e6cc62c6
VS
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete. It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='wxWindows'
271PACKAGE_TARNAME='wxwindows'
e46d2a18
VS
272PACKAGE_VERSION='2.5.1'
273PACKAGE_STRING='wxWindows 2.5.1'
e6cc62c6
VS
274PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
275
276ac_unique_file="wx-config.in"
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291# include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296# include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307# include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
672abd7a 314ac_subdirs_all="$ac_subdirs_all src/expat"
f93ca9fd 315ac_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 316ac_subst_files=''
10f2d63a
VZ
317
318# Initialize some variables set by options.
e6cc62c6
VS
319ac_init_help=
320ac_init_version=false
10f2d63a
VZ
321# The variables have the same names as the options, with
322# dashes changed to underlines.
e6cc62c6 323cache_file=/dev/null
10f2d63a 324exec_prefix=NONE
10f2d63a 325no_create=
10f2d63a
VZ
326no_recursion=
327prefix=NONE
328program_prefix=NONE
329program_suffix=NONE
330program_transform_name=s,x,x,
331silent=
332site=
333srcdir=
10f2d63a
VZ
334verbose=
335x_includes=NONE
336x_libraries=NONE
e6cc62c6
VS
337
338# Installation directory options.
339# These are left unexpanded so users can "make install exec_prefix=/foo"
340# and all the variables that are supposed to be based on exec_prefix
341# by default will actually change.
342# Use braces instead of parens because sh, perl, etc. also accept them.
10f2d63a
VZ
343bindir='${exec_prefix}/bin'
344sbindir='${exec_prefix}/sbin'
345libexecdir='${exec_prefix}/libexec'
346datadir='${prefix}/share'
347sysconfdir='${prefix}/etc'
348sharedstatedir='${prefix}/com'
349localstatedir='${prefix}/var'
350libdir='${exec_prefix}/lib'
351includedir='${prefix}/include'
352oldincludedir='/usr/include'
353infodir='${prefix}/info'
354mandir='${prefix}/man'
355
10f2d63a
VZ
356ac_prev=
357for ac_option
358do
10f2d63a
VZ
359 # If the previous option needs an argument, assign it.
360 if test -n "$ac_prev"; then
361 eval "$ac_prev=\$ac_option"
362 ac_prev=
363 continue
364 fi
365
e6cc62c6 366 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
367
368 # Accept the important Cygnus configure options, so we can diagnose typos.
369
e6cc62c6 370 case $ac_option in
10f2d63a
VZ
371
372 -bindir | --bindir | --bindi | --bind | --bin | --bi)
373 ac_prev=bindir ;;
374 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
e6cc62c6 375 bindir=$ac_optarg ;;
10f2d63a
VZ
376
377 -build | --build | --buil | --bui | --bu)
e6cc62c6 378 ac_prev=build_alias ;;
10f2d63a 379 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
e6cc62c6 380 build_alias=$ac_optarg ;;
10f2d63a
VZ
381
382 -cache-file | --cache-file | --cache-fil | --cache-fi \
383 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
384 ac_prev=cache_file ;;
385 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
386 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
e6cc62c6
VS
387 cache_file=$ac_optarg ;;
388
389 --config-cache | -C)
390 cache_file=config.cache ;;
10f2d63a
VZ
391
392 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
393 ac_prev=datadir ;;
394 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
395 | --da=*)
e6cc62c6 396 datadir=$ac_optarg ;;
10f2d63a
VZ
397
398 -disable-* | --disable-*)
e6cc62c6 399 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 400 # Reject names that are not valid shell variable names.
e6cc62c6
VS
401 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
402 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
403 { (exit 1); exit 1; }; }
404 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
405 eval "enable_$ac_feature=no" ;;
10f2d63a
VZ
406
407 -enable-* | --enable-*)
e6cc62c6 408 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 409 # Reject names that are not valid shell variable names.
e6cc62c6
VS
410 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
411 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
412 { (exit 1); exit 1; }; }
413 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
414 case $ac_option in
415 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
416 *) ac_optarg=yes ;;
417 esac
e6cc62c6 418 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
419
420 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
421 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
422 | --exec | --exe | --ex)
423 ac_prev=exec_prefix ;;
424 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
425 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
426 | --exec=* | --exe=* | --ex=*)
e6cc62c6 427 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
428
429 -gas | --gas | --ga | --g)
430 # Obsolete; use --with-gas.
431 with_gas=yes ;;
432
e6cc62c6
VS
433 -help | --help | --hel | --he | -h)
434 ac_init_help=long ;;
435 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
436 ac_init_help=recursive ;;
437 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
438 ac_init_help=short ;;
10f2d63a
VZ
439
440 -host | --host | --hos | --ho)
e6cc62c6 441 ac_prev=host_alias ;;
10f2d63a 442 -host=* | --host=* | --hos=* | --ho=*)
e6cc62c6 443 host_alias=$ac_optarg ;;
10f2d63a
VZ
444
445 -includedir | --includedir | --includedi | --included | --include \
446 | --includ | --inclu | --incl | --inc)
447 ac_prev=includedir ;;
448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
449 | --includ=* | --inclu=* | --incl=* | --inc=*)
e6cc62c6 450 includedir=$ac_optarg ;;
10f2d63a
VZ
451
452 -infodir | --infodir | --infodi | --infod | --info | --inf)
453 ac_prev=infodir ;;
454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
e6cc62c6 455 infodir=$ac_optarg ;;
10f2d63a
VZ
456
457 -libdir | --libdir | --libdi | --libd)
458 ac_prev=libdir ;;
459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
e6cc62c6 460 libdir=$ac_optarg ;;
10f2d63a
VZ
461
462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
463 | --libexe | --libex | --libe)
464 ac_prev=libexecdir ;;
465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
466 | --libexe=* | --libex=* | --libe=*)
e6cc62c6 467 libexecdir=$ac_optarg ;;
10f2d63a
VZ
468
469 -localstatedir | --localstatedir | --localstatedi | --localstated \
470 | --localstate | --localstat | --localsta | --localst \
471 | --locals | --local | --loca | --loc | --lo)
472 ac_prev=localstatedir ;;
473 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
474 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
475 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
e6cc62c6 476 localstatedir=$ac_optarg ;;
10f2d63a
VZ
477
478 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
479 ac_prev=mandir ;;
480 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
e6cc62c6 481 mandir=$ac_optarg ;;
10f2d63a
VZ
482
483 -nfp | --nfp | --nf)
484 # Obsolete; use --without-fp.
485 with_fp=no ;;
486
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
e6cc62c6 488 | --no-cr | --no-c | -n)
10f2d63a
VZ
489 no_create=yes ;;
490
491 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
492 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
493 no_recursion=yes ;;
494
495 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
496 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
497 | --oldin | --oldi | --old | --ol | --o)
498 ac_prev=oldincludedir ;;
499 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
500 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
501 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
e6cc62c6 502 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
503
504 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
505 ac_prev=prefix ;;
506 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
e6cc62c6 507 prefix=$ac_optarg ;;
10f2d63a
VZ
508
509 -program-prefix | --program-prefix | --program-prefi | --program-pref \
510 | --program-pre | --program-pr | --program-p)
511 ac_prev=program_prefix ;;
512 -program-prefix=* | --program-prefix=* | --program-prefi=* \
513 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
e6cc62c6 514 program_prefix=$ac_optarg ;;
10f2d63a
VZ
515
516 -program-suffix | --program-suffix | --program-suffi | --program-suff \
517 | --program-suf | --program-su | --program-s)
518 ac_prev=program_suffix ;;
519 -program-suffix=* | --program-suffix=* | --program-suffi=* \
520 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
e6cc62c6 521 program_suffix=$ac_optarg ;;
10f2d63a
VZ
522
523 -program-transform-name | --program-transform-name \
524 | --program-transform-nam | --program-transform-na \
525 | --program-transform-n | --program-transform- \
526 | --program-transform | --program-transfor \
527 | --program-transfo | --program-transf \
528 | --program-trans | --program-tran \
529 | --progr-tra | --program-tr | --program-t)
530 ac_prev=program_transform_name ;;
531 -program-transform-name=* | --program-transform-name=* \
532 | --program-transform-nam=* | --program-transform-na=* \
533 | --program-transform-n=* | --program-transform-=* \
534 | --program-transform=* | --program-transfor=* \
535 | --program-transfo=* | --program-transf=* \
536 | --program-trans=* | --program-tran=* \
537 | --progr-tra=* | --program-tr=* | --program-t=*)
e6cc62c6 538 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
539
540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
541 | -silent | --silent | --silen | --sile | --sil)
542 silent=yes ;;
543
544 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
545 ac_prev=sbindir ;;
546 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
547 | --sbi=* | --sb=*)
e6cc62c6 548 sbindir=$ac_optarg ;;
10f2d63a
VZ
549
550 -sharedstatedir | --sharedstatedir | --sharedstatedi \
551 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
552 | --sharedst | --shareds | --shared | --share | --shar \
553 | --sha | --sh)
554 ac_prev=sharedstatedir ;;
555 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
556 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
557 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
558 | --sha=* | --sh=*)
e6cc62c6 559 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
560
561 -site | --site | --sit)
562 ac_prev=site ;;
563 -site=* | --site=* | --sit=*)
e6cc62c6 564 site=$ac_optarg ;;
10f2d63a
VZ
565
566 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
567 ac_prev=srcdir ;;
568 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
e6cc62c6 569 srcdir=$ac_optarg ;;
10f2d63a
VZ
570
571 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
572 | --syscon | --sysco | --sysc | --sys | --sy)
573 ac_prev=sysconfdir ;;
574 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
575 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
e6cc62c6 576 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
577
578 -target | --target | --targe | --targ | --tar | --ta | --t)
e6cc62c6 579 ac_prev=target_alias ;;
10f2d63a 580 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
e6cc62c6 581 target_alias=$ac_optarg ;;
10f2d63a
VZ
582
583 -v | -verbose | --verbose | --verbos | --verbo | --verb)
584 verbose=yes ;;
585
e6cc62c6
VS
586 -version | --version | --versio | --versi | --vers | -V)
587 ac_init_version=: ;;
10f2d63a
VZ
588
589 -with-* | --with-*)
e6cc62c6 590 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 591 # Reject names that are not valid shell variable names.
e6cc62c6
VS
592 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
593 { echo "$as_me: error: invalid package name: $ac_package" >&2
594 { (exit 1); exit 1; }; }
10f2d63a 595 ac_package=`echo $ac_package| sed 's/-/_/g'`
e6cc62c6
VS
596 case $ac_option in
597 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
598 *) ac_optarg=yes ;;
599 esac
e6cc62c6 600 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
601
602 -without-* | --without-*)
e6cc62c6 603 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 604 # Reject names that are not valid shell variable names.
e6cc62c6
VS
605 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
606 { echo "$as_me: error: invalid package name: $ac_package" >&2
607 { (exit 1); exit 1; }; }
608 ac_package=`echo $ac_package | sed 's/-/_/g'`
609 eval "with_$ac_package=no" ;;
10f2d63a
VZ
610
611 --x)
612 # Obsolete; use --with-x.
613 with_x=yes ;;
614
615 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
616 | --x-incl | --x-inc | --x-in | --x-i)
617 ac_prev=x_includes ;;
618 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
619 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
e6cc62c6 620 x_includes=$ac_optarg ;;
10f2d63a
VZ
621
622 -x-libraries | --x-libraries | --x-librarie | --x-librari \
623 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
624 ac_prev=x_libraries ;;
625 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
626 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
e6cc62c6 627 x_libraries=$ac_optarg ;;
10f2d63a 628
e6cc62c6
VS
629 -*) { echo "$as_me: error: unrecognized option: $ac_option
630Try \`$0 --help' for more information." >&2
631 { (exit 1); exit 1; }; }
10f2d63a
VZ
632 ;;
633
e6cc62c6
VS
634 *=*)
635 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
636 # Reject names that are not valid shell variable names.
637 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
638 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
639 { (exit 1); exit 1; }; }
640 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
641 eval "$ac_envvar='$ac_optarg'"
642 export $ac_envvar ;;
643
10f2d63a 644 *)
e6cc62c6
VS
645 # FIXME: should be removed in autoconf 3.0.
646 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
647 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
648 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
649 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10f2d63a
VZ
650 ;;
651
652 esac
653done
654
655if test -n "$ac_prev"; then
e6cc62c6
VS
656 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
657 { echo "$as_me: error: missing argument to $ac_option" >&2
658 { (exit 1); exit 1; }; }
a0b9e27f 659fi
a0b9e27f 660
e6cc62c6
VS
661# Be sure to have absolute paths.
662for ac_var in exec_prefix prefix
663do
664 eval ac_val=$`echo $ac_var`
665 case $ac_val in
666 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
667 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
668 { (exit 1); exit 1; }; };;
669 esac
670done
8284b0c5 671
e6cc62c6
VS
672# Be sure to have absolute paths.
673for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
789c5f4a 674 localstatedir libdir includedir oldincludedir infodir mandir
10f2d63a 675do
e6cc62c6
VS
676 eval ac_val=$`echo $ac_var`
677 case $ac_val in
678 [\\/$]* | ?:[\\/]* ) ;;
679 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
680 { (exit 1); exit 1; }; };;
10f2d63a
VZ
681 esac
682done
683
e6cc62c6
VS
684# There might be people who depend on the old broken behavior: `$host'
685# used to hold the argument of --host etc.
686# FIXME: To remove some day.
687build=$build_alias
688host=$host_alias
689target=$target_alias
690
691# FIXME: To remove some day.
692if test "x$host_alias" != x; then
693 if test "x$build_alias" = x; then
694 cross_compiling=maybe
695 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
696 If a cross compiler is detected then cross compile mode will be used." >&2
697 elif test "x$build_alias" != "x$host_alias"; then
698 cross_compiling=yes
699 fi
700fi
247f5006 701
e6cc62c6
VS
702ac_tool_prefix=
703test -n "$host_alias" && ac_tool_prefix=$host_alias-
704
705test "$silent" = yes && exec 6>/dev/null
10f2d63a 706
10f2d63a
VZ
707
708# Find the source files, if location was not specified.
709if test -z "$srcdir"; then
710 ac_srcdir_defaulted=yes
711 # Try the directory containing this script, then its parent.
e6cc62c6
VS
712 ac_confdir=`(dirname "$0") 2>/dev/null ||
713$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
789c5f4a
VZ
714 X"$0" : 'X\(//\)[^/]' \| \
715 X"$0" : 'X\(//\)$' \| \
716 X"$0" : 'X\(/\)' \| \
717 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
718echo X"$0" |
719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
721 /^X\(\/\/\)$/{ s//\1/; q; }
722 /^X\(\/\).*/{ s//\1/; q; }
723 s/.*/./; q'`
10f2d63a
VZ
724 srcdir=$ac_confdir
725 if test ! -r $srcdir/$ac_unique_file; then
726 srcdir=..
727 fi
728else
729 ac_srcdir_defaulted=no
730fi
731if test ! -r $srcdir/$ac_unique_file; then
732 if test "$ac_srcdir_defaulted" = yes; then
e6cc62c6
VS
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
734 { (exit 1); exit 1; }; }
10f2d63a 735 else
e6cc62c6
VS
736 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
737 { (exit 1); exit 1; }; }
10f2d63a
VZ
738 fi
739fi
e6cc62c6
VS
740(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
741 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
742 { (exit 1); exit 1; }; }
743srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
744ac_env_build_alias_set=${build_alias+set}
745ac_env_build_alias_value=$build_alias
746ac_cv_env_build_alias_set=${build_alias+set}
747ac_cv_env_build_alias_value=$build_alias
748ac_env_host_alias_set=${host_alias+set}
749ac_env_host_alias_value=$host_alias
750ac_cv_env_host_alias_set=${host_alias+set}
751ac_cv_env_host_alias_value=$host_alias
752ac_env_target_alias_set=${target_alias+set}
753ac_env_target_alias_value=$target_alias
754ac_cv_env_target_alias_set=${target_alias+set}
755ac_cv_env_target_alias_value=$target_alias
756ac_env_CC_set=${CC+set}
757ac_env_CC_value=$CC
758ac_cv_env_CC_set=${CC+set}
759ac_cv_env_CC_value=$CC
760ac_env_CFLAGS_set=${CFLAGS+set}
761ac_env_CFLAGS_value=$CFLAGS
762ac_cv_env_CFLAGS_set=${CFLAGS+set}
763ac_cv_env_CFLAGS_value=$CFLAGS
764ac_env_LDFLAGS_set=${LDFLAGS+set}
765ac_env_LDFLAGS_value=$LDFLAGS
766ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
767ac_cv_env_LDFLAGS_value=$LDFLAGS
768ac_env_CPPFLAGS_set=${CPPFLAGS+set}
769ac_env_CPPFLAGS_value=$CPPFLAGS
770ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
771ac_cv_env_CPPFLAGS_value=$CPPFLAGS
772ac_env_CPP_set=${CPP+set}
773ac_env_CPP_value=$CPP
774ac_cv_env_CPP_set=${CPP+set}
775ac_cv_env_CPP_value=$CPP
776ac_env_CXX_set=${CXX+set}
777ac_env_CXX_value=$CXX
778ac_cv_env_CXX_set=${CXX+set}
779ac_cv_env_CXX_value=$CXX
780ac_env_CXXFLAGS_set=${CXXFLAGS+set}
781ac_env_CXXFLAGS_value=$CXXFLAGS
782ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
783ac_cv_env_CXXFLAGS_value=$CXXFLAGS
784ac_env_CXXCPP_set=${CXXCPP+set}
785ac_env_CXXCPP_value=$CXXCPP
786ac_cv_env_CXXCPP_set=${CXXCPP+set}
787ac_cv_env_CXXCPP_value=$CXXCPP
328a083c 788
e6cc62c6
VS
789#
790# Report the --help message.
791#
792if test "$ac_init_help" = "long"; then
793 # Omit some internal or obsolete options to make the list less imposing.
794 # This message is too long to be a string in the A/UX 3.1 sh.
795 cat <<_ACEOF
e46d2a18 796\`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems.
10f2d63a 797
e6cc62c6 798Usage: $0 [OPTION]... [VAR=VALUE]...
10f2d63a 799
e6cc62c6
VS
800To assign environment variables (e.g., CC, CFLAGS...), specify them as
801VAR=VALUE. See below for descriptions of some of the useful variables.
8284b0c5 802
e6cc62c6
VS
803Defaults for the options are specified in brackets.
804
805Configuration:
806 -h, --help display this help and exit
807 --help=short display options specific to this package
808 --help=recursive display the short help of all the included packages
809 -V, --version display version information and exit
810 -q, --quiet, --silent do not print \`checking...' messages
811 --cache-file=FILE cache test results in FILE [disabled]
812 -C, --config-cache alias for \`--cache-file=config.cache'
813 -n, --no-create do not create output files
814 --srcdir=DIR find the sources in DIR [configure dir or \`..']
815
816_ACEOF
817
818 cat <<_ACEOF
819Installation directories:
820 --prefix=PREFIX install architecture-independent files in PREFIX
789c5f4a 821 [$ac_default_prefix]
e6cc62c6 822 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
789c5f4a 823 [PREFIX]
e6cc62c6
VS
824
825By default, \`make install' will install all the files in
826\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
827an installation prefix other than \`$ac_default_prefix' using \`--prefix',
828for instance \`--prefix=\$HOME'.
829
830For better control, use the options below.
831
832Fine tuning of the installation directories:
833 --bindir=DIR user executables [EPREFIX/bin]
834 --sbindir=DIR system admin executables [EPREFIX/sbin]
835 --libexecdir=DIR program executables [EPREFIX/libexec]
836 --datadir=DIR read-only architecture-independent data [PREFIX/share]
837 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
838 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
839 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
840 --libdir=DIR object code libraries [EPREFIX/lib]
841 --includedir=DIR C header files [PREFIX/include]
842 --oldincludedir=DIR C header files for non-gcc [/usr/include]
843 --infodir=DIR info documentation [PREFIX/info]
844 --mandir=DIR man documentation [PREFIX/man]
845_ACEOF
846
847 cat <<\_ACEOF
848
849X features:
850 --x-includes=DIR X include files are in DIR
851 --x-libraries=DIR X library files are in DIR
852
853System types:
854 --build=BUILD configure for building on BUILD [guessed]
855 --host=HOST cross-compile to build programs to run on HOST [BUILD]
856 --target=TARGET configure for building compilers for TARGET [HOST]
857_ACEOF
858fi
859
860if test -n "$ac_init_help"; then
861 case $ac_init_help in
e46d2a18 862 short | recursive ) echo "Configuration of wxWindows 2.5.1:";;
e6cc62c6
VS
863 esac
864 cat <<\_ACEOF
865
866Optional Features:
867 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
868 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
869 --enable-gui use GUI classes
f93ca9fd
VS
870 --enable-monolithic build wxWindows as single library
871 --enable-plugins build parts of wxWindows as loadable components
e6cc62c6
VS
872 --enable-universal use wxWindows GUI controls instead of native ones
873 --enable-nanox use NanoX
874 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)
875 --enable-shared create shared library code
e6cc62c6
VS
876 --enable-optimise create optimised code
877 --enable-debug same as debug_flag and debug_info
df5168c4 878 --enable-stl use STL for containers
e6cc62c6
VS
879 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)
880 --enable-debug_info create code with debugging information
881 --enable-debug_gdb create code with extra GDB debugging information
882 --enable-debug_cntxt use wxDebugContext
883 --enable-mem_tracing create code with memory tracing
884 --enable-profile create code with profiling information
885 --enable-no_rtti create code without RTTI information
886 --enable-no_exceptions create code without C++ exceptions handling
887 --enable-permissive compile code disregarding strict ANSI
888 --enable-no_deps create code without dependency information
e6cc62c6
VS
889 --enable-compat22 enable wxWindows 2.2 compatibility
890 --disable-compat24 disable wxWindows 2.4 compatibility
891 --enable-rpath=DIR output the rpath flag from wx-config
892 --enable-intl use internationalization system
893 --enable-config use wxConfig (and derived) classes
894 --enable-protocols use wxProtocol and derived classes
895 --enable-ftp use wxFTP (requires wxProtocol
896 --enable-http use wxHTTP (requires wxProtocol
897 --enable-fileproto use wxFileProto class (requires wxProtocol
898 --enable-sockets use socket/network classes
e46d2a18 899 --enable-ole use OLE classes (Win32 only)
e6cc62c6
VS
900 --enable-dataobj use data object classes
901 --enable-ipc use interprocess communication (wxSocket etc.)
e46d2a18
VS
902 --enable-apple_ieee use the Apple IEEE codec
903 --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only)
e6cc62c6
VS
904 --enable-cmdline use wxCmdLineParser class
905 --enable-datetime use wxDateTime class
e6cc62c6 906 --enable-dialupman use dialup network classes
e6cc62c6
VS
907 --enable-dynlib use wxLibrary class for DLL loading
908 --enable-dynamicloader use (new) wxDynamicLibrary class
e46d2a18
VS
909 --enable-exceptions build exception-safe library
910 --enable-ffile use wxFFile class
911 --enable-file use wxFile class
912 --enable-filesystem use virtual file systems classes
913 --enable-fontmap use font encodings conversion classes
914 --enable-fs_inet use virtual HTTP/FTP filesystems
915 --enable-fs_zip use virtual ZIP filesystems
e6cc62c6
VS
916 --enable-geometry use geometry class
917 --enable-log use logging system
e46d2a18
VS
918 --enable-longlong use wxLongLong class
919 --enable-mimetype use wxMimeTypesManager
920 --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only)
921 --enable-snglinst use wxSingleInstanceChecker class
e6cc62c6 922 --enable-streams use wxStream etc classes
e46d2a18
VS
923 --enable-std_iostreams use standard C++ stream classes
924 --enable-stopwatch use wxStopWatch class
925 --enable-sysoptions use wxSystemOptions
e6cc62c6
VS
926 --enable-textbuf use wxTextBuffer class
927 --enable-textfile use wxTextFile class
e46d2a18 928 --enable-timer use wxTimer class
e6cc62c6 929 --enable-unicode compile wxString with Unicode support
002ed9af 930 --enable-sound use wxSound class
e6cc62c6 931 --enable-wxprintfv use wxWindows implementation of vprintf()
e6cc62c6 932 --enable-zipstream use wxZipInputStream
7015ef3a 933 --enable-gzstream use wxGzipInputStream
e6cc62c6
VS
934 --enable-url use wxURL class
935 --enable-protocol use wxProtocol class
936 --enable-protocol-http HTTP support in wxProtocol
937 --enable-protocol-ftp FTP support in wxProtocol
938 --enable-protocol-file FILE support in wxProtocol
939 --enable-threads use threads
940 --enable-docview use document view architecture
941 --enable-help use help subsystem
942 --enable-mshtmlhelp use MS HTML Help (win32)
943 --enable-html use wxHTML sub-library
944 --enable-htmlhelp use wxHTML-based help
945 --enable-constraints use layout-constraints system
946 --enable-printarch use printing architecture
947 --enable-mdi use multiple document interface architecture
948 --enable-loggui use standard GUI logger
949 --enable-logwin use wxLogWindow
950 --enable-logdialog use wxLogDialog
951 --enable-postscript use wxPostscriptDC device context (default for gtk+)
952 --enable-prologio not available; see contrib
953 --enable-resources not available; see contrib
954 --enable-clipboard use wxClipboard class
955 --enable-dnd use Drag'n'Drop classes
956 --enable-metafile use win32 metafiles
957 --enable-controls use all usual controls
958 --enable-accel use accelerators
959 --enable-button use wxButton class
960 --enable-bmpbutton use wxBitmapButton class
961 --enable-calendar use wxCalendarCtrl class
962 --enable-caret use wxCaret class
963 --enable-checkbox use wxCheckBox class
964 --enable-checklst use wxCheckListBox (listbox with checkboxes) class
965 --enable-choice use wxChoice class
966 --enable-combobox use wxComboBox class
967 --enable-display use wxDisplay class
968 --enable-gauge use wxGauge class
969 --enable-grid use wxGrid class
970 --enable-imaglist use wxImageList class
0e012a93 971 --enable-listbook use wxListbook class
e6cc62c6
VS
972 --enable-listbox use wxListBox class
973 --enable-listctrl use wxListCtrl class
974 --enable-notebook use wxNotebook class
975 --enable-radiobox use wxRadioBox class
976 --enable-radiobtn use wxRadioButton class
977 --enable-sash use wxSashWindow class
978 --enable-scrollbar use wxScrollBar class and scrollable windows
979 --enable-slider use wxSlider class
980 --enable-spinbtn use wxSpinButton class
981 --enable-spinctrl use wxSpinCtrl class
982 --enable-splitter use wxSplitterWindow class
983 --enable-statbmp use wxStaticBitmap class
984 --enable-statbox use wxStaticBox class
985 --enable-statline use wxStaticLine class
986 --enable-stattext use wxStaticText class
987 --enable-statusbar use wxStatusBar class
988 --enable-tabdialog use wxTabControl class
989 --enable-textctrl use wxTextCtrl class
990 --enable-togglebtn use wxToggleButton class
991 --enable-toolbar use wxToolBar class
992 --enable-tbarnative use native wxToolBar class
993 --enable-tbarsmpl use wxToolBarSimple class
994 --enable-treectrl use wxTreeCtrl class
995 --enable-tipwindow use wxTipWindow class
996 --enable-popupwin use wxPopUpWindow class
997 --enable-commondlg use all common dialogs
998 --enable-choicedlg use wxChoiceDialog
999 --enable-coldlg use wxColourDialog
1000 --enable-filedlg use wxFileDialog
1001 --enable-finddlg use wxFindReplaceDialog
1002 --enable-fontdlg use wxFontDialog
1003 --enable-dirdlg use wxDirDialog
1004 --enable-msgdlg use wxMessageDialog
1005 --enable-numberdlg use wxNumberEntryDialog
1006 --enable-splash use wxSplashScreen
1007 --enable-textdlg use wxTextDialog
1008 --enable-tipdlg use startup tips
1009 --enable-progressdlg use wxProgressDialog
1010 --enable-wizarddlg use wxWizard
1011 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes
1012 --enable-miniframe use wxMiniFrame class
1013 --enable-tooltips use wxToolTip class
1014 --enable-splines use spline drawing code
1015 --enable-validators use wxValidator and derived classes
1016 --enable-busyinfo use wxBusyInfo
1017 --enable-joystick use wxJoystick (Linux only)
1018 --enable-metafiles use wxMetaFile (Windows only)
1019 --enable-dragimage use wxDragImage
1020 --enable-accessibility enable accessibility support
1021 --enable-palette use wxPalette class
1022 --enable-image use wxImage class
1023 --enable-gif use gif images (GIF file format)
1024 --enable-pcx use pcx images (PCX file format)
1025 --enable-iff use iff images (IFF file format)
1026 --enable-pnm use pnm images (PNM file format)
1027 --enable-xpm use xpm images (XPM file format)
1028 --enable-icocur use Windows ICO and CUR formats
029b47ad
VS
1029 --enable-official_build official build of wxWindows (win32 DLL only)
1030 --enable-vendor=VENDOR vendor name (win32 DLL only)
e6cc62c6
VS
1031 --disable-largefile omit support for large files
1032 --disable-gtktest do not try to compile and run a test GTK+ program
1033 --disable-gtktest Do not try to compile and run a test GTK program
f93ca9fd 1034 --disable-sdltest Do not try to compile and run a test SDL program
45842500 1035 --disable-precomp-headers don't use precompiled headers even if compiler can
e6cc62c6
VS
1036
1037Optional Packages:
1038 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1039 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1040 --with-gtk use GTK+
1041 --with-motif use Motif/Lesstif
1042 --with-mac use Mac OS X
1043 --with-cocoa use Cocoa
1044 --with-wine use Wine
1045 --with-msw use MS-Windows
1046 --with-pm use OS/2 Presentation Manager
1047 --with-mgl use SciTech MGL
1048 --with-microwin use MicroWindows
1049 --with-x11 use X11
1050 --with-libpng use libpng (PNG image format)
1051 --with-libjpeg use libjpeg (JPEG file format)
1052 --with-libtiff use libtiff (TIFF file format)
89fe663f 1053 --with-libxpm use libxpm (XPM file format)
3527f29c 1054 --with-libmspack use libmspack (CHM help files loading)
f93ca9fd 1055 --with-sdl use SDL for audio on Unix
e6cc62c6
VS
1056 --with-opengl use OpenGL (or Mesa)
1057 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1058 --with-regex enable support for wxRegEx class
1059 --with-zlib use zlib for LZW compression
1060 --with-odbc use the IODBC and wxODBC classes
672abd7a 1061 --with-expat enable XML support using expat parser
e6cc62c6
VS
1062 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1063 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1064 --with-x use the X Window System
1065 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
f93ca9fd
VS
1066 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1067 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
e6cc62c6
VS
1068
1069Some influential environment variables:
1070 CC C compiler command
1071 CFLAGS C compiler flags
1072 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1073 nonstandard directory <lib dir>
1074 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1075 headers in a nonstandard directory <include dir>
1076 CPP C preprocessor
1077 CXX C++ compiler command
1078 CXXFLAGS C++ compiler flags
1079 CXXCPP C++ preprocessor
1080
1081Use these variables to override the choices made by `configure' or to help
1082it to find libraries and programs with nonstandard names/locations.
1083
1084Report bugs to <wx-dev@lists.wxwindows.org>.
1085_ACEOF
1086fi
1087
1088if test "$ac_init_help" = "recursive"; then
1089 # If there are subdirs, report their specific --help.
1090 ac_popdir=`pwd`
1091 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1092 test -d $ac_dir || continue
1093 ac_builddir=.
1094
1095if test "$ac_dir" != .; then
1096 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1097 # A "../" for each directory in $ac_dir_suffix.
1098 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1099else
1100 ac_dir_suffix= ac_top_builddir=
1101fi
1102
1103case $srcdir in
1104 .) # No --srcdir option. We are building in place.
1105 ac_srcdir=.
1106 if test -z "$ac_top_builddir"; then
1107 ac_top_srcdir=.
1108 else
1109 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1110 fi ;;
1111 [\\/]* | ?:[\\/]* ) # Absolute path.
1112 ac_srcdir=$srcdir$ac_dir_suffix;
1113 ac_top_srcdir=$srcdir ;;
1114 *) # Relative path.
1115 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1116 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1117esac
789c5f4a
VZ
1118# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1119# absolute.
1120ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1121ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1122ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1123ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
e6cc62c6
VS
1124
1125 cd $ac_dir
1126 # Check for guested configure; otherwise get Cygnus style configure.
1127 if test -f $ac_srcdir/configure.gnu; then
1128 echo
1129 $SHELL $ac_srcdir/configure.gnu --help=recursive
1130 elif test -f $ac_srcdir/configure; then
1131 echo
1132 $SHELL $ac_srcdir/configure --help=recursive
1133 elif test -f $ac_srcdir/configure.ac ||
789c5f4a 1134 test -f $ac_srcdir/configure.in; then
e6cc62c6
VS
1135 echo
1136 $ac_configure --help
1137 else
1138 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1139 fi
1140 cd $ac_popdir
1141 done
1142fi
8284b0c5 1143
e6cc62c6
VS
1144test -n "$ac_init_help" && exit 0
1145if $ac_init_version; then
1146 cat <<\_ACEOF
e46d2a18 1147wxWindows configure 2.5.1
789c5f4a 1148generated by GNU Autoconf 2.57
10f2d63a 1149
789c5f4a
VZ
1150Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1151Free Software Foundation, Inc.
e6cc62c6
VS
1152This configure script is free software; the Free Software Foundation
1153gives unlimited permission to copy, distribute and modify it.
1154_ACEOF
1155 exit 0
7c66a493 1156fi
e6cc62c6
VS
1157exec 5>config.log
1158cat >&5 <<_ACEOF
1159This file contains any messages produced by compilers while
1160running configure, to aid debugging if configure makes a mistake.
1161
e46d2a18 1162It was created by wxWindows $as_me 2.5.1, which was
789c5f4a 1163generated by GNU Autoconf 2.57. Invocation command line was
e6cc62c6
VS
1164
1165 $ $0 $@
1166
1167_ACEOF
1168{
1169cat <<_ASUNAME
1170## --------- ##
1171## Platform. ##
1172## --------- ##
1173
1174hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1175uname -m = `(uname -m) 2>/dev/null || echo unknown`
1176uname -r = `(uname -r) 2>/dev/null || echo unknown`
1177uname -s = `(uname -s) 2>/dev/null || echo unknown`
1178uname -v = `(uname -v) 2>/dev/null || echo unknown`
1179
1180/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1181/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1182
1183/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1184/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1185/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1186hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1187/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1188/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1189/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1190
1191_ASUNAME
1192
1193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1194for as_dir in $PATH
1195do
1196 IFS=$as_save_IFS
1197 test -z "$as_dir" && as_dir=.
1198 echo "PATH: $as_dir"
1199done
1200
1201} >&5
1202
1203cat >&5 <<_ACEOF
1204
1205
1206## ----------- ##
1207## Core tests. ##
1208## ----------- ##
1209
1210_ACEOF
1211
1212
1213# Keep a trace of the command line.
1214# Strip out --no-create and --no-recursion so they do not pile up.
1215# Strip out --silent because we don't want to record it for future runs.
1216# Also quote any args containing shell meta-characters.
1217# Make two passes to allow for proper duplicate-argument suppression.
1218ac_configure_args=
1219ac_configure_args0=
1220ac_configure_args1=
1221ac_sep=
1222ac_must_keep_next=false
1223for ac_pass in 1 2
1224do
1225 for ac_arg
1226 do
1227 case $ac_arg in
1228 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1229 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1230 | -silent | --silent | --silen | --sile | --sil)
1231 continue ;;
1232 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1233 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1234 esac
1235 case $ac_pass in
1236 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1237 2)
1238 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1239 if test $ac_must_keep_next = true; then
789c5f4a 1240 ac_must_keep_next=false # Got value, back to normal.
e6cc62c6 1241 else
789c5f4a
VZ
1242 case $ac_arg in
1243 *=* | --config-cache | -C | -disable-* | --disable-* \
1244 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1245 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1246 | -with-* | --with-* | -without-* | --without-* | --x)
1247 case "$ac_configure_args0 " in
1248 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1249 esac
1250 ;;
1251 -* ) ac_must_keep_next=true ;;
1252 esac
e6cc62c6
VS
1253 fi
1254 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1255 # Get rid of the leading space.
1256 ac_sep=" "
1257 ;;
1258 esac
1259 done
1260done
1261$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1262$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1263
1264# When interrupted or exit'd, cleanup temporary files, and complete
1265# config.log. We remove comments because anyway the quotes in there
1266# would cause problems or look ugly.
1267# WARNING: Be sure not to use single quotes in there, as some shells,
1268# such as our DU 5.0 friend, will then `close' the trap.
1269trap 'exit_status=$?
1270 # Save into config.log some information that might help in debugging.
1271 {
1272 echo
1273
1274 cat <<\_ASBOX
1275## ---------------- ##
1276## Cache variables. ##
1277## ---------------- ##
1278_ASBOX
1279 echo
1280 # The following way of writing the cache mishandles newlines in values,
1281{
1282 (set) 2>&1 |
1283 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1284 *ac_space=\ *)
1285 sed -n \
789c5f4a
VZ
1286 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1287 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
e6cc62c6
VS
1288 ;;
1289 *)
1290 sed -n \
789c5f4a 1291 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
1292 ;;
1293 esac;
1294}
1295 echo
1296
1297 cat <<\_ASBOX
1298## ----------------- ##
1299## Output variables. ##
1300## ----------------- ##
1301_ASBOX
1302 echo
1303 for ac_var in $ac_subst_vars
1304 do
1305 eval ac_val=$`echo $ac_var`
1306 echo "$ac_var='"'"'$ac_val'"'"'"
1307 done | sort
1308 echo
1309
1310 if test -n "$ac_subst_files"; then
1311 cat <<\_ASBOX
1312## ------------- ##
1313## Output files. ##
1314## ------------- ##
1315_ASBOX
1316 echo
1317 for ac_var in $ac_subst_files
1318 do
1319 eval ac_val=$`echo $ac_var`
789c5f4a 1320 echo "$ac_var='"'"'$ac_val'"'"'"
e6cc62c6
VS
1321 done | sort
1322 echo
1323 fi
1324
1325 if test -s confdefs.h; then
1326 cat <<\_ASBOX
1327## ----------- ##
1328## confdefs.h. ##
1329## ----------- ##
1330_ASBOX
1331 echo
1332 sed "/^$/d" confdefs.h | sort
1333 echo
1334 fi
1335 test "$ac_signal" != 0 &&
1336 echo "$as_me: caught signal $ac_signal"
1337 echo "$as_me: exit $exit_status"
1338 } >&5
789c5f4a 1339 rm -f core core.* *.core &&
e6cc62c6
VS
1340 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1341 exit $exit_status
1342 ' 0
1343for ac_signal in 1 2 13 15; do
1344 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1345done
1346ac_signal=0
1347
1348# confdefs.h avoids OS command line length limits that DEFS can exceed.
1349rm -rf conftest* confdefs.h
1350# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1351echo >confdefs.h
1352
1353# Predefined preprocessor variables.
1354
1355cat >>confdefs.h <<_ACEOF
1356#define PACKAGE_NAME "$PACKAGE_NAME"
1357_ACEOF
1358
1359
1360cat >>confdefs.h <<_ACEOF
1361#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1362_ACEOF
1363
1364
1365cat >>confdefs.h <<_ACEOF
1366#define PACKAGE_VERSION "$PACKAGE_VERSION"
1367_ACEOF
1368
1369
1370cat >>confdefs.h <<_ACEOF
1371#define PACKAGE_STRING "$PACKAGE_STRING"
1372_ACEOF
1373
1374
1375cat >>confdefs.h <<_ACEOF
1376#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1377_ACEOF
1378
1379
1380# Let the site file select an alternate cache file if it wants to.
1381# Prefer explicitly selected file to automatically selected ones.
1382if test -z "$CONFIG_SITE"; then
1383 if test "x$prefix" != xNONE; then
1384 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1385 else
1386 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1387 fi
1388fi
1389for ac_site_file in $CONFIG_SITE; do
1390 if test -r "$ac_site_file"; then
1391 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1392echo "$as_me: loading site script $ac_site_file" >&6;}
1393 sed 's/^/| /' "$ac_site_file" >&5
1394 . "$ac_site_file"
1395 fi
1396done
1397
1398if test -r "$cache_file"; then
1399 # Some versions of bash will fail to source /dev/null (special
1400 # files actually), so we avoid doing that.
1401 if test -f "$cache_file"; then
1402 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1403echo "$as_me: loading cache $cache_file" >&6;}
1404 case $cache_file in
1405 [\\/]* | ?:[\\/]* ) . $cache_file;;
1406 *) . ./$cache_file;;
1407 esac
1408 fi
1409else
1410 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1411echo "$as_me: creating cache $cache_file" >&6;}
1412 >$cache_file
1413fi
1414
1415# Check that the precious variables saved in the cache have kept the same
1416# value.
1417ac_cache_corrupted=false
1418for ac_var in `(set) 2>&1 |
789c5f4a 1419 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
e6cc62c6
VS
1420 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1421 eval ac_new_set=\$ac_env_${ac_var}_set
1422 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1423 eval ac_new_val="\$ac_env_${ac_var}_value"
1424 case $ac_old_set,$ac_new_set in
1425 set,)
1426 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1427echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1428 ac_cache_corrupted=: ;;
1429 ,set)
1430 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1431echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1432 ac_cache_corrupted=: ;;
1433 ,);;
1434 *)
1435 if test "x$ac_old_val" != "x$ac_new_val"; then
789c5f4a 1436 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
e6cc62c6 1437echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
789c5f4a 1438 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
e6cc62c6 1439echo "$as_me: former value: $ac_old_val" >&2;}
789c5f4a 1440 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
e6cc62c6 1441echo "$as_me: current value: $ac_new_val" >&2;}
789c5f4a 1442 ac_cache_corrupted=:
e6cc62c6
VS
1443 fi;;
1444 esac
1445 # Pass precious variables to config.status.
1446 if test "$ac_new_set" = set; then
1447 case $ac_new_val in
1448 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1449 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1450 *) ac_arg=$ac_var=$ac_new_val ;;
1451 esac
1452 case " $ac_configure_args " in
1453 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1454 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1455 esac
1456 fi
1457done
1458if $ac_cache_corrupted; then
1459 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1460echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1461 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1462echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1463 { (exit 1); exit 1; }; }
1464fi
1465
1466ac_ext=c
1467ac_cpp='$CPP $CPPFLAGS'
1468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1470ac_compiler_gnu=$ac_cv_c_compiler_gnu
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
698dcdb6 1488
8284b0c5 1489
7c66a493 1490
a0b9e27f
MB
1491
1492
a0b9e27f 1493
a0b9e27f 1494
a0b9e27f 1495
a0b9e27f 1496
a0b9e27f 1497
a0b9e27f 1498
e6cc62c6
VS
1499
1500
1501ac_aux_dir=
1502for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1503 if test -f $ac_dir/install-sh; then
1504 ac_aux_dir=$ac_dir
1505 ac_install_sh="$ac_aux_dir/install-sh -c"
1506 break
1507 elif test -f $ac_dir/install.sh; then
1508 ac_aux_dir=$ac_dir
1509 ac_install_sh="$ac_aux_dir/install.sh -c"
1510 break
1511 elif test -f $ac_dir/shtool; then
1512 ac_aux_dir=$ac_dir
1513 ac_install_sh="$ac_aux_dir/shtool install -c"
1514 break
1515 fi
1516done
1517if test -z "$ac_aux_dir"; then
1518 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1519echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1520 { (exit 1); exit 1; }; }
1521fi
1522ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1525
1526# Make sure we can run config.sub.
1527$ac_config_sub sun4 >/dev/null 2>&1 ||
1528 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1529echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1530 { (exit 1); exit 1; }; }
1531
1532echo "$as_me:$LINENO: checking build system type" >&5
1533echo $ECHO_N "checking build system type... $ECHO_C" >&6
1534if test "${ac_cv_build+set}" = set; then
1535 echo $ECHO_N "(cached) $ECHO_C" >&6
1536else
1537 ac_cv_build_alias=$build_alias
1538test -z "$ac_cv_build_alias" &&
1539 ac_cv_build_alias=`$ac_config_guess`
1540test -z "$ac_cv_build_alias" &&
1541 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1542echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1543 { (exit 1); exit 1; }; }
1544ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1545 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1546echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1547 { (exit 1); exit 1; }; }
1548
1549fi
1550echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1551echo "${ECHO_T}$ac_cv_build" >&6
1552build=$ac_cv_build
1553build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1554build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1555build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1556
1557
1558echo "$as_me:$LINENO: checking host system type" >&5
1559echo $ECHO_N "checking host system type... $ECHO_C" >&6
1560if test "${ac_cv_host+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1562else
1563 ac_cv_host_alias=$host_alias
1564test -z "$ac_cv_host_alias" &&
1565 ac_cv_host_alias=$ac_cv_build_alias
1566ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1567 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1568echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1569 { (exit 1); exit 1; }; }
1570
1571fi
1572echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1573echo "${ECHO_T}$ac_cv_host" >&6
1574host=$ac_cv_host
1575host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1576host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1577host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1578
1579
1580echo "$as_me:$LINENO: checking target system type" >&5
1581echo $ECHO_N "checking target system type... $ECHO_C" >&6
1582if test "${ac_cv_target+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1584else
1585 ac_cv_target_alias=$target_alias
1586test "x$ac_cv_target_alias" = "x" &&
1587 ac_cv_target_alias=$ac_cv_host_alias
1588ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1589 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1590echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1591 { (exit 1); exit 1; }; }
1592
1593fi
1594echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1595echo "${ECHO_T}$ac_cv_target" >&6
1596target=$ac_cv_target
1597target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1598target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1599target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1600
1601
1602# The aliases save the names the user supplied, while $host etc.
1603# will get canonicalized.
1604test -n "$target_alias" &&
7c66a493
VZ
1605 test "$program_prefix$program_suffix$program_transform_name" = \
1606 NONENONEs,x,x, &&
1607 program_prefix=${target_alias}-
8284b0c5
MB
1608
1609
a0b9e27f 1610
10f2d63a 1611WX_MAJOR_VERSION_NUMBER=2
34bed6d9 1612WX_MINOR_VERSION_NUMBER=5
e46d2a18 1613WX_RELEASE_NUMBER=1
10f2d63a 1614
10f2d63a 1615WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1616WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1617
978f1259
RL
1618WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1619
7015ef3a 1620WX_CURRENT=1
6426998c
RL
1621WX_REVISION=0
1622WX_AGE=0
1623
8284b0c5
MB
1624
1625
10f2d63a 1626USE_UNIX=1
73d617c9 1627USE_OS2=0
10f2d63a 1628USE_WIN32=0
f9bc1684 1629USE_DOS=0
b12915c1 1630USE_BEOS=0
1216f52d 1631USE_MAC=0
b12915c1 1632
10f2d63a 1633USE_AIX=
fe0895cf
VS
1634USE_BSD= USE_DARWIN= USE_FREEBSD=
1635USE_GNU= USE_HPUX=
89e3b3e4 1636USE_LINUX=
f6bcfd97 1637USE_NETBSD=
89e3b3e4 1638USE_OPENBSD=
fe0895cf
VS
1639USE_OSF= USE_SGI=
1640USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1641USE_ULTRIX=
89e3b3e4
VZ
1642USE_UNIXWARE=
1643
1644USE_ALPHA=
10f2d63a 1645
ab9b9eab
VZ
1646NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1647
ac0c4cc3 1648ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1649
ac0c4cc3 1650DEFAULT_wxUSE_COCOA=0
10f2d63a 1651DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1652DEFAULT_wxUSE_MAC=0
1653DEFAULT_wxUSE_MGL=0
1725144d 1654DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1655DEFAULT_wxUSE_MOTIF=0
1656DEFAULT_wxUSE_MSW=0
e07802fc 1657DEFAULT_wxUSE_PM=0
f79bd02d 1658DEFAULT_wxUSE_X11=0
10f2d63a 1659
ac0c4cc3 1660DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1661DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1662DEFAULT_DEFAULT_wxUSE_MAC=0
1663DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1664DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1665DEFAULT_DEFAULT_wxUSE_MOTIF=0
1666DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1667DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1668DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1669
d6a55c4b 1670PROGRAM_EXT=
3a922bb4 1671SO_SUFFIX=so
fe0895cf 1672SAMPLES_RPATH_FLAG=
0f1bc9c2 1673SAMPLES_RPATH_POSTLINK=
d6a55c4b 1674
10f2d63a
VZ
1675case "${host}" in
1676 *-hp-hpux* )
1677 USE_HPUX=1
1678 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1679 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1680 SO_SUFFIX=sl
e6cc62c6 1681 cat >>confdefs.h <<\_ACEOF
10f2d63a 1682#define __HPUX__ 1
e6cc62c6 1683_ACEOF
10f2d63a
VZ
1684
1685 ;;
1686 *-*-linux* )
1687 USE_LINUX=1
e6cc62c6 1688 cat >>confdefs.h <<\_ACEOF
10f2d63a 1689#define __LINUX__ 1
e6cc62c6 1690_ACEOF
10f2d63a
VZ
1691
1692 TMP=`uname -m`
1693 if test "x$TMP" = "xalpha"; then
1694 USE_ALPHA=1
e6cc62c6 1695 cat >>confdefs.h <<\_ACEOF
10f2d63a 1696#define __ALPHA__ 1
e6cc62c6 1697_ACEOF
fe0895cf
VS
1698
1699 fi
1700 DEFAULT_DEFAULT_wxUSE_GTK=1
1701 ;;
1702 *-*-gnu* )
1703 USE_GNU=1
e6cc62c6 1704 cat >>confdefs.h <<\_ACEOF
fe0895cf 1705#define __GNU__ 1
e6cc62c6 1706_ACEOF
fe0895cf
VS
1707
1708 TMP=`uname -m`
1709 if test "x$TMP" = "xalpha"; then
1710 USE_ALPHA=1
e6cc62c6 1711 cat >>confdefs.h <<\_ACEOF
fe0895cf 1712#define __ALPHA__ 1
e6cc62c6 1713_ACEOF
10f2d63a
VZ
1714
1715 fi
1716 DEFAULT_DEFAULT_wxUSE_GTK=1
1717 ;;
1718 *-*-irix5* | *-*-irix6* )
1719 USE_SGI=1
1720 USE_SVR4=1
e6cc62c6 1721 cat >>confdefs.h <<\_ACEOF
10f2d63a 1722#define __SGI__ 1
e6cc62c6 1723_ACEOF
10f2d63a 1724
e6cc62c6 1725 cat >>confdefs.h <<\_ACEOF
10f2d63a 1726#define __SVR4__ 1
e6cc62c6 1727_ACEOF
10f2d63a
VZ
1728
1729 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1730 ;;
1731 *-*-solaris2* )
1732 USE_SUN=1
1733 USE_SOLARIS=1
1734 USE_SVR4=1
e6cc62c6 1735 cat >>confdefs.h <<\_ACEOF
10f2d63a 1736#define __SUN__ 1
e6cc62c6 1737_ACEOF
10f2d63a 1738
e6cc62c6 1739 cat >>confdefs.h <<\_ACEOF
10f2d63a 1740#define __SOLARIS__ 1
e6cc62c6 1741_ACEOF
10f2d63a 1742
e6cc62c6 1743 cat >>confdefs.h <<\_ACEOF
10f2d63a 1744#define __SVR4__ 1
e6cc62c6 1745_ACEOF
10f2d63a
VZ
1746
1747 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1748 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1749 ;;
1750 *-*-sunos4* )
1751 USE_SUN=1
1752 USE_SUNOS=1
1753 USE_BSD=1
e6cc62c6 1754 cat >>confdefs.h <<\_ACEOF
10f2d63a 1755#define __SUN__ 1
e6cc62c6 1756_ACEOF
10f2d63a 1757
e6cc62c6 1758 cat >>confdefs.h <<\_ACEOF
10f2d63a 1759#define __SUNOS__ 1
e6cc62c6 1760_ACEOF
10f2d63a 1761
e6cc62c6 1762 cat >>confdefs.h <<\_ACEOF
10f2d63a 1763#define __BSD__ 1
e6cc62c6 1764_ACEOF
10f2d63a
VZ
1765
1766 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1767 ;;
f6bcfd97 1768 *-*-freebsd*)
10f2d63a
VZ
1769 USE_BSD=1
1770 USE_FREEBSD=1
e6cc62c6 1771 cat >>confdefs.h <<\_ACEOF
10f2d63a 1772#define __FREEBSD__ 1
e6cc62c6 1773_ACEOF
10f2d63a 1774
e6cc62c6 1775 cat >>confdefs.h <<\_ACEOF
10f2d63a 1776#define __BSD__ 1
e6cc62c6 1777_ACEOF
95c8801c
VS
1778
1779 DEFAULT_DEFAULT_wxUSE_GTK=1
1780 ;;
1781 *-*-openbsd*)
1782 USE_BSD=1
1783 USE_OPENBSD=1
e6cc62c6 1784 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1785#define __OPENBSD__ 1
e6cc62c6 1786_ACEOF
95c8801c 1787
e6cc62c6 1788 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1789#define __BSD__ 1
e6cc62c6 1790_ACEOF
f6bcfd97
BP
1791
1792 DEFAULT_DEFAULT_wxUSE_GTK=1
1793 ;;
1794 *-*-netbsd*)
1795 USE_BSD=1
1796 USE_NETBSD=1
e6cc62c6 1797 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1798#define __NETBSD__ 1
e6cc62c6 1799_ACEOF
f6bcfd97 1800
e6cc62c6 1801 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1802#define __BSD__ 1
e6cc62c6 1803_ACEOF
10f2d63a
VZ
1804
1805 DEFAULT_DEFAULT_wxUSE_GTK=1
1806 ;;
1807 *-*-osf* )
1808 USE_ALPHA=1
1809 USE_OSF=1
e6cc62c6 1810 cat >>confdefs.h <<\_ACEOF
10f2d63a 1811#define __ALPHA__ 1
e6cc62c6 1812_ACEOF
10f2d63a 1813
e6cc62c6 1814 cat >>confdefs.h <<\_ACEOF
10f2d63a 1815#define __OSF__ 1
e6cc62c6 1816_ACEOF
10f2d63a
VZ
1817
1818 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1819 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1820 ;;
1821 *-*-dgux5* )
1822 USE_ALPHA=1
1823 USE_SVR4=1
e6cc62c6 1824 cat >>confdefs.h <<\_ACEOF
10f2d63a 1825#define __ALPHA__ 1
e6cc62c6 1826_ACEOF
10f2d63a 1827
e6cc62c6 1828 cat >>confdefs.h <<\_ACEOF
10f2d63a 1829#define __SVR4__ 1
e6cc62c6 1830_ACEOF
10f2d63a
VZ
1831
1832 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1833 ;;
1834 *-*-sysv5* )
1835 USE_SYSV=1
1836 USE_SVR4=1
e6cc62c6 1837 cat >>confdefs.h <<\_ACEOF
10f2d63a 1838#define __SYSV__ 1
e6cc62c6 1839_ACEOF
10f2d63a 1840
e6cc62c6 1841 cat >>confdefs.h <<\_ACEOF
10f2d63a 1842#define __SVR4__ 1
e6cc62c6 1843_ACEOF
10f2d63a
VZ
1844
1845 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1846 ;;
1847 *-*-aix* )
1848 USE_AIX=1
1849 USE_SYSV=1
1850 USE_SVR4=1
2b5f62a0 1851 SO_SUFFIX=a
e6cc62c6 1852 cat >>confdefs.h <<\_ACEOF
10f2d63a 1853#define __AIX__ 1
e6cc62c6 1854_ACEOF
10f2d63a 1855
e6cc62c6 1856 cat >>confdefs.h <<\_ACEOF
10f2d63a 1857#define __SYSV__ 1
e6cc62c6 1858_ACEOF
10f2d63a 1859
e6cc62c6 1860 cat >>confdefs.h <<\_ACEOF
10f2d63a 1861#define __SVR4__ 1
e6cc62c6 1862_ACEOF
10f2d63a
VZ
1863
1864 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1865 ;;
1866
89e3b3e4
VZ
1867 *-*-*UnixWare*)
1868 USE_SYSV=1
1869 USE_SVR4=1
1870 USE_UNIXWARE=1
e6cc62c6 1871 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1872#define __UNIXWARE__ 1
e6cc62c6 1873_ACEOF
89e3b3e4
VZ
1874
1875 ;;
1876
1c8183e2 1877 *-*-cygwin* | *-*-mingw32* )
17234b26 1878 SO_SUFFIX=dll
cf27ef00 1879 PROGRAM_EXT=".exe"
7b7a7637 1880 RESCOMP=windres
10f2d63a
VZ
1881 DEFAULT_DEFAULT_wxUSE_MSW=1
1882 ;;
1883
f9bc1684
VS
1884 *-pc-msdosdjgpp )
1885 USE_UNIX=0
1886 USE_DOS=1
e6cc62c6 1887 cat >>confdefs.h <<\_ACEOF
f9bc1684 1888#define __DOS__ 1
e6cc62c6 1889_ACEOF
f9bc1684
VS
1890
1891 PROGRAM_EXT=".exe"
1892 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1893 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1894 ;;
1895
6fa882bd 1896 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1897 cat >>confdefs.h <<\_ACEOF
10f2d63a 1898#define __EMX__ 1
e6cc62c6 1899_ACEOF
10f2d63a 1900
73d617c9 1901 USE_OS2=1
7015ef3a
VZ
1902 cat >>confdefs.h <<\_ACEOF
1903#define __OS2__ 1
1904_ACEOF
1905
cf27ef00 1906 PROGRAM_EXT=".exe"
e07802fc 1907 DEFAULT_DEFAULT_wxUSE_PM=1
eb69fda5 1908 CXX=gcc
73d617c9 1909 LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals"
d5fc095c
VS
1910 ac_executable_extensions=".exe"
1911 export ac_executable_extensions
1912 ac_save_IFS="$IFS"
e46d2a18 1913 IFS='\\'
d5fc095c
VS
1914 ac_TEMP_PATH=
1915 for ac_dir in $PATH; do
1916 IFS=$ac_save_IFS
1917 if test -z "$ac_TEMP_PATH"; then
1918 ac_TEMP_PATH="$ac_dir"
1919 else
1920 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1921 fi
1922 done
1923 export PATH="$ac_TEMP_PATH"
1924 unset ac_TEMP_PATH
10f2d63a
VZ
1925 ;;
1926
d08b457b
GD
1927 powerpc-*-darwin* )
1928 USE_BSD=1
f11bdd03 1929 USE_DARWIN=1
3a922bb4 1930 SO_SUFFIX=dylib
e6cc62c6 1931 cat >>confdefs.h <<\_ACEOF
f11bdd03 1932#define __BSD__ 1
e6cc62c6 1933_ACEOF
b4085ce6 1934
e6cc62c6 1935 cat >>confdefs.h <<\_ACEOF
f11bdd03 1936#define __DARWIN__ 1
e6cc62c6 1937_ACEOF
d08b457b 1938
e6cc62c6 1939 cat >>confdefs.h <<\_ACEOF
d08b457b 1940#define __POWERPC__ 1
e6cc62c6 1941_ACEOF
82d43113 1942
e6cc62c6 1943 cat >>confdefs.h <<\_ACEOF
82d43113 1944#define TARGET_CARBON 1
e6cc62c6 1945_ACEOF
b4085ce6
GD
1946
1947 DEFAULT_DEFAULT_wxUSE_MAC=1
1948 ;;
1949
b12915c1
VZ
1950 *-*-beos* )
1951 USE_BEOS=1
e6cc62c6 1952 cat >>confdefs.h <<\_ACEOF
b12915c1 1953#define __BEOS__ 1
e6cc62c6 1954_ACEOF
b12915c1
VZ
1955
1956 ;;
1957
10f2d63a 1958 *)
e6cc62c6
VS
1959 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1960echo "$as_me: error: unknown system type ${host}." >&2;}
1961 { (exit 1); exit 1; }; }
10f2d63a
VZ
1962esac
1963
8284b0c5
MB
1964
1965
1966
1967 wx_arg_cache_file="configarg.cache"
1968 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1969 rm -f ${wx_arg_cache_file}.tmp
1970 touch ${wx_arg_cache_file}.tmp
1971 touch ${wx_arg_cache_file}
e6cc62c6 1972
10f2d63a
VZ
1973
1974DEBUG_CONFIGURE=0
1975if test $DEBUG_CONFIGURE = 1; then
1e6feb95 1976 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 1977 DEFAULT_wxUSE_STL=no
1e6feb95 1978
d8356fa3
VZ
1979 DEFAULT_wxUSE_NANOX=no
1980
10f2d63a
VZ
1981 DEFAULT_wxUSE_THREADS=yes
1982
1983 DEFAULT_wxUSE_SHARED=yes
1e6feb95 1984 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
1985 DEFAULT_wxUSE_PROFILE=no
1986 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
1987 DEFAULT_wxUSE_NO_RTTI=no
1988 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
1989 DEFAULT_wxUSE_PERMISSIVE=no
1990 DEFAULT_wxUSE_DEBUG_FLAG=yes
1991 DEFAULT_wxUSE_DEBUG_INFO=yes
1992 DEFAULT_wxUSE_DEBUG_GDB=yes
1993 DEFAULT_wxUSE_MEM_TRACING=no
1994 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1995 DEFAULT_wxUSE_DMALLOC=no
1996 DEFAULT_wxUSE_APPLE_IEEE=no
1997
e46d2a18 1998 DEFAULT_wxUSE_EXCEPTIONS=no
10f2d63a 1999 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
2000 DEFAULT_wxUSE_LOGWINDOW=no
2001 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 2002 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
2003
2004 DEFAULT_wxUSE_GUI=yes
1e6feb95 2005 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 2006
3e44f09d 2007 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
2008 DEFAULT_wxUSE_XML=no
2009 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
2010 DEFAULT_wxUSE_ZLIB=no
2011 DEFAULT_wxUSE_LIBPNG=no
2012 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 2013 DEFAULT_wxUSE_LIBTIFF=no
89fe663f 2014 DEFAULT_wxUSE_LIBXPM=no
f93ca9fd
VS
2015 DEFAULT_wxUSE_LIBMSPACK=no
2016 DEFAULT_wxUSE_LIBSDL=no
10f2d63a 2017 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2018 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2019
eb4efbdc 2020 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 2021 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 2022 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2023 DEFAULT_wxUSE_CMDLINE_PARSER=no
2024 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
2025 DEFAULT_wxUSE_TIMER=no
2026 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 2027 DEFAULT_wxUSE_FILE=no
1e6feb95 2028 DEFAULT_wxUSE_FFILE=no
a3a584a7 2029 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 2030 DEFAULT_wxUSE_TEXTFILE=no
002ed9af 2031 DEFAULT_wxUSE_SOUND=no
10f2d63a
VZ
2032 DEFAULT_wxUSE_INTL=no
2033 DEFAULT_wxUSE_CONFIG=no
1e6feb95 2034 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
2035 DEFAULT_wxUSE_STREAMS=no
2036 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
2037 DEFAULT_wxUSE_OLE=no
2038 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2039 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2040 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2041 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2042 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2043 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2044 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2045
2046 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2047 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2048 DEFAULT_wxUSE_POSTSCRIPT=no
2049
10f2d63a
VZ
2050 DEFAULT_wxUSE_CLIPBOARD=no
2051 DEFAULT_wxUSE_TOOLTIPS=no
2052 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2053 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2054 DEFAULT_wxUSE_SPLINES=no
2055
2056 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2057 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2058 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2059
10f2d63a
VZ
2060 DEFAULT_wxUSE_RESOURCES=no
2061 DEFAULT_wxUSE_CONSTRAINTS=no
2062 DEFAULT_wxUSE_IPC=no
2063 DEFAULT_wxUSE_HELP=no
29fd3c0c 2064 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2065 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2066 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2067 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2068 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2069 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2070 DEFAULT_wxUSE_PROTOCOL=no
2071 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2072 DEFAULT_wxUSE_PROTOCOL_FTP=no
2073 DEFAULT_wxUSE_PROTOCOL_FILE=no
2074 DEFAULT_wxUSE_URL=no
3bd8fb5f 2075
10f2d63a 2076 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2077 DEFAULT_wxUSE_CHOICEDLG=no
2078 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2079 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2080 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2081 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2082 DEFAULT_wxUSE_FONTDLG=no
2083 DEFAULT_wxUSE_MSGDLG=no
2084 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2085 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2086 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2087 DEFAULT_wxUSE_STARTUP_TIPS=no
2088 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2089 DEFAULT_wxUSE_WIZARDDLG=no
2090
1e6feb95 2091 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2092 DEFAULT_wxUSE_MINIFRAME=no
2093 DEFAULT_wxUSE_HTML=no
24528b0c 2094 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2095 DEFAULT_wxUSE_FS_INET=no
2096 DEFAULT_wxUSE_FS_ZIP=no
2097 DEFAULT_wxUSE_BUSYINFO=no
2098 DEFAULT_wxUSE_ZIPSTREAM=no
7015ef3a 2099 DEFAULT_wxUSE_GZSTREAM=no
1e6feb95 2100 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2101
2102 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2103 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2104 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2105 DEFAULT_wxUSE_CALCTRL=no
2106 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2107 DEFAULT_wxUSE_CHECKBOX=no
2108 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2109 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2110 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2111 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2112 DEFAULT_wxUSE_GAUGE=no
2113 DEFAULT_wxUSE_GRID=no
10f2d63a 2114 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 2115 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
2116 DEFAULT_wxUSE_LISTBOX=no
2117 DEFAULT_wxUSE_LISTCTRL=no
2118 DEFAULT_wxUSE_NOTEBOOK=no
2119 DEFAULT_wxUSE_RADIOBOX=no
2120 DEFAULT_wxUSE_RADIOBTN=no
2121 DEFAULT_wxUSE_SASH=no
2122 DEFAULT_wxUSE_SCROLLBAR=no
2123 DEFAULT_wxUSE_SLIDER=no
2124 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2125 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2126 DEFAULT_wxUSE_SPLITTER=no
2127 DEFAULT_wxUSE_STATBMP=no
2128 DEFAULT_wxUSE_STATBOX=no
2129 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2130 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2131 DEFAULT_wxUSE_STATUSBAR=yes
2132 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2133 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2134 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2135 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2136 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2137 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2138 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2139 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2140 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2141
2142 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2143 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2144 DEFAULT_wxUSE_WCSRTOMBS=no
2145
edae8572 2146 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2147 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2148 DEFAULT_wxUSE_GIF=no
2149 DEFAULT_wxUSE_PCX=no
2150 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2151 DEFAULT_wxUSE_IFF=no
0046ff7c 2152 DEFAULT_wxUSE_XPM=no
658974ae 2153 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2154 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2155
e9e0dc15 2156 DEFAULT_wxUSE_MONOLITHIC=no
f93ca9fd 2157 DEFAULT_wxUSE_PLUGINS=no
029b47ad 2158 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a 2159else
1e6feb95 2160 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2161 DEFAULT_wxUSE_STL=no
1e6feb95 2162
d8356fa3
VZ
2163 DEFAULT_wxUSE_NANOX=no
2164
10f2d63a
VZ
2165 DEFAULT_wxUSE_THREADS=yes
2166
2167 DEFAULT_wxUSE_SHARED=yes
2168 DEFAULT_wxUSE_OPTIMISE=yes
2169 DEFAULT_wxUSE_PROFILE=no
2170 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2171 DEFAULT_wxUSE_NO_RTTI=no
2172 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2173 DEFAULT_wxUSE_PERMISSIVE=no
2174 DEFAULT_wxUSE_DEBUG_FLAG=no
2175 DEFAULT_wxUSE_DEBUG_INFO=no
2176 DEFAULT_wxUSE_DEBUG_GDB=no
2177 DEFAULT_wxUSE_MEM_TRACING=no
2178 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2179 DEFAULT_wxUSE_DMALLOC=no
2180 DEFAULT_wxUSE_APPLE_IEEE=yes
2181
e46d2a18 2182 DEFAULT_wxUSE_EXCEPTIONS=yes
10f2d63a 2183 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2184 DEFAULT_wxUSE_LOGWINDOW=yes
2185 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2186 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2187
2188 DEFAULT_wxUSE_GUI=yes
2189
aa2d9ecc 2190 DEFAULT_wxUSE_REGEX=yes
672abd7a 2191 DEFAULT_wxUSE_XML=yes
aa2d9ecc
VZ
2192 DEFAULT_wxUSE_EXPAT=yes
2193 DEFAULT_wxUSE_ZLIB=yes
2194 DEFAULT_wxUSE_LIBPNG=yes
2195 DEFAULT_wxUSE_LIBJPEG=yes
2196 DEFAULT_wxUSE_LIBTIFF=yes
2197 DEFAULT_wxUSE_LIBXPM=yes
3527f29c 2198 DEFAULT_wxUSE_LIBMSPACK=yes
f93ca9fd 2199 DEFAULT_wxUSE_LIBSDL=no
16b52fa1 2200 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2201 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2202
eb4efbdc 2203 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2204 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2205 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2206 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2207 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2208 DEFAULT_wxUSE_TIMER=yes
2209 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2210 DEFAULT_wxUSE_FILE=yes
1e6feb95 2211 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2212 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2213 DEFAULT_wxUSE_TEXTFILE=yes
002ed9af 2214 DEFAULT_wxUSE_SOUND=yes
10f2d63a
VZ
2215 DEFAULT_wxUSE_INTL=yes
2216 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2217 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2218 DEFAULT_wxUSE_STREAMS=yes
2219 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2220 DEFAULT_wxUSE_OLE=yes
2221 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2222 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2223 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2224 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2225 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2226 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2227 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2228
2229 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2230 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2231 DEFAULT_wxUSE_POSTSCRIPT=yes
2232
10f2d63a
VZ
2233 DEFAULT_wxUSE_CLIPBOARD=yes
2234 DEFAULT_wxUSE_TOOLTIPS=yes
2235 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2236 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2237 DEFAULT_wxUSE_SPLINES=yes
2238
2239 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2240 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2241 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2242
2b5f62a0 2243 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2244 DEFAULT_wxUSE_CONSTRAINTS=yes
2245 DEFAULT_wxUSE_IPC=yes
2246 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2247 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2248 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2249 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2250 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2251 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2252 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2253 DEFAULT_wxUSE_PROTOCOL=yes
2254 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2255 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2256 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2257 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2258
2259 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2260 DEFAULT_wxUSE_CHOICEDLG=yes
2261 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2262 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2263 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2264 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2265 DEFAULT_wxUSE_FONTDLG=yes
2266 DEFAULT_wxUSE_MSGDLG=yes
2267 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2268 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2269 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2270 DEFAULT_wxUSE_STARTUP_TIPS=yes
2271 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2272 DEFAULT_wxUSE_WIZARDDLG=yes
2273
1e6feb95 2274 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2275 DEFAULT_wxUSE_MINIFRAME=yes
2276 DEFAULT_wxUSE_HTML=yes
24528b0c 2277 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2278 DEFAULT_wxUSE_FS_INET=yes
2279 DEFAULT_wxUSE_FS_ZIP=yes
2280 DEFAULT_wxUSE_BUSYINFO=yes
2281 DEFAULT_wxUSE_ZIPSTREAM=yes
7015ef3a 2282 DEFAULT_wxUSE_GZSTREAM=yes
10f2d63a
VZ
2283 DEFAULT_wxUSE_VALIDATORS=yes
2284
2285 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2286 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2287 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2288 DEFAULT_wxUSE_CALCTRL=yes
2289 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2290 DEFAULT_wxUSE_CHECKBOX=yes
2291 DEFAULT_wxUSE_CHECKLST=yes
2292 DEFAULT_wxUSE_CHOICE=yes
2293 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2294 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2295 DEFAULT_wxUSE_GAUGE=yes
2296 DEFAULT_wxUSE_GRID=yes
10f2d63a 2297 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 2298 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
2299 DEFAULT_wxUSE_LISTBOX=yes
2300 DEFAULT_wxUSE_LISTCTRL=yes
2301 DEFAULT_wxUSE_NOTEBOOK=yes
2302 DEFAULT_wxUSE_RADIOBOX=yes
2303 DEFAULT_wxUSE_RADIOBTN=yes
2304 DEFAULT_wxUSE_SASH=yes
2305 DEFAULT_wxUSE_SCROLLBAR=yes
2306 DEFAULT_wxUSE_SLIDER=yes
2307 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2308 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2309 DEFAULT_wxUSE_SPLITTER=yes
2310 DEFAULT_wxUSE_STATBMP=yes
2311 DEFAULT_wxUSE_STATBOX=yes
2312 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2313 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2314 DEFAULT_wxUSE_STATUSBAR=yes
2315 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2316 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2317 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2318 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2319 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2320 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2321 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2322 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2323 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2324
2325 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2326 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2327 DEFAULT_wxUSE_WCSRTOMBS=no
2328
edae8572 2329 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2330 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2331 DEFAULT_wxUSE_GIF=yes
2332 DEFAULT_wxUSE_PCX=yes
cc0e8480 2333 DEFAULT_wxUSE_IFF=no
10f2d63a 2334 DEFAULT_wxUSE_PNM=yes
0046ff7c 2335 DEFAULT_wxUSE_XPM=yes
658974ae 2336 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2337 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2338
e9e0dc15 2339 DEFAULT_wxUSE_MONOLITHIC=no
f93ca9fd 2340 DEFAULT_wxUSE_PLUGINS=no
029b47ad 2341 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a
VZ
2342fi
2343
8284b0c5
MB
2344
2345
10f2d63a 2346for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2347 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2348 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2349 has_toolkit_in_cache=1
2350 eval "DEFAULT_$LINE"
2351 eval "CACHE_$toolkit=1"
2352 fi
2353done
2354
8284b0c5
MB
2355
2356
5005acfe 2357 enablestring=
e6cc62c6
VS
2358 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2359echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2360 no_cache=0
2361 # Check whether --enable-gui or --disable-gui was given.
2362if test "${enable_gui+set}" = set; then
2363 enableval="$enable_gui"
e6cc62c6 2364
10f2d63a
VZ
2365 if test "$enableval" = yes; then
2366 ac_cv_use_gui='wxUSE_GUI=yes'
2367 else
2368 ac_cv_use_gui='wxUSE_GUI=no'
2369 fi
e6cc62c6 2370
10f2d63a 2371else
e6cc62c6 2372
10f2d63a
VZ
2373 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2374 if test "x$LINE" != x ; then
2375 eval "DEFAULT_$LINE"
2376 else
2377 no_cache=1
2378 fi
2379
2380 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2381
e6cc62c6 2382fi;
10f2d63a
VZ
2383
2384 eval "$ac_cv_use_gui"
2385 if test "$no_cache" != 1; then
2386 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2387 fi
2388
2389 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2390 echo "$as_me:$LINENO: result: yes" >&5
2391echo "${ECHO_T}yes" >&6
10f2d63a 2392 else
e6cc62c6
VS
2393 echo "$as_me:$LINENO: result: no" >&5
2394echo "${ECHO_T}no" >&6
10f2d63a 2395 fi
e6cc62c6 2396
10f2d63a 2397
9747f85d
VS
2398 enablestring=
2399 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2400echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2401 no_cache=0
2402 # Check whether --enable-monolithic or --disable-monolithic was given.
2403if test "${enable_monolithic+set}" = set; then
2404 enableval="$enable_monolithic"
2405
2406 if test "$enableval" = yes; then
2407 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2408 else
2409 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2410 fi
2411
2412else
2413
2414 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2415 if test "x$LINE" != x ; then
2416 eval "DEFAULT_$LINE"
2417 else
2418 no_cache=1
2419 fi
2420
2421 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2422
2423fi;
2424
2425 eval "$ac_cv_use_monolithic"
2426 if test "$no_cache" != 1; then
2427 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2428 fi
2429
2430 if test "$wxUSE_MONOLITHIC" = yes; then
2431 echo "$as_me:$LINENO: result: yes" >&5
2432echo "${ECHO_T}yes" >&6
2433 else
2434 echo "$as_me:$LINENO: result: no" >&5
2435echo "${ECHO_T}no" >&6
2436 fi
2437
2438
f93ca9fd
VS
2439 enablestring=
2440 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
2441echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6
2442 no_cache=0
2443 # Check whether --enable-plugins or --disable-plugins was given.
2444if test "${enable_plugins+set}" = set; then
2445 enableval="$enable_plugins"
2446
2447 if test "$enableval" = yes; then
2448 ac_cv_use_plugins='wxUSE_PLUGINS=yes'
2449 else
2450 ac_cv_use_plugins='wxUSE_PLUGINS=no'
2451 fi
2452
2453else
2454
2455 LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}`
2456 if test "x$LINE" != x ; then
2457 eval "DEFAULT_$LINE"
2458 else
2459 no_cache=1
2460 fi
2461
2462 ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS
2463
2464fi;
2465
2466 eval "$ac_cv_use_plugins"
2467 if test "$no_cache" != 1; then
2468 echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp
2469 fi
2470
2471 if test "$wxUSE_PLUGINS" = yes; then
2472 echo "$as_me:$LINENO: result: yes" >&5
2473echo "${ECHO_T}yes" >&6
2474 else
2475 echo "$as_me:$LINENO: result: no" >&5
2476echo "${ECHO_T}no" >&6
2477 fi
2478
2479
b12915c1 2480if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2481
8284b0c5 2482
5005acfe 2483 enablestring=
e6cc62c6
VS
2484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2485echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2486 no_cache=0
2487 # Check whether --enable-universal or --disable-universal was given.
2488if test "${enable_universal+set}" = set; then
2489 enableval="$enable_universal"
e6cc62c6 2490
1e6feb95
VZ
2491 if test "$enableval" = yes; then
2492 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2493 else
2494 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2495 fi
e6cc62c6 2496
1e6feb95 2497else
e6cc62c6 2498
1e6feb95
VZ
2499 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2500 if test "x$LINE" != x ; then
2501 eval "DEFAULT_$LINE"
2502 else
2503 no_cache=1
2504 fi
2505
2506 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2507
e6cc62c6 2508fi;
1e6feb95
VZ
2509
2510 eval "$ac_cv_use_universal"
2511 if test "$no_cache" != 1; then
2512 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2513 fi
2514
2515 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2516 echo "$as_me:$LINENO: result: yes" >&5
2517echo "${ECHO_T}yes" >&6
1e6feb95 2518 else
e6cc62c6
VS
2519 echo "$as_me:$LINENO: result: no" >&5
2520echo "${ECHO_T}no" >&6
1e6feb95 2521 fi
e6cc62c6
VS
2522
2523
10f2d63a
VZ
2524# Check whether --with-gtk or --without-gtk was given.
2525if test "${with_gtk+set}" = set; then
2526 withval="$with_gtk"
2527 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2528fi;
10f2d63a
VZ
2529
2530# Check whether --with-motif or --without-motif was given.
2531if test "${with_motif+set}" = set; then
2532 withval="$with_motif"
2533 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2534fi;
10f2d63a 2535
b4085ce6
GD
2536# Check whether --with-mac or --without-mac was given.
2537if test "${with_mac+set}" = set; then
2538 withval="$with_mac"
2539 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2540fi;
b4085ce6 2541
ac0c4cc3
DE
2542# Check whether --with-cocoa or --without-cocoa was given.
2543if test "${with_cocoa+set}" = set; then
2544 withval="$with_cocoa"
2545 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2546fi;
ac0c4cc3 2547
10f2d63a
VZ
2548# Check whether --with-wine or --without-wine was given.
2549if test "${with_wine+set}" = set; then
2550 withval="$with_wine"
89e6bf6d 2551 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2552fi;
10f2d63a 2553
77e13408
RL
2554# Check whether --with-msw or --without-msw was given.
2555if test "${with_msw+set}" = set; then
2556 withval="$with_msw"
b4efce5e 2557 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2558fi;
10f2d63a 2559
e07802fc
VZ
2560# Check whether --with-pm or --without-pm was given.
2561if test "${with_pm+set}" = set; then
2562 withval="$with_pm"
2563 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2564fi;
698dcdb6 2565
1e6feb95
VZ
2566# Check whether --with-mgl or --without-mgl was given.
2567if test "${with_mgl+set}" = set; then
2568 withval="$with_mgl"
6c657b52 2569 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2570fi;
1e6feb95 2571
1725144d
RR
2572# Check whether --with-microwin or --without-microwin was given.
2573if test "${with_microwin+set}" = set; then
2574 withval="$with_microwin"
2575 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2576fi;
1725144d 2577
f79bd02d
JS
2578# Check whether --with-x11 or --without-x11 was given.
2579if test "${with_x11+set}" = set; then
2580 withval="$with_x11"
3c011993 2581 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2582fi;
a0b9e27f 2583
5005acfe 2584 enablestring=
e6cc62c6
VS
2585 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2586echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2587 no_cache=0
ba875e66
VZ
2588 # Check whether --enable-nanox or --disable-nanox was given.
2589if test "${enable_nanox+set}" = set; then
2590 enableval="$enable_nanox"
e6cc62c6 2591
d8356fa3 2592 if test "$enableval" = yes; then
ba875e66 2593 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2594 else
ba875e66 2595 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2596 fi
e6cc62c6 2597
d8356fa3 2598else
e6cc62c6 2599
d8356fa3
VZ
2600 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2601 if test "x$LINE" != x ; then
2602 eval "DEFAULT_$LINE"
2603 else
2604 no_cache=1
2605 fi
2606
ba875e66 2607 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2608
e6cc62c6 2609fi;
d8356fa3 2610
ba875e66 2611 eval "$ac_cv_use_nanox"
d8356fa3 2612 if test "$no_cache" != 1; then
ba875e66 2613 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2614 fi
2615
2616 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2617 echo "$as_me:$LINENO: result: yes" >&5
2618echo "${ECHO_T}yes" >&6
d8356fa3 2619 else
e6cc62c6
VS
2620 echo "$as_me:$LINENO: result: no" >&5
2621echo "${ECHO_T}no" >&6
d8356fa3 2622 fi
e6cc62c6 2623
8284b0c5 2624
d74f4b5a 2625
5005acfe 2626 enablestring=
e6cc62c6
VS
2627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2628echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2629 no_cache=0
2630 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2631if test "${enable_gtk2+set}" = set; then
2632 enableval="$enable_gtk2"
e6cc62c6 2633
d74f4b5a
VZ
2634 if test "$enableval" = yes; then
2635 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2636 else
2637 ac_cv_use_gtk2='wxUSE_GTK2=no'
2638 fi
e6cc62c6 2639
10f2d63a 2640else
e6cc62c6 2641
d74f4b5a
VZ
2642 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2643 if test "x$LINE" != x ; then
2644 eval "DEFAULT_$LINE"
2645 else
2646 no_cache=1
2647 fi
2648
2649 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2650
e6cc62c6 2651fi;
328a083c 2652
d74f4b5a
VZ
2653 eval "$ac_cv_use_gtk2"
2654 if test "$no_cache" != 1; then
2655 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2656 fi
2657
2658 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2659 echo "$as_me:$LINENO: result: yes" >&5
2660echo "${ECHO_T}yes" >&6
d74f4b5a 2661 else
e6cc62c6
VS
2662 echo "$as_me:$LINENO: result: no" >&5
2663echo "${ECHO_T}no" >&6
d74f4b5a 2664 fi
d74f4b5a 2665
5c6fa7d2 2666
e6cc62c6
VS
2667
2668 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2669echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2670 no_cache=0
e6cc62c6
VS
2671
2672# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2673if test "${with_libpng+set}" = set; then
2674 withval="$with_libpng"
e6cc62c6 2675
10f2d63a 2676 if test "$withval" = yes; then
b12915c1 2677 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2678 elif test "$withval" = no; then
b12915c1 2679 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2680 elif test "$withval" = sys; then
2681 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2682 elif test "$withval" = builtin; then
2683 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2684 else
e6cc62c6
VS
2685 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2686echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2687 { (exit 1); exit 1; }; }
10f2d63a 2688 fi
e6cc62c6 2689
10f2d63a 2690else
e6cc62c6 2691
b12915c1 2692 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2693 if test "x$LINE" != x ; then
2694 eval "DEFAULT_$LINE"
2695 else
2696 no_cache=1
2697 fi
2698
b12915c1 2699 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2700
e6cc62c6 2701fi;
10f2d63a 2702
b12915c1 2703 eval "$ac_cv_use_libpng"
10f2d63a 2704 if test "$no_cache" != 1; then
b12915c1 2705 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2706 fi
2707
b12915c1 2708 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2709 echo "$as_me:$LINENO: result: yes" >&5
2710echo "${ECHO_T}yes" >&6
422107f9 2711 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2712 echo "$as_me:$LINENO: result: no" >&5
2713echo "${ECHO_T}no" >&6
422107f9 2714 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2715 echo "$as_me:$LINENO: result: system version" >&5
2716echo "${ECHO_T}system version" >&6
4f14bcd8 2717 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2718 echo "$as_me:$LINENO: result: builtin version" >&5
2719echo "${ECHO_T}builtin version" >&6
422107f9 2720 else
e6cc62c6
VS
2721 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2722echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2723 { (exit 1); exit 1; }; }
10f2d63a 2724 fi
10f2d63a 2725
e6cc62c6
VS
2726
2727 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2728echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2729 no_cache=0
e6cc62c6
VS
2730
2731# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2732if test "${with_libjpeg+set}" = set; then
2733 withval="$with_libjpeg"
e6cc62c6 2734
10f2d63a 2735 if test "$withval" = yes; then
b12915c1 2736 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2737 elif test "$withval" = no; then
b12915c1 2738 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2739 elif test "$withval" = sys; then
2740 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2741 elif test "$withval" = builtin; then
2742 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2743 else
e6cc62c6
VS
2744 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2745echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2746 { (exit 1); exit 1; }; }
10f2d63a 2747 fi
e6cc62c6 2748
10f2d63a 2749else
e6cc62c6 2750
b12915c1 2751 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2752 if test "x$LINE" != x ; then
2753 eval "DEFAULT_$LINE"
2754 else
2755 no_cache=1
2756 fi
2757
b12915c1 2758 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2759
e6cc62c6 2760fi;
10f2d63a 2761
b12915c1 2762 eval "$ac_cv_use_libjpeg"
10f2d63a 2763 if test "$no_cache" != 1; then
b12915c1 2764 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2765 fi
2766
b12915c1 2767 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2768 echo "$as_me:$LINENO: result: yes" >&5
2769echo "${ECHO_T}yes" >&6
422107f9 2770 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2771 echo "$as_me:$LINENO: result: no" >&5
2772echo "${ECHO_T}no" >&6
422107f9 2773 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2774 echo "$as_me:$LINENO: result: system version" >&5
2775echo "${ECHO_T}system version" >&6
4f14bcd8 2776 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2777 echo "$as_me:$LINENO: result: builtin version" >&5
2778echo "${ECHO_T}builtin version" >&6
422107f9 2779 else
e6cc62c6
VS
2780 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2781echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2782 { (exit 1); exit 1; }; }
10f2d63a 2783 fi
10f2d63a 2784
e6cc62c6
VS
2785
2786 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2787echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2788 no_cache=0
e6cc62c6
VS
2789
2790# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2791if test "${with_libtiff+set}" = set; then
2792 withval="$with_libtiff"
e6cc62c6 2793
10f2d63a 2794 if test "$withval" = yes; then
b12915c1 2795 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2796 elif test "$withval" = no; then
b12915c1 2797 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2798 elif test "$withval" = sys; then
2799 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2800 elif test "$withval" = builtin; then
2801 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2802 else
e6cc62c6
VS
2803 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2804echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2805 { (exit 1); exit 1; }; }
10f2d63a 2806 fi
e6cc62c6 2807
10f2d63a 2808else
e6cc62c6 2809
b12915c1 2810 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2811 if test "x$LINE" != x ; then
2812 eval "DEFAULT_$LINE"
2813 else
2814 no_cache=1
2815 fi
2816
b12915c1 2817 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2818
e6cc62c6 2819fi;
10f2d63a 2820
b12915c1 2821 eval "$ac_cv_use_libtiff"
10f2d63a 2822 if test "$no_cache" != 1; then
b12915c1 2823 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2824 fi
2825
b12915c1 2826 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2827 echo "$as_me:$LINENO: result: yes" >&5
2828echo "${ECHO_T}yes" >&6
0dcf9893 2829 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2830 echo "$as_me:$LINENO: result: no" >&5
2831echo "${ECHO_T}no" >&6
0dcf9893 2832 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2833 echo "$as_me:$LINENO: result: system version" >&5
2834echo "${ECHO_T}system version" >&6
4f14bcd8 2835 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2836 echo "$as_me:$LINENO: result: builtin version" >&5
2837echo "${ECHO_T}builtin version" >&6
0dcf9893 2838 else
e6cc62c6
VS
2839 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2840echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2841 { (exit 1); exit 1; }; }
10f2d63a 2842 fi
10f2d63a 2843
e6cc62c6 2844
89fe663f
VZ
2845 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2846echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2847 no_cache=0
2848
2849# Check whether --with-libxpm or --without-libxpm was given.
2850if test "${with_libxpm+set}" = set; then
2851 withval="$with_libxpm"
2852
2853 if test "$withval" = yes; then
2854 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2855 elif test "$withval" = no; then
2856 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2857 elif test "$withval" = sys; then
2858 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2859 elif test "$withval" = builtin; then
2860 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2861 else
2862 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2863echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2864 { (exit 1); exit 1; }; }
2865 fi
2866
2867else
2868
2869 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2870 if test "x$LINE" != x ; then
2871 eval "DEFAULT_$LINE"
2872 else
2873 no_cache=1
2874 fi
2875
2876 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2877
2878fi;
2879
2880 eval "$ac_cv_use_libxpm"
2881 if test "$no_cache" != 1; then
2882 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2883 fi
2884
2885 if test "$wxUSE_LIBXPM" = yes; then
2886 echo "$as_me:$LINENO: result: yes" >&5
2887echo "${ECHO_T}yes" >&6
2888 elif test "$wxUSE_LIBXPM" = no; then
2889 echo "$as_me:$LINENO: result: no" >&5
2890echo "${ECHO_T}no" >&6
2891 elif test "$wxUSE_LIBXPM" = sys; then
2892 echo "$as_me:$LINENO: result: system version" >&5
2893echo "${ECHO_T}system version" >&6
2894 elif test "$wxUSE_LIBXPM" = builtin; then
2895 echo "$as_me:$LINENO: result: builtin version" >&5
2896echo "${ECHO_T}builtin version" >&6
2897 else
2898 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2899echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2900 { (exit 1); exit 1; }; }
2901 fi
2902
2903
3527f29c
VS
2904 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2905echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2906 no_cache=0
2907
2908# Check whether --with-libmspack or --without-libmspack was given.
2909if test "${with_libmspack+set}" = set; then
2910 withval="$with_libmspack"
2911
2912 if test "$withval" = yes; then
2913 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2914 else
2915 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2916 fi
2917
2918else
2919
2920 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2921 if test "x$LINE" != x ; then
2922 eval "DEFAULT_$LINE"
2923 else
2924 no_cache=1
2925 fi
2926
2927 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
2928
2929fi;
2930
2931 eval "$ac_cv_use_libmspack"
2932 if test "$no_cache" != 1; then
2933 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
2934 fi
2935
2936 if test "$wxUSE_LIBMSPACK" = yes; then
2937 echo "$as_me:$LINENO: result: yes" >&5
2938echo "${ECHO_T}yes" >&6
2939 else
2940 echo "$as_me:$LINENO: result: no" >&5
2941echo "${ECHO_T}no" >&6
2942 fi
2943
2944
f93ca9fd
VS
2945 echo "$as_me:$LINENO: checking for --with-sdl" >&5
2946echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6
2947 no_cache=0
2948
2949# Check whether --with-sdl or --without-sdl was given.
2950if test "${with_sdl+set}" = set; then
2951 withval="$with_sdl"
2952
2953 if test "$withval" = yes; then
2954 ac_cv_use_sdl='wxUSE_LIBSDL=yes'
2955 else
2956 ac_cv_use_sdl='wxUSE_LIBSDL=no'
2957 fi
2958
2959else
2960
2961 LINE=`grep "wxUSE_LIBSDL" ${wx_arg_cache_file}`
2962 if test "x$LINE" != x ; then
2963 eval "DEFAULT_$LINE"
2964 else
2965 no_cache=1
2966 fi
2967
2968 ac_cv_use_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL
2969
2970fi;
2971
2972 eval "$ac_cv_use_sdl"
2973 if test "$no_cache" != 1; then
2974 echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp
2975 fi
2976
2977 if test "$wxUSE_LIBSDL" = yes; then
2978 echo "$as_me:$LINENO: result: yes" >&5
2979echo "${ECHO_T}yes" >&6
2980 else
2981 echo "$as_me:$LINENO: result: no" >&5
2982echo "${ECHO_T}no" >&6
2983 fi
2984
2985
e6cc62c6
VS
2986 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2987echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2988 no_cache=0
e6cc62c6
VS
2989
2990# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2991if test "${with_opengl+set}" = set; then
2992 withval="$with_opengl"
e6cc62c6 2993
10f2d63a 2994 if test "$withval" = yes; then
b12915c1 2995 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2996 else
b12915c1 2997 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2998 fi
e6cc62c6 2999
10f2d63a 3000else
e6cc62c6 3001
b12915c1 3002 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
3003 if test "x$LINE" != x ; then
3004 eval "DEFAULT_$LINE"
3005 else
3006 no_cache=1
3007 fi
3008
b12915c1 3009 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 3010
e6cc62c6 3011fi;
10f2d63a 3012
b12915c1 3013 eval "$ac_cv_use_opengl"
10f2d63a 3014 if test "$no_cache" != 1; then
b12915c1 3015 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3016 fi
3017
b12915c1 3018 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
3019 echo "$as_me:$LINENO: result: yes" >&5
3020echo "${ECHO_T}yes" >&6
10f2d63a 3021 else
e6cc62c6
VS
3022 echo "$as_me:$LINENO: result: no" >&5
3023echo "${ECHO_T}no" >&6
10f2d63a 3024 fi
e6cc62c6 3025
10f2d63a 3026
b12915c1
VZ
3027fi
3028
5c6fa7d2 3029
e6cc62c6
VS
3030 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
3031echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 3032 no_cache=0
e6cc62c6
VS
3033
3034# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
3035if test "${with_dmalloc+set}" = set; then
3036 withval="$with_dmalloc"
e6cc62c6 3037
c7a2bf27 3038 if test "$withval" = yes; then
b12915c1 3039 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 3040 else
b12915c1 3041 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 3042 fi
e6cc62c6 3043
c7a2bf27 3044else
e6cc62c6 3045
b12915c1 3046 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
3047 if test "x$LINE" != x ; then
3048 eval "DEFAULT_$LINE"
3049 else
3050 no_cache=1
3051 fi
3052
b12915c1 3053 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 3054
e6cc62c6 3055fi;
c7a2bf27 3056
b12915c1 3057 eval "$ac_cv_use_dmalloc"
c7a2bf27 3058 if test "$no_cache" != 1; then
b12915c1 3059 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
3060 fi
3061
b12915c1 3062 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
3063 echo "$as_me:$LINENO: result: yes" >&5
3064echo "${ECHO_T}yes" >&6
c7a2bf27 3065 else
e6cc62c6
VS
3066 echo "$as_me:$LINENO: result: no" >&5
3067echo "${ECHO_T}no" >&6
c7a2bf27 3068 fi
c7a2bf27 3069
e6cc62c6
VS
3070
3071 echo "$as_me:$LINENO: checking for --with-regex" >&5
3072echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 3073 no_cache=0
e6cc62c6
VS
3074
3075# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
3076if test "${with_regex+set}" = set; then
3077 withval="$with_regex"
e6cc62c6 3078
3e44f09d
VZ
3079 if test "$withval" = yes; then
3080 ac_cv_use_regex='wxUSE_REGEX=yes'
3081 elif test "$withval" = no; then
3082 ac_cv_use_regex='wxUSE_REGEX=no'
3083 elif test "$withval" = sys; then
3084 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
3085 elif test "$withval" = builtin; then
3086 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 3087 else
e6cc62c6
VS
3088 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3089echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3090 { (exit 1); exit 1; }; }
3e44f09d 3091 fi
e6cc62c6 3092
3e44f09d 3093else
e6cc62c6 3094
3e44f09d
VZ
3095 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3096 if test "x$LINE" != x ; then
3097 eval "DEFAULT_$LINE"
3098 else
3099 no_cache=1
3100 fi
3101
3102 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 3103
e6cc62c6 3104fi;
3e44f09d
VZ
3105
3106 eval "$ac_cv_use_regex"
3107 if test "$no_cache" != 1; then
3108 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3109 fi
3110
3111 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
3112 echo "$as_me:$LINENO: result: yes" >&5
3113echo "${ECHO_T}yes" >&6
3e44f09d 3114 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
3115 echo "$as_me:$LINENO: result: no" >&5
3116echo "${ECHO_T}no" >&6
3e44f09d 3117 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
3118 echo "$as_me:$LINENO: result: system version" >&5
3119echo "${ECHO_T}system version" >&6
4f14bcd8 3120 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
3121 echo "$as_me:$LINENO: result: builtin version" >&5
3122echo "${ECHO_T}builtin version" >&6
3e44f09d 3123 else
e6cc62c6
VS
3124 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3125echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3126 { (exit 1); exit 1; }; }
3e44f09d 3127 fi
3e44f09d 3128
e6cc62c6
VS
3129
3130 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3131echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 3132 no_cache=0
e6cc62c6
VS
3133
3134# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
3135if test "${with_zlib+set}" = set; then
3136 withval="$with_zlib"
e6cc62c6 3137
10f2d63a 3138 if test "$withval" = yes; then
b12915c1 3139 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 3140 elif test "$withval" = no; then
b12915c1 3141 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
3142 elif test "$withval" = sys; then
3143 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
3144 elif test "$withval" = builtin; then
3145 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 3146 else
e6cc62c6
VS
3147 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3148echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3149 { (exit 1); exit 1; }; }
10f2d63a 3150 fi
e6cc62c6 3151
10f2d63a 3152else
e6cc62c6 3153
b12915c1 3154 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
3155 if test "x$LINE" != x ; then
3156 eval "DEFAULT_$LINE"
3157 else
3158 no_cache=1
3159 fi
3160
b12915c1 3161 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 3162
e6cc62c6 3163fi;
10f2d63a 3164
b12915c1 3165 eval "$ac_cv_use_zlib"
10f2d63a 3166 if test "$no_cache" != 1; then
b12915c1 3167 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3168 fi
3169
b12915c1 3170 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
3171 echo "$as_me:$LINENO: result: yes" >&5
3172echo "${ECHO_T}yes" >&6
422107f9 3173 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
3174 echo "$as_me:$LINENO: result: no" >&5
3175echo "${ECHO_T}no" >&6
422107f9 3176 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
3177 echo "$as_me:$LINENO: result: system version" >&5
3178echo "${ECHO_T}system version" >&6
4f14bcd8 3179 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
3180 echo "$as_me:$LINENO: result: builtin version" >&5
3181echo "${ECHO_T}builtin version" >&6
422107f9 3182 else
e6cc62c6
VS
3183 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3184echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3185 { (exit 1); exit 1; }; }
10f2d63a 3186 fi
10f2d63a 3187
e6cc62c6
VS
3188
3189 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3190echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 3191 no_cache=0
e6cc62c6
VS
3192
3193# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
3194if test "${with_odbc+set}" = set; then
3195 withval="$with_odbc"
e6cc62c6 3196
10f2d63a
VZ
3197 if test "$withval" = yes; then
3198 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 3199 elif test "$withval" = no; then
10f2d63a 3200 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
3201 elif test "$withval" = sys; then
3202 ac_cv_use_odbc='wxUSE_ODBC=sys'
3203 elif test "$withval" = builtin; then
3204 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3205 else
e6cc62c6
VS
3206 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3207echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3208 { (exit 1); exit 1; }; }
10f2d63a 3209 fi
e6cc62c6 3210
10f2d63a 3211else
e6cc62c6 3212
10f2d63a
VZ
3213 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3214 if test "x$LINE" != x ; then
3215 eval "DEFAULT_$LINE"
3216 else
3217 no_cache=1
3218 fi
3219
3220 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 3221
e6cc62c6 3222fi;
10f2d63a
VZ
3223
3224 eval "$ac_cv_use_odbc"
3225 if test "$no_cache" != 1; then
3226 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3227 fi
3228
3229 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
3230 echo "$as_me:$LINENO: result: yes" >&5
3231echo "${ECHO_T}yes" >&6
8647bec6 3232 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3233 echo "$as_me:$LINENO: result: no" >&5
3234echo "${ECHO_T}no" >&6
8647bec6 3235 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3236 echo "$as_me:$LINENO: result: system version" >&5
3237echo "${ECHO_T}system version" >&6
8647bec6 3238 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3239 echo "$as_me:$LINENO: result: builtin version" >&5
3240echo "${ECHO_T}builtin version" >&6
8647bec6 3241 else
e6cc62c6
VS
3242 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3243echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3244 { (exit 1); exit 1; }; }
10f2d63a 3245 fi
e6cc62c6 3246
52127426 3247
672abd7a
VS
3248 echo "$as_me:$LINENO: checking for --with-expat" >&5
3249echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3250 no_cache=0
3251
3252# Check whether --with-expat or --without-expat was given.
3253if test "${with_expat+set}" = set; then
3254 withval="$with_expat"
3255
3256 if test "$withval" = yes; then
3257 ac_cv_use_expat='wxUSE_EXPAT=yes'
3258 elif test "$withval" = no; then
3259 ac_cv_use_expat='wxUSE_EXPAT=no'
3260 elif test "$withval" = sys; then
3261 ac_cv_use_expat='wxUSE_EXPAT=sys'
3262 elif test "$withval" = builtin; then
3263 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3264 else
3265 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3266echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3267 { (exit 1); exit 1; }; }
3268 fi
3269
3270else
3271
3272 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3273 if test "x$LINE" != x ; then
3274 eval "DEFAULT_$LINE"
3275 else
3276 no_cache=1
3277 fi
3278
3279 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3280
3281fi;
3282
3283 eval "$ac_cv_use_expat"
3284 if test "$no_cache" != 1; then
3285 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3286 fi
3287
3288 if test "$wxUSE_EXPAT" = yes; then
3289 echo "$as_me:$LINENO: result: yes" >&5
3290echo "${ECHO_T}yes" >&6
3291 elif test "$wxUSE_EXPAT" = no; then
3292 echo "$as_me:$LINENO: result: no" >&5
3293echo "${ECHO_T}no" >&6
3294 elif test "$wxUSE_EXPAT" = sys; then
3295 echo "$as_me:$LINENO: result: system version" >&5
3296echo "${ECHO_T}system version" >&6
3297 elif test "$wxUSE_EXPAT" = builtin; then
3298 echo "$as_me:$LINENO: result: builtin version" >&5
3299echo "${ECHO_T}builtin version" >&6
3300 else
3301 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3302echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3303 { (exit 1); exit 1; }; }
3304 fi
3305
3306
8284b0c5
MB
3307
3308
5005acfe 3309 enablestring=
e6cc62c6
VS
3310 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3311echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3312 no_cache=0
3313 # Check whether --enable-shared or --disable-shared was given.
3314if test "${enable_shared+set}" = set; then
3315 enableval="$enable_shared"
e6cc62c6 3316
10f2d63a
VZ
3317 if test "$enableval" = yes; then
3318 ac_cv_use_shared='wxUSE_SHARED=yes'
3319 else
3320 ac_cv_use_shared='wxUSE_SHARED=no'
3321 fi
e6cc62c6 3322
10f2d63a 3323else
e6cc62c6 3324
10f2d63a
VZ
3325 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3326 if test "x$LINE" != x ; then
3327 eval "DEFAULT_$LINE"
3328 else
3329 no_cache=1
3330 fi
3331
3332 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3333
e6cc62c6 3334fi;
10f2d63a
VZ
3335
3336 eval "$ac_cv_use_shared"
3337 if test "$no_cache" != 1; then
3338 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3339 fi
3340
3341 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3342 echo "$as_me:$LINENO: result: yes" >&5
3343echo "${ECHO_T}yes" >&6
10f2d63a 3344 else
e6cc62c6
VS
3345 echo "$as_me:$LINENO: result: no" >&5
3346echo "${ECHO_T}no" >&6
10f2d63a 3347 fi
e6cc62c6 3348
10f2d63a 3349
5005acfe 3350 enablestring=
e6cc62c6
VS
3351 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3352echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3353 no_cache=0
3354 # Check whether --enable-optimise or --disable-optimise was given.
3355if test "${enable_optimise+set}" = set; then
3356 enableval="$enable_optimise"
e6cc62c6 3357
10f2d63a
VZ
3358 if test "$enableval" = yes; then
3359 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3360 else
3361 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3362 fi
e6cc62c6 3363
10f2d63a 3364else
e6cc62c6 3365
10f2d63a
VZ
3366 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3367 if test "x$LINE" != x ; then
3368 eval "DEFAULT_$LINE"
3369 else
3370 no_cache=1
3371 fi
3372
3373 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3374
e6cc62c6 3375fi;
10f2d63a
VZ
3376
3377 eval "$ac_cv_use_optimise"
3378 if test "$no_cache" != 1; then
3379 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3380 fi
3381
3382 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3383 echo "$as_me:$LINENO: result: yes" >&5
3384echo "${ECHO_T}yes" >&6
10f2d63a 3385 else
e6cc62c6
VS
3386 echo "$as_me:$LINENO: result: no" >&5
3387echo "${ECHO_T}no" >&6
10f2d63a 3388 fi
e6cc62c6 3389
10f2d63a 3390
5005acfe 3391 enablestring=
e6cc62c6
VS
3392 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3393echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3394 no_cache=0
3395 # Check whether --enable-debug or --disable-debug was given.
3396if test "${enable_debug+set}" = set; then
3397 enableval="$enable_debug"
e6cc62c6 3398
10f2d63a
VZ
3399 if test "$enableval" = yes; then
3400 ac_cv_use_debug='wxUSE_DEBUG=yes'
3401 else
3402 ac_cv_use_debug='wxUSE_DEBUG=no'
3403 fi
e6cc62c6 3404
10f2d63a 3405else
e6cc62c6 3406
10f2d63a
VZ
3407 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3408 if test "x$LINE" != x ; then
3409 eval "DEFAULT_$LINE"
3410 else
3411 no_cache=1
3412 fi
3413
3414 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3415
e6cc62c6 3416fi;
10f2d63a
VZ
3417
3418 eval "$ac_cv_use_debug"
3419 if test "$no_cache" != 1; then
3420 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3421 fi
3422
3423 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3424 echo "$as_me:$LINENO: result: yes" >&5
3425echo "${ECHO_T}yes" >&6
10f2d63a 3426 else
e6cc62c6
VS
3427 echo "$as_me:$LINENO: result: no" >&5
3428echo "${ECHO_T}no" >&6
10f2d63a 3429 fi
e6cc62c6 3430
52127426 3431
df5168c4
MB
3432 enablestring=
3433 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3434echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3435 no_cache=0
3436 # Check whether --enable-stl or --disable-stl was given.
3437if test "${enable_stl+set}" = set; then
3438 enableval="$enable_stl"
3439
3440 if test "$enableval" = yes; then
3441 ac_cv_use_stl='wxUSE_STL=yes'
3442 else
3443 ac_cv_use_stl='wxUSE_STL=no'
3444 fi
3445
3446else
3447
3448 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3449 if test "x$LINE" != x ; then
3450 eval "DEFAULT_$LINE"
3451 else
3452 no_cache=1
3453 fi
3454
3455 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3456
3457fi;
3458
3459 eval "$ac_cv_use_stl"
3460 if test "$no_cache" != 1; then
3461 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3462 fi
3463
3464 if test "$wxUSE_STL" = yes; then
3465 echo "$as_me:$LINENO: result: yes" >&5
3466echo "${ECHO_T}yes" >&6
3467 else
3468 echo "$as_me:$LINENO: result: no" >&5
3469echo "${ECHO_T}no" >&6
3470 fi
3471
3472
10f2d63a
VZ
3473if test "$wxUSE_DEBUG" = "yes"; then
3474 DEFAULT_wxUSE_DEBUG_FLAG=yes
3475 DEFAULT_wxUSE_DEBUG_INFO=yes
6c67131a 3476 BUILD=debug
10f2d63a
VZ
3477elif test "$wxUSE_DEBUG" = "no"; then
3478 DEFAULT_wxUSE_DEBUG_FLAG=no
3479 DEFAULT_wxUSE_DEBUG_INFO=no
6c67131a 3480 BUILD=release
10f2d63a
VZ
3481fi
3482
8284b0c5 3483
5005acfe 3484 enablestring=
e6cc62c6
VS
3485 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3486echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3487 no_cache=0
3488 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3489if test "${enable_debug_flag+set}" = set; then
3490 enableval="$enable_debug_flag"
e6cc62c6 3491
10f2d63a
VZ
3492 if test "$enableval" = yes; then
3493 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3494 else
3495 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3496 fi
e6cc62c6 3497
10f2d63a 3498else
e6cc62c6 3499
10f2d63a
VZ
3500 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3501 if test "x$LINE" != x ; then
3502 eval "DEFAULT_$LINE"
3503 else
3504 no_cache=1
3505 fi
3506
3507 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3508
e6cc62c6 3509fi;
10f2d63a
VZ
3510
3511 eval "$ac_cv_use_debug_flag"
3512 if test "$no_cache" != 1; then
3513 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3514 fi
3515
3516 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3517 echo "$as_me:$LINENO: result: yes" >&5
3518echo "${ECHO_T}yes" >&6
10f2d63a 3519 else
e6cc62c6
VS
3520 echo "$as_me:$LINENO: result: no" >&5
3521echo "${ECHO_T}no" >&6
10f2d63a 3522 fi
e6cc62c6 3523
10f2d63a 3524
5005acfe 3525 enablestring=
e6cc62c6
VS
3526 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3527echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3528 no_cache=0
3529 # Check whether --enable-debug_info or --disable-debug_info was given.
3530if test "${enable_debug_info+set}" = set; then
3531 enableval="$enable_debug_info"
e6cc62c6 3532
10f2d63a
VZ
3533 if test "$enableval" = yes; then
3534 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3535 else
3536 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3537 fi
e6cc62c6 3538
10f2d63a 3539else
e6cc62c6 3540
10f2d63a
VZ
3541 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3542 if test "x$LINE" != x ; then
3543 eval "DEFAULT_$LINE"
3544 else
3545 no_cache=1
3546 fi
3547
3548 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3549
e6cc62c6 3550fi;
10f2d63a
VZ
3551
3552 eval "$ac_cv_use_debug_info"
3553 if test "$no_cache" != 1; then
3554 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3555 fi
3556
3557 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3558 echo "$as_me:$LINENO: result: yes" >&5
3559echo "${ECHO_T}yes" >&6
10f2d63a 3560 else
e6cc62c6
VS
3561 echo "$as_me:$LINENO: result: no" >&5
3562echo "${ECHO_T}no" >&6
10f2d63a 3563 fi
e6cc62c6 3564
10f2d63a 3565
5005acfe 3566 enablestring=
e6cc62c6
VS
3567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3568echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3569 no_cache=0
3570 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3571if test "${enable_debug_gdb+set}" = set; then
3572 enableval="$enable_debug_gdb"
e6cc62c6 3573
10f2d63a
VZ
3574 if test "$enableval" = yes; then
3575 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3576 else
3577 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3578 fi
e6cc62c6 3579
10f2d63a 3580else
e6cc62c6 3581
10f2d63a
VZ
3582 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3583 if test "x$LINE" != x ; then
3584 eval "DEFAULT_$LINE"
3585 else
3586 no_cache=1
3587 fi
3588
3589 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3590
e6cc62c6 3591fi;
10f2d63a
VZ
3592
3593 eval "$ac_cv_use_debug_gdb"
3594 if test "$no_cache" != 1; then
3595 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3596 fi
3597
3598 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3599 echo "$as_me:$LINENO: result: yes" >&5
3600echo "${ECHO_T}yes" >&6
10f2d63a 3601 else
e6cc62c6
VS
3602 echo "$as_me:$LINENO: result: no" >&5
3603echo "${ECHO_T}no" >&6
10f2d63a 3604 fi
e6cc62c6 3605
10f2d63a 3606
5005acfe 3607 enablestring=
e6cc62c6
VS
3608 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3609echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3610 no_cache=0
3611 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3612if test "${enable_debug_cntxt+set}" = set; then
3613 enableval="$enable_debug_cntxt"
e6cc62c6 3614
10f2d63a
VZ
3615 if test "$enableval" = yes; then
3616 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3617 else
3618 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3619 fi
e6cc62c6 3620
10f2d63a 3621else
e6cc62c6 3622
10f2d63a
VZ
3623 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3624 if test "x$LINE" != x ; then
3625 eval "DEFAULT_$LINE"
3626 else
3627 no_cache=1
3628 fi
3629
3630 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3631
e6cc62c6 3632fi;
10f2d63a
VZ
3633
3634 eval "$ac_cv_use_debug_cntxt"
3635 if test "$no_cache" != 1; then
3636 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3637 fi
3638
3639 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3640 echo "$as_me:$LINENO: result: yes" >&5
3641echo "${ECHO_T}yes" >&6
10f2d63a 3642 else
e6cc62c6
VS
3643 echo "$as_me:$LINENO: result: no" >&5
3644echo "${ECHO_T}no" >&6
10f2d63a 3645 fi
e6cc62c6 3646
10f2d63a 3647
5005acfe 3648 enablestring=
e6cc62c6
VS
3649 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3650echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3651 no_cache=0
3652 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3653if test "${enable_mem_tracing+set}" = set; then
3654 enableval="$enable_mem_tracing"
e6cc62c6 3655
10f2d63a
VZ
3656 if test "$enableval" = yes; then
3657 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3658 else
3659 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3660 fi
e6cc62c6 3661
10f2d63a 3662else
e6cc62c6 3663
10f2d63a
VZ
3664 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3665 if test "x$LINE" != x ; then
3666 eval "DEFAULT_$LINE"
3667 else
3668 no_cache=1
3669 fi
3670
3671 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3672
e6cc62c6 3673fi;
10f2d63a
VZ
3674
3675 eval "$ac_cv_use_mem_tracing"
3676 if test "$no_cache" != 1; then
3677 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3678 fi
3679
3680 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3681 echo "$as_me:$LINENO: result: yes" >&5
3682echo "${ECHO_T}yes" >&6
10f2d63a 3683 else
e6cc62c6
VS
3684 echo "$as_me:$LINENO: result: no" >&5
3685echo "${ECHO_T}no" >&6
10f2d63a 3686 fi
e6cc62c6 3687
10f2d63a 3688
5005acfe 3689 enablestring=
e6cc62c6
VS
3690 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3691echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3692 no_cache=0
3693 # Check whether --enable-profile or --disable-profile was given.
3694if test "${enable_profile+set}" = set; then
3695 enableval="$enable_profile"
e6cc62c6 3696
10f2d63a
VZ
3697 if test "$enableval" = yes; then
3698 ac_cv_use_profile='wxUSE_PROFILE=yes'
3699 else
3700 ac_cv_use_profile='wxUSE_PROFILE=no'
3701 fi
e6cc62c6 3702
10f2d63a 3703else
e6cc62c6 3704
10f2d63a
VZ
3705 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3706 if test "x$LINE" != x ; then
3707 eval "DEFAULT_$LINE"
3708 else
3709 no_cache=1
3710 fi
3711
3712 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3713
e6cc62c6 3714fi;
10f2d63a
VZ
3715
3716 eval "$ac_cv_use_profile"
3717 if test "$no_cache" != 1; then
3718 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3719 fi
3720
3721 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3722 echo "$as_me:$LINENO: result: yes" >&5
3723echo "${ECHO_T}yes" >&6
10f2d63a 3724 else
e6cc62c6
VS
3725 echo "$as_me:$LINENO: result: no" >&5
3726echo "${ECHO_T}no" >&6
10f2d63a 3727 fi
e6cc62c6 3728
10f2d63a 3729
5005acfe 3730 enablestring=
e6cc62c6
VS
3731 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3732echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3733 no_cache=0
3734 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3735if test "${enable_no_rtti+set}" = set; then
3736 enableval="$enable_no_rtti"
e6cc62c6 3737
10f2d63a
VZ
3738 if test "$enableval" = yes; then
3739 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3740 else
3741 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3742 fi
e6cc62c6 3743
10f2d63a 3744else
e6cc62c6 3745
10f2d63a
VZ
3746 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3747 if test "x$LINE" != x ; then
3748 eval "DEFAULT_$LINE"
3749 else
3750 no_cache=1
3751 fi
3752
3753 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3754
e6cc62c6 3755fi;
10f2d63a
VZ
3756
3757 eval "$ac_cv_use_no_rtti"
3758 if test "$no_cache" != 1; then
3759 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3760 fi
3761
3762 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3763 echo "$as_me:$LINENO: result: yes" >&5
3764echo "${ECHO_T}yes" >&6
10f2d63a 3765 else
e6cc62c6
VS
3766 echo "$as_me:$LINENO: result: no" >&5
3767echo "${ECHO_T}no" >&6
10f2d63a 3768 fi
e6cc62c6 3769
10f2d63a 3770
5005acfe 3771 enablestring=
e6cc62c6
VS
3772 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3773echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3774 no_cache=0
3775 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3776if test "${enable_no_exceptions+set}" = set; then
3777 enableval="$enable_no_exceptions"
e6cc62c6 3778
10f2d63a
VZ
3779 if test "$enableval" = yes; then
3780 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3781 else
3782 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3783 fi
e6cc62c6 3784
10f2d63a 3785else
e6cc62c6 3786
10f2d63a
VZ
3787 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3788 if test "x$LINE" != x ; then
3789 eval "DEFAULT_$LINE"
3790 else
3791 no_cache=1
3792 fi
3793
3794 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3795
e6cc62c6 3796fi;
10f2d63a
VZ
3797
3798 eval "$ac_cv_use_no_exceptions"
3799 if test "$no_cache" != 1; then
3800 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3801 fi
3802
3803 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3804 echo "$as_me:$LINENO: result: yes" >&5
3805echo "${ECHO_T}yes" >&6
10f2d63a 3806 else
e6cc62c6
VS
3807 echo "$as_me:$LINENO: result: no" >&5
3808echo "${ECHO_T}no" >&6
10f2d63a 3809 fi
e6cc62c6 3810
10f2d63a 3811
5005acfe 3812 enablestring=
e6cc62c6
VS
3813 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3814echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3815 no_cache=0
3816 # Check whether --enable-permissive or --disable-permissive was given.
3817if test "${enable_permissive+set}" = set; then
3818 enableval="$enable_permissive"
e6cc62c6 3819
10f2d63a
VZ
3820 if test "$enableval" = yes; then
3821 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3822 else
3823 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3824 fi
e6cc62c6 3825
10f2d63a 3826else
e6cc62c6 3827
10f2d63a
VZ
3828 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3829 if test "x$LINE" != x ; then
3830 eval "DEFAULT_$LINE"
3831 else
3832 no_cache=1
3833 fi
3834
3835 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3836
e6cc62c6 3837fi;
10f2d63a
VZ
3838
3839 eval "$ac_cv_use_permissive"
3840 if test "$no_cache" != 1; then
3841 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3842 fi
3843
3844 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3845 echo "$as_me:$LINENO: result: yes" >&5
3846echo "${ECHO_T}yes" >&6
10f2d63a 3847 else
e6cc62c6
VS
3848 echo "$as_me:$LINENO: result: no" >&5
3849echo "${ECHO_T}no" >&6
10f2d63a 3850 fi
e6cc62c6 3851
10f2d63a 3852
5005acfe 3853 enablestring=
e6cc62c6
VS
3854 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3855echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3856 no_cache=0
3857 # Check whether --enable-no_deps or --disable-no_deps was given.
3858if test "${enable_no_deps+set}" = set; then
3859 enableval="$enable_no_deps"
e6cc62c6 3860
10f2d63a
VZ
3861 if test "$enableval" = yes; then
3862 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3863 else
3864 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3865 fi
e6cc62c6 3866
10f2d63a 3867else
e6cc62c6 3868
10f2d63a
VZ
3869 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3870 if test "x$LINE" != x ; then
3871 eval "DEFAULT_$LINE"
3872 else
3873 no_cache=1
3874 fi
3875
3876 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3877
e6cc62c6 3878fi;
10f2d63a
VZ
3879
3880 eval "$ac_cv_use_no_deps"
3881 if test "$no_cache" != 1; then
3882 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3883 fi
3884
3885 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3886 echo "$as_me:$LINENO: result: yes" >&5
3887echo "${ECHO_T}yes" >&6
10f2d63a 3888 else
e6cc62c6
VS
3889 echo "$as_me:$LINENO: result: no" >&5
3890echo "${ECHO_T}no" >&6
10f2d63a 3891 fi
e6cc62c6 3892
52127426 3893
8284b0c5 3894
65d8ef1e 3895 enablestring=
e6cc62c6
VS
3896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3897echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3898 no_cache=0
3899 # Check whether --enable-compat22 or --disable-compat22 was given.
3900if test "${enable_compat22+set}" = set; then
3901 enableval="$enable_compat22"
e6cc62c6 3902
54276ccf
VZ
3903 if test "$enableval" = yes; then
3904 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3905 else
3906 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3907 fi
e6cc62c6 3908
54276ccf 3909else
e6cc62c6 3910
54276ccf
VZ
3911 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3912 if test "x$LINE" != x ; then
3913 eval "DEFAULT_$LINE"
3914 else
3915 no_cache=1
3916 fi
3917
3918 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3919
e6cc62c6 3920fi;
54276ccf
VZ
3921
3922 eval "$ac_cv_use_compat22"
3923 if test "$no_cache" != 1; then
3924 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3925 fi
3926
3927 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3928 echo "$as_me:$LINENO: result: yes" >&5
3929echo "${ECHO_T}yes" >&6
54276ccf 3930 else
e6cc62c6
VS
3931 echo "$as_me:$LINENO: result: no" >&5
3932echo "${ECHO_T}no" >&6
54276ccf 3933 fi
e6cc62c6 3934
54276ccf 3935
65d8ef1e 3936 enablestring=disable
e6cc62c6
VS
3937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3938echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3939 no_cache=0
3940 # Check whether --enable-compat24 or --disable-compat24 was given.
3941if test "${enable_compat24+set}" = set; then
3942 enableval="$enable_compat24"
e6cc62c6 3943
65d8ef1e
VS
3944 if test "$enableval" = yes; then
3945 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3946 else
3947 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3948 fi
e6cc62c6 3949
65d8ef1e 3950else
e6cc62c6 3951
65d8ef1e
VS
3952 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3953 if test "x$LINE" != x ; then
3954 eval "DEFAULT_$LINE"
3955 else
3956 no_cache=1
3957 fi
3958
3959 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3960
e6cc62c6 3961fi;
65d8ef1e
VS
3962
3963 eval "$ac_cv_use_compat24"
3964 if test "$no_cache" != 1; then
3965 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3966 fi
3967
3968 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3969 echo "$as_me:$LINENO: result: yes" >&5
3970echo "${ECHO_T}yes" >&6
65d8ef1e 3971 else
e6cc62c6
VS
3972 echo "$as_me:$LINENO: result: no" >&5
3973echo "${ECHO_T}no" >&6
65d8ef1e 3974 fi
e6cc62c6 3975
65d8ef1e 3976
3bd8fb5f
RD
3977# Check whether --enable-rpath or --disable-rpath was given.
3978if test "${enable_rpath+set}" = set; then
3979 enableval="$enable_rpath"
3980 wxRPATH_DIR="$enableval"
e6cc62c6 3981fi;
3bd8fb5f
RD
3982
3983if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3984 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3985fi
3986
8284b0c5
MB
3987
3988
3989
5005acfe 3990 enablestring=
e6cc62c6
VS
3991 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3992echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3993 no_cache=0
3994 # Check whether --enable-intl or --disable-intl was given.
3995if test "${enable_intl+set}" = set; then
3996 enableval="$enable_intl"
e6cc62c6 3997
10f2d63a
VZ
3998 if test "$enableval" = yes; then
3999 ac_cv_use_intl='wxUSE_INTL=yes'
4000 else
4001 ac_cv_use_intl='wxUSE_INTL=no'
4002 fi
e6cc62c6 4003
10f2d63a 4004else
e6cc62c6 4005
10f2d63a
VZ
4006 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
4007 if test "x$LINE" != x ; then
4008 eval "DEFAULT_$LINE"
4009 else
4010 no_cache=1
4011 fi
4012
4013 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 4014
e6cc62c6 4015fi;
10f2d63a
VZ
4016
4017 eval "$ac_cv_use_intl"
4018 if test "$no_cache" != 1; then
4019 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
4020 fi
4021
4022 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
4023 echo "$as_me:$LINENO: result: yes" >&5
4024echo "${ECHO_T}yes" >&6
10f2d63a 4025 else
e6cc62c6
VS
4026 echo "$as_me:$LINENO: result: no" >&5
4027echo "${ECHO_T}no" >&6
10f2d63a 4028 fi
e6cc62c6 4029
10f2d63a 4030
5005acfe 4031 enablestring=
e6cc62c6
VS
4032 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
4033echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
4034 no_cache=0
4035 # Check whether --enable-config or --disable-config was given.
4036if test "${enable_config+set}" = set; then
4037 enableval="$enable_config"
e6cc62c6 4038
10f2d63a
VZ
4039 if test "$enableval" = yes; then
4040 ac_cv_use_config='wxUSE_CONFIG=yes'
4041 else
4042 ac_cv_use_config='wxUSE_CONFIG=no'
4043 fi
e6cc62c6 4044
10f2d63a 4045else
e6cc62c6 4046
10f2d63a
VZ
4047 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
4048 if test "x$LINE" != x ; then
4049 eval "DEFAULT_$LINE"
4050 else
4051 no_cache=1
4052 fi
4053
4054 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 4055
e6cc62c6 4056fi;
10f2d63a
VZ
4057
4058 eval "$ac_cv_use_config"
4059 if test "$no_cache" != 1; then
4060 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4061 fi
4062
4063 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
4064 echo "$as_me:$LINENO: result: yes" >&5
4065echo "${ECHO_T}yes" >&6
10f2d63a 4066 else
e6cc62c6
VS
4067 echo "$as_me:$LINENO: result: no" >&5
4068echo "${ECHO_T}no" >&6
10f2d63a 4069 fi
e6cc62c6 4070
52127426 4071
8284b0c5 4072
5005acfe 4073 enablestring=
e6cc62c6
VS
4074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4075echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
4076 no_cache=0
4077 # Check whether --enable-protocols or --disable-protocols was given.
4078if test "${enable_protocols+set}" = set; then
4079 enableval="$enable_protocols"
e6cc62c6 4080
a1622950
VZ
4081 if test "$enableval" = yes; then
4082 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4083 else
4084 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4085 fi
e6cc62c6 4086
a1622950 4087else
e6cc62c6 4088
a1622950
VZ
4089 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4090 if test "x$LINE" != x ; then
4091 eval "DEFAULT_$LINE"
4092 else
4093 no_cache=1
4094 fi
4095
4096 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 4097
e6cc62c6 4098fi;
a1622950
VZ
4099
4100 eval "$ac_cv_use_protocols"
4101 if test "$no_cache" != 1; then
4102 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4103 fi
4104
4105 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
4106 echo "$as_me:$LINENO: result: yes" >&5
4107echo "${ECHO_T}yes" >&6
a1622950 4108 else
e6cc62c6
VS
4109 echo "$as_me:$LINENO: result: no" >&5
4110echo "${ECHO_T}no" >&6
a1622950 4111 fi
e6cc62c6 4112
a1622950 4113
5005acfe 4114 enablestring=
e6cc62c6
VS
4115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4116echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
4117 no_cache=0
4118 # Check whether --enable-ftp or --disable-ftp was given.
4119if test "${enable_ftp+set}" = set; then
4120 enableval="$enable_ftp"
e6cc62c6 4121
a1622950
VZ
4122 if test "$enableval" = yes; then
4123 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4124 else
4125 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4126 fi
e6cc62c6 4127
a1622950 4128else
e6cc62c6 4129
a1622950
VZ
4130 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4131 if test "x$LINE" != x ; then
4132 eval "DEFAULT_$LINE"
4133 else
4134 no_cache=1
4135 fi
4136
4137 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 4138
e6cc62c6 4139fi;
a1622950
VZ
4140
4141 eval "$ac_cv_use_ftp"
4142 if test "$no_cache" != 1; then
4143 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4144 fi
4145
4146 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
4147 echo "$as_me:$LINENO: result: yes" >&5
4148echo "${ECHO_T}yes" >&6
a1622950 4149 else
e6cc62c6
VS
4150 echo "$as_me:$LINENO: result: no" >&5
4151echo "${ECHO_T}no" >&6
a1622950 4152 fi
e6cc62c6 4153
a1622950 4154
5005acfe 4155 enablestring=
e6cc62c6
VS
4156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4157echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
4158 no_cache=0
4159 # Check whether --enable-http or --disable-http was given.
4160if test "${enable_http+set}" = set; then
4161 enableval="$enable_http"
e6cc62c6 4162
a1622950
VZ
4163 if test "$enableval" = yes; then
4164 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4165 else
4166 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4167 fi
e6cc62c6 4168
a1622950 4169else
e6cc62c6 4170
a1622950
VZ
4171 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4172 if test "x$LINE" != x ; then
4173 eval "DEFAULT_$LINE"
4174 else
4175 no_cache=1
4176 fi
4177
4178 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 4179
e6cc62c6 4180fi;
a1622950
VZ
4181
4182 eval "$ac_cv_use_http"
4183 if test "$no_cache" != 1; then
4184 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4185 fi
4186
4187 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
4188 echo "$as_me:$LINENO: result: yes" >&5
4189echo "${ECHO_T}yes" >&6
a1622950 4190 else
e6cc62c6
VS
4191 echo "$as_me:$LINENO: result: no" >&5
4192echo "${ECHO_T}no" >&6
a1622950 4193 fi
e6cc62c6 4194
a1622950 4195
5005acfe 4196 enablestring=
e6cc62c6
VS
4197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4198echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
4199 no_cache=0
4200 # Check whether --enable-fileproto or --disable-fileproto was given.
4201if test "${enable_fileproto+set}" = set; then
4202 enableval="$enable_fileproto"
e6cc62c6 4203
a1622950
VZ
4204 if test "$enableval" = yes; then
4205 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4206 else
4207 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4208 fi
e6cc62c6 4209
a1622950 4210else
e6cc62c6 4211
a1622950
VZ
4212 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4213 if test "x$LINE" != x ; then
4214 eval "DEFAULT_$LINE"
4215 else
4216 no_cache=1
4217 fi
4218
4219 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4220
e6cc62c6 4221fi;
a1622950
VZ
4222
4223 eval "$ac_cv_use_fileproto"
4224 if test "$no_cache" != 1; then
4225 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4226 fi
4227
4228 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4229 echo "$as_me:$LINENO: result: yes" >&5
4230echo "${ECHO_T}yes" >&6
a1622950 4231 else
e6cc62c6
VS
4232 echo "$as_me:$LINENO: result: no" >&5
4233echo "${ECHO_T}no" >&6
a1622950 4234 fi
e6cc62c6 4235
a1622950 4236
5005acfe 4237 enablestring=
e6cc62c6
VS
4238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4239echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4240 no_cache=0
4241 # Check whether --enable-sockets or --disable-sockets was given.
4242if test "${enable_sockets+set}" = set; then
4243 enableval="$enable_sockets"
e6cc62c6 4244
10f2d63a
VZ
4245 if test "$enableval" = yes; then
4246 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4247 else
4248 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4249 fi
e6cc62c6 4250
10f2d63a 4251else
e6cc62c6 4252
10f2d63a
VZ
4253 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4254 if test "x$LINE" != x ; then
4255 eval "DEFAULT_$LINE"
4256 else
4257 no_cache=1
4258 fi
4259
4260 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4261
e6cc62c6 4262fi;
10f2d63a
VZ
4263
4264 eval "$ac_cv_use_sockets"
4265 if test "$no_cache" != 1; then
4266 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4267 fi
4268
4269 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4270 echo "$as_me:$LINENO: result: yes" >&5
4271echo "${ECHO_T}yes" >&6
10f2d63a 4272 else
e6cc62c6
VS
4273 echo "$as_me:$LINENO: result: no" >&5
4274echo "${ECHO_T}no" >&6
10f2d63a 4275 fi
e6cc62c6 4276
8284b0c5 4277
5005acfe 4278 enablestring=
e6cc62c6
VS
4279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4280echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4281 no_cache=0
4282 # Check whether --enable-ole or --disable-ole was given.
4283if test "${enable_ole+set}" = set; then
4284 enableval="$enable_ole"
e6cc62c6 4285
3bce6687
JS
4286 if test "$enableval" = yes; then
4287 ac_cv_use_ole='wxUSE_OLE=yes'
4288 else
4289 ac_cv_use_ole='wxUSE_OLE=no'
4290 fi
e6cc62c6 4291
3bce6687 4292else
e6cc62c6 4293
3bce6687
JS
4294 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4295 if test "x$LINE" != x ; then
4296 eval "DEFAULT_$LINE"
4297 else
4298 no_cache=1
4299 fi
4300
4301 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4302
e6cc62c6 4303fi;
3bce6687
JS
4304
4305 eval "$ac_cv_use_ole"
4306 if test "$no_cache" != 1; then
4307 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4308 fi
4309
4310 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4311 echo "$as_me:$LINENO: result: yes" >&5
4312echo "${ECHO_T}yes" >&6
3bce6687 4313 else
e6cc62c6
VS
4314 echo "$as_me:$LINENO: result: no" >&5
4315echo "${ECHO_T}no" >&6
3bce6687 4316 fi
e6cc62c6 4317
3bce6687 4318
5005acfe 4319 enablestring=
e6cc62c6
VS
4320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4321echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4322 no_cache=0
4323 # Check whether --enable-dataobj or --disable-dataobj was given.
4324if test "${enable_dataobj+set}" = set; then
4325 enableval="$enable_dataobj"
e6cc62c6 4326
3bce6687
JS
4327 if test "$enableval" = yes; then
4328 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4329 else
4330 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4331 fi
e6cc62c6 4332
3bce6687 4333else
e6cc62c6 4334
3bce6687
JS
4335 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4336 if test "x$LINE" != x ; then
4337 eval "DEFAULT_$LINE"
4338 else
4339 no_cache=1
4340 fi
4341
4342 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4343
e6cc62c6 4344fi;
3bce6687
JS
4345
4346 eval "$ac_cv_use_dataobj"
4347 if test "$no_cache" != 1; then
4348 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4349 fi
4350
4351 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4352 echo "$as_me:$LINENO: result: yes" >&5
4353echo "${ECHO_T}yes" >&6
3bce6687 4354 else
e6cc62c6
VS
4355 echo "$as_me:$LINENO: result: no" >&5
4356echo "${ECHO_T}no" >&6
3bce6687 4357 fi
e6cc62c6 4358
3bce6687 4359
52127426 4360
5005acfe 4361 enablestring=
e6cc62c6
VS
4362 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4363echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4364 no_cache=0
eb4efbdc
VZ
4365 # Check whether --enable-ipc or --disable-ipc was given.
4366if test "${enable_ipc+set}" = set; then
4367 enableval="$enable_ipc"
e6cc62c6 4368
10f2d63a 4369 if test "$enableval" = yes; then
eb4efbdc 4370 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4371 else
eb4efbdc 4372 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4373 fi
e6cc62c6 4374
10f2d63a 4375else
e6cc62c6 4376
eb4efbdc 4377 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4378 if test "x$LINE" != x ; then
4379 eval "DEFAULT_$LINE"
4380 else
4381 no_cache=1
4382 fi
4383
eb4efbdc 4384 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4385
e6cc62c6 4386fi;
10f2d63a 4387
eb4efbdc 4388 eval "$ac_cv_use_ipc"
10f2d63a 4389 if test "$no_cache" != 1; then
eb4efbdc 4390 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4391 fi
4392
eb4efbdc 4393 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4394 echo "$as_me:$LINENO: result: yes" >&5
4395echo "${ECHO_T}yes" >&6
10f2d63a 4396 else
e6cc62c6
VS
4397 echo "$as_me:$LINENO: result: no" >&5
4398echo "${ECHO_T}no" >&6
10f2d63a 4399 fi
e6cc62c6 4400
52127426 4401
8284b0c5 4402
5005acfe 4403 enablestring=
e46d2a18
VS
4404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4405echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a 4406 no_cache=0
e46d2a18
VS
4407 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4408if test "${enable_apple_ieee+set}" = set; then
4409 enableval="$enable_apple_ieee"
e6cc62c6 4410
10f2d63a 4411 if test "$enableval" = yes; then
e46d2a18 4412 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
10f2d63a 4413 else
e46d2a18 4414 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
10f2d63a 4415 fi
e6cc62c6 4416
10f2d63a 4417else
e6cc62c6 4418
e46d2a18 4419 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
10f2d63a
VZ
4420 if test "x$LINE" != x ; then
4421 eval "DEFAULT_$LINE"
4422 else
4423 no_cache=1
4424 fi
4425
e46d2a18 4426 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4427
e6cc62c6 4428fi;
10f2d63a 4429
e46d2a18 4430 eval "$ac_cv_use_apple_ieee"
10f2d63a 4431 if test "$no_cache" != 1; then
e46d2a18 4432 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4433 fi
4434
e46d2a18 4435 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4436 echo "$as_me:$LINENO: result: yes" >&5
4437echo "${ECHO_T}yes" >&6
10f2d63a 4438 else
e6cc62c6
VS
4439 echo "$as_me:$LINENO: result: no" >&5
4440echo "${ECHO_T}no" >&6
10f2d63a 4441 fi
e6cc62c6 4442
10f2d63a 4443
5005acfe 4444 enablestring=
e46d2a18
VS
4445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4446echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
10f2d63a 4447 no_cache=0
e46d2a18
VS
4448 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4449if test "${enable_catch_segvs+set}" = set; then
4450 enableval="$enable_catch_segvs"
e6cc62c6 4451
10f2d63a 4452 if test "$enableval" = yes; then
e46d2a18 4453 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
10f2d63a 4454 else
e46d2a18 4455 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
10f2d63a 4456 fi
e6cc62c6 4457
10f2d63a 4458else
e6cc62c6 4459
e46d2a18 4460 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
10f2d63a
VZ
4461 if test "x$LINE" != x ; then
4462 eval "DEFAULT_$LINE"
4463 else
4464 no_cache=1
4465 fi
4466
e46d2a18 4467 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
10f2d63a 4468
e6cc62c6 4469fi;
10f2d63a 4470
e46d2a18 4471 eval "$ac_cv_use_catch_segvs"
10f2d63a 4472 if test "$no_cache" != 1; then
e46d2a18 4473 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4474 fi
4475
e46d2a18 4476 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
4477 echo "$as_me:$LINENO: result: yes" >&5
4478echo "${ECHO_T}yes" >&6
10f2d63a 4479 else
e6cc62c6
VS
4480 echo "$as_me:$LINENO: result: no" >&5
4481echo "${ECHO_T}no" >&6
10f2d63a 4482 fi
e6cc62c6 4483
10f2d63a 4484
5005acfe 4485 enablestring=
e46d2a18
VS
4486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4487echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
10f2d63a 4488 no_cache=0
e46d2a18
VS
4489 # Check whether --enable-cmdline or --disable-cmdline was given.
4490if test "${enable_cmdline+set}" = set; then
4491 enableval="$enable_cmdline"
e6cc62c6 4492
10f2d63a 4493 if test "$enableval" = yes; then
e46d2a18 4494 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
10f2d63a 4495 else
e46d2a18 4496 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
10f2d63a 4497 fi
e6cc62c6 4498
10f2d63a 4499else
e6cc62c6 4500
e46d2a18 4501 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
10f2d63a
VZ
4502 if test "x$LINE" != x ; then
4503 eval "DEFAULT_$LINE"
4504 else
4505 no_cache=1
4506 fi
4507
e46d2a18 4508 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
10f2d63a 4509
e6cc62c6 4510fi;
10f2d63a 4511
e46d2a18 4512 eval "$ac_cv_use_cmdline"
10f2d63a 4513 if test "$no_cache" != 1; then
e46d2a18 4514 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4515 fi
4516
e46d2a18 4517 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4518 echo "$as_me:$LINENO: result: yes" >&5
4519echo "${ECHO_T}yes" >&6
10f2d63a 4520 else
e6cc62c6
VS
4521 echo "$as_me:$LINENO: result: no" >&5
4522echo "${ECHO_T}no" >&6
10f2d63a 4523 fi
e6cc62c6 4524
10f2d63a 4525
5005acfe 4526 enablestring=
e46d2a18
VS
4527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4528echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
10f2d63a 4529 no_cache=0
e46d2a18
VS
4530 # Check whether --enable-datetime or --disable-datetime was given.
4531if test "${enable_datetime+set}" = set; then
4532 enableval="$enable_datetime"
e6cc62c6 4533
10f2d63a 4534 if test "$enableval" = yes; then
e46d2a18 4535 ac_cv_use_datetime='wxUSE_DATETIME=yes'
10f2d63a 4536 else
e46d2a18 4537 ac_cv_use_datetime='wxUSE_DATETIME=no'
10f2d63a 4538 fi
e6cc62c6 4539
10f2d63a 4540else
e6cc62c6 4541
e46d2a18 4542 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
10f2d63a
VZ
4543 if test "x$LINE" != x ; then
4544 eval "DEFAULT_$LINE"
4545 else
4546 no_cache=1
4547 fi
4548
e46d2a18 4549 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
10f2d63a 4550
e6cc62c6 4551fi;
10f2d63a 4552
e46d2a18 4553 eval "$ac_cv_use_datetime"
10f2d63a 4554 if test "$no_cache" != 1; then
e46d2a18 4555 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4556 fi
4557
e46d2a18 4558 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4559 echo "$as_me:$LINENO: result: yes" >&5
4560echo "${ECHO_T}yes" >&6
10f2d63a 4561 else
e6cc62c6
VS
4562 echo "$as_me:$LINENO: result: no" >&5
4563echo "${ECHO_T}no" >&6
10f2d63a 4564 fi
e6cc62c6 4565
10f2d63a 4566
5005acfe 4567 enablestring=
e46d2a18
VS
4568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4569echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4570 no_cache=0
e46d2a18
VS
4571 # Check whether --enable-dialupman or --disable-dialupman was given.
4572if test "${enable_dialupman+set}" = set; then
4573 enableval="$enable_dialupman"
e6cc62c6 4574
10f2d63a 4575 if test "$enableval" = yes; then
e46d2a18 4576 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4577 else
e46d2a18 4578 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4579 fi
e6cc62c6 4580
10f2d63a 4581else
e6cc62c6 4582
e46d2a18 4583 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4584 if test "x$LINE" != x ; then
4585 eval "DEFAULT_$LINE"
4586 else
4587 no_cache=1
4588 fi
4589
e46d2a18 4590 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4591
e6cc62c6 4592fi;
10f2d63a 4593
e46d2a18 4594 eval "$ac_cv_use_dialupman"
10f2d63a 4595 if test "$no_cache" != 1; then
e46d2a18 4596 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4597 fi
4598
e46d2a18 4599 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4600 echo "$as_me:$LINENO: result: yes" >&5
4601echo "${ECHO_T}yes" >&6
10f2d63a 4602 else
e6cc62c6
VS
4603 echo "$as_me:$LINENO: result: no" >&5
4604echo "${ECHO_T}no" >&6
10f2d63a 4605 fi
e6cc62c6 4606
10f2d63a 4607
5005acfe 4608 enablestring=
e6cc62c6
VS
4609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4610echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4611 no_cache=0
4612 # Check whether --enable-dynlib or --disable-dynlib was given.
4613if test "${enable_dynlib+set}" = set; then
4614 enableval="$enable_dynlib"
e6cc62c6 4615
10f2d63a
VZ
4616 if test "$enableval" = yes; then
4617 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4618 else
4619 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4620 fi
e6cc62c6 4621
10f2d63a 4622else
e6cc62c6 4623
10f2d63a
VZ
4624 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4625 if test "x$LINE" != x ; then
4626 eval "DEFAULT_$LINE"
4627 else
4628 no_cache=1
4629 fi
4630
4631 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4632
e6cc62c6 4633fi;
10f2d63a
VZ
4634
4635 eval "$ac_cv_use_dynlib"
4636 if test "$no_cache" != 1; then
4637 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4638 fi
4639
4640 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4641 echo "$as_me:$LINENO: result: yes" >&5
4642echo "${ECHO_T}yes" >&6
10f2d63a 4643 else
e6cc62c6
VS
4644 echo "$as_me:$LINENO: result: no" >&5
4645echo "${ECHO_T}no" >&6
10f2d63a 4646 fi
e6cc62c6 4647
10f2d63a 4648
5005acfe 4649 enablestring=
e6cc62c6
VS
4650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4651echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4652 no_cache=0
4653 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4654if test "${enable_dynamicloader+set}" = set; then
4655 enableval="$enable_dynamicloader"
e6cc62c6 4656
0b9ab0bd
RL
4657 if test "$enableval" = yes; then
4658 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4659 else
4660 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4661 fi
e6cc62c6 4662
0b9ab0bd 4663else
e6cc62c6 4664
0b9ab0bd
RL
4665 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4666 if test "x$LINE" != x ; then
4667 eval "DEFAULT_$LINE"
4668 else
4669 no_cache=1
4670 fi
4671
4672 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4673
e6cc62c6 4674fi;
0b9ab0bd
RL
4675
4676 eval "$ac_cv_use_dynamicloader"
4677 if test "$no_cache" != 1; then
4678 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4679 fi
4680
4681 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4682 echo "$as_me:$LINENO: result: yes" >&5
4683echo "${ECHO_T}yes" >&6
0b9ab0bd 4684 else
e6cc62c6
VS
4685 echo "$as_me:$LINENO: result: no" >&5
4686echo "${ECHO_T}no" >&6
0b9ab0bd 4687 fi
e6cc62c6 4688
0b9ab0bd 4689
5005acfe 4690 enablestring=
e46d2a18
VS
4691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4692echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
10f2d63a 4693 no_cache=0
e46d2a18
VS
4694 # Check whether --enable-exceptions or --disable-exceptions was given.
4695if test "${enable_exceptions+set}" = set; then
4696 enableval="$enable_exceptions"
e6cc62c6 4697
10f2d63a 4698 if test "$enableval" = yes; then
e46d2a18 4699 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
10f2d63a 4700 else
e46d2a18 4701 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
10f2d63a 4702 fi
e6cc62c6 4703
10f2d63a 4704else
e6cc62c6 4705
e46d2a18 4706 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
4707 if test "x$LINE" != x ; then
4708 eval "DEFAULT_$LINE"
4709 else
4710 no_cache=1
4711 fi
4712
e46d2a18 4713 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
10f2d63a 4714
e6cc62c6 4715fi;
10f2d63a 4716
e46d2a18 4717 eval "$ac_cv_use_exceptions"
10f2d63a 4718 if test "$no_cache" != 1; then
e46d2a18 4719 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4720 fi
4721
e46d2a18 4722 if test "$wxUSE_EXCEPTIONS" = yes; then
e6cc62c6
VS
4723 echo "$as_me:$LINENO: result: yes" >&5
4724echo "${ECHO_T}yes" >&6
10f2d63a 4725 else
e6cc62c6
VS
4726 echo "$as_me:$LINENO: result: no" >&5
4727echo "${ECHO_T}no" >&6
10f2d63a 4728 fi
e6cc62c6 4729
10f2d63a 4730
5005acfe 4731 enablestring=
e46d2a18
VS
4732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4733echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
e8f65ba6 4734 no_cache=0
e46d2a18
VS
4735 # Check whether --enable-ffile or --disable-ffile was given.
4736if test "${enable_ffile+set}" = set; then
4737 enableval="$enable_ffile"
e6cc62c6 4738
e8f65ba6 4739 if test "$enableval" = yes; then
e46d2a18 4740 ac_cv_use_ffile='wxUSE_FFILE=yes'
e8f65ba6 4741 else
e46d2a18 4742 ac_cv_use_ffile='wxUSE_FFILE=no'
e8f65ba6 4743 fi
e6cc62c6 4744
e8f65ba6 4745else
e6cc62c6 4746
e46d2a18 4747 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
e8f65ba6
RR
4748 if test "x$LINE" != x ; then
4749 eval "DEFAULT_$LINE"
4750 else
4751 no_cache=1
4752 fi
4753
e46d2a18 4754 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
e8f65ba6 4755
e6cc62c6 4756fi;
e8f65ba6 4757
e46d2a18 4758 eval "$ac_cv_use_ffile"
e8f65ba6 4759 if test "$no_cache" != 1; then
e46d2a18 4760 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
e8f65ba6
RR
4761 fi
4762
e46d2a18 4763 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4764 echo "$as_me:$LINENO: result: yes" >&5
4765echo "${ECHO_T}yes" >&6
e8f65ba6 4766 else
e6cc62c6
VS
4767 echo "$as_me:$LINENO: result: no" >&5
4768echo "${ECHO_T}no" >&6
e8f65ba6 4769 fi
e6cc62c6 4770
e8f65ba6 4771
5005acfe 4772 enablestring=
e46d2a18
VS
4773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4774echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a 4775 no_cache=0
e46d2a18
VS
4776 # Check whether --enable-file or --disable-file was given.
4777if test "${enable_file+set}" = set; then
4778 enableval="$enable_file"
e6cc62c6 4779
10f2d63a 4780 if test "$enableval" = yes; then
e46d2a18 4781 ac_cv_use_file='wxUSE_FILE=yes'
10f2d63a 4782 else
e46d2a18 4783 ac_cv_use_file='wxUSE_FILE=no'
10f2d63a 4784 fi
e6cc62c6 4785
10f2d63a 4786else
e6cc62c6 4787
e46d2a18 4788 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4789 if test "x$LINE" != x ; then
4790 eval "DEFAULT_$LINE"
4791 else
4792 no_cache=1
4793 fi
4794
e46d2a18 4795 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4796
e6cc62c6 4797fi;
10f2d63a 4798
e46d2a18 4799 eval "$ac_cv_use_file"
10f2d63a 4800 if test "$no_cache" != 1; then
e46d2a18 4801 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4802 fi
4803
e46d2a18 4804 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4805 echo "$as_me:$LINENO: result: yes" >&5
4806echo "${ECHO_T}yes" >&6
10f2d63a 4807 else
e6cc62c6
VS
4808 echo "$as_me:$LINENO: result: no" >&5
4809echo "${ECHO_T}no" >&6
10f2d63a 4810 fi
e6cc62c6 4811
10f2d63a 4812
5005acfe 4813 enablestring=
e46d2a18
VS
4814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4815echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
10f2d63a 4816 no_cache=0
e46d2a18
VS
4817 # Check whether --enable-filesystem or --disable-filesystem was given.
4818if test "${enable_filesystem+set}" = set; then
4819 enableval="$enable_filesystem"
e6cc62c6 4820
10f2d63a 4821 if test "$enableval" = yes; then
e46d2a18 4822 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
10f2d63a 4823 else
e46d2a18 4824 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
10f2d63a 4825 fi
e6cc62c6 4826
10f2d63a 4827else
e6cc62c6 4828
e46d2a18 4829 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
10f2d63a
VZ
4830 if test "x$LINE" != x ; then
4831 eval "DEFAULT_$LINE"
4832 else
4833 no_cache=1
4834 fi
4835
e46d2a18 4836 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
10f2d63a 4837
e6cc62c6 4838fi;
10f2d63a 4839
e46d2a18 4840 eval "$ac_cv_use_filesystem"
10f2d63a 4841 if test "$no_cache" != 1; then
e46d2a18 4842 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4843 fi
4844
e46d2a18 4845 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
4846 echo "$as_me:$LINENO: result: yes" >&5
4847echo "${ECHO_T}yes" >&6
10f2d63a 4848 else
e6cc62c6
VS
4849 echo "$as_me:$LINENO: result: no" >&5
4850echo "${ECHO_T}no" >&6
10f2d63a 4851 fi
e6cc62c6 4852
10f2d63a 4853
5005acfe 4854 enablestring=
e46d2a18
VS
4855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4856echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4857 no_cache=0
e46d2a18
VS
4858 # Check whether --enable-fontmap or --disable-fontmap was given.
4859if test "${enable_fontmap+set}" = set; then
4860 enableval="$enable_fontmap"
e6cc62c6 4861
10f2d63a 4862 if test "$enableval" = yes; then
e46d2a18 4863 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4864 else
e46d2a18 4865 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4866 fi
e6cc62c6 4867
10f2d63a 4868else
e6cc62c6 4869
e46d2a18 4870 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4871 if test "x$LINE" != x ; then
4872 eval "DEFAULT_$LINE"
4873 else
4874 no_cache=1
4875 fi
4876
e46d2a18 4877 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4878
e6cc62c6 4879fi;
10f2d63a 4880
e46d2a18 4881 eval "$ac_cv_use_fontmap"
10f2d63a 4882 if test "$no_cache" != 1; then
e46d2a18 4883 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4884 fi
4885
e46d2a18 4886 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4887 echo "$as_me:$LINENO: result: yes" >&5
4888echo "${ECHO_T}yes" >&6
10f2d63a 4889 else
e6cc62c6
VS
4890 echo "$as_me:$LINENO: result: no" >&5
4891echo "${ECHO_T}no" >&6
10f2d63a 4892 fi
e6cc62c6 4893
10f2d63a 4894
5005acfe 4895 enablestring=
e46d2a18
VS
4896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
4897echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a 4898 no_cache=0
e46d2a18
VS
4899 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4900if test "${enable_fs_inet+set}" = set; then
4901 enableval="$enable_fs_inet"
e6cc62c6 4902
10f2d63a 4903 if test "$enableval" = yes; then
e46d2a18 4904 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
10f2d63a 4905 else
e46d2a18 4906 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
10f2d63a 4907 fi
e6cc62c6 4908
10f2d63a 4909else
e6cc62c6 4910
e46d2a18 4911 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
10f2d63a
VZ
4912 if test "x$LINE" != x ; then
4913 eval "DEFAULT_$LINE"
4914 else
4915 no_cache=1
4916 fi
4917
e46d2a18 4918 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 4919
e6cc62c6 4920fi;
10f2d63a 4921
e46d2a18 4922 eval "$ac_cv_use_fs_inet"
10f2d63a 4923 if test "$no_cache" != 1; then
e46d2a18 4924 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4925 fi
4926
e46d2a18 4927 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
4928 echo "$as_me:$LINENO: result: yes" >&5
4929echo "${ECHO_T}yes" >&6
10f2d63a 4930 else
e6cc62c6
VS
4931 echo "$as_me:$LINENO: result: no" >&5
4932echo "${ECHO_T}no" >&6
10f2d63a 4933 fi
e6cc62c6 4934
10f2d63a 4935
5005acfe 4936 enablestring=
e46d2a18
VS
4937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
4938echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
a3a584a7 4939 no_cache=0
e46d2a18
VS
4940 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4941if test "${enable_fs_zip+set}" = set; then
4942 enableval="$enable_fs_zip"
e6cc62c6 4943
a3a584a7 4944 if test "$enableval" = yes; then
e46d2a18 4945 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
a3a584a7 4946 else
e46d2a18 4947 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
a3a584a7 4948 fi
e6cc62c6 4949
a3a584a7 4950else
e6cc62c6 4951
e46d2a18 4952 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
a3a584a7
VZ
4953 if test "x$LINE" != x ; then
4954 eval "DEFAULT_$LINE"
4955 else
4956 no_cache=1
4957 fi
4958
e46d2a18 4959 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a3a584a7 4960
e6cc62c6 4961fi;
a3a584a7 4962
e46d2a18 4963 eval "$ac_cv_use_fs_zip"
a3a584a7 4964 if test "$no_cache" != 1; then
e46d2a18 4965 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
a3a584a7
VZ
4966 fi
4967
e46d2a18 4968 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
4969 echo "$as_me:$LINENO: result: yes" >&5
4970echo "${ECHO_T}yes" >&6
a3a584a7 4971 else
e6cc62c6
VS
4972 echo "$as_me:$LINENO: result: no" >&5
4973echo "${ECHO_T}no" >&6
a3a584a7 4974 fi
e6cc62c6 4975
a3a584a7 4976
5005acfe 4977 enablestring=
e46d2a18
VS
4978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4979echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
10f2d63a 4980 no_cache=0
e46d2a18
VS
4981 # Check whether --enable-geometry or --disable-geometry was given.
4982if test "${enable_geometry+set}" = set; then
4983 enableval="$enable_geometry"
e6cc62c6 4984
10f2d63a 4985 if test "$enableval" = yes; then
e46d2a18 4986 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
10f2d63a 4987 else
e46d2a18 4988 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
10f2d63a 4989 fi
e6cc62c6 4990
10f2d63a 4991else
e6cc62c6 4992
e46d2a18 4993 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
10f2d63a
VZ
4994 if test "x$LINE" != x ; then
4995 eval "DEFAULT_$LINE"
4996 else
4997 no_cache=1
4998 fi
4999
e46d2a18 5000 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
10f2d63a 5001
e6cc62c6 5002fi;
10f2d63a 5003
e46d2a18 5004 eval "$ac_cv_use_geometry"
10f2d63a 5005 if test "$no_cache" != 1; then
e46d2a18 5006 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5007 fi
5008
e46d2a18 5009 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
5010 echo "$as_me:$LINENO: result: yes" >&5
5011echo "${ECHO_T}yes" >&6
10f2d63a 5012 else
e6cc62c6
VS
5013 echo "$as_me:$LINENO: result: no" >&5
5014echo "${ECHO_T}no" >&6
10f2d63a 5015 fi
e6cc62c6 5016
10f2d63a 5017
5005acfe 5018 enablestring=
e46d2a18
VS
5019 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
5020echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a 5021 no_cache=0
e46d2a18
VS
5022 # Check whether --enable-log or --disable-log was given.
5023if test "${enable_log+set}" = set; then
5024 enableval="$enable_log"
e6cc62c6 5025
10f2d63a 5026 if test "$enableval" = yes; then
e46d2a18 5027 ac_cv_use_log='wxUSE_LOG=yes'
10f2d63a 5028 else
e46d2a18 5029 ac_cv_use_log='wxUSE_LOG=no'
10f2d63a 5030 fi
e6cc62c6 5031
10f2d63a 5032else
e6cc62c6 5033
e46d2a18 5034 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
10f2d63a
VZ
5035 if test "x$LINE" != x ; then
5036 eval "DEFAULT_$LINE"
5037 else
5038 no_cache=1
5039 fi
5040
e46d2a18 5041 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 5042
e6cc62c6 5043fi;
10f2d63a 5044
e46d2a18 5045 eval "$ac_cv_use_log"
10f2d63a 5046 if test "$no_cache" != 1; then
e46d2a18 5047 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5048 fi
5049
e46d2a18 5050 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
5051 echo "$as_me:$LINENO: result: yes" >&5
5052echo "${ECHO_T}yes" >&6
10f2d63a 5053 else
e6cc62c6
VS
5054 echo "$as_me:$LINENO: result: no" >&5
5055echo "${ECHO_T}no" >&6
10f2d63a 5056 fi
e6cc62c6 5057
10f2d63a 5058
5005acfe 5059 enablestring=
e46d2a18
VS
5060 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5061echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a 5062 no_cache=0
e46d2a18
VS
5063 # Check whether --enable-longlong or --disable-longlong was given.
5064if test "${enable_longlong+set}" = set; then
5065 enableval="$enable_longlong"
e6cc62c6 5066
1e6feb95 5067 if test "$enableval" = yes; then
e46d2a18 5068 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
1e6feb95 5069 else
e46d2a18 5070 ac_cv_use_longlong='wxUSE_LONGLONG=no'
1e6feb95 5071 fi
e6cc62c6 5072
1e6feb95 5073else
e6cc62c6 5074
e46d2a18 5075 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
1e6feb95
VZ
5076 if test "x$LINE" != x ; then
5077 eval "DEFAULT_$LINE"
5078 else
5079 no_cache=1
5080 fi
5081
e46d2a18 5082 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
1e6feb95 5083
e6cc62c6 5084fi;
1e6feb95 5085
e46d2a18 5086 eval "$ac_cv_use_longlong"
1e6feb95 5087 if test "$no_cache" != 1; then
e46d2a18 5088 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5089 fi
5090
e46d2a18
VS
5091 if test "$wxUSE_LONGLONG" = yes; then
5092 echo "$as_me:$LINENO: result: yes" >&5
5093echo "${ECHO_T}yes" >&6
5094 else
5095 echo "$as_me:$LINENO: result: no" >&5
5096echo "${ECHO_T}no" >&6
5097 fi
5098
5099
5100 enablestring=
5101 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5102echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5103 no_cache=0
5104 # Check whether --enable-mimetype or --disable-mimetype was given.
5105if test "${enable_mimetype+set}" = set; then
5106 enableval="$enable_mimetype"
5107
5108 if test "$enableval" = yes; then
5109 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5110 else
5111 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5112 fi
5113
5114else
5115
5116 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5117 if test "x$LINE" != x ; then
5118 eval "DEFAULT_$LINE"
5119 else
5120 no_cache=1
5121 fi
5122
5123 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5124
5125fi;
5126
5127 eval "$ac_cv_use_mimetype"
5128 if test "$no_cache" != 1; then
5129 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5130 fi
5131
5132 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5133 echo "$as_me:$LINENO: result: yes" >&5
5134echo "${ECHO_T}yes" >&6
1e6feb95 5135 else
e6cc62c6
VS
5136 echo "$as_me:$LINENO: result: no" >&5
5137echo "${ECHO_T}no" >&6
1e6feb95 5138 fi
e6cc62c6 5139
1e6feb95 5140
5005acfe 5141 enablestring=
e6cc62c6
VS
5142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5143echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
5144 no_cache=0
5145 # Check whether --enable-mslu or --disable-mslu was given.
5146if test "${enable_mslu+set}" = set; then
5147 enableval="$enable_mslu"
e6cc62c6 5148
a72a4bfa
VS
5149 if test "$enableval" = yes; then
5150 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5151 else
5152 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5153 fi
e6cc62c6 5154
a72a4bfa 5155else
e6cc62c6 5156
a72a4bfa
VS
5157 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5158 if test "x$LINE" != x ; then
5159 eval "DEFAULT_$LINE"
5160 else
5161 no_cache=1
5162 fi
5163
5164 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 5165
e6cc62c6 5166fi;
a72a4bfa
VS
5167
5168 eval "$ac_cv_use_mslu"
5169 if test "$no_cache" != 1; then
5170 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5171 fi
5172
5173 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
5174 echo "$as_me:$LINENO: result: yes" >&5
5175echo "${ECHO_T}yes" >&6
a72a4bfa 5176 else
e6cc62c6
VS
5177 echo "$as_me:$LINENO: result: no" >&5
5178echo "${ECHO_T}no" >&6
a72a4bfa 5179 fi
e6cc62c6 5180
a72a4bfa 5181
5005acfe 5182 enablestring=
e46d2a18
VS
5183 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5184echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
1e6feb95 5185 no_cache=0
e46d2a18
VS
5186 # Check whether --enable-snglinst or --disable-snglinst was given.
5187if test "${enable_snglinst+set}" = set; then
5188 enableval="$enable_snglinst"
e6cc62c6 5189
1e6feb95 5190 if test "$enableval" = yes; then
e46d2a18 5191 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
10f2d63a 5192 else
e46d2a18 5193 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
10f2d63a 5194 fi
e6cc62c6 5195
10f2d63a 5196else
e6cc62c6 5197
e46d2a18 5198 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
10f2d63a
VZ
5199 if test "x$LINE" != x ; then
5200 eval "DEFAULT_$LINE"
5201 else
5202 no_cache=1
5203 fi
5204
e46d2a18 5205 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
10f2d63a 5206
e6cc62c6 5207fi;
10f2d63a 5208
e46d2a18 5209 eval "$ac_cv_use_snglinst"
10f2d63a 5210 if test "$no_cache" != 1; then
e46d2a18 5211 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5212 fi
5213
e46d2a18
VS
5214 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5215 echo "$as_me:$LINENO: result: yes" >&5
5216echo "${ECHO_T}yes" >&6
5217 else
5218 echo "$as_me:$LINENO: result: no" >&5
5219echo "${ECHO_T}no" >&6
5220 fi
5221
5222
5223 enablestring=
5224 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5225echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5226 no_cache=0
5227 # Check whether --enable-streams or --disable-streams was given.
5228if test "${enable_streams+set}" = set; then
5229 enableval="$enable_streams"
5230
5231 if test "$enableval" = yes; then
5232 ac_cv_use_streams='wxUSE_STREAMS=yes'
5233 else
5234 ac_cv_use_streams='wxUSE_STREAMS=no'
5235 fi
5236
5237else
5238
5239 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5240 if test "x$LINE" != x ; then
5241 eval "DEFAULT_$LINE"
5242 else
5243 no_cache=1
5244 fi
5245
5246 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5247
5248fi;
5249
5250 eval "$ac_cv_use_streams"
5251 if test "$no_cache" != 1; then
5252 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5253 fi
5254
5255 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
5256 echo "$as_me:$LINENO: result: yes" >&5
5257echo "${ECHO_T}yes" >&6
10f2d63a 5258 else
e6cc62c6
VS
5259 echo "$as_me:$LINENO: result: no" >&5
5260echo "${ECHO_T}no" >&6
10f2d63a 5261 fi
e6cc62c6 5262
10f2d63a 5263
5005acfe 5264 enablestring=
e6cc62c6
VS
5265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5266echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5267 no_cache=0
5268 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5269if test "${enable_std_iostreams+set}" = set; then
5270 enableval="$enable_std_iostreams"
e6cc62c6 5271
10f2d63a
VZ
5272 if test "$enableval" = yes; then
5273 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5274 else
5275 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5276 fi
e6cc62c6 5277
10f2d63a 5278else
e6cc62c6 5279
10f2d63a
VZ
5280 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5281 if test "x$LINE" != x ; then
5282 eval "DEFAULT_$LINE"
5283 else
5284 no_cache=1
5285 fi
5286
5287 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5288
e6cc62c6 5289fi;
10f2d63a
VZ
5290
5291 eval "$ac_cv_use_std_iostreams"
5292 if test "$no_cache" != 1; then
5293 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5294 fi
5295
5296 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5297 echo "$as_me:$LINENO: result: yes" >&5
5298echo "${ECHO_T}yes" >&6
10f2d63a 5299 else
e6cc62c6
VS
5300 echo "$as_me:$LINENO: result: no" >&5
5301echo "${ECHO_T}no" >&6
10f2d63a 5302 fi
e6cc62c6 5303
10f2d63a 5304
5005acfe 5305 enablestring=
e46d2a18
VS
5306 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5307echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
24528b0c 5308 no_cache=0
e46d2a18
VS
5309 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5310if test "${enable_stopwatch+set}" = set; then
5311 enableval="$enable_stopwatch"
e6cc62c6 5312
24528b0c 5313 if test "$enableval" = yes; then
e46d2a18 5314 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
24528b0c 5315 else
e46d2a18 5316 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
24528b0c 5317 fi
e6cc62c6 5318
24528b0c 5319else
e6cc62c6 5320
e46d2a18 5321 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
24528b0c
VS
5322 if test "x$LINE" != x ; then
5323 eval "DEFAULT_$LINE"
5324 else
5325 no_cache=1
5326 fi
5327
e46d2a18 5328 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
24528b0c 5329
e6cc62c6 5330fi;
24528b0c 5331
e46d2a18 5332 eval "$ac_cv_use_stopwatch"
24528b0c 5333 if test "$no_cache" != 1; then
e46d2a18 5334 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
24528b0c
VS
5335 fi
5336
e46d2a18 5337 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
5338 echo "$as_me:$LINENO: result: yes" >&5
5339echo "${ECHO_T}yes" >&6
24528b0c 5340 else
e6cc62c6
VS
5341 echo "$as_me:$LINENO: result: no" >&5
5342echo "${ECHO_T}no" >&6
24528b0c 5343 fi
e6cc62c6 5344
24528b0c 5345
5005acfe 5346 enablestring=
e46d2a18
VS
5347 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5348echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
10f2d63a 5349 no_cache=0
e46d2a18
VS
5350 # Check whether --enable-system_options or --disable-system_options was given.
5351if test "${enable_system_options+set}" = set; then
5352 enableval="$enable_system_options"
e6cc62c6 5353
10f2d63a 5354 if test "$enableval" = yes; then
e46d2a18 5355 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
10f2d63a 5356 else
e46d2a18 5357 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
10f2d63a 5358 fi
e6cc62c6 5359
10f2d63a 5360else
e6cc62c6 5361
e46d2a18 5362 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
5363 if test "x$LINE" != x ; then
5364 eval "DEFAULT_$LINE"
5365 else
5366 no_cache=1
5367 fi
5368
e46d2a18 5369 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
10f2d63a 5370
e6cc62c6 5371fi;
10f2d63a 5372
e46d2a18 5373 eval "$ac_cv_use_system_options"
10f2d63a 5374 if test "$no_cache" != 1; then
e46d2a18 5375 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5376 fi
5377
e46d2a18 5378 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5379 echo "$as_me:$LINENO: result: yes" >&5
5380echo "${ECHO_T}yes" >&6
10f2d63a 5381 else
e6cc62c6
VS
5382 echo "$as_me:$LINENO: result: no" >&5
5383echo "${ECHO_T}no" >&6
10f2d63a 5384 fi
e6cc62c6 5385
10f2d63a 5386
5005acfe 5387 enablestring=
e46d2a18
VS
5388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5389echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
10f2d63a 5390 no_cache=0
e46d2a18
VS
5391 # Check whether --enable-textbuf or --disable-textbuf was given.
5392if test "${enable_textbuf+set}" = set; then
5393 enableval="$enable_textbuf"
e6cc62c6 5394
10f2d63a 5395 if test "$enableval" = yes; then
e46d2a18 5396 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
10f2d63a 5397 else
e46d2a18 5398 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
10f2d63a 5399 fi
e6cc62c6 5400
10f2d63a 5401else
e6cc62c6 5402
e46d2a18 5403 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
10f2d63a
VZ
5404 if test "x$LINE" != x ; then
5405 eval "DEFAULT_$LINE"
5406 else
5407 no_cache=1
5408 fi
5409
e46d2a18 5410 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
10f2d63a 5411
e6cc62c6 5412fi;
10f2d63a 5413
e46d2a18 5414 eval "$ac_cv_use_textbuf"
10f2d63a 5415 if test "$no_cache" != 1; then
e46d2a18 5416 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5417 fi
5418
e46d2a18 5419 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
5420 echo "$as_me:$LINENO: result: yes" >&5
5421echo "${ECHO_T}yes" >&6
10f2d63a 5422 else
e6cc62c6
VS
5423 echo "$as_me:$LINENO: result: no" >&5
5424echo "${ECHO_T}no" >&6
10f2d63a 5425 fi
e6cc62c6 5426
10f2d63a 5427
5005acfe 5428 enablestring=
e46d2a18
VS
5429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5430echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 5431 no_cache=0
e46d2a18
VS
5432 # Check whether --enable-textfile or --disable-textfile was given.
5433if test "${enable_textfile+set}" = set; then
5434 enableval="$enable_textfile"
e6cc62c6 5435
10f2d63a 5436 if test "$enableval" = yes; then
e46d2a18 5437 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 5438 else
e46d2a18 5439 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 5440 fi
e6cc62c6 5441
10f2d63a 5442else
e6cc62c6 5443
e46d2a18 5444 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
5445 if test "x$LINE" != x ; then
5446 eval "DEFAULT_$LINE"
5447 else
5448 no_cache=1
5449 fi
5450
e46d2a18 5451 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 5452
e6cc62c6 5453fi;
10f2d63a 5454
e46d2a18 5455 eval "$ac_cv_use_textfile"
10f2d63a 5456 if test "$no_cache" != 1; then
e46d2a18 5457 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5458 fi
5459
e46d2a18 5460 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
5461 echo "$as_me:$LINENO: result: yes" >&5
5462echo "${ECHO_T}yes" >&6
10f2d63a 5463 else
e6cc62c6
VS
5464 echo "$as_me:$LINENO: result: no" >&5
5465echo "${ECHO_T}no" >&6
10f2d63a 5466 fi
e6cc62c6 5467
8284b0c5 5468
5005acfe 5469 enablestring=
e46d2a18
VS
5470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5471echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
eb4efbdc 5472 no_cache=0
e46d2a18
VS
5473 # Check whether --enable-timer or --disable-timer was given.
5474if test "${enable_timer+set}" = set; then
5475 enableval="$enable_timer"
e6cc62c6 5476
eb4efbdc 5477 if test "$enableval" = yes; then
e46d2a18 5478 ac_cv_use_timer='wxUSE_TIMER=yes'
eb4efbdc 5479 else
e46d2a18 5480 ac_cv_use_timer='wxUSE_TIMER=no'
eb4efbdc 5481 fi
e6cc62c6 5482
eb4efbdc 5483else
e6cc62c6 5484
e46d2a18 5485 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
eb4efbdc
VZ
5486 if test "x$LINE" != x ; then
5487 eval "DEFAULT_$LINE"
5488 else
5489 no_cache=1
5490 fi
5491
e46d2a18 5492 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
eb4efbdc 5493
e6cc62c6 5494fi;
eb4efbdc 5495
e46d2a18 5496 eval "$ac_cv_use_timer"
eb4efbdc 5497 if test "$no_cache" != 1; then
e46d2a18 5498 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
eb4efbdc
VZ
5499 fi
5500
e46d2a18 5501 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
5502 echo "$as_me:$LINENO: result: yes" >&5
5503echo "${ECHO_T}yes" >&6
eb4efbdc 5504 else
e6cc62c6
VS
5505 echo "$as_me:$LINENO: result: no" >&5
5506echo "${ECHO_T}no" >&6
eb4efbdc 5507 fi
e6cc62c6 5508
eb4efbdc 5509
5005acfe 5510 enablestring=
e46d2a18
VS
5511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5512echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
4f3c5f06 5513 no_cache=0
e46d2a18
VS
5514 # Check whether --enable-unicode or --disable-unicode was given.
5515if test "${enable_unicode+set}" = set; then
5516 enableval="$enable_unicode"
e6cc62c6 5517
4f3c5f06 5518 if test "$enableval" = yes; then
e46d2a18 5519 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4f3c5f06 5520 else
e46d2a18 5521 ac_cv_use_unicode='wxUSE_UNICODE=no'
4f3c5f06 5522 fi
e6cc62c6 5523
4f3c5f06 5524else
e6cc62c6 5525
e46d2a18 5526 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4f3c5f06
VZ
5527 if test "x$LINE" != x ; then
5528 eval "DEFAULT_$LINE"
5529 else
5530 no_cache=1
5531 fi
5532
e46d2a18 5533 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4f3c5f06 5534
e6cc62c6 5535fi;
4f3c5f06 5536
e46d2a18 5537 eval "$ac_cv_use_unicode"
4f3c5f06 5538 if test "$no_cache" != 1; then
e46d2a18 5539 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4f3c5f06
VZ
5540 fi
5541
e46d2a18 5542 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5543 echo "$as_me:$LINENO: result: yes" >&5
5544echo "${ECHO_T}yes" >&6
4f3c5f06 5545 else
e6cc62c6
VS
5546 echo "$as_me:$LINENO: result: no" >&5
5547echo "${ECHO_T}no" >&6
4f3c5f06 5548 fi
e6cc62c6 5549
52127426 5550
e46d2a18 5551 enablestring=
002ed9af
VS
5552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
5553echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6
e46d2a18 5554 no_cache=0
002ed9af
VS
5555 # Check whether --enable-sound or --disable-sound was given.
5556if test "${enable_sound+set}" = set; then
5557 enableval="$enable_sound"
e46d2a18
VS
5558
5559 if test "$enableval" = yes; then
002ed9af 5560 ac_cv_use_sound='wxUSE_SOUND=yes'
e46d2a18 5561 else
002ed9af 5562 ac_cv_use_sound='wxUSE_SOUND=no'
e46d2a18
VS
5563 fi
5564
5565else
5566
002ed9af 5567 LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}`
e46d2a18
VS
5568 if test "x$LINE" != x ; then
5569 eval "DEFAULT_$LINE"
5570 else
5571 no_cache=1
5572 fi
5573
002ed9af 5574 ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND
e46d2a18
VS
5575
5576fi;
5577
002ed9af 5578 eval "$ac_cv_use_sound"
e46d2a18 5579 if test "$no_cache" != 1; then
002ed9af 5580 echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp
e46d2a18
VS
5581 fi
5582
002ed9af 5583 if test "$wxUSE_SOUND" = yes; then
e46d2a18
VS
5584 echo "$as_me:$LINENO: result: yes" >&5
5585echo "${ECHO_T}yes" >&6
5586 else
5587 echo "$as_me:$LINENO: result: no" >&5
5588echo "${ECHO_T}no" >&6
5589 fi
5590
8284b0c5 5591
5005acfe 5592 enablestring=
e46d2a18
VS
5593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5594echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95 5595 no_cache=0
e46d2a18
VS
5596 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5597if test "${enable_wxprintfv+set}" = set; then
5598 enableval="$enable_wxprintfv"
e6cc62c6 5599
1e6feb95 5600 if test "$enableval" = yes; then
e46d2a18 5601 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
1e6feb95 5602 else
e46d2a18 5603 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
1e6feb95 5604 fi
e6cc62c6 5605
1e6feb95 5606else
e6cc62c6 5607
e46d2a18 5608 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
1e6feb95
VZ
5609 if test "x$LINE" != x ; then
5610 eval "DEFAULT_$LINE"
5611 else
5612 no_cache=1
5613 fi
5614
e46d2a18 5615 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
1e6feb95 5616
e6cc62c6 5617fi;
1e6feb95 5618
e46d2a18 5619 eval "$ac_cv_use_wxprintfv"
1e6feb95 5620 if test "$no_cache" != 1; then
e46d2a18 5621 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5622 fi
5623
e46d2a18 5624 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5625 echo "$as_me:$LINENO: result: yes" >&5
5626echo "${ECHO_T}yes" >&6
1e6feb95 5627 else
e6cc62c6
VS
5628 echo "$as_me:$LINENO: result: no" >&5
5629echo "${ECHO_T}no" >&6
1e6feb95 5630 fi
e6cc62c6 5631
1e6feb95 5632
5005acfe 5633 enablestring=
e46d2a18
VS
5634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5635echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
3e44f09d 5636 no_cache=0
e46d2a18
VS
5637 # Check whether --enable-zipstream or --disable-zipstream was given.
5638if test "${enable_zipstream+set}" = set; then
5639 enableval="$enable_zipstream"
e6cc62c6 5640
3e44f09d 5641 if test "$enableval" = yes; then
e46d2a18 5642 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3e44f09d 5643 else
e46d2a18 5644 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3e44f09d 5645 fi
e6cc62c6 5646
3e44f09d 5647else
e6cc62c6 5648
e46d2a18 5649 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3e44f09d
VZ
5650 if test "x$LINE" != x ; then
5651 eval "DEFAULT_$LINE"
5652 else
5653 no_cache=1
5654 fi
5655
e46d2a18 5656 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3e44f09d 5657
e6cc62c6 5658fi;
3e44f09d 5659
e46d2a18 5660 eval "$ac_cv_use_zipstream"
3e44f09d 5661 if test "$no_cache" != 1; then
e46d2a18 5662 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3e44f09d
VZ
5663 fi
5664
e46d2a18 5665 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5666 echo "$as_me:$LINENO: result: yes" >&5
5667echo "${ECHO_T}yes" >&6
3e44f09d 5668 else
e6cc62c6
VS
5669 echo "$as_me:$LINENO: result: no" >&5
5670echo "${ECHO_T}no" >&6
3e44f09d 5671 fi
e6cc62c6 5672
8284b0c5 5673
7015ef3a
VZ
5674 enablestring=
5675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5676echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5677 no_cache=0
5678 # Check whether --enable-gzstream or --disable-gzstream was given.
5679if test "${enable_gzstream+set}" = set; then
5680 enableval="$enable_gzstream"
5681
5682 if test "$enableval" = yes; then
5683 ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5684 else
5685 ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5686 fi
5687
5688else
5689
5690 LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}`
5691 if test "x$LINE" != x ; then
5692 eval "DEFAULT_$LINE"
5693 else
5694 no_cache=1
5695 fi
5696
5697 ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5698
5699fi;
5700
5701 eval "$ac_cv_use_gzstream"
5702 if test "$no_cache" != 1; then
5703 echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5704 fi
5705
5706 if test "$wxUSE_GZSTREAM" = yes; then
5707 echo "$as_me:$LINENO: result: yes" >&5
5708echo "${ECHO_T}yes" >&6
5709 else
5710 echo "$as_me:$LINENO: result: no" >&5
5711echo "${ECHO_T}no" >&6
5712 fi
5713
5714
52127426 5715
5005acfe 5716 enablestring=
e6cc62c6
VS
5717 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5718echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5719 no_cache=0
5720 # Check whether --enable-url or --disable-url was given.
5721if test "${enable_url+set}" = set; then
5722 enableval="$enable_url"
e6cc62c6 5723
4cdb0ab0
VS
5724 if test "$enableval" = yes; then
5725 ac_cv_use_url='wxUSE_URL=yes'
5726 else
5727 ac_cv_use_url='wxUSE_URL=no'
5728 fi
e6cc62c6 5729
4cdb0ab0 5730else
e6cc62c6 5731
4cdb0ab0
VS
5732 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5733 if test "x$LINE" != x ; then
5734 eval "DEFAULT_$LINE"
5735 else
5736 no_cache=1
5737 fi
5738
5739 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5740
e6cc62c6 5741fi;
4cdb0ab0
VS
5742
5743 eval "$ac_cv_use_url"
5744 if test "$no_cache" != 1; then
5745 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5746 fi
5747
5748 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5749 echo "$as_me:$LINENO: result: yes" >&5
5750echo "${ECHO_T}yes" >&6
4cdb0ab0 5751 else
e6cc62c6
VS
5752 echo "$as_me:$LINENO: result: no" >&5
5753echo "${ECHO_T}no" >&6
4cdb0ab0 5754 fi
e6cc62c6 5755
4cdb0ab0 5756
5005acfe 5757 enablestring=
e6cc62c6
VS
5758 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5759echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5760 no_cache=0
5761 # Check whether --enable-protocol or --disable-protocol was given.
5762if test "${enable_protocol+set}" = set; then
5763 enableval="$enable_protocol"
e6cc62c6 5764
4cdb0ab0
VS
5765 if test "$enableval" = yes; then
5766 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5767 else
5768 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5769 fi
e6cc62c6 5770
4cdb0ab0 5771else
e6cc62c6 5772
4cdb0ab0
VS
5773 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5774 if test "x$LINE" != x ; then
5775 eval "DEFAULT_$LINE"
5776 else
5777 no_cache=1
5778 fi
5779
5780 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5781
e6cc62c6 5782fi;
4cdb0ab0
VS
5783
5784 eval "$ac_cv_use_protocol"
5785 if test "$no_cache" != 1; then
5786 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5787 fi
5788
5789 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5790 echo "$as_me:$LINENO: result: yes" >&5
5791echo "${ECHO_T}yes" >&6
4cdb0ab0 5792 else
e6cc62c6
VS
5793 echo "$as_me:$LINENO: result: no" >&5
5794echo "${ECHO_T}no" >&6
4cdb0ab0 5795 fi
e6cc62c6 5796
4cdb0ab0 5797
5005acfe 5798 enablestring=
e6cc62c6
VS
5799 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5800echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5801 no_cache=0
5802 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5803if test "${enable_protocol_http+set}" = set; then
5804 enableval="$enable_protocol_http"
e6cc62c6 5805
4cdb0ab0
VS
5806 if test "$enableval" = yes; then
5807 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5808 else
5809 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5810 fi
e6cc62c6 5811
4cdb0ab0 5812else
e6cc62c6 5813
4cdb0ab0
VS
5814 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5815 if test "x$LINE" != x ; then
5816 eval "DEFAULT_$LINE"
5817 else
5818 no_cache=1
5819 fi
5820
5821 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5822
e6cc62c6 5823fi;
4cdb0ab0
VS
5824
5825 eval "$ac_cv_use_protocol_http"
5826 if test "$no_cache" != 1; then
5827 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5828 fi
5829
5830 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5831 echo "$as_me:$LINENO: result: yes" >&5
5832echo "${ECHO_T}yes" >&6
4cdb0ab0 5833 else
e6cc62c6
VS
5834 echo "$as_me:$LINENO: result: no" >&5
5835echo "${ECHO_T}no" >&6
4cdb0ab0 5836 fi
e6cc62c6 5837
4cdb0ab0 5838
5005acfe 5839 enablestring=
e6cc62c6
VS
5840 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5841echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5842 no_cache=0
5843 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5844if test "${enable_protocol_ftp+set}" = set; then
5845 enableval="$enable_protocol_ftp"
e6cc62c6 5846
4cdb0ab0
VS
5847 if test "$enableval" = yes; then
5848 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5849 else
5850 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5851 fi
e6cc62c6 5852
4cdb0ab0 5853else
e6cc62c6 5854
4cdb0ab0
VS
5855 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5856 if test "x$LINE" != x ; then
5857 eval "DEFAULT_$LINE"
5858 else
5859 no_cache=1
5860 fi
5861
5862 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5863
e6cc62c6 5864fi;
4cdb0ab0
VS
5865
5866 eval "$ac_cv_use_protocol_ftp"
5867 if test "$no_cache" != 1; then
5868 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5869 fi
5870
5871 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5872 echo "$as_me:$LINENO: result: yes" >&5
5873echo "${ECHO_T}yes" >&6
4cdb0ab0 5874 else
e6cc62c6
VS
5875 echo "$as_me:$LINENO: result: no" >&5
5876echo "${ECHO_T}no" >&6
4cdb0ab0 5877 fi
e6cc62c6 5878
4cdb0ab0 5879
5005acfe 5880 enablestring=
e6cc62c6
VS
5881 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5882echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5883 no_cache=0
5884 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5885if test "${enable_protocol_file+set}" = set; then
5886 enableval="$enable_protocol_file"
e6cc62c6 5887
4cdb0ab0
VS
5888 if test "$enableval" = yes; then
5889 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5890 else
5891 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5892 fi
e6cc62c6 5893
4cdb0ab0 5894else
e6cc62c6 5895
4cdb0ab0
VS
5896 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5897 if test "x$LINE" != x ; then
5898 eval "DEFAULT_$LINE"
5899 else
5900 no_cache=1
5901 fi
5902
5903 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5904
e6cc62c6 5905fi;
4cdb0ab0
VS
5906
5907 eval "$ac_cv_use_protocol_file"
5908 if test "$no_cache" != 1; then
5909 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5910 fi
5911
5912 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5913 echo "$as_me:$LINENO: result: yes" >&5
5914echo "${ECHO_T}yes" >&6
4cdb0ab0 5915 else
e6cc62c6
VS
5916 echo "$as_me:$LINENO: result: no" >&5
5917echo "${ECHO_T}no" >&6
4cdb0ab0 5918 fi
e6cc62c6 5919
52127426 5920
8284b0c5
MB
5921
5922
5923
5005acfe 5924 enablestring=
e6cc62c6
VS
5925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5926echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5927 no_cache=0
5928 # Check whether --enable-threads or --disable-threads was given.
5929if test "${enable_threads+set}" = set; then
5930 enableval="$enable_threads"
e6cc62c6 5931
10f2d63a
VZ
5932 if test "$enableval" = yes; then
5933 ac_cv_use_threads='wxUSE_THREADS=yes'
5934 else
5935 ac_cv_use_threads='wxUSE_THREADS=no'
5936 fi
e6cc62c6 5937
10f2d63a 5938else
e6cc62c6 5939
10f2d63a
VZ
5940 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5941 if test "x$LINE" != x ; then
5942 eval "DEFAULT_$LINE"
5943 else
5944 no_cache=1
5945 fi
5946
5947 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5948
e6cc62c6 5949fi;
10f2d63a
VZ
5950
5951 eval "$ac_cv_use_threads"
5952 if test "$no_cache" != 1; then
5953 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5954 fi
5955
5956 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5957 echo "$as_me:$LINENO: result: yes" >&5
5958echo "${ECHO_T}yes" >&6
10f2d63a 5959 else
e6cc62c6
VS
5960 echo "$as_me:$LINENO: result: no" >&5
5961echo "${ECHO_T}no" >&6
10f2d63a 5962 fi
e6cc62c6 5963
10f2d63a 5964
b12915c1
VZ
5965if test "$wxUSE_GUI" = "yes"; then
5966
8284b0c5
MB
5967
5968
5005acfe 5969 enablestring=
e6cc62c6
VS
5970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5971echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5972 no_cache=0
5973 # Check whether --enable-docview or --disable-docview was given.
5974if test "${enable_docview+set}" = set; then
5975 enableval="$enable_docview"
e6cc62c6 5976
10f2d63a
VZ
5977 if test "$enableval" = yes; then
5978 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5979 else
5980 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5981 fi
e6cc62c6 5982
10f2d63a 5983else
e6cc62c6 5984
10f2d63a
VZ
5985 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5986 if test "x$LINE" != x ; then
5987 eval "DEFAULT_$LINE"
5988 else
5989 no_cache=1
5990 fi
5991
5992 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5993
e6cc62c6 5994fi;
10f2d63a
VZ
5995
5996 eval "$ac_cv_use_docview"
5997 if test "$no_cache" != 1; then
5998 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5999 fi
6000
6001 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
6002 echo "$as_me:$LINENO: result: yes" >&5
6003echo "${ECHO_T}yes" >&6
10f2d63a 6004 else
e6cc62c6
VS
6005 echo "$as_me:$LINENO: result: no" >&5
6006echo "${ECHO_T}no" >&6
10f2d63a 6007 fi
e6cc62c6 6008
10f2d63a 6009
5005acfe 6010 enablestring=
e6cc62c6
VS
6011 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
6012echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
6013 no_cache=0
6014 # Check whether --enable-help or --disable-help was given.
6015if test "${enable_help+set}" = set; then
6016 enableval="$enable_help"
e6cc62c6 6017
10f2d63a
VZ
6018 if test "$enableval" = yes; then
6019 ac_cv_use_help='wxUSE_HELP=yes'
6020 else
6021 ac_cv_use_help='wxUSE_HELP=no'
6022 fi
e6cc62c6 6023
10f2d63a 6024else
e6cc62c6 6025
10f2d63a
VZ
6026 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
6027 if test "x$LINE" != x ; then
6028 eval "DEFAULT_$LINE"
6029 else
6030 no_cache=1
6031 fi
6032
6033 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 6034
e6cc62c6 6035fi;
10f2d63a
VZ
6036
6037 eval "$ac_cv_use_help"
6038 if test "$no_cache" != 1; then
6039 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
6040 fi
6041
6042 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
6043 echo "$as_me:$LINENO: result: yes" >&5
6044echo "${ECHO_T}yes" >&6
10f2d63a 6045 else
e6cc62c6
VS
6046 echo "$as_me:$LINENO: result: no" >&5
6047echo "${ECHO_T}no" >&6
10f2d63a 6048 fi
e6cc62c6 6049
10f2d63a 6050
5005acfe 6051 enablestring=
e6cc62c6
VS
6052 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
6053echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
6054 no_cache=0
6055 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
6056if test "${enable_mshtmlhelp+set}" = set; then
6057 enableval="$enable_mshtmlhelp"
e6cc62c6 6058
29fd3c0c
VS
6059 if test "$enableval" = yes; then
6060 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6061 else
6062 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6063 fi
e6cc62c6 6064
29fd3c0c 6065else
e6cc62c6 6066
29fd3c0c
VS
6067 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6068 if test "x$LINE" != x ; then
6069 eval "DEFAULT_$LINE"
6070 else
6071 no_cache=1
6072 fi
6073
6074 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 6075
e6cc62c6 6076fi;
29fd3c0c
VS
6077
6078 eval "$ac_cv_use_mshtmlhelp"
6079 if test "$no_cache" != 1; then
6080 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6081 fi
6082
6083 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
6084 echo "$as_me:$LINENO: result: yes" >&5
6085echo "${ECHO_T}yes" >&6
29fd3c0c 6086 else
e6cc62c6
VS
6087 echo "$as_me:$LINENO: result: no" >&5
6088echo "${ECHO_T}no" >&6
29fd3c0c 6089 fi
e6cc62c6 6090
29fd3c0c 6091
5005acfe 6092 enablestring=
e6cc62c6
VS
6093 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6094echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
6095 no_cache=0
6096 # Check whether --enable-html or --disable-html was given.
6097if test "${enable_html+set}" = set; then
6098 enableval="$enable_html"
e6cc62c6 6099
3379ed37
VZ
6100 if test "$enableval" = yes; then
6101 ac_cv_use_html='wxUSE_HTML=yes'
6102 else
6103 ac_cv_use_html='wxUSE_HTML=no'
6104 fi
e6cc62c6 6105
3379ed37 6106else
e6cc62c6 6107
3379ed37
VZ
6108 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6109 if test "x$LINE" != x ; then
6110 eval "DEFAULT_$LINE"
6111 else
6112 no_cache=1
6113 fi
6114
6115 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 6116
e6cc62c6 6117fi;
3379ed37
VZ
6118
6119 eval "$ac_cv_use_html"
6120 if test "$no_cache" != 1; then
6121 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6122 fi
6123
6124 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
6125 echo "$as_me:$LINENO: result: yes" >&5
6126echo "${ECHO_T}yes" >&6
3379ed37 6127 else
e6cc62c6
VS
6128 echo "$as_me:$LINENO: result: no" >&5
6129echo "${ECHO_T}no" >&6
3379ed37 6130 fi
e6cc62c6 6131
3379ed37 6132
5005acfe 6133 enablestring=
e6cc62c6
VS
6134 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6135echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
6136 no_cache=0
6137 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6138if test "${enable_htmlhelp+set}" = set; then
6139 enableval="$enable_htmlhelp"
e6cc62c6 6140
3379ed37
VZ
6141 if test "$enableval" = yes; then
6142 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6143 else
6144 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6145 fi
e6cc62c6 6146
3379ed37 6147else
e6cc62c6 6148
3379ed37
VZ
6149 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6150 if test "x$LINE" != x ; then
6151 eval "DEFAULT_$LINE"
6152 else
6153 no_cache=1
6154 fi
6155
6156 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 6157
e6cc62c6 6158fi;
3379ed37
VZ
6159
6160 eval "$ac_cv_use_htmlhelp"
6161 if test "$no_cache" != 1; then
6162 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6163 fi
6164
6165 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
6166 echo "$as_me:$LINENO: result: yes" >&5
6167echo "${ECHO_T}yes" >&6
3379ed37 6168 else
e6cc62c6
VS
6169 echo "$as_me:$LINENO: result: no" >&5
6170echo "${ECHO_T}no" >&6
3379ed37 6171 fi
e6cc62c6 6172
3379ed37 6173
5005acfe 6174 enablestring=
e6cc62c6
VS
6175 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6176echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
6177 no_cache=0
6178 # Check whether --enable-constraints or --disable-constraints was given.
6179if test "${enable_constraints+set}" = set; then
6180 enableval="$enable_constraints"
e6cc62c6 6181
10f2d63a
VZ
6182 if test "$enableval" = yes; then
6183 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6184 else
6185 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6186 fi
e6cc62c6 6187
10f2d63a 6188else
e6cc62c6 6189
10f2d63a
VZ
6190 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6191 if test "x$LINE" != x ; then
6192 eval "DEFAULT_$LINE"
6193 else
6194 no_cache=1
6195 fi
6196
6197 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 6198
e6cc62c6 6199fi;
10f2d63a
VZ
6200
6201 eval "$ac_cv_use_constraints"
6202 if test "$no_cache" != 1; then
6203 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6204 fi
6205
6206 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
6207 echo "$as_me:$LINENO: result: yes" >&5
6208echo "${ECHO_T}yes" >&6
10f2d63a 6209 else
e6cc62c6
VS
6210 echo "$as_me:$LINENO: result: no" >&5
6211echo "${ECHO_T}no" >&6
10f2d63a 6212 fi
e6cc62c6 6213
10f2d63a 6214
5005acfe 6215 enablestring=
e6cc62c6
VS
6216 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6217echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
6218 no_cache=0
6219 # Check whether --enable-printarch or --disable-printarch was given.
6220if test "${enable_printarch+set}" = set; then
6221 enableval="$enable_printarch"
e6cc62c6 6222
10f2d63a
VZ
6223 if test "$enableval" = yes; then
6224 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6225 else
6226 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6227 fi
e6cc62c6 6228
10f2d63a 6229else
e6cc62c6 6230
10f2d63a
VZ
6231 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6232 if test "x$LINE" != x ; then
6233 eval "DEFAULT_$LINE"
6234 else
6235 no_cache=1
6236 fi
6237
6238 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 6239
e6cc62c6 6240fi;
10f2d63a
VZ
6241
6242 eval "$ac_cv_use_printarch"
6243 if test "$no_cache" != 1; then
6244 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6245 fi
6246
6247 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
6248 echo "$as_me:$LINENO: result: yes" >&5
6249echo "${ECHO_T}yes" >&6
10f2d63a 6250 else
e6cc62c6
VS
6251 echo "$as_me:$LINENO: result: no" >&5
6252echo "${ECHO_T}no" >&6
10f2d63a 6253 fi
e6cc62c6 6254
10f2d63a 6255
5005acfe 6256 enablestring=
e6cc62c6
VS
6257 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6258echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6259 no_cache=0
6260 # Check whether --enable-mdi or --disable-mdi was given.
6261if test "${enable_mdi+set}" = set; then
6262 enableval="$enable_mdi"
e6cc62c6 6263
10f2d63a
VZ
6264 if test "$enableval" = yes; then
6265 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6266 else
6267 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6268 fi
e6cc62c6 6269
10f2d63a 6270else
e6cc62c6 6271
10f2d63a
VZ
6272 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6273 if test "x$LINE" != x ; then
6274 eval "DEFAULT_$LINE"
6275 else
6276 no_cache=1
6277 fi
6278
6279 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6280
e6cc62c6 6281fi;
10f2d63a
VZ
6282
6283 eval "$ac_cv_use_mdi"
6284 if test "$no_cache" != 1; then
6285 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6286 fi
6287
6288 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6289 echo "$as_me:$LINENO: result: yes" >&5
6290echo "${ECHO_T}yes" >&6
10f2d63a 6291 else
e6cc62c6
VS
6292 echo "$as_me:$LINENO: result: no" >&5
6293echo "${ECHO_T}no" >&6
10f2d63a 6294 fi
e6cc62c6 6295
698dcdb6 6296
5005acfe 6297 enablestring=
e6cc62c6
VS
6298 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6299echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6300 no_cache=0
6301 # Check whether --enable-loggui or --disable-loggui was given.
6302if test "${enable_loggui+set}" = set; then
6303 enableval="$enable_loggui"
e6cc62c6 6304
1e6feb95
VZ
6305 if test "$enableval" = yes; then
6306 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6307 else
6308 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6309 fi
e6cc62c6 6310
1e6feb95 6311else
e6cc62c6 6312
1e6feb95
VZ
6313 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6314 if test "x$LINE" != x ; then
6315 eval "DEFAULT_$LINE"
6316 else
6317 no_cache=1
6318 fi
6319
6320 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6321
e6cc62c6 6322fi;
1e6feb95
VZ
6323
6324 eval "$ac_cv_use_loggui"
6325 if test "$no_cache" != 1; then
6326 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6327 fi
6328
6329 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6330 echo "$as_me:$LINENO: result: yes" >&5
6331echo "${ECHO_T}yes" >&6
1e6feb95 6332 else
e6cc62c6
VS
6333 echo "$as_me:$LINENO: result: no" >&5
6334echo "${ECHO_T}no" >&6
1e6feb95 6335 fi
e6cc62c6 6336
1e6feb95 6337
5005acfe 6338 enablestring=
e6cc62c6
VS
6339 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6340echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6341 no_cache=0
6342 # Check whether --enable-logwin or --disable-logwin was given.
6343if test "${enable_logwin+set}" = set; then
6344 enableval="$enable_logwin"
e6cc62c6 6345
1e6feb95
VZ
6346 if test "$enableval" = yes; then
6347 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6348 else
6349 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6350 fi
e6cc62c6 6351
1e6feb95 6352else
e6cc62c6 6353
1e6feb95
VZ
6354 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6355 if test "x$LINE" != x ; then
6356 eval "DEFAULT_$LINE"
6357 else
6358 no_cache=1
6359 fi
6360
6361 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6362
e6cc62c6 6363fi;
1e6feb95
VZ
6364
6365 eval "$ac_cv_use_logwin"
6366 if test "$no_cache" != 1; then
6367 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6368 fi
6369
6370 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6371 echo "$as_me:$LINENO: result: yes" >&5
6372echo "${ECHO_T}yes" >&6
1e6feb95 6373 else
e6cc62c6
VS
6374 echo "$as_me:$LINENO: result: no" >&5
6375echo "${ECHO_T}no" >&6
1e6feb95 6376 fi
e6cc62c6 6377
1e6feb95 6378
5005acfe 6379 enablestring=
e6cc62c6
VS
6380 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6381echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6382 no_cache=0
6383 # Check whether --enable-logdialog or --disable-logdialog was given.
6384if test "${enable_logdialog+set}" = set; then
6385 enableval="$enable_logdialog"
e6cc62c6 6386
69d27ff7
MB
6387 if test "$enableval" = yes; then
6388 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6389 else
6390 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6391 fi
e6cc62c6 6392
69d27ff7 6393else
e6cc62c6 6394
69d27ff7
MB
6395 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6396 if test "x$LINE" != x ; then
6397 eval "DEFAULT_$LINE"
6398 else
6399 no_cache=1
6400 fi
6401
6402 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6403
e6cc62c6 6404fi;
69d27ff7
MB
6405
6406 eval "$ac_cv_use_logdialog"
6407 if test "$no_cache" != 1; then
6408 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6409 fi
6410
6411 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6412 echo "$as_me:$LINENO: result: yes" >&5
6413echo "${ECHO_T}yes" >&6
69d27ff7 6414 else
e6cc62c6
VS
6415 echo "$as_me:$LINENO: result: no" >&5
6416echo "${ECHO_T}no" >&6
69d27ff7 6417 fi
e6cc62c6 6418
8284b0c5 6419
52127426 6420
5005acfe 6421 enablestring=
e6cc62c6
VS
6422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6423echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6424 no_cache=0
6425 # Check whether --enable-postscript or --disable-postscript was given.
6426if test "${enable_postscript+set}" = set; then
6427 enableval="$enable_postscript"
e6cc62c6 6428
10f2d63a
VZ
6429 if test "$enableval" = yes; then
6430 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6431 else
6432 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6433 fi
e6cc62c6 6434
10f2d63a 6435else
e6cc62c6 6436
10f2d63a
VZ
6437 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6438 if test "x$LINE" != x ; then
6439 eval "DEFAULT_$LINE"
6440 else
6441 no_cache=1
6442 fi
6443
6444 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6445
e6cc62c6 6446fi;
10f2d63a
VZ
6447
6448 eval "$ac_cv_use_postscript"
6449 if test "$no_cache" != 1; then
6450 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6451 fi
6452
6453 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6454 echo "$as_me:$LINENO: result: yes" >&5
6455echo "${ECHO_T}yes" >&6
10f2d63a 6456 else
e6cc62c6
VS
6457 echo "$as_me:$LINENO: result: no" >&5
6458echo "${ECHO_T}no" >&6
10f2d63a 6459 fi
e6cc62c6 6460
8284b0c5
MB
6461
6462
52127426 6463
8284b0c5 6464
5005acfe 6465 enablestring=
e6cc62c6
VS
6466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6467echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6468 no_cache=0
3c907f20
VZ
6469 # Check whether --enable-prologio or --disable-prologio was given.
6470if test "${enable_prologio+set}" = set; then
6471 enableval="$enable_prologio"
e6cc62c6 6472
10f2d63a 6473 if test "$enableval" = yes; then
3c907f20 6474 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6475 else
3c907f20 6476 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6477 fi
e6cc62c6 6478
10f2d63a 6479else
e6cc62c6 6480
3c907f20 6481 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6482 if test "x$LINE" != x ; then
6483 eval "DEFAULT_$LINE"
6484 else
6485 no_cache=1
6486 fi
6487
3c907f20 6488 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6489
e6cc62c6 6490fi;
10f2d63a 6491
3c907f20 6492 eval "$ac_cv_use_prologio"
10f2d63a 6493 if test "$no_cache" != 1; then
3c907f20 6494 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6495 fi
6496
3c907f20 6497 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6498 echo "$as_me:$LINENO: result: yes" >&5
6499echo "${ECHO_T}yes" >&6
10f2d63a 6500 else
e6cc62c6
VS
6501 echo "$as_me:$LINENO: result: no" >&5
6502echo "${ECHO_T}no" >&6
10f2d63a 6503 fi
e6cc62c6 6504
8284b0c5 6505
5005acfe 6506 enablestring=
e6cc62c6
VS
6507 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6508echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6509 no_cache=0
3c907f20
VZ
6510 # Check whether --enable-resources or --disable-resources was given.
6511if test "${enable_resources+set}" = set; then
6512 enableval="$enable_resources"
e6cc62c6 6513
10f2d63a 6514 if test "$enableval" = yes; then
3c907f20 6515 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6516 else
3c907f20 6517 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6518 fi
e6cc62c6 6519
10f2d63a 6520else
e6cc62c6 6521
3c907f20 6522 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6523 if test "x$LINE" != x ; then
6524 eval "DEFAULT_$LINE"
6525 else
6526 no_cache=1
6527 fi
6528
3c907f20 6529 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6530
e6cc62c6 6531fi;
10f2d63a 6532
3c907f20 6533 eval "$ac_cv_use_resources"
10f2d63a 6534 if test "$no_cache" != 1; then
3c907f20 6535 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6536 fi
6537
3c907f20 6538 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6539 echo "$as_me:$LINENO: result: yes" >&5
6540echo "${ECHO_T}yes" >&6
10f2d63a 6541 else
e6cc62c6
VS
6542 echo "$as_me:$LINENO: result: no" >&5
6543echo "${ECHO_T}no" >&6
10f2d63a 6544 fi
e6cc62c6 6545
8284b0c5
MB
6546
6547
52127426 6548
5005acfe 6549 enablestring=
e6cc62c6
VS
6550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6551echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6552 no_cache=0
6553 # Check whether --enable-clipboard or --disable-clipboard was given.
6554if test "${enable_clipboard+set}" = set; then
6555 enableval="$enable_clipboard"
e6cc62c6 6556
10f2d63a
VZ
6557 if test "$enableval" = yes; then
6558 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6559 else
6560 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6561 fi
e6cc62c6 6562
10f2d63a 6563else
e6cc62c6 6564
10f2d63a
VZ
6565 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6566 if test "x$LINE" != x ; then
6567 eval "DEFAULT_$LINE"
6568 else
6569 no_cache=1
6570 fi
6571
6572 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6573
e6cc62c6 6574fi;
10f2d63a
VZ
6575
6576 eval "$ac_cv_use_clipboard"
6577 if test "$no_cache" != 1; then
6578 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6579 fi
6580
6581 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6582 echo "$as_me:$LINENO: result: yes" >&5
6583echo "${ECHO_T}yes" >&6
10f2d63a 6584 else
e6cc62c6
VS
6585 echo "$as_me:$LINENO: result: no" >&5
6586echo "${ECHO_T}no" >&6
10f2d63a 6587 fi
e6cc62c6 6588
10f2d63a 6589
5005acfe 6590 enablestring=
e6cc62c6
VS
6591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6592echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6593 no_cache=0
6594 # Check whether --enable-dnd or --disable-dnd was given.
6595if test "${enable_dnd+set}" = set; then
6596 enableval="$enable_dnd"
e6cc62c6 6597
10f2d63a
VZ
6598 if test "$enableval" = yes; then
6599 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6600 else
6601 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6602 fi
e6cc62c6 6603
10f2d63a 6604else
e6cc62c6 6605
10f2d63a
VZ
6606 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6607 if test "x$LINE" != x ; then
6608 eval "DEFAULT_$LINE"
6609 else
6610 no_cache=1
6611 fi
6612
6613 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6614
e6cc62c6 6615fi;
10f2d63a
VZ
6616
6617 eval "$ac_cv_use_dnd"
6618 if test "$no_cache" != 1; then
6619 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6620 fi
6621
6622 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6623 echo "$as_me:$LINENO: result: yes" >&5
6624echo "${ECHO_T}yes" >&6
10f2d63a 6625 else
e6cc62c6
VS
6626 echo "$as_me:$LINENO: result: no" >&5
6627echo "${ECHO_T}no" >&6
10f2d63a 6628 fi
e6cc62c6 6629
10f2d63a 6630
5005acfe 6631 enablestring=
e6cc62c6
VS
6632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6633echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6634 no_cache=0
6635 # Check whether --enable-metafile or --disable-metafile was given.
6636if test "${enable_metafile+set}" = set; then
6637 enableval="$enable_metafile"
e6cc62c6 6638
b64f0a5f
RL
6639 if test "$enableval" = yes; then
6640 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6641 else
6642 ac_cv_use_metafile='wxUSE_METAFILE=no'
6643 fi
e6cc62c6 6644
b64f0a5f 6645else
e6cc62c6 6646
b64f0a5f
RL
6647 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6648 if test "x$LINE" != x ; then
6649 eval "DEFAULT_$LINE"
6650 else
6651 no_cache=1
6652 fi
6653
6654 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6655
e6cc62c6 6656fi;
b64f0a5f
RL
6657
6658 eval "$ac_cv_use_metafile"
6659 if test "$no_cache" != 1; then
6660 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6661 fi
6662
6663 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6664 echo "$as_me:$LINENO: result: yes" >&5
6665echo "${ECHO_T}yes" >&6
b64f0a5f 6666 else
e6cc62c6
VS
6667 echo "$as_me:$LINENO: result: no" >&5
6668echo "${ECHO_T}no" >&6
b64f0a5f 6669 fi
e6cc62c6 6670
52127426 6671
8284b0c5 6672
52127426 6673
8284b0c5 6674
5005acfe 6675 enablestring=
e6cc62c6
VS
6676 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6677echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6678 no_cache=0
6679 # Check whether --enable-controls or --disable-controls was given.
6680if test "${enable_controls+set}" = set; then
6681 enableval="$enable_controls"
e6cc62c6 6682
10f2d63a
VZ
6683 if test "$enableval" = yes; then
6684 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6685 else
6686 ac_cv_use_controls='wxUSE_CONTROLS=no'
6687 fi
e6cc62c6 6688
10f2d63a 6689else
e6cc62c6 6690
10f2d63a
VZ
6691 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6692 if test "x$LINE" != x ; then
6693 eval "DEFAULT_$LINE"
6694 else
6695 no_cache=1
6696 fi
6697
6698 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6699
e6cc62c6 6700fi;
10f2d63a
VZ
6701
6702 eval "$ac_cv_use_controls"
6703 if test "$no_cache" != 1; then
6704 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6705 fi
6706
6707 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6708 echo "$as_me:$LINENO: result: yes" >&5
6709echo "${ECHO_T}yes" >&6
10f2d63a 6710 else
e6cc62c6
VS
6711 echo "$as_me:$LINENO: result: no" >&5
6712echo "${ECHO_T}no" >&6
10f2d63a 6713 fi
e6cc62c6 6714
10f2d63a
VZ
6715
6716if test "$wxUSE_CONTROLS" = "yes"; then
6717 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6718 DEFAULT_wxUSE_BMPBUTTON=yes
6719 DEFAULT_wxUSE_BUTTON=yes
6720 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6721 DEFAULT_wxUSE_CARET=yes
6722 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6723 DEFAULT_wxUSE_CHECKBOX=yes
6724 DEFAULT_wxUSE_CHECKLISTBOX=yes
6725 DEFAULT_wxUSE_CHOICE=yes
6726 DEFAULT_wxUSE_GAUGE=yes
6727 DEFAULT_wxUSE_GRID=yes
10f2d63a 6728 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 6729 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
6730 DEFAULT_wxUSE_LISTBOX=yes
6731 DEFAULT_wxUSE_LISTCTRL=yes
6732 DEFAULT_wxUSE_NOTEBOOK=yes
6733 DEFAULT_wxUSE_RADIOBOX=yes
6734 DEFAULT_wxUSE_RADIOBTN=yes
6735 DEFAULT_wxUSE_SASH=yes
6736 DEFAULT_wxUSE_SCROLLBAR=yes
6737 DEFAULT_wxUSE_SLIDER=yes
6738 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6739 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6740 DEFAULT_wxUSE_SPLITTER=yes
6741 DEFAULT_wxUSE_STATBMP=yes
6742 DEFAULT_wxUSE_STATBOX=yes
6743 DEFAULT_wxUSE_STATLINE=yes
6744 DEFAULT_wxUSE_STATUSBAR=yes
6745 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6746 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6747 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6748 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6749 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6750 DEFAULT_wxUSE_TOOLTIPS=yes
6751 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6752 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6753 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6754elif test "$wxUSE_CONTROLS" = "no"; then
6755 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6756 DEFAULT_wxUSE_BMPBUTTON=no
6757 DEFAULT_wxUSE_BUTTON=no
6758 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6759 DEFAULT_wxUSE_CARET=no
6760 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6761 DEFAULT_wxUSE_CHECKBOX=no
6762 DEFAULT_wxUSE_CHECKLISTBOX=no
6763 DEFAULT_wxUSE_CHOICE=no
6764 DEFAULT_wxUSE_GAUGE=no
6765 DEFAULT_wxUSE_GRID=no
10f2d63a 6766 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 6767 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
6768 DEFAULT_wxUSE_LISTBOX=no
6769 DEFAULT_wxUSE_LISTCTRL=no
6770 DEFAULT_wxUSE_NOTEBOOK=no
6771 DEFAULT_wxUSE_RADIOBOX=no
6772 DEFAULT_wxUSE_RADIOBTN=no
6773 DEFAULT_wxUSE_SASH=no
6774 DEFAULT_wxUSE_SCROLLBAR=no
6775 DEFAULT_wxUSE_SLIDER=no
6776 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6777 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6778 DEFAULT_wxUSE_SPLITTER=no
6779 DEFAULT_wxUSE_STATBMP=no
6780 DEFAULT_wxUSE_STATBOX=no
6781 DEFAULT_wxUSE_STATLINE=no
6782 DEFAULT_wxUSE_STATUSBAR=no
6783 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6784 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6785 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6786 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6787 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6788 DEFAULT_wxUSE_TOOLTIPS=no
6789 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6790 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6791 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6792fi
6793
ac0c4cc3
DE
6794## FIXME: This is a blatant hack
6795if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6796 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3 6797 wxUSE_DRAG_AND_DROP=no
8b389fab
DE
6798 # Generic notebook requires tab dialog
6799 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6800 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6801 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6802 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6803fi
6804
8284b0c5 6805
5005acfe 6806 enablestring=
e6cc62c6
VS
6807 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6808echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6809 no_cache=0
6810 # Check whether --enable-accel or --disable-accel was given.
6811if test "${enable_accel+set}" = set; then
6812 enableval="$enable_accel"
e6cc62c6 6813
10f2d63a
VZ
6814 if test "$enableval" = yes; then
6815 ac_cv_use_accel='wxUSE_ACCEL=yes'
6816 else
6817 ac_cv_use_accel='wxUSE_ACCEL=no'
6818 fi
e6cc62c6 6819
10f2d63a 6820else
e6cc62c6 6821
10f2d63a
VZ
6822 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6823 if test "x$LINE" != x ; then
6824 eval "DEFAULT_$LINE"
6825 else
6826 no_cache=1
6827 fi
6828
6829 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6830
e6cc62c6 6831fi;
10f2d63a
VZ
6832
6833 eval "$ac_cv_use_accel"
6834 if test "$no_cache" != 1; then
6835 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6836 fi
6837
6838 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6839 echo "$as_me:$LINENO: result: yes" >&5
6840echo "${ECHO_T}yes" >&6
10f2d63a 6841 else
e6cc62c6
VS
6842 echo "$as_me:$LINENO: result: no" >&5
6843echo "${ECHO_T}no" >&6
10f2d63a 6844 fi
e6cc62c6 6845
10f2d63a 6846
5005acfe 6847 enablestring=
e6cc62c6
VS
6848 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6849echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6850 no_cache=0
1e6feb95
VZ
6851 # Check whether --enable-button or --disable-button was given.
6852if test "${enable_button+set}" = set; then
6853 enableval="$enable_button"
e6cc62c6 6854
10f2d63a 6855 if test "$enableval" = yes; then
1e6feb95 6856 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6857 else
1e6feb95 6858 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6859 fi
e6cc62c6 6860
10f2d63a 6861else
e6cc62c6 6862
1e6feb95 6863 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6864 if test "x$LINE" != x ; then
6865 eval "DEFAULT_$LINE"
6866 else
6867 no_cache=1
6868 fi
6869
1e6feb95 6870 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6871
e6cc62c6 6872fi;
10f2d63a 6873
1e6feb95 6874 eval "$ac_cv_use_button"
10f2d63a 6875 if test "$no_cache" != 1; then
1e6feb95 6876 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6877 fi
6878
1e6feb95 6879 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6880 echo "$as_me:$LINENO: result: yes" >&5
6881echo "${ECHO_T}yes" >&6
10f2d63a 6882 else
e6cc62c6
VS
6883 echo "$as_me:$LINENO: result: no" >&5
6884echo "${ECHO_T}no" >&6
10f2d63a 6885 fi
e6cc62c6 6886
10f2d63a 6887
5005acfe 6888 enablestring=
e6cc62c6
VS
6889 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6890echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6891 no_cache=0
6892 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6893if test "${enable_bmpbutton+set}" = set; then
6894 enableval="$enable_bmpbutton"
e6cc62c6 6895
10f2d63a
VZ
6896 if test "$enableval" = yes; then
6897 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6898 else
6899 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6900 fi
e6cc62c6 6901
10f2d63a 6902else
e6cc62c6 6903
10f2d63a
VZ
6904 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6905 if test "x$LINE" != x ; then
6906 eval "DEFAULT_$LINE"
6907 else
6908 no_cache=1
6909 fi
6910
6911 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6912
e6cc62c6 6913fi;
10f2d63a
VZ
6914
6915 eval "$ac_cv_use_bmpbutton"
6916 if test "$no_cache" != 1; then
6917 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6918 fi
6919
6920 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6921 echo "$as_me:$LINENO: result: yes" >&5
6922echo "${ECHO_T}yes" >&6
10f2d63a 6923 else
e6cc62c6
VS
6924 echo "$as_me:$LINENO: result: no" >&5
6925echo "${ECHO_T}no" >&6
10f2d63a 6926 fi
e6cc62c6 6927
10f2d63a 6928
5005acfe 6929 enablestring=
e6cc62c6
VS
6930 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6931echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6932 no_cache=0
6933 # Check whether --enable-calendar or --disable-calendar was given.
6934if test "${enable_calendar+set}" = set; then
6935 enableval="$enable_calendar"
e6cc62c6 6936
1e6feb95
VZ
6937 if test "$enableval" = yes; then
6938 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6939 else
6940 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6941 fi
e6cc62c6 6942
1e6feb95 6943else
e6cc62c6 6944
1e6feb95
VZ
6945 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6946 if test "x$LINE" != x ; then
6947 eval "DEFAULT_$LINE"
6948 else
6949 no_cache=1
6950 fi
6951
6952 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6953
e6cc62c6 6954fi;
1e6feb95
VZ
6955
6956 eval "$ac_cv_use_calendar"
6957 if test "$no_cache" != 1; then
6958 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6959 fi
6960
6961 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6962 echo "$as_me:$LINENO: result: yes" >&5
6963echo "${ECHO_T}yes" >&6
1e6feb95 6964 else
e6cc62c6
VS
6965 echo "$as_me:$LINENO: result: no" >&5
6966echo "${ECHO_T}no" >&6
1e6feb95 6967 fi
e6cc62c6 6968
1e6feb95 6969
5005acfe 6970 enablestring=
e6cc62c6
VS
6971 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6972echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6973 no_cache=0
6974 # Check whether --enable-caret or --disable-caret was given.
6975if test "${enable_caret+set}" = set; then
6976 enableval="$enable_caret"
e6cc62c6 6977
1e6feb95
VZ
6978 if test "$enableval" = yes; then
6979 ac_cv_use_caret='wxUSE_CARET=yes'
6980 else
6981 ac_cv_use_caret='wxUSE_CARET=no'
6982 fi
e6cc62c6 6983
1e6feb95 6984else
e6cc62c6 6985
1e6feb95
VZ
6986 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6987 if test "x$LINE" != x ; then
6988 eval "DEFAULT_$LINE"
6989 else
6990 no_cache=1
6991 fi
6992
6993 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6994
e6cc62c6 6995fi;
1e6feb95
VZ
6996
6997 eval "$ac_cv_use_caret"
6998 if test "$no_cache" != 1; then
6999 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
7000 fi
7001
7002 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
7003 echo "$as_me:$LINENO: result: yes" >&5
7004echo "${ECHO_T}yes" >&6
1e6feb95 7005 else
e6cc62c6
VS
7006 echo "$as_me:$LINENO: result: no" >&5
7007echo "${ECHO_T}no" >&6
1e6feb95 7008 fi
e6cc62c6 7009
1e6feb95 7010
5005acfe 7011 enablestring=
e6cc62c6
VS
7012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
7013echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
7014 no_cache=0
7015 # Check whether --enable-checkbox or --disable-checkbox was given.
7016if test "${enable_checkbox+set}" = set; then
7017 enableval="$enable_checkbox"
e6cc62c6 7018
10f2d63a
VZ
7019 if test "$enableval" = yes; then
7020 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
7021 else
7022 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
7023 fi
e6cc62c6 7024
10f2d63a 7025else
e6cc62c6 7026
10f2d63a
VZ
7027 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
7028 if test "x$LINE" != x ; then
7029 eval "DEFAULT_$LINE"
7030 else
7031 no_cache=1
7032 fi
7033
7034 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 7035
e6cc62c6 7036fi;
10f2d63a
VZ
7037
7038 eval "$ac_cv_use_checkbox"
7039 if test "$no_cache" != 1; then
7040 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
7041 fi
7042
7043 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
7044 echo "$as_me:$LINENO: result: yes" >&5
7045echo "${ECHO_T}yes" >&6
10f2d63a 7046 else
e6cc62c6
VS
7047 echo "$as_me:$LINENO: result: no" >&5
7048echo "${ECHO_T}no" >&6
10f2d63a 7049 fi
e6cc62c6 7050
10f2d63a 7051
5005acfe 7052 enablestring=
e6cc62c6
VS
7053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
7054echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
7055 no_cache=0
7056 # Check whether --enable-checklst or --disable-checklst was given.
7057if test "${enable_checklst+set}" = set; then
7058 enableval="$enable_checklst"
e6cc62c6 7059
10f2d63a
VZ
7060 if test "$enableval" = yes; then
7061 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7062 else
7063 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7064 fi
e6cc62c6 7065
10f2d63a 7066else
e6cc62c6 7067
10f2d63a
VZ
7068 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7069 if test "x$LINE" != x ; then
7070 eval "DEFAULT_$LINE"
7071 else
7072 no_cache=1
7073 fi
7074
7075 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 7076
e6cc62c6 7077fi;
10f2d63a
VZ
7078
7079 eval "$ac_cv_use_checklst"
7080 if test "$no_cache" != 1; then
7081 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7082 fi
7083
7084 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
7085 echo "$as_me:$LINENO: result: yes" >&5
7086echo "${ECHO_T}yes" >&6
10f2d63a 7087 else
e6cc62c6
VS
7088 echo "$as_me:$LINENO: result: no" >&5
7089echo "${ECHO_T}no" >&6
10f2d63a 7090 fi
e6cc62c6 7091
10f2d63a 7092
5005acfe 7093 enablestring=
e6cc62c6
VS
7094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7095echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
7096 no_cache=0
7097 # Check whether --enable-choice or --disable-choice was given.
7098if test "${enable_choice+set}" = set; then
7099 enableval="$enable_choice"
e6cc62c6 7100
10f2d63a
VZ
7101 if test "$enableval" = yes; then
7102 ac_cv_use_choice='wxUSE_CHOICE=yes'
7103 else
7104 ac_cv_use_choice='wxUSE_CHOICE=no'
7105 fi
e6cc62c6 7106
10f2d63a 7107else
e6cc62c6 7108
10f2d63a
VZ
7109 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7110 if test "x$LINE" != x ; then
7111 eval "DEFAULT_$LINE"
7112 else
7113 no_cache=1
7114 fi
7115
7116 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 7117
e6cc62c6 7118fi;
10f2d63a
VZ
7119
7120 eval "$ac_cv_use_choice"
7121 if test "$no_cache" != 1; then
7122 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7123 fi
7124
7125 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
7126 echo "$as_me:$LINENO: result: yes" >&5
7127echo "${ECHO_T}yes" >&6
10f2d63a 7128 else
e6cc62c6
VS
7129 echo "$as_me:$LINENO: result: no" >&5
7130echo "${ECHO_T}no" >&6
10f2d63a 7131 fi
e6cc62c6 7132
10f2d63a 7133
5005acfe 7134 enablestring=
e6cc62c6
VS
7135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7136echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
7137 no_cache=0
7138 # Check whether --enable-combobox or --disable-combobox was given.
7139if test "${enable_combobox+set}" = set; then
7140 enableval="$enable_combobox"
e6cc62c6 7141
10f2d63a
VZ
7142 if test "$enableval" = yes; then
7143 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7144 else
7145 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7146 fi
e6cc62c6 7147
10f2d63a 7148else
e6cc62c6 7149
10f2d63a
VZ
7150 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7151 if test "x$LINE" != x ; then
7152 eval "DEFAULT_$LINE"
7153 else
7154 no_cache=1
7155 fi
7156
7157 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 7158
e6cc62c6 7159fi;
10f2d63a
VZ
7160
7161 eval "$ac_cv_use_combobox"
7162 if test "$no_cache" != 1; then
7163 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7164 fi
7165
7166 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
7167 echo "$as_me:$LINENO: result: yes" >&5
7168echo "${ECHO_T}yes" >&6
10f2d63a 7169 else
e6cc62c6
VS
7170 echo "$as_me:$LINENO: result: no" >&5
7171echo "${ECHO_T}no" >&6
10f2d63a 7172 fi
e6cc62c6 7173
10f2d63a 7174
da494b40 7175 enablestring=
e6cc62c6
VS
7176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7177echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
7178 no_cache=0
7179 # Check whether --enable-display or --disable-display was given.
7180if test "${enable_display+set}" = set; then
7181 enableval="$enable_display"
e6cc62c6 7182
da494b40
MB
7183 if test "$enableval" = yes; then
7184 ac_cv_use_display='wxUSE_DISPLAY=yes'
7185 else
7186 ac_cv_use_display='wxUSE_DISPLAY=no'
7187 fi
e6cc62c6 7188
da494b40 7189else
e6cc62c6 7190
da494b40
MB
7191 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7192 if test "x$LINE" != x ; then
7193 eval "DEFAULT_$LINE"
7194 else
7195 no_cache=1
7196 fi
7197
7198 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 7199
e6cc62c6 7200fi;
da494b40
MB
7201
7202 eval "$ac_cv_use_display"
7203 if test "$no_cache" != 1; then
7204 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7205 fi
7206
7207 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
7208 echo "$as_me:$LINENO: result: yes" >&5
7209echo "${ECHO_T}yes" >&6
da494b40 7210 else
e6cc62c6
VS
7211 echo "$as_me:$LINENO: result: no" >&5
7212echo "${ECHO_T}no" >&6
da494b40 7213 fi
e6cc62c6 7214
da494b40 7215
5005acfe 7216 enablestring=
e6cc62c6
VS
7217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7218echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
7219 no_cache=0
7220 # Check whether --enable-gauge or --disable-gauge was given.
7221if test "${enable_gauge+set}" = set; then
7222 enableval="$enable_gauge"
e6cc62c6 7223
10f2d63a
VZ
7224 if test "$enableval" = yes; then
7225 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7226 else
7227 ac_cv_use_gauge='wxUSE_GAUGE=no'
7228 fi
e6cc62c6 7229
10f2d63a 7230else
e6cc62c6 7231
10f2d63a
VZ
7232 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7233 if test "x$LINE" != x ; then
7234 eval "DEFAULT_$LINE"
7235 else
7236 no_cache=1
7237 fi
7238
7239 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 7240
e6cc62c6 7241fi;
10f2d63a
VZ
7242
7243 eval "$ac_cv_use_gauge"
7244 if test "$no_cache" != 1; then
7245 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7246 fi
7247
7248 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7249 echo "$as_me:$LINENO: result: yes" >&5
7250echo "${ECHO_T}yes" >&6
10f2d63a 7251 else
e6cc62c6
VS
7252 echo "$as_me:$LINENO: result: no" >&5
7253echo "${ECHO_T}no" >&6
10f2d63a 7254 fi
e6cc62c6 7255
10f2d63a 7256
5005acfe 7257 enablestring=
e6cc62c6
VS
7258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7259echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7260 no_cache=0
7261 # Check whether --enable-grid or --disable-grid was given.
7262if test "${enable_grid+set}" = set; then
7263 enableval="$enable_grid"
e6cc62c6 7264
10f2d63a
VZ
7265 if test "$enableval" = yes; then
7266 ac_cv_use_grid='wxUSE_GRID=yes'
7267 else
7268 ac_cv_use_grid='wxUSE_GRID=no'
7269 fi
e6cc62c6 7270
10f2d63a 7271else
e6cc62c6 7272
10f2d63a
VZ
7273 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7274 if test "x$LINE" != x ; then
7275 eval "DEFAULT_$LINE"
7276 else
7277 no_cache=1
7278 fi
7279
7280 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7281
e6cc62c6 7282fi;
10f2d63a
VZ
7283
7284 eval "$ac_cv_use_grid"
7285 if test "$no_cache" != 1; then
7286 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7287 fi
7288
7289 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7290 echo "$as_me:$LINENO: result: yes" >&5
7291echo "${ECHO_T}yes" >&6
10f2d63a 7292 else
e6cc62c6
VS
7293 echo "$as_me:$LINENO: result: no" >&5
7294echo "${ECHO_T}no" >&6
10f2d63a 7295 fi
e6cc62c6 7296
10f2d63a 7297
5005acfe 7298 enablestring=
e6cc62c6
VS
7299 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7300echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7301 no_cache=0
7302 # Check whether --enable-imaglist or --disable-imaglist was given.
7303if test "${enable_imaglist+set}" = set; then
7304 enableval="$enable_imaglist"
e6cc62c6 7305
10f2d63a
VZ
7306 if test "$enableval" = yes; then
7307 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7308 else
7309 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7310 fi
e6cc62c6 7311
10f2d63a 7312else
e6cc62c6 7313
10f2d63a
VZ
7314 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7315 if test "x$LINE" != x ; then
7316 eval "DEFAULT_$LINE"
7317 else
7318 no_cache=1
7319 fi
7320
7321 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7322
e6cc62c6 7323fi;
10f2d63a
VZ
7324
7325 eval "$ac_cv_use_imaglist"
7326 if test "$no_cache" != 1; then
7327 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7328 fi
7329
7330 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7331 echo "$as_me:$LINENO: result: yes" >&5
7332echo "${ECHO_T}yes" >&6
10f2d63a 7333 else
e6cc62c6
VS
7334 echo "$as_me:$LINENO: result: no" >&5
7335echo "${ECHO_T}no" >&6
10f2d63a 7336 fi
e6cc62c6 7337
10f2d63a 7338
0e012a93
VZ
7339 enablestring=
7340 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7341echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7342 no_cache=0
7343 # Check whether --enable-listbook or --disable-listbook was given.
7344if test "${enable_listbook+set}" = set; then
7345 enableval="$enable_listbook"
7346
7347 if test "$enableval" = yes; then
7348 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7349 else
7350 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7351 fi
7352
7353else
7354
7355 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7356 if test "x$LINE" != x ; then
7357 eval "DEFAULT_$LINE"
7358 else
7359 no_cache=1
7360 fi
7361
7362 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7363
7364fi;
7365
7366 eval "$ac_cv_use_listbook"
7367 if test "$no_cache" != 1; then
7368 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7369 fi
7370
7371 if test "$wxUSE_LISTBOOK" = yes; then
7372 echo "$as_me:$LINENO: result: yes" >&5
7373echo "${ECHO_T}yes" >&6
7374 else
7375 echo "$as_me:$LINENO: result: no" >&5
7376echo "${ECHO_T}no" >&6
7377 fi
7378
7379
5005acfe 7380 enablestring=
e6cc62c6
VS
7381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7382echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7383 no_cache=0
7384 # Check whether --enable-listbox or --disable-listbox was given.
7385if test "${enable_listbox+set}" = set; then
7386 enableval="$enable_listbox"
e6cc62c6 7387
10f2d63a
VZ
7388 if test "$enableval" = yes; then
7389 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7390 else
7391 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7392 fi
e6cc62c6 7393
10f2d63a 7394else
e6cc62c6 7395
10f2d63a
VZ
7396 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7397 if test "x$LINE" != x ; then
7398 eval "DEFAULT_$LINE"
7399 else
7400 no_cache=1
7401 fi
7402
7403 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7404
e6cc62c6 7405fi;
10f2d63a
VZ
7406
7407 eval "$ac_cv_use_listbox"
7408 if test "$no_cache" != 1; then
7409 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7410 fi
7411
7412 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7413 echo "$as_me:$LINENO: result: yes" >&5
7414echo "${ECHO_T}yes" >&6
10f2d63a 7415 else
e6cc62c6
VS
7416 echo "$as_me:$LINENO: result: no" >&5
7417echo "${ECHO_T}no" >&6
10f2d63a 7418 fi
e6cc62c6 7419
10f2d63a 7420
5005acfe 7421 enablestring=
e6cc62c6
VS
7422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7423echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7424 no_cache=0
7425 # Check whether --enable-listctrl or --disable-listctrl was given.
7426if test "${enable_listctrl+set}" = set; then
7427 enableval="$enable_listctrl"
e6cc62c6 7428
10f2d63a
VZ
7429 if test "$enableval" = yes; then
7430 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7431 else
7432 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7433 fi
e6cc62c6 7434
10f2d63a 7435else
e6cc62c6 7436
10f2d63a
VZ
7437 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7438 if test "x$LINE" != x ; then
7439 eval "DEFAULT_$LINE"
7440 else
7441 no_cache=1
7442 fi
7443
7444 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7445
e6cc62c6 7446fi;
10f2d63a
VZ
7447
7448 eval "$ac_cv_use_listctrl"
7449 if test "$no_cache" != 1; then
7450 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7451 fi
7452
7453 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7454 echo "$as_me:$LINENO: result: yes" >&5
7455echo "${ECHO_T}yes" >&6
10f2d63a 7456 else
e6cc62c6
VS
7457 echo "$as_me:$LINENO: result: no" >&5
7458echo "${ECHO_T}no" >&6
10f2d63a 7459 fi
e6cc62c6 7460
10f2d63a 7461
5005acfe 7462 enablestring=
e6cc62c6
VS
7463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7464echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7465 no_cache=0
7466 # Check whether --enable-notebook or --disable-notebook was given.
7467if test "${enable_notebook+set}" = set; then
7468 enableval="$enable_notebook"
e6cc62c6 7469
10f2d63a
VZ
7470 if test "$enableval" = yes; then
7471 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7472 else
7473 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7474 fi
e6cc62c6 7475
10f2d63a 7476else
e6cc62c6 7477
10f2d63a
VZ
7478 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7479 if test "x$LINE" != x ; then
7480 eval "DEFAULT_$LINE"
7481 else
7482 no_cache=1
7483 fi
7484
7485 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7486
e6cc62c6 7487fi;
10f2d63a
VZ
7488
7489 eval "$ac_cv_use_notebook"
7490 if test "$no_cache" != 1; then
7491 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7492 fi
7493
7494 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7495 echo "$as_me:$LINENO: result: yes" >&5
7496echo "${ECHO_T}yes" >&6
10f2d63a 7497 else
e6cc62c6
VS
7498 echo "$as_me:$LINENO: result: no" >&5
7499echo "${ECHO_T}no" >&6
10f2d63a 7500 fi
e6cc62c6 7501
10f2d63a 7502
5005acfe 7503 enablestring=
e6cc62c6
VS
7504 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7505echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7506 no_cache=0
7507 # Check whether --enable-radiobox or --disable-radiobox was given.
7508if test "${enable_radiobox+set}" = set; then
7509 enableval="$enable_radiobox"
e6cc62c6 7510
10f2d63a
VZ
7511 if test "$enableval" = yes; then
7512 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7513 else
7514 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7515 fi
e6cc62c6 7516
10f2d63a 7517else
e6cc62c6 7518
10f2d63a
VZ
7519 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7520 if test "x$LINE" != x ; then
7521 eval "DEFAULT_$LINE"
7522 else
7523 no_cache=1
7524 fi
7525
7526 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7527
e6cc62c6 7528fi;
10f2d63a
VZ
7529
7530 eval "$ac_cv_use_radiobox"
7531 if test "$no_cache" != 1; then
7532 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7533 fi
7534
7535 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7536 echo "$as_me:$LINENO: result: yes" >&5
7537echo "${ECHO_T}yes" >&6
10f2d63a 7538 else
e6cc62c6
VS
7539 echo "$as_me:$LINENO: result: no" >&5
7540echo "${ECHO_T}no" >&6
10f2d63a 7541 fi
e6cc62c6 7542
10f2d63a 7543
5005acfe 7544 enablestring=
e6cc62c6
VS
7545 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7546echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7547 no_cache=0
7548 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7549if test "${enable_radiobtn+set}" = set; then
7550 enableval="$enable_radiobtn"
e6cc62c6 7551
10f2d63a
VZ
7552 if test "$enableval" = yes; then
7553 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7554 else
7555 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7556 fi
e6cc62c6 7557
10f2d63a 7558else
e6cc62c6 7559
10f2d63a
VZ
7560 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7561 if test "x$LINE" != x ; then
7562 eval "DEFAULT_$LINE"
7563 else
7564 no_cache=1
7565 fi
7566
7567 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7568
e6cc62c6 7569fi;
10f2d63a
VZ
7570
7571 eval "$ac_cv_use_radiobtn"
7572 if test "$no_cache" != 1; then
7573 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7574 fi
7575
7576 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7577 echo "$as_me:$LINENO: result: yes" >&5
7578echo "${ECHO_T}yes" >&6
10f2d63a 7579 else
e6cc62c6
VS
7580 echo "$as_me:$LINENO: result: no" >&5
7581echo "${ECHO_T}no" >&6
10f2d63a 7582 fi
e6cc62c6 7583
10f2d63a 7584
5005acfe 7585 enablestring=
e6cc62c6
VS
7586 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7587echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7588 no_cache=0
7589 # Check whether --enable-sash or --disable-sash was given.
7590if test "${enable_sash+set}" = set; then
7591 enableval="$enable_sash"
e6cc62c6 7592
10f2d63a
VZ
7593 if test "$enableval" = yes; then
7594 ac_cv_use_sash='wxUSE_SASH=yes'
7595 else
7596 ac_cv_use_sash='wxUSE_SASH=no'
7597 fi
e6cc62c6 7598
10f2d63a 7599else
e6cc62c6 7600
10f2d63a
VZ
7601 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7602 if test "x$LINE" != x ; then
7603 eval "DEFAULT_$LINE"
7604 else
7605 no_cache=1
7606 fi
7607
7608 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7609
e6cc62c6 7610fi;
10f2d63a
VZ
7611
7612 eval "$ac_cv_use_sash"
7613 if test "$no_cache" != 1; then
7614 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7615 fi
7616
7617 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7618 echo "$as_me:$LINENO: result: yes" >&5
7619echo "${ECHO_T}yes" >&6
10f2d63a 7620 else
e6cc62c6
VS
7621 echo "$as_me:$LINENO: result: no" >&5
7622echo "${ECHO_T}no" >&6
10f2d63a 7623 fi
e6cc62c6 7624
10f2d63a 7625
5005acfe 7626 enablestring=
e6cc62c6
VS
7627 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7628echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7629 no_cache=0
7630 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7631if test "${enable_scrollbar+set}" = set; then
7632 enableval="$enable_scrollbar"
e6cc62c6 7633
10f2d63a
VZ
7634 if test "$enableval" = yes; then
7635 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7636 else
7637 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7638 fi
e6cc62c6 7639
10f2d63a 7640else
e6cc62c6 7641
10f2d63a
VZ
7642 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7643 if test "x$LINE" != x ; then
7644 eval "DEFAULT_$LINE"
7645 else
7646 no_cache=1
7647 fi
7648
7649 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7650
e6cc62c6 7651fi;
10f2d63a
VZ
7652
7653 eval "$ac_cv_use_scrollbar"
7654 if test "$no_cache" != 1; then
7655 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7656 fi
7657
7658 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7659 echo "$as_me:$LINENO: result: yes" >&5
7660echo "${ECHO_T}yes" >&6
10f2d63a 7661 else
e6cc62c6
VS
7662 echo "$as_me:$LINENO: result: no" >&5
7663echo "${ECHO_T}no" >&6
10f2d63a 7664 fi
e6cc62c6 7665
10f2d63a 7666
5005acfe 7667 enablestring=
e6cc62c6
VS
7668 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7669echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7670 no_cache=0
7671 # Check whether --enable-slider or --disable-slider was given.
7672if test "${enable_slider+set}" = set; then
7673 enableval="$enable_slider"
e6cc62c6 7674
10f2d63a
VZ
7675 if test "$enableval" = yes; then
7676 ac_cv_use_slider='wxUSE_SLIDER=yes'
7677 else
7678 ac_cv_use_slider='wxUSE_SLIDER=no'
7679 fi
e6cc62c6 7680
10f2d63a 7681else
e6cc62c6 7682
10f2d63a
VZ
7683 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7684 if test "x$LINE" != x ; then
7685 eval "DEFAULT_$LINE"
7686 else
7687 no_cache=1
7688 fi
7689
7690 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7691
e6cc62c6 7692fi;
10f2d63a
VZ
7693
7694 eval "$ac_cv_use_slider"
7695 if test "$no_cache" != 1; then
7696 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7697 fi
7698
7699 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7700 echo "$as_me:$LINENO: result: yes" >&5
7701echo "${ECHO_T}yes" >&6
10f2d63a 7702 else
e6cc62c6
VS
7703 echo "$as_me:$LINENO: result: no" >&5
7704echo "${ECHO_T}no" >&6
10f2d63a 7705 fi
e6cc62c6 7706
10f2d63a 7707
5005acfe 7708 enablestring=
e6cc62c6
VS
7709 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7710echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7711 no_cache=0
7712 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7713if test "${enable_spinbtn+set}" = set; then
7714 enableval="$enable_spinbtn"
e6cc62c6 7715
10f2d63a
VZ
7716 if test "$enableval" = yes; then
7717 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7718 else
7719 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7720 fi
e6cc62c6 7721
10f2d63a 7722else
e6cc62c6 7723
10f2d63a
VZ
7724 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7725 if test "x$LINE" != x ; then
7726 eval "DEFAULT_$LINE"
7727 else
7728 no_cache=1
7729 fi
7730
7731 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7732
e6cc62c6 7733fi;
10f2d63a
VZ
7734
7735 eval "$ac_cv_use_spinbtn"
7736 if test "$no_cache" != 1; then
7737 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7738 fi
7739
7740 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7741 echo "$as_me:$LINENO: result: yes" >&5
7742echo "${ECHO_T}yes" >&6
10f2d63a 7743 else
e6cc62c6
VS
7744 echo "$as_me:$LINENO: result: no" >&5
7745echo "${ECHO_T}no" >&6
10f2d63a 7746 fi
e6cc62c6 7747
10f2d63a 7748
5005acfe 7749 enablestring=
e6cc62c6
VS
7750 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7751echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7752 no_cache=0
7753 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7754if test "${enable_spinctrl+set}" = set; then
7755 enableval="$enable_spinctrl"
e6cc62c6 7756
56cfaa52
RR
7757 if test "$enableval" = yes; then
7758 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7759 else
7760 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7761 fi
e6cc62c6 7762
56cfaa52 7763else
e6cc62c6 7764
56cfaa52
RR
7765 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7766 if test "x$LINE" != x ; then
7767 eval "DEFAULT_$LINE"
7768 else
7769 no_cache=1
7770 fi
7771
7772 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7773
e6cc62c6 7774fi;
56cfaa52
RR
7775
7776 eval "$ac_cv_use_spinctrl"
7777 if test "$no_cache" != 1; then
7778 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7779 fi
7780
7781 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7782 echo "$as_me:$LINENO: result: yes" >&5
7783echo "${ECHO_T}yes" >&6
56cfaa52 7784 else
e6cc62c6
VS
7785 echo "$as_me:$LINENO: result: no" >&5
7786echo "${ECHO_T}no" >&6
56cfaa52 7787 fi
e6cc62c6 7788
56cfaa52 7789
5005acfe 7790 enablestring=
e6cc62c6
VS
7791 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7792echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7793 no_cache=0
7794 # Check whether --enable-splitter or --disable-splitter was given.
7795if test "${enable_splitter+set}" = set; then
7796 enableval="$enable_splitter"
e6cc62c6 7797
10f2d63a
VZ
7798 if test "$enableval" = yes; then
7799 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7800 else
7801 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7802 fi
e6cc62c6 7803
10f2d63a 7804else
e6cc62c6 7805
10f2d63a
VZ
7806 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7807 if test "x$LINE" != x ; then
7808 eval "DEFAULT_$LINE"
7809 else
7810 no_cache=1
7811 fi
7812
7813 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7814
e6cc62c6 7815fi;
10f2d63a
VZ
7816
7817 eval "$ac_cv_use_splitter"
7818 if test "$no_cache" != 1; then
7819 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7820 fi
7821
7822 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7823 echo "$as_me:$LINENO: result: yes" >&5
7824echo "${ECHO_T}yes" >&6
10f2d63a 7825 else
e6cc62c6
VS
7826 echo "$as_me:$LINENO: result: no" >&5
7827echo "${ECHO_T}no" >&6
10f2d63a 7828 fi
e6cc62c6 7829
10f2d63a 7830
5005acfe 7831 enablestring=
e6cc62c6
VS
7832 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7833echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7834 no_cache=0
7835 # Check whether --enable-statbmp or --disable-statbmp was given.
7836if test "${enable_statbmp+set}" = set; then
7837 enableval="$enable_statbmp"
e6cc62c6 7838
10f2d63a
VZ
7839 if test "$enableval" = yes; then
7840 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7841 else
7842 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7843 fi
e6cc62c6 7844
10f2d63a 7845else
e6cc62c6 7846
10f2d63a
VZ
7847 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7848 if test "x$LINE" != x ; then
7849 eval "DEFAULT_$LINE"
7850 else
7851 no_cache=1
7852 fi
7853
7854 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7855
e6cc62c6 7856fi;
10f2d63a
VZ
7857
7858 eval "$ac_cv_use_statbmp"
7859 if test "$no_cache" != 1; then
7860 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7861 fi
7862
7863 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7864 echo "$as_me:$LINENO: result: yes" >&5
7865echo "${ECHO_T}yes" >&6
10f2d63a 7866 else
e6cc62c6
VS
7867 echo "$as_me:$LINENO: result: no" >&5
7868echo "${ECHO_T}no" >&6
10f2d63a 7869 fi
e6cc62c6 7870
10f2d63a 7871
5005acfe 7872 enablestring=
e6cc62c6
VS
7873 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7874echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7875 no_cache=0
7876 # Check whether --enable-statbox or --disable-statbox was given.
7877if test "${enable_statbox+set}" = set; then
7878 enableval="$enable_statbox"
e6cc62c6 7879
10f2d63a
VZ
7880 if test "$enableval" = yes; then
7881 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7882 else
7883 ac_cv_use_statbox='wxUSE_STATBOX=no'
7884 fi
e6cc62c6 7885
10f2d63a 7886else
e6cc62c6 7887
10f2d63a
VZ
7888 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7889 if test "x$LINE" != x ; then
7890 eval "DEFAULT_$LINE"
7891 else
7892 no_cache=1
7893 fi
7894
7895 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7896
e6cc62c6 7897fi;
10f2d63a
VZ
7898
7899 eval "$ac_cv_use_statbox"
7900 if test "$no_cache" != 1; then
7901 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7902 fi
7903
7904 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7905 echo "$as_me:$LINENO: result: yes" >&5
7906echo "${ECHO_T}yes" >&6
10f2d63a 7907 else
e6cc62c6
VS
7908 echo "$as_me:$LINENO: result: no" >&5
7909echo "${ECHO_T}no" >&6
10f2d63a 7910 fi
e6cc62c6 7911
10f2d63a 7912
5005acfe 7913 enablestring=
e6cc62c6
VS
7914 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7915echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7916 no_cache=0
7917 # Check whether --enable-statline or --disable-statline was given.
7918if test "${enable_statline+set}" = set; then
7919 enableval="$enable_statline"
e6cc62c6 7920
10f2d63a
VZ
7921 if test "$enableval" = yes; then
7922 ac_cv_use_statline='wxUSE_STATLINE=yes'
7923 else
7924 ac_cv_use_statline='wxUSE_STATLINE=no'
7925 fi
e6cc62c6 7926
10f2d63a 7927else
e6cc62c6 7928
10f2d63a
VZ
7929 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7930 if test "x$LINE" != x ; then
7931 eval "DEFAULT_$LINE"
7932 else
7933 no_cache=1
7934 fi
7935
7936 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7937
e6cc62c6 7938fi;
10f2d63a
VZ
7939
7940 eval "$ac_cv_use_statline"
7941 if test "$no_cache" != 1; then
7942 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7943 fi
7944
7945 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7946 echo "$as_me:$LINENO: result: yes" >&5
7947echo "${ECHO_T}yes" >&6
10f2d63a 7948 else
e6cc62c6
VS
7949 echo "$as_me:$LINENO: result: no" >&5
7950echo "${ECHO_T}no" >&6
10f2d63a 7951 fi
e6cc62c6 7952
10f2d63a 7953
5005acfe 7954 enablestring=
e6cc62c6
VS
7955 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7956echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7957 no_cache=0
7958 # Check whether --enable-stattext or --disable-stattext was given.
7959if test "${enable_stattext+set}" = set; then
7960 enableval="$enable_stattext"
e6cc62c6 7961
1e6feb95
VZ
7962 if test "$enableval" = yes; then
7963 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7964 else
7965 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7966 fi
e6cc62c6 7967
1e6feb95 7968else
e6cc62c6 7969
1e6feb95
VZ
7970 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7971 if test "x$LINE" != x ; then
7972 eval "DEFAULT_$LINE"
7973 else
7974 no_cache=1
7975 fi
7976
7977 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7978
e6cc62c6 7979fi;
1e6feb95
VZ
7980
7981 eval "$ac_cv_use_stattext"
7982 if test "$no_cache" != 1; then
7983 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7984 fi
7985
7986 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7987 echo "$as_me:$LINENO: result: yes" >&5
7988echo "${ECHO_T}yes" >&6
1e6feb95 7989 else
e6cc62c6
VS
7990 echo "$as_me:$LINENO: result: no" >&5
7991echo "${ECHO_T}no" >&6
1e6feb95 7992 fi
e6cc62c6 7993
1e6feb95 7994
5005acfe 7995 enablestring=
e6cc62c6
VS
7996 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7997echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7998 no_cache=0
7999 # Check whether --enable-statusbar or --disable-statusbar was given.
8000if test "${enable_statusbar+set}" = set; then
8001 enableval="$enable_statusbar"
e6cc62c6 8002
10f2d63a
VZ
8003 if test "$enableval" = yes; then
8004 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
8005 else
8006 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
8007 fi
e6cc62c6 8008
10f2d63a 8009else
e6cc62c6 8010
10f2d63a
VZ
8011 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
8012 if test "x$LINE" != x ; then
8013 eval "DEFAULT_$LINE"
8014 else
8015 no_cache=1
8016 fi
8017
8018 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 8019
e6cc62c6 8020fi;
10f2d63a
VZ
8021
8022 eval "$ac_cv_use_statusbar"
8023 if test "$no_cache" != 1; then
8024 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
8025 fi
8026
8027 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
8028 echo "$as_me:$LINENO: result: yes" >&5
8029echo "${ECHO_T}yes" >&6
10f2d63a 8030 else
e6cc62c6
VS
8031 echo "$as_me:$LINENO: result: no" >&5
8032echo "${ECHO_T}no" >&6
10f2d63a 8033 fi
e6cc62c6 8034
10f2d63a 8035
5005acfe 8036 enablestring=
e6cc62c6
VS
8037 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
8038echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
8039 no_cache=0
8040 # Check whether --enable-tabdialog or --disable-tabdialog was given.
8041if test "${enable_tabdialog+set}" = set; then
8042 enableval="$enable_tabdialog"
e6cc62c6 8043
10f2d63a
VZ
8044 if test "$enableval" = yes; then
8045 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
8046 else
8047 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
8048 fi
e6cc62c6 8049
10f2d63a 8050else
e6cc62c6 8051
10f2d63a
VZ
8052 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
8053 if test "x$LINE" != x ; then
8054 eval "DEFAULT_$LINE"
8055 else
8056 no_cache=1
8057 fi
8058
8059 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 8060
e6cc62c6 8061fi;
10f2d63a
VZ
8062
8063 eval "$ac_cv_use_tabdialog"
8064 if test "$no_cache" != 1; then
8065 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8066 fi
8067
8068 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
8069 echo "$as_me:$LINENO: result: yes" >&5
8070echo "${ECHO_T}yes" >&6
10f2d63a 8071 else
e6cc62c6
VS
8072 echo "$as_me:$LINENO: result: no" >&5
8073echo "${ECHO_T}no" >&6
10f2d63a 8074 fi
e6cc62c6 8075
10f2d63a 8076
5005acfe 8077 enablestring=
e6cc62c6
VS
8078 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8079echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
8080 no_cache=0
8081 # Check whether --enable-textctrl or --disable-textctrl was given.
8082if test "${enable_textctrl+set}" = set; then
8083 enableval="$enable_textctrl"
e6cc62c6 8084
1e6feb95
VZ
8085 if test "$enableval" = yes; then
8086 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8087 else
8088 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8089 fi
e6cc62c6 8090
1e6feb95 8091else
e6cc62c6 8092
1e6feb95
VZ
8093 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8094 if test "x$LINE" != x ; then
8095 eval "DEFAULT_$LINE"
8096 else
8097 no_cache=1
8098 fi
8099
8100 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 8101
e6cc62c6 8102fi;
1e6feb95
VZ
8103
8104 eval "$ac_cv_use_textctrl"
8105 if test "$no_cache" != 1; then
8106 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8107 fi
8108
8109 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
8110 echo "$as_me:$LINENO: result: yes" >&5
8111echo "${ECHO_T}yes" >&6
1e6feb95 8112 else
e6cc62c6
VS
8113 echo "$as_me:$LINENO: result: no" >&5
8114echo "${ECHO_T}no" >&6
1e6feb95 8115 fi
e6cc62c6 8116
1e6feb95 8117
5005acfe 8118 enablestring=
e6cc62c6
VS
8119 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8120echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
8121 no_cache=0
8122 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8123if test "${enable_togglebtn+set}" = set; then
8124 enableval="$enable_togglebtn"
e6cc62c6 8125
1db8dc4a
VZ
8126 if test "$enableval" = yes; then
8127 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8128 else
8129 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8130 fi
e6cc62c6 8131
1db8dc4a 8132else
e6cc62c6 8133
1db8dc4a
VZ
8134 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8135 if test "x$LINE" != x ; then
8136 eval "DEFAULT_$LINE"
8137 else
8138 no_cache=1
8139 fi
8140
8141 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 8142
e6cc62c6 8143fi;
1db8dc4a
VZ
8144
8145 eval "$ac_cv_use_togglebtn"
8146 if test "$no_cache" != 1; then
8147 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8148 fi
8149
8150 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
8151 echo "$as_me:$LINENO: result: yes" >&5
8152echo "${ECHO_T}yes" >&6
1db8dc4a 8153 else
e6cc62c6
VS
8154 echo "$as_me:$LINENO: result: no" >&5
8155echo "${ECHO_T}no" >&6
1db8dc4a 8156 fi
e6cc62c6 8157
1db8dc4a 8158
5005acfe 8159 enablestring=
e6cc62c6
VS
8160 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8161echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
8162 no_cache=0
8163 # Check whether --enable-toolbar or --disable-toolbar was given.
8164if test "${enable_toolbar+set}" = set; then
8165 enableval="$enable_toolbar"
e6cc62c6 8166
10f2d63a
VZ
8167 if test "$enableval" = yes; then
8168 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8169 else
8170 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8171 fi
e6cc62c6 8172
10f2d63a 8173else
e6cc62c6 8174
10f2d63a
VZ
8175 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8176 if test "x$LINE" != x ; then
8177 eval "DEFAULT_$LINE"
8178 else
8179 no_cache=1
8180 fi
8181
8182 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 8183
e6cc62c6 8184fi;
10f2d63a
VZ
8185
8186 eval "$ac_cv_use_toolbar"
8187 if test "$no_cache" != 1; then
8188 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8189 fi
8190
8191 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
8192 echo "$as_me:$LINENO: result: yes" >&5
8193echo "${ECHO_T}yes" >&6
10f2d63a 8194 else
e6cc62c6
VS
8195 echo "$as_me:$LINENO: result: no" >&5
8196echo "${ECHO_T}no" >&6
10f2d63a 8197 fi
e6cc62c6 8198
10f2d63a 8199
5005acfe 8200 enablestring=
e6cc62c6
VS
8201 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8202echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
8203 no_cache=0
8204 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8205if test "${enable_tbarnative+set}" = set; then
8206 enableval="$enable_tbarnative"
e6cc62c6 8207
360d6699
VZ
8208 if test "$enableval" = yes; then
8209 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8210 else
8211 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8212 fi
e6cc62c6 8213
360d6699 8214else
e6cc62c6 8215
360d6699
VZ
8216 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8217 if test "x$LINE" != x ; then
8218 eval "DEFAULT_$LINE"
8219 else
8220 no_cache=1
8221 fi
8222
8223 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 8224
e6cc62c6 8225fi;
360d6699
VZ
8226
8227 eval "$ac_cv_use_tbarnative"
8228 if test "$no_cache" != 1; then
8229 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8230 fi
8231
8232 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
8233 echo "$as_me:$LINENO: result: yes" >&5
8234echo "${ECHO_T}yes" >&6
360d6699 8235 else
e6cc62c6
VS
8236 echo "$as_me:$LINENO: result: no" >&5
8237echo "${ECHO_T}no" >&6
360d6699 8238 fi
e6cc62c6 8239
360d6699 8240
5005acfe 8241 enablestring=
e6cc62c6
VS
8242 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8243echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
8244 no_cache=0
8245 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8246if test "${enable_tbarsmpl+set}" = set; then
8247 enableval="$enable_tbarsmpl"
e6cc62c6 8248
360d6699
VZ
8249 if test "$enableval" = yes; then
8250 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8251 else
8252 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8253 fi
e6cc62c6 8254
360d6699 8255else
e6cc62c6 8256
360d6699
VZ
8257 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8258 if test "x$LINE" != x ; then
8259 eval "DEFAULT_$LINE"
8260 else
8261 no_cache=1
8262 fi
8263
8264 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 8265
e6cc62c6 8266fi;
360d6699
VZ
8267
8268 eval "$ac_cv_use_tbarsmpl"
8269 if test "$no_cache" != 1; then
8270 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8271 fi
8272
8273 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
8274 echo "$as_me:$LINENO: result: yes" >&5
8275echo "${ECHO_T}yes" >&6
360d6699 8276 else
e6cc62c6
VS
8277 echo "$as_me:$LINENO: result: no" >&5
8278echo "${ECHO_T}no" >&6
360d6699 8279 fi
e6cc62c6 8280
360d6699 8281
5005acfe 8282 enablestring=
e6cc62c6
VS
8283 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8284echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8285 no_cache=0
8286 # Check whether --enable-treectrl or --disable-treectrl was given.
8287if test "${enable_treectrl+set}" = set; then
8288 enableval="$enable_treectrl"
e6cc62c6 8289
10f2d63a
VZ
8290 if test "$enableval" = yes; then
8291 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8292 else
8293 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8294 fi
e6cc62c6 8295
10f2d63a 8296else
e6cc62c6 8297
10f2d63a
VZ
8298 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8299 if test "x$LINE" != x ; then
8300 eval "DEFAULT_$LINE"
8301 else
8302 no_cache=1
8303 fi
8304
8305 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8306
e6cc62c6 8307fi;
10f2d63a 8308
1e6feb95
VZ
8309 eval "$ac_cv_use_treectrl"
8310 if test "$no_cache" != 1; then
8311 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8312 fi
8313
8314 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8315 echo "$as_me:$LINENO: result: yes" >&5
8316echo "${ECHO_T}yes" >&6
1e6feb95 8317 else
e6cc62c6
VS
8318 echo "$as_me:$LINENO: result: no" >&5
8319echo "${ECHO_T}no" >&6
1e6feb95 8320 fi
e6cc62c6 8321
1e6feb95 8322
5005acfe 8323 enablestring=
e6cc62c6
VS
8324 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8325echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8326 no_cache=0
8327 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8328if test "${enable_tipwindow+set}" = set; then
8329 enableval="$enable_tipwindow"
e6cc62c6 8330
9926e4a4
VZ
8331 if test "$enableval" = yes; then
8332 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8333 else
8334 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8335 fi
e6cc62c6 8336
9926e4a4 8337else
e6cc62c6 8338
9926e4a4
VZ
8339 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8340 if test "x$LINE" != x ; then
8341 eval "DEFAULT_$LINE"
8342 else
8343 no_cache=1
8344 fi
8345
8346 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8347
e6cc62c6 8348fi;
9926e4a4
VZ
8349
8350 eval "$ac_cv_use_tipwindow"
8351 if test "$no_cache" != 1; then
8352 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8353 fi
8354
8355 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8356 echo "$as_me:$LINENO: result: yes" >&5
8357echo "${ECHO_T}yes" >&6
9926e4a4 8358 else
e6cc62c6
VS
8359 echo "$as_me:$LINENO: result: no" >&5
8360echo "${ECHO_T}no" >&6
9926e4a4 8361 fi
e6cc62c6 8362
9926e4a4 8363
5005acfe 8364 enablestring=
e6cc62c6
VS
8365 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8366echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8367 no_cache=0
8368 # Check whether --enable-popupwin or --disable-popupwin was given.
8369if test "${enable_popupwin+set}" = set; then
8370 enableval="$enable_popupwin"
e6cc62c6 8371
9f41d601
RR
8372 if test "$enableval" = yes; then
8373 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8374 else
8375 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8376 fi
e6cc62c6 8377
9f41d601 8378else
e6cc62c6 8379
9f41d601
RR
8380 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8381 if test "x$LINE" != x ; then
8382 eval "DEFAULT_$LINE"
8383 else
8384 no_cache=1
8385 fi
8386
8387 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8388
e6cc62c6 8389fi;
9f41d601
RR
8390
8391 eval "$ac_cv_use_popupwin"
8392 if test "$no_cache" != 1; then
8393 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8394 fi
8395
8396 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8397 echo "$as_me:$LINENO: result: yes" >&5
8398echo "${ECHO_T}yes" >&6
9f41d601 8399 else
e6cc62c6
VS
8400 echo "$as_me:$LINENO: result: no" >&5
8401echo "${ECHO_T}no" >&6
9f41d601 8402 fi
e6cc62c6 8403
52127426 8404
8284b0c5
MB
8405
8406
5005acfe 8407 enablestring=
e6cc62c6
VS
8408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8409echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8410 no_cache=0
8411 # Check whether --enable-commondlg or --disable-commondlg was given.
8412if test "${enable_commondlg+set}" = set; then
8413 enableval="$enable_commondlg"
e6cc62c6 8414
1e6feb95
VZ
8415 if test "$enableval" = yes; then
8416 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8417 else
8418 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8419 fi
e6cc62c6 8420
1e6feb95 8421else
e6cc62c6 8422
1e6feb95
VZ
8423 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8424 if test "x$LINE" != x ; then
8425 eval "DEFAULT_$LINE"
8426 else
8427 no_cache=1
8428 fi
8429
8430 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8431
e6cc62c6 8432fi;
1e6feb95
VZ
8433
8434 eval "$ac_cv_use_commondlg"
8435 if test "$no_cache" != 1; then
8436 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8437 fi
8438
8439 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8440 echo "$as_me:$LINENO: result: yes" >&5
8441echo "${ECHO_T}yes" >&6
1e6feb95 8442 else
e6cc62c6
VS
8443 echo "$as_me:$LINENO: result: no" >&5
8444echo "${ECHO_T}no" >&6
1e6feb95 8445 fi
e6cc62c6 8446
1e6feb95 8447
5005acfe 8448 enablestring=
e6cc62c6
VS
8449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8450echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8451 no_cache=0
8452 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8453if test "${enable_choicedlg+set}" = set; then
8454 enableval="$enable_choicedlg"
e6cc62c6 8455
1e6feb95
VZ
8456 if test "$enableval" = yes; then
8457 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8458 else
8459 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8460 fi
e6cc62c6 8461
1e6feb95 8462else
e6cc62c6 8463
1e6feb95
VZ
8464 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8465 if test "x$LINE" != x ; then
8466 eval "DEFAULT_$LINE"
8467 else
8468 no_cache=1
8469 fi
8470
8471 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8472
e6cc62c6 8473fi;
1e6feb95
VZ
8474
8475 eval "$ac_cv_use_choicedlg"
8476 if test "$no_cache" != 1; then
8477 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8478 fi
8479
8480 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8481 echo "$as_me:$LINENO: result: yes" >&5
8482echo "${ECHO_T}yes" >&6
1e6feb95 8483 else
e6cc62c6
VS
8484 echo "$as_me:$LINENO: result: no" >&5
8485echo "${ECHO_T}no" >&6
1e6feb95 8486 fi
e6cc62c6 8487
1e6feb95 8488
5005acfe 8489 enablestring=
e6cc62c6
VS
8490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8491echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8492 no_cache=0
8493 # Check whether --enable-coldlg or --disable-coldlg was given.
8494if test "${enable_coldlg+set}" = set; then
8495 enableval="$enable_coldlg"
e6cc62c6 8496
1e6feb95
VZ
8497 if test "$enableval" = yes; then
8498 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8499 else
8500 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8501 fi
e6cc62c6 8502
1e6feb95 8503else
e6cc62c6 8504
1e6feb95
VZ
8505 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8506 if test "x$LINE" != x ; then
8507 eval "DEFAULT_$LINE"
8508 else
8509 no_cache=1
8510 fi
8511
8512 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8513
e6cc62c6 8514fi;
1e6feb95
VZ
8515
8516 eval "$ac_cv_use_coldlg"
8517 if test "$no_cache" != 1; then
8518 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8519 fi
8520
8521 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8522 echo "$as_me:$LINENO: result: yes" >&5
8523echo "${ECHO_T}yes" >&6
1e6feb95 8524 else
e6cc62c6
VS
8525 echo "$as_me:$LINENO: result: no" >&5
8526echo "${ECHO_T}no" >&6
1e6feb95 8527 fi
e6cc62c6 8528
1e6feb95 8529
5005acfe 8530 enablestring=
e6cc62c6
VS
8531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8532echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8533 no_cache=0
8534 # Check whether --enable-filedlg or --disable-filedlg was given.
8535if test "${enable_filedlg+set}" = set; then
8536 enableval="$enable_filedlg"
e6cc62c6 8537
1e6feb95
VZ
8538 if test "$enableval" = yes; then
8539 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8540 else
8541 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8542 fi
e6cc62c6 8543
1e6feb95 8544else
e6cc62c6 8545
1e6feb95
VZ
8546 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8547 if test "x$LINE" != x ; then
8548 eval "DEFAULT_$LINE"
8549 else
8550 no_cache=1
8551 fi
8552
8553 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8554
e6cc62c6 8555fi;
1e6feb95
VZ
8556
8557 eval "$ac_cv_use_filedlg"
8558 if test "$no_cache" != 1; then
8559 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8560 fi
8561
8562 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8563 echo "$as_me:$LINENO: result: yes" >&5
8564echo "${ECHO_T}yes" >&6
1e6feb95 8565 else
e6cc62c6
VS
8566 echo "$as_me:$LINENO: result: no" >&5
8567echo "${ECHO_T}no" >&6
1e6feb95 8568 fi
e6cc62c6 8569
1e6feb95 8570
5005acfe 8571 enablestring=
e6cc62c6
VS
8572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8573echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8574 no_cache=0
69d27ff7
MB
8575 # Check whether --enable-finddlg or --disable-finddlg was given.
8576if test "${enable_finddlg+set}" = set; then
8577 enableval="$enable_finddlg"
e6cc62c6 8578
8db37e06 8579 if test "$enableval" = yes; then
69d27ff7 8580 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8581 else
69d27ff7 8582 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8583 fi
e6cc62c6 8584
8db37e06 8585else
e6cc62c6 8586
8db37e06
VZ
8587 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8588 if test "x$LINE" != x ; then
8589 eval "DEFAULT_$LINE"
8590 else
8591 no_cache=1
8592 fi
8593
69d27ff7 8594 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8595
e6cc62c6 8596fi;
8db37e06 8597
69d27ff7 8598 eval "$ac_cv_use_finddlg"
8db37e06 8599 if test "$no_cache" != 1; then
69d27ff7 8600 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8601 fi
8602
8603 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8604 echo "$as_me:$LINENO: result: yes" >&5
8605echo "${ECHO_T}yes" >&6
8db37e06 8606 else
e6cc62c6
VS
8607 echo "$as_me:$LINENO: result: no" >&5
8608echo "${ECHO_T}no" >&6
8db37e06 8609 fi
e6cc62c6 8610
8db37e06 8611
5005acfe 8612 enablestring=
e6cc62c6
VS
8613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8614echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8615 no_cache=0
8616 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8617if test "${enable_fontdlg+set}" = set; then
8618 enableval="$enable_fontdlg"
e6cc62c6 8619
1e6feb95
VZ
8620 if test "$enableval" = yes; then
8621 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8622 else
8623 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8624 fi
e6cc62c6 8625
1e6feb95 8626else
e6cc62c6 8627
1e6feb95
VZ
8628 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8629 if test "x$LINE" != x ; then
8630 eval "DEFAULT_$LINE"
8631 else
8632 no_cache=1
8633 fi
8634
8635 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8636
e6cc62c6 8637fi;
1e6feb95
VZ
8638
8639 eval "$ac_cv_use_fontdlg"
8640 if test "$no_cache" != 1; then
8641 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8642 fi
8643
8644 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8645 echo "$as_me:$LINENO: result: yes" >&5
8646echo "${ECHO_T}yes" >&6
1e6feb95 8647 else
e6cc62c6
VS
8648 echo "$as_me:$LINENO: result: no" >&5
8649echo "${ECHO_T}no" >&6
1e6feb95 8650 fi
e6cc62c6 8651
1e6feb95 8652
5005acfe 8653 enablestring=
e6cc62c6
VS
8654 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8655echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8656 no_cache=0
8657 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8658if test "${enable_dirdlg+set}" = set; then
8659 enableval="$enable_dirdlg"
e6cc62c6 8660
1e6feb95
VZ
8661 if test "$enableval" = yes; then
8662 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8663 else
8664 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8665 fi
e6cc62c6 8666
1e6feb95 8667else
e6cc62c6 8668
1e6feb95
VZ
8669 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8670 if test "x$LINE" != x ; then
8671 eval "DEFAULT_$LINE"
8672 else
8673 no_cache=1
8674 fi
8675
8676 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8677
e6cc62c6 8678fi;
1e6feb95
VZ
8679
8680 eval "$ac_cv_use_dirdlg"
10f2d63a 8681 if test "$no_cache" != 1; then
1e6feb95 8682 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8683 fi
8684
1e6feb95 8685 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8686 echo "$as_me:$LINENO: result: yes" >&5
8687echo "${ECHO_T}yes" >&6
10f2d63a 8688 else
e6cc62c6
VS
8689 echo "$as_me:$LINENO: result: no" >&5
8690echo "${ECHO_T}no" >&6
10f2d63a 8691 fi
e6cc62c6 8692
698dcdb6 8693
5005acfe 8694 enablestring=
e6cc62c6
VS
8695 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8696echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8697 no_cache=0
1e6feb95
VZ
8698 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8699if test "${enable_msgdlg+set}" = set; then
8700 enableval="$enable_msgdlg"
e6cc62c6 8701
10f2d63a 8702 if test "$enableval" = yes; then
1e6feb95 8703 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8704 else
1e6feb95 8705 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8706 fi
e6cc62c6 8707
10f2d63a 8708else
e6cc62c6 8709
1e6feb95 8710 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8711 if test "x$LINE" != x ; then
8712 eval "DEFAULT_$LINE"
8713 else
8714 no_cache=1
8715 fi
8716
1e6feb95 8717 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8718
e6cc62c6 8719fi;
10f2d63a 8720
1e6feb95 8721 eval "$ac_cv_use_msgdlg"
10f2d63a 8722 if test "$no_cache" != 1; then
1e6feb95 8723 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8724 fi
8725
1e6feb95 8726 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8727 echo "$as_me:$LINENO: result: yes" >&5
8728echo "${ECHO_T}yes" >&6
10f2d63a 8729 else
e6cc62c6
VS
8730 echo "$as_me:$LINENO: result: no" >&5
8731echo "${ECHO_T}no" >&6
10f2d63a 8732 fi
e6cc62c6 8733
10f2d63a 8734
5005acfe 8735 enablestring=
e6cc62c6
VS
8736 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8737echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8738 no_cache=0
1e6feb95
VZ
8739 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8740if test "${enable_numberdlg+set}" = set; then
8741 enableval="$enable_numberdlg"
e6cc62c6 8742
10f2d63a 8743 if test "$enableval" = yes; then
1e6feb95 8744 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8745 else
1e6feb95 8746 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8747 fi
e6cc62c6 8748
10f2d63a 8749else
e6cc62c6 8750
1e6feb95 8751 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8752 if test "x$LINE" != x ; then
8753 eval "DEFAULT_$LINE"
8754 else
8755 no_cache=1
8756 fi
8757
1e6feb95 8758 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8759
e6cc62c6 8760fi;
10f2d63a 8761
1e6feb95 8762 eval "$ac_cv_use_numberdlg"
10f2d63a 8763 if test "$no_cache" != 1; then
1e6feb95 8764 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8765 fi
8766
1e6feb95 8767 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8768 echo "$as_me:$LINENO: result: yes" >&5
8769echo "${ECHO_T}yes" >&6
10f2d63a 8770 else
e6cc62c6
VS
8771 echo "$as_me:$LINENO: result: no" >&5
8772echo "${ECHO_T}no" >&6
10f2d63a 8773 fi
e6cc62c6 8774
10f2d63a 8775
5005acfe 8776 enablestring=
e6cc62c6
VS
8777 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8778echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8779 no_cache=0
8780 # Check whether --enable-splash or --disable-splash was given.
8781if test "${enable_splash+set}" = set; then
8782 enableval="$enable_splash"
e6cc62c6 8783
cbca9943
VZ
8784 if test "$enableval" = yes; then
8785 ac_cv_use_splash='wxUSE_SPLASH=yes'
8786 else
8787 ac_cv_use_splash='wxUSE_SPLASH=no'
8788 fi
e6cc62c6 8789
cbca9943 8790else
e6cc62c6 8791
cbca9943
VZ
8792 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8793 if test "x$LINE" != x ; then
8794 eval "DEFAULT_$LINE"
8795 else
8796 no_cache=1
8797 fi
8798
8799 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8800
e6cc62c6 8801fi;
cbca9943
VZ
8802
8803 eval "$ac_cv_use_splash"
8804 if test "$no_cache" != 1; then
8805 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8806 fi
8807
8808 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8809 echo "$as_me:$LINENO: result: yes" >&5
8810echo "${ECHO_T}yes" >&6
cbca9943 8811 else
e6cc62c6
VS
8812 echo "$as_me:$LINENO: result: no" >&5
8813echo "${ECHO_T}no" >&6
cbca9943 8814 fi
e6cc62c6 8815
cbca9943 8816
5005acfe 8817 enablestring=
e6cc62c6
VS
8818 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8819echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8820 no_cache=0
8821 # Check whether --enable-textdlg or --disable-textdlg was given.
8822if test "${enable_textdlg+set}" = set; then
8823 enableval="$enable_textdlg"
e6cc62c6 8824
10f2d63a
VZ
8825 if test "$enableval" = yes; then
8826 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8827 else
8828 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8829 fi
e6cc62c6 8830
10f2d63a 8831else
e6cc62c6 8832
10f2d63a
VZ
8833 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8834 if test "x$LINE" != x ; then
8835 eval "DEFAULT_$LINE"
8836 else
8837 no_cache=1
8838 fi
8839
8840 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8841
e6cc62c6 8842fi;
10f2d63a
VZ
8843
8844 eval "$ac_cv_use_textdlg"
8845 if test "$no_cache" != 1; then
8846 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8847 fi
8848
8849 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8850 echo "$as_me:$LINENO: result: yes" >&5
8851echo "${ECHO_T}yes" >&6
10f2d63a 8852 else
e6cc62c6
VS
8853 echo "$as_me:$LINENO: result: no" >&5
8854echo "${ECHO_T}no" >&6
10f2d63a 8855 fi
e6cc62c6 8856
10f2d63a 8857
5005acfe 8858 enablestring=
e6cc62c6
VS
8859 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8860echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8861 no_cache=0
8862 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8863if test "${enable_tipdlg+set}" = set; then
8864 enableval="$enable_tipdlg"
e6cc62c6 8865
10f2d63a
VZ
8866 if test "$enableval" = yes; then
8867 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8868 else
8869 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8870 fi
e6cc62c6 8871
10f2d63a 8872else
e6cc62c6 8873
10f2d63a
VZ
8874 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8875 if test "x$LINE" != x ; then
8876 eval "DEFAULT_$LINE"
8877 else
8878 no_cache=1
8879 fi
8880
8881 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8882
e6cc62c6 8883fi;
10f2d63a
VZ
8884
8885 eval "$ac_cv_use_tipdlg"
8886 if test "$no_cache" != 1; then
8887 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8888 fi
8889
8890 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8891 echo "$as_me:$LINENO: result: yes" >&5
8892echo "${ECHO_T}yes" >&6
10f2d63a 8893 else
e6cc62c6
VS
8894 echo "$as_me:$LINENO: result: no" >&5
8895echo "${ECHO_T}no" >&6
10f2d63a 8896 fi
e6cc62c6 8897
10f2d63a 8898
5005acfe 8899 enablestring=
e6cc62c6
VS
8900 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8901echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8902 no_cache=0
8903 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8904if test "${enable_progressdlg+set}" = set; then
8905 enableval="$enable_progressdlg"
e6cc62c6 8906
10f2d63a
VZ
8907 if test "$enableval" = yes; then
8908 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8909 else
8910 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8911 fi
e6cc62c6 8912
10f2d63a 8913else
e6cc62c6 8914
10f2d63a
VZ
8915 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8916 if test "x$LINE" != x ; then
8917 eval "DEFAULT_$LINE"
8918 else
8919 no_cache=1
8920 fi
8921
8922 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8923
e6cc62c6 8924fi;
10f2d63a
VZ
8925
8926 eval "$ac_cv_use_progressdlg"
8927 if test "$no_cache" != 1; then
8928 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8929 fi
8930
8931 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8932 echo "$as_me:$LINENO: result: yes" >&5
8933echo "${ECHO_T}yes" >&6
10f2d63a 8934 else
e6cc62c6
VS
8935 echo "$as_me:$LINENO: result: no" >&5
8936echo "${ECHO_T}no" >&6
10f2d63a 8937 fi
e6cc62c6 8938
10f2d63a 8939
5005acfe 8940 enablestring=
e6cc62c6
VS
8941 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8942echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8943 no_cache=0
8944 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8945if test "${enable_wizarddlg+set}" = set; then
8946 enableval="$enable_wizarddlg"
e6cc62c6 8947
b1f5d087
VZ
8948 if test "$enableval" = yes; then
8949 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8950 else
8951 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8952 fi
e6cc62c6 8953
b1f5d087 8954else
e6cc62c6 8955
b1f5d087
VZ
8956 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8957 if test "x$LINE" != x ; then
8958 eval "DEFAULT_$LINE"
8959 else
8960 no_cache=1
8961 fi
8962
8963 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8964
e6cc62c6 8965fi;
b1f5d087
VZ
8966
8967 eval "$ac_cv_use_wizarddlg"
8968 if test "$no_cache" != 1; then
8969 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8970 fi
8971
8972 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8973 echo "$as_me:$LINENO: result: yes" >&5
8974echo "${ECHO_T}yes" >&6
b1f5d087 8975 else
e6cc62c6
VS
8976 echo "$as_me:$LINENO: result: no" >&5
8977echo "${ECHO_T}no" >&6
b1f5d087 8978 fi
e6cc62c6 8979
8284b0c5
MB
8980
8981
52127426 8982
5005acfe 8983 enablestring=
e6cc62c6
VS
8984 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8985echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8986 no_cache=0
8987 # Check whether --enable-menus or --disable-menus was given.
8988if test "${enable_menus+set}" = set; then
8989 enableval="$enable_menus"
e6cc62c6 8990
1e6feb95
VZ
8991 if test "$enableval" = yes; then
8992 ac_cv_use_menus='wxUSE_MENUS=yes'
8993 else
8994 ac_cv_use_menus='wxUSE_MENUS=no'
8995 fi
e6cc62c6 8996
1e6feb95 8997else
e6cc62c6 8998
1e6feb95
VZ
8999 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
9000 if test "x$LINE" != x ; then
9001 eval "DEFAULT_$LINE"
9002 else
9003 no_cache=1
9004 fi
9005
9006 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 9007
e6cc62c6 9008fi;
1e6feb95
VZ
9009
9010 eval "$ac_cv_use_menus"
9011 if test "$no_cache" != 1; then
9012 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
9013 fi
9014
9015 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
9016 echo "$as_me:$LINENO: result: yes" >&5
9017echo "${ECHO_T}yes" >&6
1e6feb95 9018 else
e6cc62c6
VS
9019 echo "$as_me:$LINENO: result: no" >&5
9020echo "${ECHO_T}no" >&6
1e6feb95 9021 fi
e6cc62c6 9022
1e6feb95 9023
5005acfe 9024 enablestring=
e6cc62c6
VS
9025 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
9026echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
9027 no_cache=0
9028 # Check whether --enable-miniframe or --disable-miniframe was given.
9029if test "${enable_miniframe+set}" = set; then
9030 enableval="$enable_miniframe"
e6cc62c6 9031
10f2d63a
VZ
9032 if test "$enableval" = yes; then
9033 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
9034 else
9035 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
9036 fi
e6cc62c6 9037
10f2d63a 9038else
e6cc62c6 9039
10f2d63a
VZ
9040 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
9041 if test "x$LINE" != x ; then
9042 eval "DEFAULT_$LINE"
9043 else
9044 no_cache=1
9045 fi
9046
9047 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 9048
e6cc62c6 9049fi;
10f2d63a
VZ
9050
9051 eval "$ac_cv_use_miniframe"
9052 if test "$no_cache" != 1; then
9053 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
9054 fi
9055
9056 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
9057 echo "$as_me:$LINENO: result: yes" >&5
9058echo "${ECHO_T}yes" >&6
10f2d63a 9059 else
e6cc62c6
VS
9060 echo "$as_me:$LINENO: result: no" >&5
9061echo "${ECHO_T}no" >&6
10f2d63a 9062 fi
e6cc62c6 9063
10f2d63a 9064
5005acfe 9065 enablestring=
e6cc62c6
VS
9066 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9067echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
9068 no_cache=0
9069 # Check whether --enable-tooltips or --disable-tooltips was given.
9070if test "${enable_tooltips+set}" = set; then
9071 enableval="$enable_tooltips"
e6cc62c6 9072
10f2d63a
VZ
9073 if test "$enableval" = yes; then
9074 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9075 else
9076 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9077 fi
e6cc62c6 9078
10f2d63a 9079else
e6cc62c6 9080
10f2d63a
VZ
9081 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9082 if test "x$LINE" != x ; then
9083 eval "DEFAULT_$LINE"
9084 else
9085 no_cache=1
9086 fi
9087
9088 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 9089
e6cc62c6 9090fi;
10f2d63a
VZ
9091
9092 eval "$ac_cv_use_tooltips"
9093 if test "$no_cache" != 1; then
9094 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9095 fi
9096
9097 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
9098 echo "$as_me:$LINENO: result: yes" >&5
9099echo "${ECHO_T}yes" >&6
10f2d63a 9100 else
e6cc62c6
VS
9101 echo "$as_me:$LINENO: result: no" >&5
9102echo "${ECHO_T}no" >&6
10f2d63a 9103 fi
e6cc62c6 9104
10f2d63a 9105
5005acfe 9106 enablestring=
e6cc62c6
VS
9107 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9108echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
9109 no_cache=0
9110 # Check whether --enable-splines or --disable-splines was given.
9111if test "${enable_splines+set}" = set; then
9112 enableval="$enable_splines"
e6cc62c6 9113
10f2d63a
VZ
9114 if test "$enableval" = yes; then
9115 ac_cv_use_splines='wxUSE_SPLINES=yes'
9116 else
9117 ac_cv_use_splines='wxUSE_SPLINES=no'
9118 fi
e6cc62c6 9119
10f2d63a 9120else
e6cc62c6 9121
10f2d63a
VZ
9122 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9123 if test "x$LINE" != x ; then
9124 eval "DEFAULT_$LINE"
9125 else
9126 no_cache=1
9127 fi
9128
9129 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 9130
e6cc62c6 9131fi;
10f2d63a
VZ
9132
9133 eval "$ac_cv_use_splines"
9134 if test "$no_cache" != 1; then
9135 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9136 fi
9137
9138 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
9139 echo "$as_me:$LINENO: result: yes" >&5
9140echo "${ECHO_T}yes" >&6
10f2d63a 9141 else
e6cc62c6
VS
9142 echo "$as_me:$LINENO: result: no" >&5
9143echo "${ECHO_T}no" >&6
10f2d63a 9144 fi
e6cc62c6 9145
10f2d63a 9146
5005acfe 9147 enablestring=
e6cc62c6
VS
9148 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9149echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
9150 no_cache=0
9151 # Check whether --enable-validators or --disable-validators was given.
9152if test "${enable_validators+set}" = set; then
9153 enableval="$enable_validators"
e6cc62c6 9154
10f2d63a
VZ
9155 if test "$enableval" = yes; then
9156 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9157 else
9158 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9159 fi
e6cc62c6 9160
10f2d63a 9161else
e6cc62c6 9162
10f2d63a
VZ
9163 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9164 if test "x$LINE" != x ; then
9165 eval "DEFAULT_$LINE"
9166 else
9167 no_cache=1
9168 fi
9169
9170 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 9171
e6cc62c6 9172fi;
10f2d63a
VZ
9173
9174 eval "$ac_cv_use_validators"
9175 if test "$no_cache" != 1; then
9176 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9177 fi
9178
9179 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
9180 echo "$as_me:$LINENO: result: yes" >&5
9181echo "${ECHO_T}yes" >&6
10f2d63a 9182 else
e6cc62c6
VS
9183 echo "$as_me:$LINENO: result: no" >&5
9184echo "${ECHO_T}no" >&6
10f2d63a 9185 fi
e6cc62c6 9186
10f2d63a 9187
5005acfe 9188 enablestring=
e6cc62c6
VS
9189 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9190echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
9191 no_cache=0
9192 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9193if test "${enable_busyinfo+set}" = set; then
9194 enableval="$enable_busyinfo"
e6cc62c6 9195
10f2d63a
VZ
9196 if test "$enableval" = yes; then
9197 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9198 else
9199 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9200 fi
e6cc62c6 9201
10f2d63a 9202else
e6cc62c6 9203
10f2d63a
VZ
9204 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9205 if test "x$LINE" != x ; then
9206 eval "DEFAULT_$LINE"
9207 else
9208 no_cache=1
9209 fi
9210
9211 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 9212
e6cc62c6 9213fi;
10f2d63a
VZ
9214
9215 eval "$ac_cv_use_busyinfo"
9216 if test "$no_cache" != 1; then
9217 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9218 fi
9219
9220 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
9221 echo "$as_me:$LINENO: result: yes" >&5
9222echo "${ECHO_T}yes" >&6
10f2d63a 9223 else
e6cc62c6
VS
9224 echo "$as_me:$LINENO: result: no" >&5
9225echo "${ECHO_T}no" >&6
10f2d63a 9226 fi
e6cc62c6 9227
10f2d63a 9228
5005acfe 9229 enablestring=
e6cc62c6
VS
9230 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9231echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
9232 no_cache=0
9233 # Check whether --enable-joystick or --disable-joystick was given.
9234if test "${enable_joystick+set}" = set; then
9235 enableval="$enable_joystick"
e6cc62c6 9236
f6bcfd97
BP
9237 if test "$enableval" = yes; then
9238 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9239 else
9240 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9241 fi
e6cc62c6 9242
f6bcfd97 9243else
e6cc62c6 9244
f6bcfd97
BP
9245 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9246 if test "x$LINE" != x ; then
9247 eval "DEFAULT_$LINE"
9248 else
9249 no_cache=1
9250 fi
9251
9252 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 9253
e6cc62c6 9254fi;
f6bcfd97
BP
9255
9256 eval "$ac_cv_use_joystick"
9257 if test "$no_cache" != 1; then
9258 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9259 fi
9260
9261 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
9262 echo "$as_me:$LINENO: result: yes" >&5
9263echo "${ECHO_T}yes" >&6
f6bcfd97 9264 else
e6cc62c6
VS
9265 echo "$as_me:$LINENO: result: no" >&5
9266echo "${ECHO_T}no" >&6
f6bcfd97 9267 fi
e6cc62c6 9268
698dcdb6 9269
5005acfe 9270 enablestring=
e6cc62c6
VS
9271 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9272echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
9273 no_cache=0
9274 # Check whether --enable-metafile or --disable-metafile was given.
9275if test "${enable_metafile+set}" = set; then
9276 enableval="$enable_metafile"
e6cc62c6 9277
1e6feb95
VZ
9278 if test "$enableval" = yes; then
9279 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9280 else
9281 ac_cv_use_metafile='wxUSE_METAFILE=no'
9282 fi
e6cc62c6 9283
1e6feb95 9284else
e6cc62c6 9285
1e6feb95
VZ
9286 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9287 if test "x$LINE" != x ; then
9288 eval "DEFAULT_$LINE"
9289 else
9290 no_cache=1
9291 fi
9292
9293 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9294
e6cc62c6 9295fi;
1e6feb95
VZ
9296
9297 eval "$ac_cv_use_metafile"
9298 if test "$no_cache" != 1; then
9299 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9300 fi
9301
9302 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9303 echo "$as_me:$LINENO: result: yes" >&5
9304echo "${ECHO_T}yes" >&6
1e6feb95 9305 else
e6cc62c6
VS
9306 echo "$as_me:$LINENO: result: no" >&5
9307echo "${ECHO_T}no" >&6
1e6feb95 9308 fi
e6cc62c6 9309
1e6feb95 9310
5005acfe 9311 enablestring=
e6cc62c6
VS
9312 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9313echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9314 no_cache=0
9315 # Check whether --enable-dragimage or --disable-dragimage was given.
9316if test "${enable_dragimage+set}" = set; then
9317 enableval="$enable_dragimage"
e6cc62c6 9318
24fd6d87
VZ
9319 if test "$enableval" = yes; then
9320 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9321 else
9322 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9323 fi
e6cc62c6 9324
24fd6d87 9325else
e6cc62c6 9326
24fd6d87
VZ
9327 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9328 if test "x$LINE" != x ; then
9329 eval "DEFAULT_$LINE"
9330 else
9331 no_cache=1
9332 fi
9333
9334 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9335
e6cc62c6 9336fi;
24fd6d87
VZ
9337
9338 eval "$ac_cv_use_dragimage"
9339 if test "$no_cache" != 1; then
9340 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9341 fi
9342
9343 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9344 echo "$as_me:$LINENO: result: yes" >&5
9345echo "${ECHO_T}yes" >&6
24fd6d87 9346 else
e6cc62c6
VS
9347 echo "$as_me:$LINENO: result: no" >&5
9348echo "${ECHO_T}no" >&6
24fd6d87 9349 fi
e6cc62c6 9350
52127426 9351
7bb2947d 9352 enablestring=
e6cc62c6
VS
9353 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9354echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9355 no_cache=0
9356 # Check whether --enable-accessibility or --disable-accessibility was given.
9357if test "${enable_accessibility+set}" = set; then
9358 enableval="$enable_accessibility"
e6cc62c6 9359
7bb2947d
MB
9360 if test "$enableval" = yes; then
9361 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9362 else
9363 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9364 fi
e6cc62c6 9365
7bb2947d 9366else
e6cc62c6 9367
7bb2947d
MB
9368 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9369 if test "x$LINE" != x ; then
9370 eval "DEFAULT_$LINE"
9371 else
9372 no_cache=1
9373 fi
9374
9375 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9376
e6cc62c6 9377fi;
7bb2947d
MB
9378
9379 eval "$ac_cv_use_accessibility"
9380 if test "$no_cache" != 1; then
9381 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9382 fi
9383
9384 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9385 echo "$as_me:$LINENO: result: yes" >&5
9386echo "${ECHO_T}yes" >&6
7bb2947d 9387 else
e6cc62c6
VS
9388 echo "$as_me:$LINENO: result: no" >&5
9389echo "${ECHO_T}no" >&6
7bb2947d 9390 fi
e6cc62c6 9391
7bb2947d 9392
8284b0c5
MB
9393
9394
5005acfe 9395 enablestring=
e6cc62c6
VS
9396 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9397echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9398 no_cache=0
9399 # Check whether --enable-palette or --disable-palette was given.
9400if test "${enable_palette+set}" = set; then
9401 enableval="$enable_palette"
e6cc62c6 9402
edae8572
VZ
9403 if test "$enableval" = yes; then
9404 ac_cv_use_palette='wxUSE_PALETTE=yes'
9405 else
9406 ac_cv_use_palette='wxUSE_PALETTE=no'
9407 fi
e6cc62c6 9408
edae8572 9409else
e6cc62c6 9410
edae8572
VZ
9411 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9412 if test "x$LINE" != x ; then
9413 eval "DEFAULT_$LINE"
9414 else
9415 no_cache=1
9416 fi
9417
9418 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9419
e6cc62c6 9420fi;
edae8572
VZ
9421
9422 eval "$ac_cv_use_palette"
9423 if test "$no_cache" != 1; then
9424 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9425 fi
9426
9427 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9428 echo "$as_me:$LINENO: result: yes" >&5
9429echo "${ECHO_T}yes" >&6
edae8572 9430 else
e6cc62c6
VS
9431 echo "$as_me:$LINENO: result: no" >&5
9432echo "${ECHO_T}no" >&6
edae8572 9433 fi
e6cc62c6 9434
edae8572 9435
5005acfe 9436 enablestring=
e6cc62c6
VS
9437 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9438echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9439 no_cache=0
9440 # Check whether --enable-image or --disable-image was given.
9441if test "${enable_image+set}" = set; then
9442 enableval="$enable_image"
e6cc62c6 9443
0046ff7c
VS
9444 if test "$enableval" = yes; then
9445 ac_cv_use_image='wxUSE_IMAGE=yes'
9446 else
9447 ac_cv_use_image='wxUSE_IMAGE=no'
9448 fi
e6cc62c6 9449
0046ff7c 9450else
e6cc62c6 9451
0046ff7c
VS
9452 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9453 if test "x$LINE" != x ; then
9454 eval "DEFAULT_$LINE"
9455 else
9456 no_cache=1
9457 fi
9458
9459 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9460
e6cc62c6 9461fi;
0046ff7c
VS
9462
9463 eval "$ac_cv_use_image"
9464 if test "$no_cache" != 1; then
9465 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9466 fi
9467
9468 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9469 echo "$as_me:$LINENO: result: yes" >&5
9470echo "${ECHO_T}yes" >&6
0046ff7c 9471 else
e6cc62c6
VS
9472 echo "$as_me:$LINENO: result: no" >&5
9473echo "${ECHO_T}no" >&6
0046ff7c 9474 fi
e6cc62c6 9475
0046ff7c 9476
5005acfe 9477 enablestring=
e6cc62c6
VS
9478 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9479echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9480 no_cache=0
9481 # Check whether --enable-gif or --disable-gif was given.
9482if test "${enable_gif+set}" = set; then
9483 enableval="$enable_gif"
e6cc62c6 9484
10f2d63a
VZ
9485 if test "$enableval" = yes; then
9486 ac_cv_use_gif='wxUSE_GIF=yes'
9487 else
9488 ac_cv_use_gif='wxUSE_GIF=no'
9489 fi
e6cc62c6 9490
10f2d63a 9491else
e6cc62c6 9492
10f2d63a
VZ
9493 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9494 if test "x$LINE" != x ; then
9495 eval "DEFAULT_$LINE"
9496 else
9497 no_cache=1
9498 fi
9499
9500 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9501
e6cc62c6 9502fi;
10f2d63a
VZ
9503
9504 eval "$ac_cv_use_gif"
9505 if test "$no_cache" != 1; then
9506 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9507 fi
9508
9509 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9510 echo "$as_me:$LINENO: result: yes" >&5
9511echo "${ECHO_T}yes" >&6
10f2d63a 9512 else
e6cc62c6
VS
9513 echo "$as_me:$LINENO: result: no" >&5
9514echo "${ECHO_T}no" >&6
10f2d63a 9515 fi
e6cc62c6 9516
10f2d63a 9517
5005acfe 9518 enablestring=
e6cc62c6
VS
9519 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9520echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9521 no_cache=0
9522 # Check whether --enable-pcx or --disable-pcx was given.
9523if test "${enable_pcx+set}" = set; then
9524 enableval="$enable_pcx"
e6cc62c6 9525
10f2d63a
VZ
9526 if test "$enableval" = yes; then
9527 ac_cv_use_pcx='wxUSE_PCX=yes'
9528 else
9529 ac_cv_use_pcx='wxUSE_PCX=no'
9530 fi
e6cc62c6 9531
10f2d63a 9532else
e6cc62c6 9533
10f2d63a
VZ
9534 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9535 if test "x$LINE" != x ; then
9536 eval "DEFAULT_$LINE"
9537 else
9538 no_cache=1
9539 fi
9540
9541 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9542
e6cc62c6 9543fi;
10f2d63a
VZ
9544
9545 eval "$ac_cv_use_pcx"
9546 if test "$no_cache" != 1; then
9547 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9548 fi
9549
9550 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9551 echo "$as_me:$LINENO: result: yes" >&5
9552echo "${ECHO_T}yes" >&6
10f2d63a 9553 else
e6cc62c6
VS
9554 echo "$as_me:$LINENO: result: no" >&5
9555echo "${ECHO_T}no" >&6
10f2d63a 9556 fi
e6cc62c6 9557
10f2d63a 9558
5005acfe 9559 enablestring=
e6cc62c6
VS
9560 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9561echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9562 no_cache=0
9563 # Check whether --enable-iff or --disable-iff was given.
9564if test "${enable_iff+set}" = set; then
9565 enableval="$enable_iff"
e6cc62c6 9566
4b6b4dfc
RR
9567 if test "$enableval" = yes; then
9568 ac_cv_use_iff='wxUSE_IFF=yes'
9569 else
9570 ac_cv_use_iff='wxUSE_IFF=no'
9571 fi
e6cc62c6 9572
4b6b4dfc 9573else
e6cc62c6 9574
4b6b4dfc
RR
9575 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9576 if test "x$LINE" != x ; then
9577 eval "DEFAULT_$LINE"
9578 else
9579 no_cache=1
9580 fi
9581
9582 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9583
e6cc62c6 9584fi;
4b6b4dfc
RR
9585
9586 eval "$ac_cv_use_iff"
9587 if test "$no_cache" != 1; then
9588 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9589 fi
9590
9591 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9592 echo "$as_me:$LINENO: result: yes" >&5
9593echo "${ECHO_T}yes" >&6
4b6b4dfc 9594 else
e6cc62c6
VS
9595 echo "$as_me:$LINENO: result: no" >&5
9596echo "${ECHO_T}no" >&6
4b6b4dfc 9597 fi
e6cc62c6 9598
4b6b4dfc 9599
5005acfe 9600 enablestring=
e6cc62c6
VS
9601 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9602echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9603 no_cache=0
9604 # Check whether --enable-pnm or --disable-pnm was given.
9605if test "${enable_pnm+set}" = set; then
9606 enableval="$enable_pnm"
e6cc62c6 9607
10f2d63a
VZ
9608 if test "$enableval" = yes; then
9609 ac_cv_use_pnm='wxUSE_PNM=yes'
9610 else
9611 ac_cv_use_pnm='wxUSE_PNM=no'
9612 fi
e6cc62c6 9613
10f2d63a 9614else
e6cc62c6 9615
10f2d63a
VZ
9616 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9617 if test "x$LINE" != x ; then
9618 eval "DEFAULT_$LINE"
9619 else
9620 no_cache=1
9621 fi
9622
9623 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9624
e6cc62c6 9625fi;
10f2d63a
VZ
9626
9627 eval "$ac_cv_use_pnm"
9628 if test "$no_cache" != 1; then
9629 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9630 fi
9631
9632 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9633 echo "$as_me:$LINENO: result: yes" >&5
9634echo "${ECHO_T}yes" >&6
10f2d63a 9635 else
e6cc62c6
VS
9636 echo "$as_me:$LINENO: result: no" >&5
9637echo "${ECHO_T}no" >&6
10f2d63a 9638 fi
e6cc62c6 9639
10f2d63a 9640
5005acfe 9641 enablestring=
e6cc62c6
VS
9642 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9643echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9644 no_cache=0
69d27ff7
MB
9645 # Check whether --enable-xpm or --disable-xpm was given.
9646if test "${enable_xpm+set}" = set; then
9647 enableval="$enable_xpm"
e6cc62c6 9648
0046ff7c 9649 if test "$enableval" = yes; then
69d27ff7 9650 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9651 else
69d27ff7 9652 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9653 fi
e6cc62c6 9654
0046ff7c 9655else
e6cc62c6 9656
0046ff7c
VS
9657 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9658 if test "x$LINE" != x ; then
9659 eval "DEFAULT_$LINE"
9660 else
9661 no_cache=1
9662 fi
9663
69d27ff7 9664 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9665
e6cc62c6 9666fi;
0046ff7c 9667
69d27ff7 9668 eval "$ac_cv_use_xpm"
0046ff7c 9669 if test "$no_cache" != 1; then
69d27ff7 9670 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9671 fi
9672
9673 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9674 echo "$as_me:$LINENO: result: yes" >&5
9675echo "${ECHO_T}yes" >&6
0046ff7c 9676 else
e6cc62c6
VS
9677 echo "$as_me:$LINENO: result: no" >&5
9678echo "${ECHO_T}no" >&6
0046ff7c 9679 fi
e6cc62c6 9680
0046ff7c 9681
5005acfe 9682 enablestring=
e6cc62c6
VS
9683 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9684echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9685 no_cache=0
c7206e64
VS
9686 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9687if test "${enable_ico_cur+set}" = set; then
9688 enableval="$enable_ico_cur"
e6cc62c6 9689
658974ae 9690 if test "$enableval" = yes; then
c7206e64 9691 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9692 else
c7206e64 9693 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9694 fi
e6cc62c6 9695
658974ae 9696else
e6cc62c6 9697
658974ae
VS
9698 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9699 if test "x$LINE" != x ; then
9700 eval "DEFAULT_$LINE"
9701 else
9702 no_cache=1
9703 fi
9704
c7206e64 9705 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9706
e6cc62c6 9707fi;
658974ae 9708
c7206e64 9709 eval "$ac_cv_use_ico_cur"
658974ae 9710 if test "$no_cache" != 1; then
c7206e64 9711 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9712 fi
9713
9714 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9715 echo "$as_me:$LINENO: result: yes" >&5
9716echo "${ECHO_T}yes" >&6
658974ae 9717 else
e6cc62c6
VS
9718 echo "$as_me:$LINENO: result: no" >&5
9719echo "${ECHO_T}no" >&6
658974ae 9720 fi
e6cc62c6 9721
658974ae 9722
b12915c1
VZ
9723fi
9724
029b47ad
VS
9725
9726
9727 enablestring=
9728 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9729echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9730 no_cache=0
9731 # Check whether --enable-official_build or --disable-official_build was given.
9732if test "${enable_official_build+set}" = set; then
9733 enableval="$enable_official_build"
9734
9735 if test "$enableval" = yes; then
9736 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9737 else
9738 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9739 fi
9740
9741else
9742
9743 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9744 if test "x$LINE" != x ; then
9745 eval "DEFAULT_$LINE"
9746 else
9747 no_cache=1
9748 fi
9749
9750 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9751
9752fi;
9753
9754 eval "$ac_cv_use_official_build"
9755 if test "$no_cache" != 1; then
9756 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9757 fi
9758
9759 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9760 echo "$as_me:$LINENO: result: yes" >&5
9761echo "${ECHO_T}yes" >&6
9762 else
9763 echo "$as_me:$LINENO: result: no" >&5
9764echo "${ECHO_T}no" >&6
9765 fi
9766
9767# Check whether --enable-vendor or --disable-vendor was given.
9768if test "${enable_vendor+set}" = set; then
9769 enableval="$enable_vendor"
9770 VENDOR="$enableval"
9771fi;
9772if test "x$VENDOR" = "x"; then
9773 VENDOR="custom"
9774fi
9775
d558c907
VS
9776case "${host}" in
9777 *-pc-os2_emx | *-pc-os2-emx )
6969f178 9778 PATH_IFS=';'
d558c907
VS
9779 ;;
9780 *)
9781 PATH_IFS=':'
d558c907
VS
9782 ;;
9783esac
9784
8284b0c5
MB
9785
9786
10f2d63a
VZ
9787 echo "saving argument cache $wx_arg_cache_file"
9788 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9789
8284b0c5 9790
e6cc62c6
VS
9791
9792echo "$as_me:$LINENO: checking for toolkit" >&5
9793echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9794
9795# In Wine, we need to default to MSW, not GTK or MOTIF
9796if test "$wxUSE_WINE" = "yes"; then
9797 DEFAULT_DEFAULT_wxUSE_GTK=0
9798 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9799 DEFAULT_DEFAULT_wxUSE_MSW=1
74500461 9800 wxUSE_SHARED=no
89e6bf6d 9801fi
10f2d63a
VZ
9802
9803if test "$wxUSE_GUI" = "yes"; then
9804
3a922bb4 9805 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9806 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9807echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9808 { (exit 1); exit 1; }; }
3a922bb4 9809 fi
b12915c1 9810
3a922bb4
RL
9811 if test "$TOOLKIT_GIVEN" = 1; then
9812 for toolkit in `echo $ALL_TOOLKITS`; do
9813 var=wxUSE_$toolkit
9814 eval "value=\$${var}"
9815 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9816 done
10f2d63a 9817 else
3a922bb4
RL
9818 for toolkit in `echo $ALL_TOOLKITS`; do
9819 if test "$has_toolkit_in_cache" != 1; then
9820 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9821 else
9822 var=DEFAULT_wxUSE_$toolkit
9823 fi
9824 eval "wxUSE_$toolkit=\$${var}"
9825 done
10f2d63a 9826 fi
10f2d63a 9827
ac0c4cc3
DE
9828 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9829 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9830 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9831
d558c907 9832 case "${host}" in
6fa882bd 9833 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9834 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9835 esac
10f2d63a 9836
3a922bb4
RL
9837 case "$NUM_TOOLKITS" in
9838 1)
9839 ;;
9840 0)
e6cc62c6
VS
9841 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9842echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9843 { (exit 1); exit 1; }; }
3a922bb4
RL
9844 ;;
9845 *)
e6cc62c6
VS
9846 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9847echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9848 { (exit 1); exit 1; }; }
3a922bb4 9849 esac
10f2d63a 9850
3a922bb4
RL
9851 for toolkit in `echo $ALL_TOOLKITS`; do
9852 var=wxUSE_$toolkit
9853 eval "value=\$${var}"
9854 if test "x$value" != x; then
9855 cache_var=CACHE_$toolkit
9856 eval "cache=\$${cache_var}"
9857 if test "$cache" = 1; then
9858 echo "$var=$value" >> ${wx_arg_cache_file}
9859 fi
9860 if test "$value" = 1; then
89fe663f 9861 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
e6cc62c6
VS
9862 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9863echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9864 fi
9865 fi
9866 done
10f2d63a 9867else
9de9b8f0
VZ
9868 if test "x$host_alias" != "x"; then
9869 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9870echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9871 else
9872 echo "$as_me:$LINENO: result: base only" >&5
9873echo "${ECHO_T}base only" >&6
9874 fi
10f2d63a
VZ
9875fi
9876
43d99b6d
VS
9877wants_win32=0
9878doesnt_want_win32=0
17234b26
MB
9879case "${host}" in
9880 *-*-cygwin*)
9881 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9882 wants_win32=1
9883 else
9884 doesnt_want_win32=1
17234b26
MB
9885 fi
9886 ;;
9887 *-*-mingw*)
43d99b6d 9888 wants_win32=1
17234b26
MB
9889 ;;
9890esac
9891
89e6bf6d
VZ
9892if test "$wxUSE_WINE" = "yes"; then
9893 wants_win32=1
9894 CC=winegcc
9895 CXX=wineg++
9896 RESCOMP=wrc
30f2fa6c 9897 LDFLAGS_GUI="-mwindows"
89e6bf6d
VZ
9898fi
9899
43d99b6d 9900if test "$wants_win32" = 1 ; then
17234b26
MB
9901 USE_UNIX=0
9902 USE_WIN32=1
e6cc62c6 9903 cat >>confdefs.h <<\_ACEOF
17234b26 9904#define __WIN32__ 1
e6cc62c6 9905_ACEOF
17234b26 9906
e6cc62c6 9907 cat >>confdefs.h <<\_ACEOF
17234b26 9908#define __WIN95__ 1
e6cc62c6 9909_ACEOF
17234b26 9910
e6cc62c6 9911 cat >>confdefs.h <<\_ACEOF
17234b26 9912#define __WINDOWS__ 1
e6cc62c6 9913_ACEOF
17234b26 9914
e6cc62c6 9915 cat >>confdefs.h <<\_ACEOF
17234b26 9916#define __GNUWIN32__ 1
e6cc62c6 9917_ACEOF
17234b26 9918
e6cc62c6 9919 cat >>confdefs.h <<\_ACEOF
17234b26 9920#define STRICT 1
e6cc62c6 9921_ACEOF
17234b26 9922
e6cc62c6 9923 cat >>confdefs.h <<\_ACEOF
17234b26 9924#define WINVER 0x0400
e6cc62c6 9925_ACEOF
17234b26 9926
43d99b6d
VS
9927fi
9928if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9929 USE_UNIX=1
9930 USE_WIN32=0
9931fi
9932
9933if test "$USE_UNIX" = 1 ; then
9934 wxUSE_UNIX=yes
e6cc62c6 9935 cat >>confdefs.h <<\_ACEOF
17234b26 9936#define __UNIX__ 1
e6cc62c6 9937_ACEOF
17234b26
MB
9938
9939fi
9940
8284b0c5 9941
e6cc62c6 9942cat >confcache <<\_ACEOF
10f2d63a
VZ
9943# This file is a shell script that caches the results of configure
9944# tests run on this system so they can be shared between configure
e6cc62c6
VS
9945# scripts and configure runs, see configure's option --config-cache.
9946# It is not useful on other systems. If it contains results you don't
9947# want to keep, you may remove or edit it.
10f2d63a 9948#
e6cc62c6
VS
9949# config.status only pays attention to the cache file if you give it
9950# the --recheck option to rerun configure.
10f2d63a 9951#
e6cc62c6
VS
9952# `ac_cv_env_foo' variables (set or unset) will be overridden when
9953# loading this file, other *unset* `ac_cv_foo' will be assigned the
9954# following values.
9955
9956_ACEOF
9957
10f2d63a
VZ
9958# The following way of writing the cache mishandles newlines in values,
9959# but we know of no workaround that is simple, portable, and efficient.
9960# So, don't put newlines in cache variables' values.
9961# Ultrix sh set writes to stderr and can't be redirected directly,
9962# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9963{
9964 (set) 2>&1 |
9965 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9966 *ac_space=\ *)
9967 # `set' does not quote correctly, so add quotes (double-quote
9968 # substitution turns \\\\ into \\, and sed turns \\ into \).
9969 sed -n \
789c5f4a
VZ
9970 "s/'/'\\\\''/g;
9971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
9972 ;;
9973 *)
9974 # `set' quotes correctly as required by POSIX, so do not add quotes.
9975 sed -n \
789c5f4a 9976 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
9977 ;;
9978 esac;
9979} |
9980 sed '
9981 t clear
9982 : clear
9983 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9984 t end
9985 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9986 : end' >>confcache
9987if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9988 if test -w $cache_file; then
e6cc62c6
VS
9989 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9990 cat confcache >$cache_file
10f2d63a
VZ
9991 else
9992 echo "not updating unwritable cache $cache_file"
9993 fi
9994fi
9995rm -f confcache
9996
e59890c3 9997if test "$build" != "$host" ; then
9d353d4a 9998 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9999 CC=$host_alias-gcc
10000 CXX=$host_alias-c++
10001 AR=$host_alias-ar
10002 RANLIB=$host_alias-ranlib
10003 DLLTOOL=$host_alias-dlltool
10004 RESCOMP=$host_alias-windres
10005 LD=$host_alias-ld
10006 NM=$host_alias-nm
10007 STRIP=$host_alias-strip
10008 else
e6cc62c6
VS
10009 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
10010echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
10011 { (exit 1); exit 1; }; }
3a922bb4 10012 fi
10f2d63a
VZ
10013fi
10014
ec603395 10015CFLAGS=${CFLAGS:=}
e6cc62c6
VS
10016ac_ext=c
10017ac_cpp='$CPP $CPPFLAGS'
10018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10020ac_compiler_gnu=$ac_cv_c_compiler_gnu
10021if test -n "$ac_tool_prefix"; then
10022 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10023set dummy ${ac_tool_prefix}gcc; ac_word=$2
10024echo "$as_me:$LINENO: checking for $ac_word" >&5
10025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10026if test "${ac_cv_prog_CC+set}" = set; then
10027 echo $ECHO_N "(cached) $ECHO_C" >&6
10028else
10029 if test -n "$CC"; then
10030 ac_cv_prog_CC="$CC" # Let the user override the test.
10031else
10032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10033for as_dir in $PATH
10034do
10035 IFS=$as_save_IFS
10036 test -z "$as_dir" && as_dir=.
10037 for ac_exec_ext in '' $ac_executable_extensions; do
10038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10039 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10041 break 2
10042 fi
10043done
10044done
10045
10046fi
10047fi
10048CC=$ac_cv_prog_CC
10049if test -n "$CC"; then
10050 echo "$as_me:$LINENO: result: $CC" >&5
10051echo "${ECHO_T}$CC" >&6
10052else
10053 echo "$as_me:$LINENO: result: no" >&5
10054echo "${ECHO_T}no" >&6
10055fi
10056
10057fi
10058if test -z "$ac_cv_prog_CC"; then
10059 ac_ct_CC=$CC
10060 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 10061set dummy gcc; ac_word=$2
e6cc62c6
VS
10062echo "$as_me:$LINENO: checking for $ac_word" >&5
10063echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10064if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10065 echo $ECHO_N "(cached) $ECHO_C" >&6
10066else
10067 if test -n "$ac_ct_CC"; then
10068 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10069else
10070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071for as_dir in $PATH
10072do
10073 IFS=$as_save_IFS
10074 test -z "$as_dir" && as_dir=.
10075 for ac_exec_ext in '' $ac_executable_extensions; do
10076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10077 ac_cv_prog_ac_ct_CC="gcc"
10078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10079 break 2
10080 fi
10081done
10082done
10083
10084fi
10085fi
10086ac_ct_CC=$ac_cv_prog_ac_ct_CC
10087if test -n "$ac_ct_CC"; then
10088 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10089echo "${ECHO_T}$ac_ct_CC" >&6
10090else
10091 echo "$as_me:$LINENO: result: no" >&5
10092echo "${ECHO_T}no" >&6
10093fi
10094
10095 CC=$ac_ct_CC
10096else
10097 CC="$ac_cv_prog_CC"
10098fi
10099
10100if test -z "$CC"; then
10101 if test -n "$ac_tool_prefix"; then
10102 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10103set dummy ${ac_tool_prefix}cc; ac_word=$2
10104echo "$as_me:$LINENO: checking for $ac_word" >&5
10105echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10106if test "${ac_cv_prog_CC+set}" = set; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
10108else
10109 if test -n "$CC"; then
10110 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 10111else
e6cc62c6
VS
10112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10113for as_dir in $PATH
10114do
10115 IFS=$as_save_IFS
10116 test -z "$as_dir" && as_dir=.
10117 for ac_exec_ext in '' $ac_executable_extensions; do
10118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10119 ac_cv_prog_CC="${ac_tool_prefix}cc"
10120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10121 break 2
10122 fi
10123done
10124done
10125
10f2d63a 10126fi
6232543b 10127fi
e6cc62c6 10128CC=$ac_cv_prog_CC
6232543b 10129if test -n "$CC"; then
e6cc62c6
VS
10130 echo "$as_me:$LINENO: result: $CC" >&5
10131echo "${ECHO_T}$CC" >&6
10132else
10133 echo "$as_me:$LINENO: result: no" >&5
10134echo "${ECHO_T}no" >&6
10135fi
10136
10137fi
10138if test -z "$ac_cv_prog_CC"; then
10139 ac_ct_CC=$CC
10140 # Extract the first word of "cc", so it can be a program name with args.
10141set dummy cc; ac_word=$2
10142echo "$as_me:$LINENO: checking for $ac_word" >&5
10143echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10144if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10146else
10147 if test -n "$ac_ct_CC"; then
10148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10149else
10150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10151for as_dir in $PATH
10152do
10153 IFS=$as_save_IFS
10154 test -z "$as_dir" && as_dir=.
10155 for ac_exec_ext in '' $ac_executable_extensions; do
10156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10157 ac_cv_prog_ac_ct_CC="cc"
10158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10159 break 2
10160 fi
10161done
10162done
10163
10164fi
10165fi
10166ac_ct_CC=$ac_cv_prog_ac_ct_CC
10167if test -n "$ac_ct_CC"; then
10168 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10169echo "${ECHO_T}$ac_ct_CC" >&6
10170else
10171 echo "$as_me:$LINENO: result: no" >&5
10172echo "${ECHO_T}no" >&6
10173fi
10174
10175 CC=$ac_ct_CC
247f5006 10176else
e6cc62c6 10177 CC="$ac_cv_prog_CC"
247f5006
VZ
10178fi
10179
e6cc62c6 10180fi
5c6fa7d2
RR
10181if test -z "$CC"; then
10182 # Extract the first word of "cc", so it can be a program name with args.
10183set dummy cc; ac_word=$2
e6cc62c6
VS
10184echo "$as_me:$LINENO: checking for $ac_word" >&5
10185echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10186if test "${ac_cv_prog_CC+set}" = set; then
10187 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
10188else
10189 if test -n "$CC"; then
10190 ac_cv_prog_CC="$CC" # Let the user override the test.
10191else
10192 ac_prog_rejected=no
e6cc62c6
VS
10193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194for as_dir in $PATH
10195do
10196 IFS=$as_save_IFS
10197 test -z "$as_dir" && as_dir=.
10198 for ac_exec_ext in '' $ac_executable_extensions; do
10199 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10200 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10201 ac_prog_rejected=yes
10202 continue
10203 fi
10204 ac_cv_prog_CC="cc"
10205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10206 break 2
10207 fi
10208done
10209done
10210
328a083c
RR
10211if test $ac_prog_rejected = yes; then
10212 # We found a bogon in the path, so make sure we never use it.
10213 set dummy $ac_cv_prog_CC
10214 shift
e6cc62c6 10215 if test $# != 0; then
328a083c 10216 # We chose a different compiler from the bogus one.
1e487827
VS
10217 # However, it has the same basename, so the bogon will be chosen
10218 # first if we set CC to just the basename; use the full file name.
10219 shift
e6cc62c6 10220 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 10221 fi
1e487827
VS
10222fi
10223fi
10224fi
e6cc62c6 10225CC=$ac_cv_prog_CC
1e487827 10226if test -n "$CC"; then
e6cc62c6
VS
10227 echo "$as_me:$LINENO: result: $CC" >&5
10228echo "${ECHO_T}$CC" >&6
703e0a69 10229else
e6cc62c6
VS
10230 echo "$as_me:$LINENO: result: no" >&5
10231echo "${ECHO_T}no" >&6
703e0a69 10232fi
1e487827 10233
e6cc62c6
VS
10234fi
10235if test -z "$CC"; then
10236 if test -n "$ac_tool_prefix"; then
10237 for ac_prog in cl
10238 do
10239 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10240set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10241echo "$as_me:$LINENO: checking for $ac_word" >&5
10242echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10243if test "${ac_cv_prog_CC+set}" = set; then
10244 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
10245else
10246 if test -n "$CC"; then
10247 ac_cv_prog_CC="$CC" # Let the user override the test.
10248else
e6cc62c6
VS
10249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10250for as_dir in $PATH
10251do
10252 IFS=$as_save_IFS
10253 test -z "$as_dir" && as_dir=.
10254 for ac_exec_ext in '' $ac_executable_extensions; do
10255 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10256 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10258 break 2
10259 fi
10260done
10261done
10262
f09359cf
VS
10263fi
10264fi
e6cc62c6 10265CC=$ac_cv_prog_CC
f09359cf 10266if test -n "$CC"; then
e6cc62c6
VS
10267 echo "$as_me:$LINENO: result: $CC" >&5
10268echo "${ECHO_T}$CC" >&6
f09359cf 10269else
e6cc62c6
VS
10270 echo "$as_me:$LINENO: result: no" >&5
10271echo "${ECHO_T}no" >&6
5c6fa7d2 10272fi
1e487827 10273
e6cc62c6
VS
10274 test -n "$CC" && break
10275 done
10276fi
10277if test -z "$CC"; then
10278 ac_ct_CC=$CC
10279 for ac_prog in cl
10280do
10281 # Extract the first word of "$ac_prog", so it can be a program name with args.
10282set dummy $ac_prog; ac_word=$2
10283echo "$as_me:$LINENO: checking for $ac_word" >&5
10284echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10285if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10287else
10288 if test -n "$ac_ct_CC"; then
10289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10290else
10291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10292for as_dir in $PATH
10293do
10294 IFS=$as_save_IFS
10295 test -z "$as_dir" && as_dir=.
10296 for ac_exec_ext in '' $ac_executable_extensions; do
10297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10298 ac_cv_prog_ac_ct_CC="$ac_prog"
10299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10300 break 2
10301 fi
10302done
10303done
f09359cf 10304
e6cc62c6
VS
10305fi
10306fi
10307ac_ct_CC=$ac_cv_prog_ac_ct_CC
10308if test -n "$ac_ct_CC"; then
10309 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10310echo "${ECHO_T}$ac_ct_CC" >&6
10311else
10312 echo "$as_me:$LINENO: result: no" >&5
10313echo "${ECHO_T}no" >&6
10314fi
f09359cf 10315
e6cc62c6
VS
10316 test -n "$ac_ct_CC" && break
10317done
247f5006 10318
e6cc62c6
VS
10319 CC=$ac_ct_CC
10320fi
10321
10322fi
10323
10324
10325test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10326See \`config.log' for more details." >&5
10327echo "$as_me: error: no acceptable C compiler found in \$PATH
10328See \`config.log' for more details." >&2;}
10329 { (exit 1); exit 1; }; }
10330
10331# Provide some information about the compiler.
10332echo "$as_me:$LINENO:" \
10333 "checking for C compiler version" >&5
10334ac_compiler=`set X $ac_compile; echo $2`
10335{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10336 (eval $ac_compiler --version </dev/null >&5) 2>&5
10337 ac_status=$?
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); }
10340{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10341 (eval $ac_compiler -v </dev/null >&5) 2>&5
10342 ac_status=$?
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }
10345{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10346 (eval $ac_compiler -V </dev/null >&5) 2>&5
10347 ac_status=$?
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); }
10350
10351cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10352#line $LINENO "configure"
e6cc62c6
VS
10353/* confdefs.h. */
10354_ACEOF
10355cat confdefs.h >>conftest.$ac_ext
10356cat >>conftest.$ac_ext <<_ACEOF
10357/* end confdefs.h. */
10358
10359int
10360main ()
10361{
247f5006 10362
e6cc62c6
VS
10363 ;
10364 return 0;
10365}
10366_ACEOF
10367ac_clean_files_save=$ac_clean_files
10368ac_clean_files="$ac_clean_files a.out a.exe b.out"
10369# Try to create an executable without -o first, disregard a.out.
10370# It will help us diagnose broken compilers, and finding out an intuition
10371# of exeext.
789c5f4a
VZ
10372echo "$as_me:$LINENO: checking for C compiler default output" >&5
10373echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
e6cc62c6
VS
10374ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10375if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10376 (eval $ac_link_default) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; then
10380 # Find the output, starting from the most likely. This scheme is
10381# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10382# resort.
10383
10384# Be careful to initialize this variable, since it used to be cached.
10385# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10386ac_cv_exeext=
10387# b.out is created by i960 compilers.
10388for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10389do
10390 test -f "$ac_file" || continue
10391 case $ac_file in
10392 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
789c5f4a 10393 ;;
e6cc62c6 10394 conftest.$ac_ext )
789c5f4a
VZ
10395 # This is the source file.
10396 ;;
e6cc62c6 10397 [ab].out )
789c5f4a
VZ
10398 # We found the default executable, but exeext='' is most
10399 # certainly right.
10400 break;;
e6cc62c6 10401 *.* )
789c5f4a
VZ
10402 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10403 # FIXME: I believe we export ac_cv_exeext for Libtool,
10404 # but it would be cool to find out if it's true. Does anybody
10405 # maintain Libtool? --akim.
10406 export ac_cv_exeext
10407 break;;
e6cc62c6 10408 * )
789c5f4a 10409 break;;
e6cc62c6
VS
10410 esac
10411done
10412else
10413 echo "$as_me: failed program was:" >&5
10414sed 's/^/| /' conftest.$ac_ext >&5
10415
10416{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10417See \`config.log' for more details." >&5
10418echo "$as_me: error: C compiler cannot create executables
10419See \`config.log' for more details." >&2;}
10420 { (exit 77); exit 77; }; }
10421fi
10422
10423ac_exeext=$ac_cv_exeext
10424echo "$as_me:$LINENO: result: $ac_file" >&5
10425echo "${ECHO_T}$ac_file" >&6
10426
10427# Check the compiler produces executables we can run. If not, either
10428# the compiler is broken, or we cross compile.
10429echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10430echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10431# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10432# If not cross compiling, check that we can run a simple program.
10433if test "$cross_compiling" != yes; then
10434 if { ac_try='./$ac_file'
10435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10436 (eval $ac_try) 2>&5
10437 ac_status=$?
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; }; then
10440 cross_compiling=no
698dcdb6 10441 else
e6cc62c6
VS
10442 if test "$cross_compiling" = maybe; then
10443 cross_compiling=yes
10444 else
10445 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10446If you meant to cross compile, use \`--host'.
10447See \`config.log' for more details." >&5
10448echo "$as_me: error: cannot run C compiled programs.
10449If you meant to cross compile, use \`--host'.
10450See \`config.log' for more details." >&2;}
10451 { (exit 1); exit 1; }; }
10452 fi
698dcdb6 10453 fi
52127426 10454fi
e6cc62c6
VS
10455echo "$as_me:$LINENO: result: yes" >&5
10456echo "${ECHO_T}yes" >&6
10457
10458rm -f a.out a.exe conftest$ac_cv_exeext b.out
10459ac_clean_files=$ac_clean_files_save
10460# Check the compiler produces executables we can run. If not, either
10461# the compiler is broken, or we cross compile.
10462echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10463echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10464echo "$as_me:$LINENO: result: $cross_compiling" >&5
10465echo "${ECHO_T}$cross_compiling" >&6
10466
10467echo "$as_me:$LINENO: checking for suffix of executables" >&5
10468echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10469if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10470 (eval $ac_link) 2>&5
10471 ac_status=$?
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; then
10474 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10475# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10476# work properly (i.e., refer to `conftest.exe'), while it won't with
10477# `rm'.
10478for ac_file in conftest.exe conftest conftest.*; do
10479 test -f "$ac_file" || continue
10480 case $ac_file in
10481 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10482 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
789c5f4a
VZ
10483 export ac_cv_exeext
10484 break;;
e6cc62c6
VS
10485 * ) break;;
10486 esac
10487done
5c6fa7d2 10488else
e6cc62c6
VS
10489 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10490See \`config.log' for more details." >&5
10491echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10492See \`config.log' for more details." >&2;}
10493 { (exit 1); exit 1; }; }
10494fi
10495
10496rm -f conftest$ac_cv_exeext
10497echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10498echo "${ECHO_T}$ac_cv_exeext" >&6
10499
10500rm -f conftest.$ac_ext
10501EXEEXT=$ac_cv_exeext
10502ac_exeext=$EXEEXT
10503echo "$as_me:$LINENO: checking for suffix of object files" >&5
10504echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10505if test "${ac_cv_objext+set}" = set; then
10506 echo $ECHO_N "(cached) $ECHO_C" >&6
10507else
10508 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10509#line $LINENO "configure"
e6cc62c6
VS
10510/* confdefs.h. */
10511_ACEOF
10512cat confdefs.h >>conftest.$ac_ext
10513cat >>conftest.$ac_ext <<_ACEOF
10514/* end confdefs.h. */
10515
10516int
10517main ()
10518{
f09359cf 10519
e6cc62c6
VS
10520 ;
10521 return 0;
10522}
10523_ACEOF
10524rm -f conftest.o conftest.obj
10525if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10526 (eval $ac_compile) 2>&5
10527 ac_status=$?
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); }; then
10530 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10531 case $ac_file in
10532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10533 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10534 break;;
10535 esac
10536done
a0b9e27f 10537else
e6cc62c6
VS
10538 echo "$as_me: failed program was:" >&5
10539sed 's/^/| /' conftest.$ac_ext >&5
10540
10541{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10542See \`config.log' for more details." >&5
10543echo "$as_me: error: cannot compute suffix of object files: cannot compile
10544See \`config.log' for more details." >&2;}
10545 { (exit 1); exit 1; }; }
a0b9e27f 10546fi
247f5006 10547
e6cc62c6
VS
10548rm -f conftest.$ac_cv_objext conftest.$ac_ext
10549fi
10550echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10551echo "${ECHO_T}$ac_cv_objext" >&6
10552OBJEXT=$ac_cv_objext
10553ac_objext=$OBJEXT
10554echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10555echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10556if test "${ac_cv_c_compiler_gnu+set}" = set; then
10557 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10558else
e6cc62c6 10559 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10560#line $LINENO "configure"
e6cc62c6
VS
10561/* confdefs.h. */
10562_ACEOF
10563cat confdefs.h >>conftest.$ac_ext
10564cat >>conftest.$ac_ext <<_ACEOF
10565/* end confdefs.h. */
10566
10567int
10568main ()
10569{
10570#ifndef __GNUC__
10571 choke me
10572#endif
10573
10574 ;
10575 return 0;
10576}
10577_ACEOF
10578rm -f conftest.$ac_objext
10579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 10580 (eval $ac_compile) 2>&5
e6cc62c6
VS
10581 ac_status=$?
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } &&
789c5f4a 10584 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10586 (eval $ac_try) 2>&5
10587 ac_status=$?
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; }; then
10590 ac_compiler_gnu=yes
10591else
10592 echo "$as_me: failed program was:" >&5
10593sed 's/^/| /' conftest.$ac_ext >&5
10594
10595ac_compiler_gnu=no
10596fi
789c5f4a 10597rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10598ac_cv_c_compiler_gnu=$ac_compiler_gnu
10599
10600fi
10601echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10602echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10603GCC=`test $ac_compiler_gnu = yes && echo yes`
10604ac_test_CFLAGS=${CFLAGS+set}
10605ac_save_CFLAGS=$CFLAGS
10606CFLAGS="-g"
10607echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10608echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10609if test "${ac_cv_prog_cc_g+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10611else
10612 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10613#line $LINENO "configure"
e6cc62c6
VS
10614/* confdefs.h. */
10615_ACEOF
10616cat confdefs.h >>conftest.$ac_ext
10617cat >>conftest.$ac_ext <<_ACEOF
10618/* end confdefs.h. */
10619
10620int
10621main ()
10622{
10623
10624 ;
10625 return 0;
10626}
10627_ACEOF
10628rm -f conftest.$ac_objext
10629if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 10630 (eval $ac_compile) 2>&5
e6cc62c6
VS
10631 ac_status=$?
10632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10633 (exit $ac_status); } &&
789c5f4a 10634 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10636 (eval $ac_try) 2>&5
10637 ac_status=$?
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); }; }; then
10f2d63a
VZ
10640 ac_cv_prog_cc_g=yes
10641else
e6cc62c6
VS
10642 echo "$as_me: failed program was:" >&5
10643sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10644
e6cc62c6 10645ac_cv_prog_cc_g=no
10f2d63a 10646fi
789c5f4a 10647rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10648fi
10649echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10650echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10651if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10652 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10653elif test $ac_cv_prog_cc_g = yes; then
10654 if test "$GCC" = yes; then
10f2d63a
VZ
10655 CFLAGS="-g -O2"
10656 else
f09359cf 10657 CFLAGS="-g"
10f2d63a 10658 fi
5c0a20c3 10659else
f09359cf
VS
10660 if test "$GCC" = yes; then
10661 CFLAGS="-O2"
10662 else
10663 CFLAGS=
10664 fi
10f2d63a 10665fi
e6cc62c6
VS
10666echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10667echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10668if test "${ac_cv_prog_cc_stdc+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10670else
10671 ac_cv_prog_cc_stdc=no
10672ac_save_CC=$CC
10673cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10674#line $LINENO "configure"
e6cc62c6
VS
10675/* confdefs.h. */
10676_ACEOF
10677cat confdefs.h >>conftest.$ac_ext
10678cat >>conftest.$ac_ext <<_ACEOF
10679/* end confdefs.h. */
10680#include <stdarg.h>
10681#include <stdio.h>
10682#include <sys/types.h>
10683#include <sys/stat.h>
10684/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10685struct buf { int x; };
10686FILE * (*rcsopen) (struct buf *, struct stat *, int);
10687static char *e (p, i)
10688 char **p;
10689 int i;
10690{
10691 return p[i];
10692}
10693static char *f (char * (*g) (char **, int), char **p, ...)
10694{
10695 char *s;
10696 va_list v;
10697 va_start (v,p);
10698 s = g (p, va_arg (v,int));
10699 va_end (v);
10700 return s;
10701}
10702int test (int i, double x);
10703struct s1 {int (*f) (int a);};
10704struct s2 {int (*f) (double a);};
10705int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10706int argc;
10707char **argv;
10708int
10709main ()
10710{
10711return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10712 ;
10713 return 0;
10714}
10715_ACEOF
10716# Don't try gcc -ansi; that turns off useful extensions and
10717# breaks some systems' header files.
10718# AIX -qlanglvl=ansi
10719# Ultrix and OSF/1 -std1
10720# HP-UX 10.20 and later -Ae
10721# HP-UX older versions -Aa -D_HPUX_SOURCE
10722# SVR4 -Xc -D__EXTENSIONS__
10723for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10724do
10725 CC="$ac_save_CC $ac_arg"
10726 rm -f conftest.$ac_objext
10727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 10728 (eval $ac_compile) 2>&5
e6cc62c6
VS
10729 ac_status=$?
10730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } &&
789c5f4a 10732 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10734 (eval $ac_try) 2>&5
10735 ac_status=$?
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; }; then
10738 ac_cv_prog_cc_stdc=$ac_arg
10739break
10740else
10741 echo "$as_me: failed program was:" >&5
10742sed 's/^/| /' conftest.$ac_ext >&5
10743
10744fi
789c5f4a 10745rm -f conftest.$ac_objext
e6cc62c6
VS
10746done
10747rm -f conftest.$ac_ext conftest.$ac_objext
10748CC=$ac_save_CC
10749
10750fi
10751
10752case "x$ac_cv_prog_cc_stdc" in
10753 x|xno)
10754 echo "$as_me:$LINENO: result: none needed" >&5
10755echo "${ECHO_T}none needed" >&6 ;;
10756 *)
10757 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10758echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10759 CC="$CC $ac_cv_prog_cc_stdc" ;;
10760esac
10761
10762# Some people use a C++ compiler to compile C. Since we use `exit',
10763# in C++ we need to declare it. In case someone uses the same compiler
10764# for both compiling C and C++ we need to have the C++ compiler decide
10765# the declaration of exit, since it's the most demanding environment.
10766cat >conftest.$ac_ext <<_ACEOF
10767#ifndef __cplusplus
10768 choke me
10769#endif
10770_ACEOF
10771rm -f conftest.$ac_objext
10772if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 10773 (eval $ac_compile) 2>&5
e6cc62c6
VS
10774 ac_status=$?
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } &&
789c5f4a 10777 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10779 (eval $ac_try) 2>&5
10780 ac_status=$?
10781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782 (exit $ac_status); }; }; then
10783 for ac_declaration in \
ecfd48ca 10784 '' \
e6cc62c6
VS
10785 'extern "C" void std::exit (int) throw (); using std::exit;' \
10786 'extern "C" void std::exit (int); using std::exit;' \
10787 'extern "C" void exit (int) throw ();' \
10788 'extern "C" void exit (int);' \
10789 'void exit (int);'
10790do
10791 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10792#line $LINENO "configure"
e6cc62c6
VS
10793/* confdefs.h. */
10794_ACEOF
10795cat confdefs.h >>conftest.$ac_ext
10796cat >>conftest.$ac_ext <<_ACEOF
10797/* end confdefs.h. */
5a60a58a 10798$ac_declaration
ecfd48ca 10799#include <stdlib.h>
e6cc62c6
VS
10800int
10801main ()
10802{
10803exit (42);
10804 ;
10805 return 0;
10806}
10807_ACEOF
10808rm -f conftest.$ac_objext
10809if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 10810 (eval $ac_compile) 2>&5
e6cc62c6
VS
10811 ac_status=$?
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } &&
789c5f4a 10814 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816 (eval $ac_try) 2>&5
10817 ac_status=$?
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; }; then
10820 :
10821else
10822 echo "$as_me: failed program was:" >&5
10823sed 's/^/| /' conftest.$ac_ext >&5
10824
10825continue
10826fi
789c5f4a 10827rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 10828 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10829#line $LINENO "configure"
e6cc62c6
VS
10830/* confdefs.h. */
10831_ACEOF
10832cat confdefs.h >>conftest.$ac_ext
10833cat >>conftest.$ac_ext <<_ACEOF
10834/* end confdefs.h. */
10835$ac_declaration
10836int
10837main ()
10838{
10839exit (42);
10840 ;
10841 return 0;
10842}
10843_ACEOF
10844rm -f conftest.$ac_objext
10845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 10846 (eval $ac_compile) 2>&5
e6cc62c6
VS
10847 ac_status=$?
10848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10849 (exit $ac_status); } &&
789c5f4a 10850 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10852 (eval $ac_try) 2>&5
10853 ac_status=$?
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); }; }; then
10856 break
10857else
10858 echo "$as_me: failed program was:" >&5
10859sed 's/^/| /' conftest.$ac_ext >&5
10860
10861fi
789c5f4a 10862rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10863done
10864rm -f conftest*
10865if test -n "$ac_declaration"; then
10866 echo '#ifdef __cplusplus' >>confdefs.h
10867 echo $ac_declaration >>confdefs.h
10868 echo '#endif' >>confdefs.h
10869fi
10870
10871else
10872 echo "$as_me: failed program was:" >&5
10873sed 's/^/| /' conftest.$ac_ext >&5
10874
10875fi
789c5f4a 10876rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10877ac_ext=c
10878ac_cpp='$CPP $CPPFLAGS'
10879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10881ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10882
10883
e6cc62c6
VS
10884
10885ac_ext=c
10886ac_cpp='$CPP $CPPFLAGS'
10887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10889ac_compiler_gnu=$ac_cv_c_compiler_gnu
10890echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10891echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10892# On Suns, sometimes $CPP names a directory.
10893if test -n "$CPP" && test -d "$CPP"; then
10894 CPP=
10895fi
10896if test -z "$CPP"; then
e6cc62c6
VS
10897 if test "${ac_cv_prog_CPP+set}" = set; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
10899else
10900 # Double quotes because CPP needs to be expanded
10901 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10902 do
10903 ac_preproc_ok=false
10904for ac_c_preproc_warn_flag in '' yes
10905do
10906 # Use a header file that comes with gcc, so configuring glibc
10907 # with a fresh cross-compiler works.
10908 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10909 # <limits.h> exists even on freestanding compilers.
10f2d63a 10910 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10911 # not just through cpp. "Syntax error" is here to catch this case.
10912 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10913#line $LINENO "configure"
e6cc62c6
VS
10914/* confdefs.h. */
10915_ACEOF
10916cat confdefs.h >>conftest.$ac_ext
10917cat >>conftest.$ac_ext <<_ACEOF
10918/* end confdefs.h. */
10919#ifdef __STDC__
10920# include <limits.h>
10921#else
10922# include <assert.h>
10923#endif
789c5f4a 10924 Syntax error
e6cc62c6
VS
10925_ACEOF
10926if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10928 ac_status=$?
10929 grep -v '^ *+' conftest.er1 >conftest.err
10930 rm -f conftest.er1
10931 cat conftest.err >&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } >/dev/null; then
10934 if test -s conftest.err; then
10935 ac_cpp_err=$ac_c_preproc_warn_flag
10936 else
10937 ac_cpp_err=
10938 fi
10f2d63a 10939else
e6cc62c6
VS
10940 ac_cpp_err=yes
10941fi
10942if test -z "$ac_cpp_err"; then
a0b9e27f 10943 :
247f5006 10944else
e6cc62c6
VS
10945 echo "$as_me: failed program was:" >&5
10946sed 's/^/| /' conftest.$ac_ext >&5
10947
10948 # Broken: fails on valid input.
10949continue
10950fi
10951rm -f conftest.err conftest.$ac_ext
10952
10953 # OK, works on sane cases. Now check whether non-existent headers
10954 # can be detected and how.
10955 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 10956#line $LINENO "configure"
e6cc62c6
VS
10957/* confdefs.h. */
10958_ACEOF
10959cat confdefs.h >>conftest.$ac_ext
10960cat >>conftest.$ac_ext <<_ACEOF
10961/* end confdefs.h. */
10962#include <ac_nonexistent.h>
10963_ACEOF
10964if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10966 ac_status=$?
10967 grep -v '^ *+' conftest.er1 >conftest.err
10968 rm -f conftest.er1
10969 cat conftest.err >&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); } >/dev/null; then
10972 if test -s conftest.err; then
10973 ac_cpp_err=$ac_c_preproc_warn_flag
10974 else
10975 ac_cpp_err=
10976 fi
10f2d63a 10977else
e6cc62c6 10978 ac_cpp_err=yes
579d8138 10979fi
e6cc62c6
VS
10980if test -z "$ac_cpp_err"; then
10981 # Broken: success on invalid input.
10982continue
10983else
10984 echo "$as_me: failed program was:" >&5
10985sed 's/^/| /' conftest.$ac_ext >&5
10986
10987 # Passes both tests.
10988ac_preproc_ok=:
10989break
52127426 10990fi
e6cc62c6
VS
10991rm -f conftest.err conftest.$ac_ext
10992
10993done
10994# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10995rm -f conftest.err conftest.$ac_ext
10996if $ac_preproc_ok; then
10997 break
8284b0c5 10998fi
e6cc62c6
VS
10999
11000 done
11001 ac_cv_prog_CPP=$CPP
11002
11003fi
11004 CPP=$ac_cv_prog_CPP
11005else
11006 ac_cv_prog_CPP=$CPP
11007fi
11008echo "$as_me:$LINENO: result: $CPP" >&5
11009echo "${ECHO_T}$CPP" >&6
11010ac_preproc_ok=false
11011for ac_c_preproc_warn_flag in '' yes
11012do
11013 # Use a header file that comes with gcc, so configuring glibc
11014 # with a fresh cross-compiler works.
11015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11016 # <limits.h> exists even on freestanding compilers.
11017 # On the NeXT, cc -E runs the code through the compiler's parser,
11018 # not just through cpp. "Syntax error" is here to catch this case.
11019 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11020#line $LINENO "configure"
e6cc62c6
VS
11021/* confdefs.h. */
11022_ACEOF
11023cat confdefs.h >>conftest.$ac_ext
11024cat >>conftest.$ac_ext <<_ACEOF
11025/* end confdefs.h. */
11026#ifdef __STDC__
11027# include <limits.h>
11028#else
11029# include <assert.h>
11030#endif
789c5f4a 11031 Syntax error
e6cc62c6
VS
11032_ACEOF
11033if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11035 ac_status=$?
11036 grep -v '^ *+' conftest.er1 >conftest.err
11037 rm -f conftest.er1
11038 cat conftest.err >&5
11039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11040 (exit $ac_status); } >/dev/null; then
11041 if test -s conftest.err; then
11042 ac_cpp_err=$ac_c_preproc_warn_flag
11043 else
11044 ac_cpp_err=
11045 fi
11046else
11047 ac_cpp_err=yes
11048fi
11049if test -z "$ac_cpp_err"; then
11050 :
11051else
11052 echo "$as_me: failed program was:" >&5
11053sed 's/^/| /' conftest.$ac_ext >&5
11054
11055 # Broken: fails on valid input.
11056continue
11057fi
11058rm -f conftest.err conftest.$ac_ext
11059
11060 # OK, works on sane cases. Now check whether non-existent headers
11061 # can be detected and how.
11062 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11063#line $LINENO "configure"
e6cc62c6
VS
11064/* confdefs.h. */
11065_ACEOF
11066cat confdefs.h >>conftest.$ac_ext
11067cat >>conftest.$ac_ext <<_ACEOF
11068/* end confdefs.h. */
11069#include <ac_nonexistent.h>
11070_ACEOF
11071if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11073 ac_status=$?
11074 grep -v '^ *+' conftest.er1 >conftest.err
11075 rm -f conftest.er1
11076 cat conftest.err >&5
11077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } >/dev/null; then
11079 if test -s conftest.err; then
11080 ac_cpp_err=$ac_c_preproc_warn_flag
11081 else
11082 ac_cpp_err=
11083 fi
11084else
11085 ac_cpp_err=yes
11086fi
11087if test -z "$ac_cpp_err"; then
11088 # Broken: success on invalid input.
11089continue
11090else
11091 echo "$as_me: failed program was:" >&5
11092sed 's/^/| /' conftest.$ac_ext >&5
11093
11094 # Passes both tests.
11095ac_preproc_ok=:
11096break
a0b9e27f 11097fi
e6cc62c6
VS
11098rm -f conftest.err conftest.$ac_ext
11099
11100done
11101# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11102rm -f conftest.err conftest.$ac_ext
11103if $ac_preproc_ok; then
11104 :
11105else
11106 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11107See \`config.log' for more details." >&5
11108echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11109See \`config.log' for more details." >&2;}
11110 { (exit 1); exit 1; }; }
11111fi
11112
11113ac_ext=c
11114ac_cpp='$CPP $CPPFLAGS'
11115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11117ac_compiler_gnu=$ac_cv_c_compiler_gnu
11118
11119
11120echo "$as_me:$LINENO: checking for egrep" >&5
11121echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11122if test "${ac_cv_prog_egrep+set}" = set; then
11123 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 11124else
e6cc62c6
VS
11125 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11126 then ac_cv_prog_egrep='grep -E'
11127 else ac_cv_prog_egrep='egrep'
11128 fi
10f2d63a 11129fi
e6cc62c6
VS
11130echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11131echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11132 EGREP=$ac_cv_prog_egrep
11133
10f2d63a 11134
e6cc62c6
VS
11135if test $ac_cv_c_compiler_gnu = yes; then
11136 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11137echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11138if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11140else
11141 ac_pattern="Autoconf.*'x'"
e6cc62c6 11142 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11143#line $LINENO "configure"
e6cc62c6
VS
11144/* confdefs.h. */
11145_ACEOF
11146cat confdefs.h >>conftest.$ac_ext
11147cat >>conftest.$ac_ext <<_ACEOF
11148/* end confdefs.h. */
10f2d63a
VZ
11149#include <sgtty.h>
11150Autoconf TIOCGETP
e6cc62c6 11151_ACEOF
10f2d63a 11152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 11153 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11154 ac_cv_prog_gcc_traditional=yes
11155else
10f2d63a
VZ
11156 ac_cv_prog_gcc_traditional=no
11157fi
11158rm -f conftest*
11159
8284b0c5 11160
10f2d63a 11161 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6 11162 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11163#line $LINENO "configure"
e6cc62c6
VS
11164/* confdefs.h. */
11165_ACEOF
11166cat confdefs.h >>conftest.$ac_ext
11167cat >>conftest.$ac_ext <<_ACEOF
11168/* end confdefs.h. */
10f2d63a
VZ
11169#include <termio.h>
11170Autoconf TCGETA
e6cc62c6 11171_ACEOF
10f2d63a 11172if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 11173 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11174 ac_cv_prog_gcc_traditional=yes
11175fi
11176rm -f conftest*
11177
11178 fi
11179fi
e6cc62c6
VS
11180echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11181echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
11182 if test $ac_cv_prog_gcc_traditional = yes; then
11183 CC="$CC -traditional"
11184 fi
11185fi
11186
8284b0c5
MB
11187
11188
e6cc62c6
VS
11189
11190ac_ext=cc
1e487827 11191ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
11192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 11195
698dcdb6 11196
ec603395 11197CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
11198ac_ext=cc
11199ac_cpp='$CXXCPP $CPPFLAGS'
11200ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11201ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11202ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11203if test -n "$ac_tool_prefix"; then
11204 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11205 do
11206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11207set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11208echo "$as_me:$LINENO: checking for $ac_word" >&5
11209echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11210if test "${ac_cv_prog_CXX+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11212else
11213 if test -n "$CXX"; then
11214 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11215else
e6cc62c6
VS
11216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11217for as_dir in $PATH
11218do
11219 IFS=$as_save_IFS
11220 test -z "$as_dir" && as_dir=.
11221 for ac_exec_ext in '' $ac_executable_extensions; do
11222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11223 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11225 break 2
11226 fi
11227done
11228done
11229
10f2d63a
VZ
11230fi
11231fi
e6cc62c6 11232CXX=$ac_cv_prog_CXX
10f2d63a 11233if test -n "$CXX"; then
e6cc62c6
VS
11234 echo "$as_me:$LINENO: result: $CXX" >&5
11235echo "${ECHO_T}$CXX" >&6
10f2d63a 11236else
e6cc62c6
VS
11237 echo "$as_me:$LINENO: result: no" >&5
11238echo "${ECHO_T}no" >&6
10f2d63a
VZ
11239fi
11240
e6cc62c6
VS
11241 test -n "$CXX" && break
11242 done
11243fi
11244if test -z "$CXX"; then
11245 ac_ct_CXX=$CXX
11246 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11247do
11248 # Extract the first word of "$ac_prog", so it can be a program name with args.
11249set dummy $ac_prog; ac_word=$2
11250echo "$as_me:$LINENO: checking for $ac_word" >&5
11251echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11252if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11254else
11255 if test -n "$ac_ct_CXX"; then
11256 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11257else
11258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11259for as_dir in $PATH
11260do
11261 IFS=$as_save_IFS
11262 test -z "$as_dir" && as_dir=.
11263 for ac_exec_ext in '' $ac_executable_extensions; do
11264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11265 ac_cv_prog_ac_ct_CXX="$ac_prog"
11266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11267 break 2
11268 fi
11269done
10f2d63a 11270done
a0b9e27f 11271
8284b0c5 11272fi
a0b9e27f 11273fi
e6cc62c6
VS
11274ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11275if test -n "$ac_ct_CXX"; then
11276 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11277echo "${ECHO_T}$ac_ct_CXX" >&6
11278else
11279 echo "$as_me:$LINENO: result: no" >&5
11280echo "${ECHO_T}no" >&6
a0b9e27f 11281fi
10f2d63a 11282
e6cc62c6
VS
11283 test -n "$ac_ct_CXX" && break
11284done
11285test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11286
11287 CXX=$ac_ct_CXX
11288fi
11289
11290
11291# Provide some information about the compiler.
11292echo "$as_me:$LINENO:" \
11293 "checking for C++ compiler version" >&5
11294ac_compiler=`set X $ac_compile; echo $2`
11295{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11296 (eval $ac_compiler --version </dev/null >&5) 2>&5
11297 ac_status=$?
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); }
11300{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11301 (eval $ac_compiler -v </dev/null >&5) 2>&5
11302 ac_status=$?
11303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11304 (exit $ac_status); }
11305{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11306 (eval $ac_compiler -V </dev/null >&5) 2>&5
11307 ac_status=$?
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); }
11310
11311echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11312echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11313if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11315else
11316 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11317#line $LINENO "configure"
e6cc62c6
VS
11318/* confdefs.h. */
11319_ACEOF
11320cat confdefs.h >>conftest.$ac_ext
11321cat >>conftest.$ac_ext <<_ACEOF
11322/* end confdefs.h. */
11323
11324int
11325main ()
11326{
11327#ifndef __GNUC__
11328 choke me
11329#endif
10f2d63a 11330
e6cc62c6
VS
11331 ;
11332 return 0;
11333}
11334_ACEOF
11335rm -f conftest.$ac_objext
11336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 11337 (eval $ac_compile) 2>&5
e6cc62c6
VS
11338 ac_status=$?
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } &&
789c5f4a 11341 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11343 (eval $ac_try) 2>&5
11344 ac_status=$?
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); }; }; then
11347 ac_compiler_gnu=yes
11348else
11349 echo "$as_me: failed program was:" >&5
11350sed 's/^/| /' conftest.$ac_ext >&5
11351
11352ac_compiler_gnu=no
11353fi
789c5f4a 11354rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11355ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11356
11357fi
11358echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11359echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11360GXX=`test $ac_compiler_gnu = yes && echo yes`
11361ac_test_CXXFLAGS=${CXXFLAGS+set}
11362ac_save_CXXFLAGS=$CXXFLAGS
11363CXXFLAGS="-g"
11364echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11365echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11366if test "${ac_cv_prog_cxx_g+set}" = set; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11368else
11369 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11370#line $LINENO "configure"
e6cc62c6
VS
11371/* confdefs.h. */
11372_ACEOF
11373cat confdefs.h >>conftest.$ac_ext
11374cat >>conftest.$ac_ext <<_ACEOF
11375/* end confdefs.h. */
11376
11377int
11378main ()
11379{
f09359cf 11380
e6cc62c6
VS
11381 ;
11382 return 0;
11383}
11384_ACEOF
11385rm -f conftest.$ac_objext
11386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 11387 (eval $ac_compile) 2>&5
e6cc62c6
VS
11388 ac_status=$?
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); } &&
789c5f4a 11391 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11393 (eval $ac_try) 2>&5
11394 ac_status=$?
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); }; }; then
10f2d63a
VZ
11397 ac_cv_prog_cxx_g=yes
11398else
e6cc62c6
VS
11399 echo "$as_me: failed program was:" >&5
11400sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11401
e6cc62c6 11402ac_cv_prog_cxx_g=no
10f2d63a 11403fi
789c5f4a 11404rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11405fi
11406echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11407echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11408if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11409 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11410elif test $ac_cv_prog_cxx_g = yes; then
11411 if test "$GXX" = yes; then
10f2d63a
VZ
11412 CXXFLAGS="-g -O2"
11413 else
f09359cf 11414 CXXFLAGS="-g"
10f2d63a 11415 fi
5c0a20c3 11416else
f09359cf
VS
11417 if test "$GXX" = yes; then
11418 CXXFLAGS="-O2"
11419 else
11420 CXXFLAGS=
11421 fi
10f2d63a 11422fi
e6cc62c6 11423for ac_declaration in \
ecfd48ca 11424 '' \
e6cc62c6
VS
11425 'extern "C" void std::exit (int) throw (); using std::exit;' \
11426 'extern "C" void std::exit (int); using std::exit;' \
11427 'extern "C" void exit (int) throw ();' \
11428 'extern "C" void exit (int);' \
11429 'void exit (int);'
11430do
11431 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11432#line $LINENO "configure"
e6cc62c6
VS
11433/* confdefs.h. */
11434_ACEOF
11435cat confdefs.h >>conftest.$ac_ext
11436cat >>conftest.$ac_ext <<_ACEOF
11437/* end confdefs.h. */
5a60a58a 11438$ac_declaration
ecfd48ca 11439#include <stdlib.h>
e6cc62c6
VS
11440int
11441main ()
11442{
11443exit (42);
11444 ;
11445 return 0;
11446}
11447_ACEOF
11448rm -f conftest.$ac_objext
11449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 11450 (eval $ac_compile) 2>&5
e6cc62c6
VS
11451 ac_status=$?
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } &&
789c5f4a 11454 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11456 (eval $ac_try) 2>&5
11457 ac_status=$?
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); }; }; then
11460 :
11461else
11462 echo "$as_me: failed program was:" >&5
11463sed 's/^/| /' conftest.$ac_ext >&5
11464
11465continue
11466fi
789c5f4a 11467rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 11468 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11469#line $LINENO "configure"
e6cc62c6
VS
11470/* confdefs.h. */
11471_ACEOF
11472cat confdefs.h >>conftest.$ac_ext
11473cat >>conftest.$ac_ext <<_ACEOF
11474/* end confdefs.h. */
11475$ac_declaration
11476int
11477main ()
11478{
11479exit (42);
11480 ;
11481 return 0;
11482}
11483_ACEOF
11484rm -f conftest.$ac_objext
11485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 11486 (eval $ac_compile) 2>&5
e6cc62c6
VS
11487 ac_status=$?
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } &&
789c5f4a 11490 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11492 (eval $ac_try) 2>&5
11493 ac_status=$?
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); }; }; then
11496 break
11497else
11498 echo "$as_me: failed program was:" >&5
11499sed 's/^/| /' conftest.$ac_ext >&5
11500
11501fi
789c5f4a 11502rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11503done
11504rm -f conftest*
11505if test -n "$ac_declaration"; then
11506 echo '#ifdef __cplusplus' >>confdefs.h
11507 echo $ac_declaration >>confdefs.h
11508 echo '#endif' >>confdefs.h
11509fi
11510
11511ac_ext=cc
11512ac_cpp='$CXXCPP $CPPFLAGS'
11513ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11514ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11515ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11516
11517
10f2d63a 11518ac_ext=c
10f2d63a 11519ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11522ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11523
11524
e6cc62c6
VS
11525if test -n "$ac_tool_prefix"; then
11526 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11527set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11528echo "$as_me:$LINENO: checking for $ac_word" >&5
11529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11530if test "${ac_cv_prog_RANLIB+set}" = set; then
11531 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11532else
11533 if test -n "$RANLIB"; then
11534 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11535else
e6cc62c6
VS
11536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11537for as_dir in $PATH
11538do
11539 IFS=$as_save_IFS
11540 test -z "$as_dir" && as_dir=.
11541 for ac_exec_ext in '' $ac_executable_extensions; do
11542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11543 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11545 break 2
11546 fi
11547done
11548done
11549
10f2d63a
VZ
11550fi
11551fi
e6cc62c6 11552RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11553if test -n "$RANLIB"; then
e6cc62c6
VS
11554 echo "$as_me:$LINENO: result: $RANLIB" >&5
11555echo "${ECHO_T}$RANLIB" >&6
11556else
11557 echo "$as_me:$LINENO: result: no" >&5
11558echo "${ECHO_T}no" >&6
11559fi
11560
11561fi
11562if test -z "$ac_cv_prog_RANLIB"; then
11563 ac_ct_RANLIB=$RANLIB
11564 # Extract the first word of "ranlib", so it can be a program name with args.
11565set dummy ranlib; ac_word=$2
11566echo "$as_me:$LINENO: checking for $ac_word" >&5
11567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11568if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11570else
e6cc62c6
VS
11571 if test -n "$ac_ct_RANLIB"; then
11572 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11573else
11574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11575for as_dir in $PATH
11576do
11577 IFS=$as_save_IFS
11578 test -z "$as_dir" && as_dir=.
11579 for ac_exec_ext in '' $ac_executable_extensions; do
11580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11581 ac_cv_prog_ac_ct_RANLIB="ranlib"
11582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11583 break 2
11584 fi
11585done
11586done
11587
11588 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11589fi
11590fi
11591ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11592if test -n "$ac_ct_RANLIB"; then
11593 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11594echo "${ECHO_T}$ac_ct_RANLIB" >&6
11595else
11596 echo "$as_me:$LINENO: result: no" >&5
11597echo "${ECHO_T}no" >&6
11598fi
11599
11600 RANLIB=$ac_ct_RANLIB
11601else
11602 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11603fi
11604
10f2d63a
VZ
11605
11606# Extract the first word of "ar", so it can be a program name with args.
11607set dummy ar; ac_word=$2
e6cc62c6
VS
11608echo "$as_me:$LINENO: checking for $ac_word" >&5
11609echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11610if test "${ac_cv_prog_AR+set}" = set; then
11611 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11612else
11613 if test -n "$AR"; then
11614 ac_cv_prog_AR="$AR" # Let the user override the test.
11615else
e6cc62c6
VS
11616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11617for as_dir in $PATH
11618do
11619 IFS=$as_save_IFS
11620 test -z "$as_dir" && as_dir=.
11621 for ac_exec_ext in '' $ac_executable_extensions; do
11622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11623 ac_cv_prog_AR="ar"
11624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11625 break 2
11626 fi
11627done
11628done
11629
10f2d63a
VZ
11630fi
11631fi
e6cc62c6 11632AR=$ac_cv_prog_AR
10f2d63a 11633if test -n "$AR"; then
e6cc62c6
VS
11634 echo "$as_me:$LINENO: result: $AR" >&5
11635echo "${ECHO_T}$AR" >&6
10f2d63a 11636else
e6cc62c6
VS
11637 echo "$as_me:$LINENO: result: no" >&5
11638echo "${ECHO_T}no" >&6
10f2d63a
VZ
11639fi
11640
911740e7
VS
11641if test "x$AR" = "x" ; then
11642 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11643echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11644 { (exit 1); exit 1; }; }
11645fi
8284b0c5 11646
6054113a 11647# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11648# so one script is as good as another. But avoid the broken or
11649# incompatible versions:
11650# SysV /etc/install, /usr/sbin/install
11651# SunOS /usr/etc/install
11652# IRIX /sbin/install
11653# AIX /bin/install
e6cc62c6 11654# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11655# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11656# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11657# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
11658# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11659echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11660echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11661if test -z "$INSTALL"; then
e6cc62c6
VS
11662if test "${ac_cv_path_install+set}" = set; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11664else
11665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11666for as_dir in $PATH
11667do
11668 IFS=$as_save_IFS
11669 test -z "$as_dir" && as_dir=.
11670 # Account for people who put trailing slashes in PATH elements.
11671case $as_dir/ in
11672 ./ | .// | /cC/* | \
11673 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11674 /usr/ucb/* ) ;;
11675 *)
11676 # OSF1 and SCO ODT 3.0 have their own names for install.
11677 # Don't use installbsd from OSF since it installs stuff as root
11678 # by default.
11679 for ac_prog in ginstall scoinst install; do
11680 for ac_exec_ext in '' $ac_executable_extensions; do
789c5f4a
VZ
11681 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11682 if test $ac_prog = install &&
11683 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11684 # AIX install. It has an incompatible calling convention.
11685 :
11686 elif test $ac_prog = install &&
11687 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11688 # program-specific install script used by HP pwplus--don't use.
11689 :
11690 else
11691 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11692 break 3
11693 fi
11694 fi
10f2d63a 11695 done
e6cc62c6
VS
11696 done
11697 ;;
11698esac
11699done
11700
10f2d63a
VZ
11701
11702fi
11703 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11704 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11705 else
11706 # As a last resort, use the slow shell script. We don't cache a
11707 # path for INSTALL within a source directory, because that will
11708 # break other packages using the cache if that directory is
11709 # removed, or if the path is relative.
e6cc62c6 11710 INSTALL=$ac_install_sh
10f2d63a
VZ
11711 fi
11712fi
e6cc62c6
VS
11713echo "$as_me:$LINENO: result: $INSTALL" >&5
11714echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11715
11716# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11717# It thinks the first close brace ends the variable substitution.
11718test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11719
e6cc62c6 11720test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11721
10f2d63a
VZ
11722test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11723
8284b0c5 11724
1d1b75ac
VZ
11725case ${INSTALL} in
11726 /* ) # Absolute
11727 ;;
4f5a7f74
VZ
11728 ?:* ) # Drive letter, considered as absolute.
11729 ;;
3bd8fb5f 11730 *)
1d1b75ac
VZ
11731 INSTALL=`pwd`/${INSTALL} ;;
11732esac
11733
4f5a7f74
VZ
11734case ${host} in
11735 *-hp-hpux* )
11736 INSTALL_DIR="mkdir"
11737 ;;
11738
11739 *) INSTALL_DIR="$INSTALL -d"
11740 ;;
11741esac
11742
8284b0c5 11743
6054113a
GD
11744case "${host}" in
11745
b5853384 11746 powerpc-*-darwin* )
eb99ae0b
GD
11747 INSTALL_PROGRAM="cp -fp"
11748 INSTALL_DATA="cp -fp"
6054113a
GD
11749 ;;
11750 *)
11751 ;;
d6853540 11752esac
698dcdb6 11753
10f2d63a
VZ
11754# Extract the first word of "strip", so it can be a program name with args.
11755set dummy strip; ac_word=$2
e6cc62c6
VS
11756echo "$as_me:$LINENO: checking for $ac_word" >&5
11757echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11758if test "${ac_cv_prog_STRIP+set}" = set; then
11759 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11760else
11761 if test -n "$STRIP"; then
11762 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11763else
e6cc62c6
VS
11764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11765for as_dir in $PATH
11766do
11767 IFS=$as_save_IFS
11768 test -z "$as_dir" && as_dir=.
11769 for ac_exec_ext in '' $ac_executable_extensions; do
11770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11771 ac_cv_prog_STRIP="strip"
11772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11773 break 2
11774 fi
11775done
11776done
11777
10f2d63a
VZ
11778 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11779fi
11780fi
e6cc62c6 11781STRIP=$ac_cv_prog_STRIP
10f2d63a 11782if test -n "$STRIP"; then
e6cc62c6
VS
11783 echo "$as_me:$LINENO: result: $STRIP" >&5
11784echo "${ECHO_T}$STRIP" >&6
10f2d63a 11785else
e6cc62c6
VS
11786 echo "$as_me:$LINENO: result: no" >&5
11787echo "${ECHO_T}no" >&6
10f2d63a
VZ
11788fi
11789
5c6fa7d2 11790
e6cc62c6
VS
11791echo "$as_me:$LINENO: checking if make is GNU make" >&5
11792echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11793if test "${wx_cv_prog_makeisgnu+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11795else
e6cc62c6 11796
414eab6d 11797 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11798 egrep -s GNU > /dev/null); then
414eab6d
VZ
11799 wx_cv_prog_makeisgnu="yes"
11800 else
11801 wx_cv_prog_makeisgnu="no"
11802 fi
11803
11804fi
e6cc62c6
VS
11805echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11806echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11807
11808if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11809 IF_GNU_MAKE=""
11810else
11811 IF_GNU_MAKE="#"
11812fi
11813
8284b0c5
MB
11814
11815
414eab6d 11816if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11817echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11818echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11819if test "${wx_cv_prog_makevpath+set}" = set; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11821else
e6cc62c6 11822
10f2d63a
VZ
11823cat - << EOF > confMake
11824check : file
11825 cp \$? \$@
11826 cp \$? final_file
11827EOF
11828
11829if test ! -d sub ; then
11830 mkdir sub
11831fi
11832echo dummy > sub/file
f6bcfd97 11833${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11834RESULT=$?
11835rm -f sub/file check final_file confMake
11836rmdir sub
11837if test "$RESULT" = 0; then
04e7a216 11838 wx_cv_prog_makevpath="yes"
10f2d63a 11839else
04e7a216
VZ
11840 wx_cv_prog_makevpath="no"
11841fi
11842
11843fi
e6cc62c6
VS
11844echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11845echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11846
11847if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11848{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11849You need a make-utility that is able to use the variable
11850VPATH correctly.
11851If your version of make does not support VPATH correctly,
11852please install GNU-make (possibly as gmake), and start
11853configure with the following command:
11854export MAKE=gmake; ./configure for sh-type shells
11855setenv MAKE gmake; ./configure for csh-type shells
11856Also please do remember to use gmake in this case every time
11857you are trying to compile.
e6cc62c6
VS
11858" >&5
11859echo "$as_me: error:
11860You need a make-utility that is able to use the variable
11861VPATH correctly.
11862If your version of make does not support VPATH correctly,
11863please install GNU-make (possibly as gmake), and start
11864configure with the following command:
11865export MAKE=gmake; ./configure for sh-type shells
11866setenv MAKE gmake; ./configure for csh-type shells
11867Also please do remember to use gmake in this case every time
11868you are trying to compile.
11869" >&2;}
11870 { (exit 1); exit 1; }; }
11871fi fi
e6cc62c6
VS
11872echo "$as_me:$LINENO: checking whether ln -s works" >&5
11873echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11874LN_S=$as_ln_s
11875if test "$LN_S" = "ln -s"; then
11876 echo "$as_me:$LINENO: result: yes" >&5
11877echo "${ECHO_T}yes" >&6
10f2d63a 11878else
e6cc62c6
VS
11879 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11880echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11881fi
5c6fa7d2 11882
247f5006 11883
2b5f62a0
VZ
11884case "${host}" in
11885 *-pc-os2_emx | *-pc-os2-emx )
2b5f62a0 11886 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11887 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11888echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11889if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11890 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11891else
e6cc62c6 11892 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11893LIBS="-lcExt $LIBS"
e6cc62c6 11894cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11895#line $LINENO "configure"
e6cc62c6
VS
11896/* confdefs.h. */
11897_ACEOF
11898cat confdefs.h >>conftest.$ac_ext
11899cat >>conftest.$ac_ext <<_ACEOF
11900/* end confdefs.h. */
11901
2b5f62a0 11902/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11903#ifdef __cplusplus
11904extern "C"
11905#endif
2b5f62a0 11906/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11907 builtin and then its argument prototype would still apply. */
11908char drand48 ();
11909int
11910main ()
11911{
11912drand48 ();
11913 ;
11914 return 0;
11915}
11916_ACEOF
11917rm -f conftest.$ac_objext conftest$ac_exeext
11918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 11919 (eval $ac_link) 2>&5
e6cc62c6
VS
11920 ac_status=$?
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); } &&
789c5f4a 11923 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
11924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11925 (eval $ac_try) 2>&5
11926 ac_status=$?
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; }; then
11929 ac_cv_lib_cExt_drand48=yes
11930else
11931 echo "$as_me: failed program was:" >&5
11932sed 's/^/| /' conftest.$ac_ext >&5
11933
11934ac_cv_lib_cExt_drand48=no
11935fi
789c5f4a 11936rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
11937LIBS=$ac_check_lib_save_LIBS
11938fi
11939echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11940echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11941if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11942 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11943fi
11944
11945 else
11946 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11947 fi
73d617c9
MB
11948 echo "$as_me:$LINENO: checking for gcc 3 or later" >&5
11949echo $ECHO_N "checking for gcc 3 or later... $ECHO_C" >&6
11950if test "${wx_cv_gcc3+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11952else
11953
11954 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 11955#line $LINENO "configure"
73d617c9
MB
11956/* confdefs.h. */
11957_ACEOF
11958cat confdefs.h >>conftest.$ac_ext
11959cat >>conftest.$ac_ext <<_ACEOF
11960/* end confdefs.h. */
3527f29c 11961
73d617c9
MB
11962int
11963main ()
11964{
11965
11966 #if (__GNUC__ < 3)
11967 #error old gcc
11968 #endif
11969
11970 ;
11971 return 0;
11972}
11973_ACEOF
11974rm -f conftest.$ac_objext
11975if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 11976 (eval $ac_compile) 2>&5
73d617c9
MB
11977 ac_status=$?
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } &&
789c5f4a 11980 { ac_try='test -s conftest.$ac_objext'
73d617c9
MB
11981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982 (eval $ac_try) 2>&5
11983 ac_status=$?
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); }; }; then
11986
11987 wx_cv_gcc3=yes
11988
11989else
11990 echo "$as_me: failed program was:" >&5
11991sed 's/^/| /' conftest.$ac_ext >&5
11992
11993
11994 wx_cv_gcc3=no
11995
11996
11997fi
789c5f4a 11998rm -f conftest.$ac_objext conftest.$ac_ext
73d617c9
MB
11999
12000fi
12001echo "$as_me:$LINENO: result: $wx_cv_gcc3" >&5
12002echo "${ECHO_T}$wx_cv_gcc3" >&6
12003 if test "$wx_cv_gcc3" = "no"; then
12004 LIBS="$LIBS -lstdcpp"
12005 else
12006 LIBS="$LIBS -lstdcxx"
12007 fi
2b5f62a0
VZ
12008 ;;
12009esac
12010
a0b9e27f 12011
01aa5863
VS
12012if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
12013 echo "$as_me:$LINENO: checking for strings.h" >&5
12014echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
12015if test "${ac_cv_header_strings_h+set}" = set; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12017else
12018 ac_cv_header_strings_h=no
12019fi
12020echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
12021echo "${ECHO_T}$ac_cv_header_strings_h" >&6
12022 if test "$ac_cv_header_strings_h" = "no"; then
12023 echo "$as_me:$LINENO: result: forced no into cache" >&5
12024echo "${ECHO_T}forced no into cache" >&6
12025 else
12026 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
12027echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
12028 fi
12029fi
12030echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
12031echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12032if test "${ac_cv_header_stdc+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12034else
12035 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12036#line $LINENO "configure"
e6cc62c6
VS
12037/* confdefs.h. */
12038_ACEOF
12039cat confdefs.h >>conftest.$ac_ext
12040cat >>conftest.$ac_ext <<_ACEOF
12041/* end confdefs.h. */
12042#include <stdlib.h>
12043#include <stdarg.h>
12044#include <string.h>
12045#include <float.h>
247f5006 12046
e6cc62c6
VS
12047int
12048main ()
12049{
90dd450c 12050
e6cc62c6
VS
12051 ;
12052 return 0;
12053}
12054_ACEOF
12055rm -f conftest.$ac_objext
12056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 12057 (eval $ac_compile) 2>&5
e6cc62c6
VS
12058 ac_status=$?
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); } &&
789c5f4a 12061 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12064 ac_status=$?
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; }; then
12067 ac_cv_header_stdc=yes
8284b0c5 12068else
e6cc62c6
VS
12069 echo "$as_me: failed program was:" >&5
12070sed 's/^/| /' conftest.$ac_ext >&5
12071
12072ac_cv_header_stdc=no
21d1c967 12073fi
789c5f4a 12074rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 12075
e6cc62c6
VS
12076if test $ac_cv_header_stdc = yes; then
12077 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12078 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12079#line $LINENO "configure"
e6cc62c6
VS
12080/* confdefs.h. */
12081_ACEOF
12082cat confdefs.h >>conftest.$ac_ext
12083cat >>conftest.$ac_ext <<_ACEOF
12084/* end confdefs.h. */
12085#include <string.h>
12086
12087_ACEOF
12088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12089 $EGREP "memchr" >/dev/null 2>&1; then
12090 :
12091else
12092 ac_cv_header_stdc=no
3a922bb4 12093fi
a0b9e27f 12094rm -f conftest*
e6cc62c6 12095
90dd450c 12096fi
e6cc62c6
VS
12097
12098if test $ac_cv_header_stdc = yes; then
12099 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12100 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12101#line $LINENO "configure"
e6cc62c6
VS
12102/* confdefs.h. */
12103_ACEOF
12104cat confdefs.h >>conftest.$ac_ext
12105cat >>conftest.$ac_ext <<_ACEOF
12106/* end confdefs.h. */
12107#include <stdlib.h>
12108
12109_ACEOF
12110if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12111 $EGREP "free" >/dev/null 2>&1; then
12112 :
a0b9e27f 12113else
e6cc62c6 12114 ac_cv_header_stdc=no
21d1c967 12115fi
e6cc62c6 12116rm -f conftest*
247f5006
VZ
12117
12118fi
e6cc62c6
VS
12119
12120if test $ac_cv_header_stdc = yes; then
12121 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12122 if test "$cross_compiling" = yes; then
12123 :
12124else
12125 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12126#line $LINENO "configure"
e6cc62c6
VS
12127/* confdefs.h. */
12128_ACEOF
12129cat confdefs.h >>conftest.$ac_ext
12130cat >>conftest.$ac_ext <<_ACEOF
12131/* end confdefs.h. */
12132#include <ctype.h>
12133#if ((' ' & 0x0FF) == 0x020)
12134# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12135# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12136#else
12137# define ISLOWER(c) \
789c5f4a
VZ
12138 (('a' <= (c) && (c) <= 'i') \
12139 || ('j' <= (c) && (c) <= 'r') \
12140 || ('s' <= (c) && (c) <= 'z'))
e6cc62c6
VS
12141# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12142#endif
12143
12144#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12145int
12146main ()
12147{
12148 int i;
12149 for (i = 0; i < 256; i++)
12150 if (XOR (islower (i), ISLOWER (i))
789c5f4a 12151 || toupper (i) != TOUPPER (i))
e6cc62c6
VS
12152 exit(2);
12153 exit (0);
12154}
12155_ACEOF
12156rm -f conftest$ac_exeext
12157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12158 (eval $ac_link) 2>&5
12159 ac_status=$?
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12163 (eval $ac_try) 2>&5
12164 ac_status=$?
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); }; }; then
12167 :
a0b9e27f 12168else
e6cc62c6
VS
12169 echo "$as_me: program exited with status $ac_status" >&5
12170echo "$as_me: failed program was:" >&5
12171sed 's/^/| /' conftest.$ac_ext >&5
12172
12173( exit $ac_status )
12174ac_cv_header_stdc=no
12175fi
789c5f4a 12176rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12177fi
12178fi
12179fi
12180echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12181echo "${ECHO_T}$ac_cv_header_stdc" >&6
12182if test $ac_cv_header_stdc = yes; then
12183
12184cat >>confdefs.h <<\_ACEOF
12185#define STDC_HEADERS 1
12186_ACEOF
12187
a0b9e27f 12188fi
e6cc62c6
VS
12189
12190# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
789c5f4a 12201 inttypes.h stdint.h unistd.h
e6cc62c6
VS
12202do
12203as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12204echo "$as_me:$LINENO: checking for $ac_header" >&5
12205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12206if eval "test \"\${$as_ac_Header+set}\" = set"; then
12207 echo $ECHO_N "(cached) $ECHO_C" >&6
12208else
12209 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12210#line $LINENO "configure"
e6cc62c6
VS
12211/* confdefs.h. */
12212_ACEOF
12213cat confdefs.h >>conftest.$ac_ext
12214cat >>conftest.$ac_ext <<_ACEOF
12215/* end confdefs.h. */
12216$ac_includes_default
12217
12218#include <$ac_header>
12219_ACEOF
12220rm -f conftest.$ac_objext
12221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 12222 (eval $ac_compile) 2>&5
e6cc62c6
VS
12223 ac_status=$?
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } &&
789c5f4a 12226 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12229 ac_status=$?
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; }; then
12232 eval "$as_ac_Header=yes"
12233else
12234 echo "$as_me: failed program was:" >&5
12235sed 's/^/| /' conftest.$ac_ext >&5
12236
12237eval "$as_ac_Header=no"
12238fi
789c5f4a 12239rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12240fi
12241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12243if test `eval echo '${'$as_ac_Header'}'` = yes; then
12244 cat >>confdefs.h <<_ACEOF
12245#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12246_ACEOF
12247
12248fi
12249
a0b9e27f 12250done
90dd450c 12251
e6cc62c6
VS
12252
12253
12254for ac_header in strings.h
21d1c967 12255do
e6cc62c6
VS
12256as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12257if eval "test \"\${$as_ac_Header+set}\" = set"; then
12258 echo "$as_me:$LINENO: checking for $ac_header" >&5
12259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12260if eval "test \"\${$as_ac_Header+set}\" = set"; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12262fi
12263echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12264echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12265else
12266 # Is the header compilable?
12267echo "$as_me:$LINENO: checking $ac_header usability" >&5
12268echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12269cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12270#line $LINENO "configure"
e6cc62c6
VS
12271/* confdefs.h. */
12272_ACEOF
12273cat confdefs.h >>conftest.$ac_ext
12274cat >>conftest.$ac_ext <<_ACEOF
12275/* end confdefs.h. */
12276$ac_includes_default
12277#include <$ac_header>
12278_ACEOF
12279rm -f conftest.$ac_objext
12280if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 12281 (eval $ac_compile) 2>&5
e6cc62c6
VS
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); } &&
789c5f4a 12285 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12288 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; }; then
12291 ac_header_compiler=yes
12292else
12293 echo "$as_me: failed program was:" >&5
12294sed 's/^/| /' conftest.$ac_ext >&5
12295
12296ac_header_compiler=no
12297fi
789c5f4a 12298rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12299echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12300echo "${ECHO_T}$ac_header_compiler" >&6
12301
12302# Is the header present?
12303echo "$as_me:$LINENO: checking $ac_header presence" >&5
12304echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12305cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12306#line $LINENO "configure"
e6cc62c6
VS
12307/* confdefs.h. */
12308_ACEOF
12309cat confdefs.h >>conftest.$ac_ext
12310cat >>conftest.$ac_ext <<_ACEOF
12311/* end confdefs.h. */
12312#include <$ac_header>
12313_ACEOF
12314if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12315 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12316 ac_status=$?
12317 grep -v '^ *+' conftest.er1 >conftest.err
12318 rm -f conftest.er1
12319 cat conftest.err >&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } >/dev/null; then
12322 if test -s conftest.err; then
12323 ac_cpp_err=$ac_c_preproc_warn_flag
12324 else
12325 ac_cpp_err=
12326 fi
12327else
12328 ac_cpp_err=yes
12329fi
12330if test -z "$ac_cpp_err"; then
12331 ac_header_preproc=yes
12332else
12333 echo "$as_me: failed program was:" >&5
12334sed 's/^/| /' conftest.$ac_ext >&5
12335
12336 ac_header_preproc=no
12337fi
12338rm -f conftest.err conftest.$ac_ext
12339echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12340echo "${ECHO_T}$ac_header_preproc" >&6
12341
12342# So? What about this header?
789c5f4a
VZ
12343case $ac_header_compiler:$ac_header_preproc in
12344 yes:no )
e6cc62c6
VS
12345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12346echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
12347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12348echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12349 (
12350 cat <<\_ASBOX
12351## ------------------------------------ ##
12352## Report this to bug-autoconf@gnu.org. ##
12353## ------------------------------------ ##
12354_ASBOX
12355 ) |
12356 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 12357 ;;
789c5f4a 12358 no:yes )
e6cc62c6
VS
12359 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12360echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
12361 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12362echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
12363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12364echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12365 (
12366 cat <<\_ASBOX
789c5f4a
VZ
12367## ------------------------------------ ##
12368## Report this to bug-autoconf@gnu.org. ##
12369## ------------------------------------ ##
e6cc62c6
VS
12370_ASBOX
12371 ) |
12372 sed "s/^/$as_me: WARNING: /" >&2
12373 ;;
12374esac
12375echo "$as_me:$LINENO: checking for $ac_header" >&5
12376echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12377if eval "test \"\${$as_ac_Header+set}\" = set"; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12379else
789c5f4a 12380 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 12381fi
e6cc62c6
VS
12382echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12383echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12384
a0b9e27f 12385fi
e6cc62c6
VS
12386if test `eval echo '${'$as_ac_Header'}'` = yes; then
12387 cat >>confdefs.h <<_ACEOF
12388#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12389_ACEOF
12390
12391fi
12392
12393done
12394
e6cc62c6
VS
12395
12396
12397for ac_header in stdlib.h
12398do
12399as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12400if eval "test \"\${$as_ac_Header+set}\" = set"; then
12401 echo "$as_me:$LINENO: checking for $ac_header" >&5
12402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12403if eval "test \"\${$as_ac_Header+set}\" = set"; then
12404 echo $ECHO_N "(cached) $ECHO_C" >&6
12405fi
12406echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12407echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12408else
12409 # Is the header compilable?
12410echo "$as_me:$LINENO: checking $ac_header usability" >&5
12411echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12412cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12413#line $LINENO "configure"
e6cc62c6
VS
12414/* confdefs.h. */
12415_ACEOF
12416cat confdefs.h >>conftest.$ac_ext
12417cat >>conftest.$ac_ext <<_ACEOF
12418/* end confdefs.h. */
12419$ac_includes_default
12420#include <$ac_header>
12421_ACEOF
12422rm -f conftest.$ac_objext
12423if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 12424 (eval $ac_compile) 2>&5
e6cc62c6
VS
12425 ac_status=$?
12426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12427 (exit $ac_status); } &&
789c5f4a 12428 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12430 (eval $ac_try) 2>&5
12431 ac_status=$?
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); }; }; then
12434 ac_header_compiler=yes
12435else
12436 echo "$as_me: failed program was:" >&5
12437sed 's/^/| /' conftest.$ac_ext >&5
12438
12439ac_header_compiler=no
12440fi
789c5f4a 12441rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12442echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12443echo "${ECHO_T}$ac_header_compiler" >&6
12444
12445# Is the header present?
12446echo "$as_me:$LINENO: checking $ac_header presence" >&5
12447echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12448cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12449#line $LINENO "configure"
e6cc62c6
VS
12450/* confdefs.h. */
12451_ACEOF
12452cat confdefs.h >>conftest.$ac_ext
12453cat >>conftest.$ac_ext <<_ACEOF
12454/* end confdefs.h. */
12455#include <$ac_header>
12456_ACEOF
12457if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12458 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12459 ac_status=$?
12460 grep -v '^ *+' conftest.er1 >conftest.err
12461 rm -f conftest.er1
12462 cat conftest.err >&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } >/dev/null; then
12465 if test -s conftest.err; then
12466 ac_cpp_err=$ac_c_preproc_warn_flag
12467 else
12468 ac_cpp_err=
12469 fi
12470else
12471 ac_cpp_err=yes
12472fi
12473if test -z "$ac_cpp_err"; then
12474 ac_header_preproc=yes
12475else
12476 echo "$as_me: failed program was:" >&5
12477sed 's/^/| /' conftest.$ac_ext >&5
12478
12479 ac_header_preproc=no
12480fi
12481rm -f conftest.err conftest.$ac_ext
12482echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12483echo "${ECHO_T}$ac_header_preproc" >&6
12484
12485# So? What about this header?
789c5f4a
VZ
12486case $ac_header_compiler:$ac_header_preproc in
12487 yes:no )
e6cc62c6
VS
12488 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12489echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
12490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12491echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12492 (
12493 cat <<\_ASBOX
12494## ------------------------------------ ##
12495## Report this to bug-autoconf@gnu.org. ##
12496## ------------------------------------ ##
12497_ASBOX
12498 ) |
12499 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 12500 ;;
789c5f4a 12501 no:yes )
e6cc62c6
VS
12502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12503echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
12504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12505echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
12506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12507echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12508 (
12509 cat <<\_ASBOX
789c5f4a
VZ
12510## ------------------------------------ ##
12511## Report this to bug-autoconf@gnu.org. ##
12512## ------------------------------------ ##
e6cc62c6
VS
12513_ASBOX
12514 ) |
12515 sed "s/^/$as_me: WARNING: /" >&2
12516 ;;
12517esac
12518echo "$as_me:$LINENO: checking for $ac_header" >&5
12519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12520if eval "test \"\${$as_ac_Header+set}\" = set"; then
12521 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12522else
789c5f4a 12523 eval "$as_ac_Header=$ac_header_preproc"
e6cc62c6
VS
12524fi
12525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12526echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12527
21d1c967 12528fi
e6cc62c6
VS
12529if test `eval echo '${'$as_ac_Header'}'` = yes; then
12530 cat >>confdefs.h <<_ACEOF
12531#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12532_ACEOF
12533
12534fi
12535
21d1c967 12536done
4f14bcd8 12537
5c6fa7d2 12538
e6cc62c6 12539for ac_header in malloc.h
21d1c967 12540do
e6cc62c6
VS
12541as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12542if eval "test \"\${$as_ac_Header+set}\" = set"; then
12543 echo "$as_me:$LINENO: checking for $ac_header" >&5
12544echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12545if eval "test \"\${$as_ac_Header+set}\" = set"; then
12546 echo $ECHO_N "(cached) $ECHO_C" >&6
12547fi
12548echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12549echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12550else
12551 # Is the header compilable?
12552echo "$as_me:$LINENO: checking $ac_header usability" >&5
12553echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12554cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12555#line $LINENO "configure"
e6cc62c6
VS
12556/* confdefs.h. */
12557_ACEOF
12558cat confdefs.h >>conftest.$ac_ext
12559cat >>conftest.$ac_ext <<_ACEOF
12560/* end confdefs.h. */
12561$ac_includes_default
12562#include <$ac_header>
12563_ACEOF
12564rm -f conftest.$ac_objext
12565if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 12566 (eval $ac_compile) 2>&5
e6cc62c6
VS
12567 ac_status=$?
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } &&
789c5f4a 12570 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12572 (eval $ac_try) 2>&5
12573 ac_status=$?
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); }; }; then
12576 ac_header_compiler=yes
12577else
12578 echo "$as_me: failed program was:" >&5
12579sed 's/^/| /' conftest.$ac_ext >&5
12580
12581ac_header_compiler=no
12582fi
789c5f4a 12583rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12584echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12585echo "${ECHO_T}$ac_header_compiler" >&6
12586
12587# Is the header present?
12588echo "$as_me:$LINENO: checking $ac_header presence" >&5
12589echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12590cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12591#line $LINENO "configure"
e6cc62c6
VS
12592/* confdefs.h. */
12593_ACEOF
12594cat confdefs.h >>conftest.$ac_ext
12595cat >>conftest.$ac_ext <<_ACEOF
12596/* end confdefs.h. */
12597#include <$ac_header>
12598_ACEOF
12599if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12601 ac_status=$?
12602 grep -v '^ *+' conftest.er1 >conftest.err
12603 rm -f conftest.er1
12604 cat conftest.err >&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } >/dev/null; then
12607 if test -s conftest.err; then
12608 ac_cpp_err=$ac_c_preproc_warn_flag
12609 else
12610 ac_cpp_err=
12611 fi
12612else
12613 ac_cpp_err=yes
12614fi
12615if test -z "$ac_cpp_err"; then
12616 ac_header_preproc=yes
12617else
12618 echo "$as_me: failed program was:" >&5
12619sed 's/^/| /' conftest.$ac_ext >&5
12620
12621 ac_header_preproc=no
12622fi
12623rm -f conftest.err conftest.$ac_ext
12624echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12625echo "${ECHO_T}$ac_header_preproc" >&6
12626
12627# So? What about this header?
789c5f4a
VZ
12628case $ac_header_compiler:$ac_header_preproc in
12629 yes:no )
e6cc62c6
VS
12630 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12631echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
12632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12633echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12634 (
12635 cat <<\_ASBOX
12636## ------------------------------------ ##
12637## Report this to bug-autoconf@gnu.org. ##
12638## ------------------------------------ ##
12639_ASBOX
12640 ) |
12641 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 12642 ;;
789c5f4a 12643 no:yes )
e6cc62c6
VS
12644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12645echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
12646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12647echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
12648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12649echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12650 (
12651 cat <<\_ASBOX
789c5f4a
VZ
12652## ------------------------------------ ##
12653## Report this to bug-autoconf@gnu.org. ##
12654## ------------------------------------ ##
e6cc62c6
VS
12655_ASBOX
12656 ) |
12657 sed "s/^/$as_me: WARNING: /" >&2
12658 ;;
12659esac
12660echo "$as_me:$LINENO: checking for $ac_header" >&5
12661echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12662if eval "test \"\${$as_ac_Header+set}\" = set"; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12664else
789c5f4a 12665 eval "$as_ac_Header=$ac_header_preproc"
d4158b5d 12666fi
e6cc62c6
VS
12667echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12668echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12669
21d1c967 12670fi
e6cc62c6
VS
12671if test `eval echo '${'$as_ac_Header'}'` = yes; then
12672 cat >>confdefs.h <<_ACEOF
12673#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12674_ACEOF
12675
12676fi
12677
12678done
12679
12680
12681for ac_header in unistd.h
12682do
12683as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12684if eval "test \"\${$as_ac_Header+set}\" = set"; then
12685 echo "$as_me:$LINENO: checking for $ac_header" >&5
12686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12687if eval "test \"\${$as_ac_Header+set}\" = set"; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12689fi
12690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12691echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12692else
12693 # Is the header compilable?
12694echo "$as_me:$LINENO: checking $ac_header usability" >&5
12695echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12696cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12697#line $LINENO "configure"
e6cc62c6
VS
12698/* confdefs.h. */
12699_ACEOF
12700cat confdefs.h >>conftest.$ac_ext
12701cat >>conftest.$ac_ext <<_ACEOF
12702/* end confdefs.h. */
12703$ac_includes_default
12704#include <$ac_header>
12705_ACEOF
12706rm -f conftest.$ac_objext
12707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 12708 (eval $ac_compile) 2>&5
e6cc62c6
VS
12709 ac_status=$?
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } &&
789c5f4a 12712 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12714 (eval $ac_try) 2>&5
12715 ac_status=$?
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); }; }; then
12718 ac_header_compiler=yes
12719else
12720 echo "$as_me: failed program was:" >&5
12721sed 's/^/| /' conftest.$ac_ext >&5
12722
12723ac_header_compiler=no
12724fi
789c5f4a 12725rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12726echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12727echo "${ECHO_T}$ac_header_compiler" >&6
12728
12729# Is the header present?
12730echo "$as_me:$LINENO: checking $ac_header presence" >&5
12731echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12732cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12733#line $LINENO "configure"
e6cc62c6
VS
12734/* confdefs.h. */
12735_ACEOF
12736cat confdefs.h >>conftest.$ac_ext
12737cat >>conftest.$ac_ext <<_ACEOF
12738/* end confdefs.h. */
12739#include <$ac_header>
12740_ACEOF
12741if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12742 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12743 ac_status=$?
12744 grep -v '^ *+' conftest.er1 >conftest.err
12745 rm -f conftest.er1
12746 cat conftest.err >&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } >/dev/null; then
12749 if test -s conftest.err; then
12750 ac_cpp_err=$ac_c_preproc_warn_flag
12751 else
12752 ac_cpp_err=
12753 fi
a0b9e27f 12754else
e6cc62c6
VS
12755 ac_cpp_err=yes
12756fi
12757if test -z "$ac_cpp_err"; then
12758 ac_header_preproc=yes
12759else
12760 echo "$as_me: failed program was:" >&5
12761sed 's/^/| /' conftest.$ac_ext >&5
12762
12763 ac_header_preproc=no
12764fi
12765rm -f conftest.err conftest.$ac_ext
12766echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12767echo "${ECHO_T}$ac_header_preproc" >&6
12768
12769# So? What about this header?
789c5f4a
VZ
12770case $ac_header_compiler:$ac_header_preproc in
12771 yes:no )
e6cc62c6
VS
12772 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12773echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
12774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12775echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12776 (
12777 cat <<\_ASBOX
12778## ------------------------------------ ##
12779## Report this to bug-autoconf@gnu.org. ##
12780## ------------------------------------ ##
12781_ASBOX
12782 ) |
12783 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 12784 ;;
789c5f4a 12785 no:yes )
e6cc62c6
VS
12786 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12787echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
12788 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12789echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
12790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12791echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12792 (
12793 cat <<\_ASBOX
789c5f4a
VZ
12794## ------------------------------------ ##
12795## Report this to bug-autoconf@gnu.org. ##
12796## ------------------------------------ ##
e6cc62c6
VS
12797_ASBOX
12798 ) |
12799 sed "s/^/$as_me: WARNING: /" >&2
12800 ;;
12801esac
12802echo "$as_me:$LINENO: checking for $ac_header" >&5
12803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12804if eval "test \"\${$as_ac_Header+set}\" = set"; then
12805 echo $ECHO_N "(cached) $ECHO_C" >&6
12806else
789c5f4a 12807 eval "$as_ac_Header=$ac_header_preproc"
e6cc62c6
VS
12808fi
12809echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12810echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12811
12812fi
12813if test `eval echo '${'$as_ac_Header'}'` = yes; then
12814 cat >>confdefs.h <<_ACEOF
12815#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12816_ACEOF
12817
d4158b5d 12818fi
e6cc62c6 12819
21d1c967 12820done
f6bcfd97 12821
e6cc62c6
VS
12822
12823for ac_header in wchar.h
12824do
12825as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12826if eval "test \"\${$as_ac_Header+set}\" = set"; then
12827 echo "$as_me:$LINENO: checking for $ac_header" >&5
12828echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12829if eval "test \"\${$as_ac_Header+set}\" = set"; then
12830 echo $ECHO_N "(cached) $ECHO_C" >&6
12831fi
12832echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12833echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12834else
12835 # Is the header compilable?
12836echo "$as_me:$LINENO: checking $ac_header usability" >&5
12837echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12838cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12839#line $LINENO "configure"
e6cc62c6
VS
12840/* confdefs.h. */
12841_ACEOF
12842cat confdefs.h >>conftest.$ac_ext
12843cat >>conftest.$ac_ext <<_ACEOF
12844/* end confdefs.h. */
12845$ac_includes_default
12846#include <$ac_header>
12847_ACEOF
12848rm -f conftest.$ac_objext
12849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 12850 (eval $ac_compile) 2>&5
e6cc62c6
VS
12851 ac_status=$?
12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12853 (exit $ac_status); } &&
789c5f4a 12854 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12856 (eval $ac_try) 2>&5
12857 ac_status=$?
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); }; }; then
12860 ac_header_compiler=yes
12861else
12862 echo "$as_me: failed program was:" >&5
12863sed 's/^/| /' conftest.$ac_ext >&5
12864
12865ac_header_compiler=no
12866fi
789c5f4a 12867rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12868echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12869echo "${ECHO_T}$ac_header_compiler" >&6
12870
12871# Is the header present?
12872echo "$as_me:$LINENO: checking $ac_header presence" >&5
12873echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12874cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12875#line $LINENO "configure"
e6cc62c6
VS
12876/* confdefs.h. */
12877_ACEOF
12878cat confdefs.h >>conftest.$ac_ext
12879cat >>conftest.$ac_ext <<_ACEOF
12880/* end confdefs.h. */
12881#include <$ac_header>
12882_ACEOF
12883if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12885 ac_status=$?
12886 grep -v '^ *+' conftest.er1 >conftest.err
12887 rm -f conftest.er1
12888 cat conftest.err >&5
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); } >/dev/null; then
12891 if test -s conftest.err; then
12892 ac_cpp_err=$ac_c_preproc_warn_flag
12893 else
12894 ac_cpp_err=
12895 fi
12896else
12897 ac_cpp_err=yes
12898fi
12899if test -z "$ac_cpp_err"; then
12900 ac_header_preproc=yes
12901else
12902 echo "$as_me: failed program was:" >&5
12903sed 's/^/| /' conftest.$ac_ext >&5
12904
12905 ac_header_preproc=no
12906fi
12907rm -f conftest.err conftest.$ac_ext
12908echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12909echo "${ECHO_T}$ac_header_preproc" >&6
12910
12911# So? What about this header?
789c5f4a
VZ
12912case $ac_header_compiler:$ac_header_preproc in
12913 yes:no )
e6cc62c6
VS
12914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12915echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
12916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12917echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12918 (
12919 cat <<\_ASBOX
12920## ------------------------------------ ##
12921## Report this to bug-autoconf@gnu.org. ##
12922## ------------------------------------ ##
12923_ASBOX
12924 ) |
12925 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 12926 ;;
789c5f4a 12927 no:yes )
e6cc62c6
VS
12928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12929echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
12930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12931echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
12932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12933echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12934 (
12935 cat <<\_ASBOX
789c5f4a
VZ
12936## ------------------------------------ ##
12937## Report this to bug-autoconf@gnu.org. ##
12938## ------------------------------------ ##
e6cc62c6
VS
12939_ASBOX
12940 ) |
12941 sed "s/^/$as_me: WARNING: /" >&2
12942 ;;
12943esac
12944echo "$as_me:$LINENO: checking for $ac_header" >&5
12945echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12946if eval "test \"\${$as_ac_Header+set}\" = set"; then
12947 echo $ECHO_N "(cached) $ECHO_C" >&6
12948else
789c5f4a 12949 eval "$as_ac_Header=$ac_header_preproc"
e6cc62c6
VS
12950fi
12951echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12952echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12953
90dd450c 12954fi
e6cc62c6
VS
12955if test `eval echo '${'$as_ac_Header'}'` = yes; then
12956 cat >>confdefs.h <<_ACEOF
12957#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12958_ACEOF
12959
12960fi
12961
12962done
90dd450c 12963
e6cc62c6
VS
12964
12965if test "$ac_cv_header_wchar_h" != "yes"; then
12966
12967for ac_header in wcstr.h
21d1c967 12968do
e6cc62c6
VS
12969as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12970if eval "test \"\${$as_ac_Header+set}\" = set"; then
12971 echo "$as_me:$LINENO: checking for $ac_header" >&5
12972echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12973if eval "test \"\${$as_ac_Header+set}\" = set"; then
12974 echo $ECHO_N "(cached) $ECHO_C" >&6
12975fi
12976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12977echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12978else
12979 # Is the header compilable?
12980echo "$as_me:$LINENO: checking $ac_header usability" >&5
12981echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12982cat >conftest.$ac_ext <<_ACEOF
789c5f4a 12983#line $LINENO "configure"
e6cc62c6
VS
12984/* confdefs.h. */
12985_ACEOF
12986cat confdefs.h >>conftest.$ac_ext
12987cat >>conftest.$ac_ext <<_ACEOF
12988/* end confdefs.h. */
12989$ac_includes_default
12990#include <$ac_header>
12991_ACEOF
12992rm -f conftest.$ac_objext
12993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 12994 (eval $ac_compile) 2>&5
e6cc62c6
VS
12995 ac_status=$?
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); } &&
789c5f4a 12998 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000 (eval $ac_try) 2>&5
13001 ac_status=$?
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; }; then
13004 ac_header_compiler=yes
13005else
13006 echo "$as_me: failed program was:" >&5
13007sed 's/^/| /' conftest.$ac_ext >&5
13008
13009ac_header_compiler=no
13010fi
789c5f4a 13011rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13012echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13013echo "${ECHO_T}$ac_header_compiler" >&6
13014
13015# Is the header present?
13016echo "$as_me:$LINENO: checking $ac_header presence" >&5
13017echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13018cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13019#line $LINENO "configure"
e6cc62c6
VS
13020/* confdefs.h. */
13021_ACEOF
13022cat confdefs.h >>conftest.$ac_ext
13023cat >>conftest.$ac_ext <<_ACEOF
13024/* end confdefs.h. */
13025#include <$ac_header>
13026_ACEOF
13027if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13029 ac_status=$?
13030 grep -v '^ *+' conftest.er1 >conftest.err
13031 rm -f conftest.er1
13032 cat conftest.err >&5
13033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } >/dev/null; then
13035 if test -s conftest.err; then
13036 ac_cpp_err=$ac_c_preproc_warn_flag
13037 else
13038 ac_cpp_err=
13039 fi
13040else
13041 ac_cpp_err=yes
13042fi
13043if test -z "$ac_cpp_err"; then
13044 ac_header_preproc=yes
13045else
13046 echo "$as_me: failed program was:" >&5
13047sed 's/^/| /' conftest.$ac_ext >&5
13048
13049 ac_header_preproc=no
13050fi
13051rm -f conftest.err conftest.$ac_ext
13052echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13053echo "${ECHO_T}$ac_header_preproc" >&6
13054
13055# So? What about this header?
789c5f4a
VZ
13056case $ac_header_compiler:$ac_header_preproc in
13057 yes:no )
e6cc62c6
VS
13058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13059echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
13060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13061echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13062 (
13063 cat <<\_ASBOX
13064## ------------------------------------ ##
13065## Report this to bug-autoconf@gnu.org. ##
13066## ------------------------------------ ##
13067_ASBOX
13068 ) |
13069 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 13070 ;;
789c5f4a 13071 no:yes )
e6cc62c6
VS
13072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13073echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
13074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13075echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
13076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13077echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13078 (
13079 cat <<\_ASBOX
789c5f4a
VZ
13080## ------------------------------------ ##
13081## Report this to bug-autoconf@gnu.org. ##
13082## ------------------------------------ ##
e6cc62c6
VS
13083_ASBOX
13084 ) |
13085 sed "s/^/$as_me: WARNING: /" >&2
13086 ;;
13087esac
13088echo "$as_me:$LINENO: checking for $ac_header" >&5
13089echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13090if eval "test \"\${$as_ac_Header+set}\" = set"; then
13091 echo $ECHO_N "(cached) $ECHO_C" >&6
13092else
789c5f4a 13093 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13094fi
e6cc62c6
VS
13095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13096echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13097
4f14bcd8 13098fi
e6cc62c6
VS
13099if test `eval echo '${'$as_ac_Header'}'` = yes; then
13100 cat >>confdefs.h <<_ACEOF
13101#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13102_ACEOF
13103
13104fi
13105
13106done
13107
13108fi
13109
13110
13111for ac_header in fnmatch.h
13112do
13113as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13114if eval "test \"\${$as_ac_Header+set}\" = set"; then
13115 echo "$as_me:$LINENO: checking for $ac_header" >&5
13116echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13117if eval "test \"\${$as_ac_Header+set}\" = set"; then
13118 echo $ECHO_N "(cached) $ECHO_C" >&6
13119fi
13120echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13121echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13122else
13123 # Is the header compilable?
13124echo "$as_me:$LINENO: checking $ac_header usability" >&5
13125echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13126cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13127#line $LINENO "configure"
e6cc62c6
VS
13128/* confdefs.h. */
13129_ACEOF
13130cat confdefs.h >>conftest.$ac_ext
13131cat >>conftest.$ac_ext <<_ACEOF
13132/* end confdefs.h. */
13133$ac_includes_default
13134#include <$ac_header>
13135_ACEOF
13136rm -f conftest.$ac_objext
13137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13138 (eval $ac_compile) 2>&5
e6cc62c6
VS
13139 ac_status=$?
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 (exit $ac_status); } &&
789c5f4a 13142 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13144 (eval $ac_try) 2>&5
13145 ac_status=$?
13146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147 (exit $ac_status); }; }; then
13148 ac_header_compiler=yes
13149else
13150 echo "$as_me: failed program was:" >&5
13151sed 's/^/| /' conftest.$ac_ext >&5
13152
13153ac_header_compiler=no
13154fi
789c5f4a 13155rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13156echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13157echo "${ECHO_T}$ac_header_compiler" >&6
13158
13159# Is the header present?
13160echo "$as_me:$LINENO: checking $ac_header presence" >&5
13161echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13162cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13163#line $LINENO "configure"
e6cc62c6
VS
13164/* confdefs.h. */
13165_ACEOF
13166cat confdefs.h >>conftest.$ac_ext
13167cat >>conftest.$ac_ext <<_ACEOF
13168/* end confdefs.h. */
13169#include <$ac_header>
13170_ACEOF
13171if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13173 ac_status=$?
13174 grep -v '^ *+' conftest.er1 >conftest.err
13175 rm -f conftest.er1
13176 cat conftest.err >&5
13177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13178 (exit $ac_status); } >/dev/null; then
13179 if test -s conftest.err; then
13180 ac_cpp_err=$ac_c_preproc_warn_flag
13181 else
13182 ac_cpp_err=
13183 fi
13184else
13185 ac_cpp_err=yes
13186fi
13187if test -z "$ac_cpp_err"; then
13188 ac_header_preproc=yes
13189else
13190 echo "$as_me: failed program was:" >&5
13191sed 's/^/| /' conftest.$ac_ext >&5
13192
13193 ac_header_preproc=no
13194fi
13195rm -f conftest.err conftest.$ac_ext
13196echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13197echo "${ECHO_T}$ac_header_preproc" >&6
13198
13199# So? What about this header?
789c5f4a
VZ
13200case $ac_header_compiler:$ac_header_preproc in
13201 yes:no )
e6cc62c6
VS
13202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13203echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
13204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13205echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13206 (
13207 cat <<\_ASBOX
13208## ------------------------------------ ##
13209## Report this to bug-autoconf@gnu.org. ##
13210## ------------------------------------ ##
13211_ASBOX
13212 ) |
13213 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 13214 ;;
789c5f4a 13215 no:yes )
e6cc62c6
VS
13216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13217echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
13218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13219echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
13220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13221echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13222 (
13223 cat <<\_ASBOX
789c5f4a
VZ
13224## ------------------------------------ ##
13225## Report this to bug-autoconf@gnu.org. ##
13226## ------------------------------------ ##
e6cc62c6
VS
13227_ASBOX
13228 ) |
13229 sed "s/^/$as_me: WARNING: /" >&2
13230 ;;
13231esac
13232echo "$as_me:$LINENO: checking for $ac_header" >&5
13233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13234if eval "test \"\${$as_ac_Header+set}\" = set"; then
13235 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13236else
789c5f4a 13237 eval "$as_ac_Header=$ac_header_preproc"
e6cc62c6
VS
13238fi
13239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13240echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13241
21d1c967 13242fi
e6cc62c6
VS
13243if test `eval echo '${'$as_ac_Header'}'` = yes; then
13244 cat >>confdefs.h <<_ACEOF
13245#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13246_ACEOF
13247
13248fi
13249
21d1c967 13250done
90dd450c 13251
5c6fa7d2 13252
a0b9e27f 13253if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13254
13255for ac_func in fnmatch
21d1c967 13256do
e6cc62c6
VS
13257as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13258echo "$as_me:$LINENO: checking for $ac_func" >&5
13259echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13260if eval "test \"\${$as_ac_var+set}\" = set"; then
13261 echo $ECHO_N "(cached) $ECHO_C" >&6
13262else
13263 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13264#line $LINENO "configure"
e6cc62c6
VS
13265/* confdefs.h. */
13266_ACEOF
13267cat confdefs.h >>conftest.$ac_ext
13268cat >>conftest.$ac_ext <<_ACEOF
13269/* end confdefs.h. */
a0b9e27f 13270/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13271 which can conflict with char $ac_func (); below.
13272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13273 <limits.h> exists even on freestanding compilers. */
13274#ifdef __STDC__
13275# include <limits.h>
13276#else
13277# include <assert.h>
13278#endif
a0b9e27f 13279/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13280#ifdef __cplusplus
13281extern "C"
13282{
13283#endif
a0b9e27f 13284/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13285 builtin and then its argument prototype would still apply. */
13286char $ac_func ();
a0b9e27f
MB
13287/* The GNU C library defines this for functions which it implements
13288 to always fail with ENOSYS. Some functions are actually named
13289 something starting with __ and the normal name is an alias. */
13290#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13291choke me
13292#else
e6cc62c6
VS
13293char (*f) () = $ac_func;
13294#endif
13295#ifdef __cplusplus
13296}
a0b9e27f
MB
13297#endif
13298
e6cc62c6
VS
13299int
13300main ()
13301{
13302return f != $ac_func;
13303 ;
13304 return 0;
13305}
13306_ACEOF
13307rm -f conftest.$ac_objext conftest$ac_exeext
13308if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 13309 (eval $ac_link) 2>&5
e6cc62c6
VS
13310 ac_status=$?
13311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312 (exit $ac_status); } &&
789c5f4a 13313 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13316 ac_status=$?
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; }; then
13319 eval "$as_ac_var=yes"
13320else
13321 echo "$as_me: failed program was:" >&5
13322sed 's/^/| /' conftest.$ac_ext >&5
13323
13324eval "$as_ac_var=no"
13325fi
789c5f4a 13326rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
13327fi
13328echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13329echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13330if test `eval echo '${'$as_ac_var'}'` = yes; then
13331 cat >>confdefs.h <<_ACEOF
13332#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13333_ACEOF
32832908 13334
21d1c967
GD
13335fi
13336done
90dd450c 13337
a0b9e27f 13338fi
90dd450c 13339
e6cc62c6
VS
13340
13341for ac_header in langinfo.h
21d1c967 13342do
e6cc62c6
VS
13343as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13344if eval "test \"\${$as_ac_Header+set}\" = set"; then
13345 echo "$as_me:$LINENO: checking for $ac_header" >&5
13346echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13347if eval "test \"\${$as_ac_Header+set}\" = set"; then
13348 echo $ECHO_N "(cached) $ECHO_C" >&6
13349fi
13350echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13351echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13352else
13353 # Is the header compilable?
13354echo "$as_me:$LINENO: checking $ac_header usability" >&5
13355echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13356cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13357#line $LINENO "configure"
e6cc62c6
VS
13358/* confdefs.h. */
13359_ACEOF
13360cat confdefs.h >>conftest.$ac_ext
13361cat >>conftest.$ac_ext <<_ACEOF
13362/* end confdefs.h. */
13363$ac_includes_default
13364#include <$ac_header>
13365_ACEOF
13366rm -f conftest.$ac_objext
13367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13368 (eval $ac_compile) 2>&5
e6cc62c6
VS
13369 ac_status=$?
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); } &&
789c5f4a 13372 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13374 (eval $ac_try) 2>&5
13375 ac_status=$?
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; }; then
13378 ac_header_compiler=yes
13379else
13380 echo "$as_me: failed program was:" >&5
13381sed 's/^/| /' conftest.$ac_ext >&5
13382
13383ac_header_compiler=no
13384fi
789c5f4a 13385rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13386echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13387echo "${ECHO_T}$ac_header_compiler" >&6
13388
13389# Is the header present?
13390echo "$as_me:$LINENO: checking $ac_header presence" >&5
13391echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13392cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13393#line $LINENO "configure"
e6cc62c6
VS
13394/* confdefs.h. */
13395_ACEOF
13396cat confdefs.h >>conftest.$ac_ext
13397cat >>conftest.$ac_ext <<_ACEOF
13398/* end confdefs.h. */
13399#include <$ac_header>
13400_ACEOF
13401if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13402 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13403 ac_status=$?
13404 grep -v '^ *+' conftest.er1 >conftest.err
13405 rm -f conftest.er1
13406 cat conftest.err >&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); } >/dev/null; then
13409 if test -s conftest.err; then
13410 ac_cpp_err=$ac_c_preproc_warn_flag
13411 else
13412 ac_cpp_err=
13413 fi
13414else
13415 ac_cpp_err=yes
13416fi
13417if test -z "$ac_cpp_err"; then
13418 ac_header_preproc=yes
13419else
13420 echo "$as_me: failed program was:" >&5
13421sed 's/^/| /' conftest.$ac_ext >&5
13422
13423 ac_header_preproc=no
13424fi
13425rm -f conftest.err conftest.$ac_ext
13426echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13427echo "${ECHO_T}$ac_header_preproc" >&6
13428
13429# So? What about this header?
789c5f4a
VZ
13430case $ac_header_compiler:$ac_header_preproc in
13431 yes:no )
e6cc62c6
VS
13432 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13433echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
13434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13435echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13436 (
13437 cat <<\_ASBOX
13438## ------------------------------------ ##
13439## Report this to bug-autoconf@gnu.org. ##
13440## ------------------------------------ ##
13441_ASBOX
13442 ) |
13443 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 13444 ;;
789c5f4a 13445 no:yes )
e6cc62c6
VS
13446 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13447echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
13448 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13449echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
13450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13451echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13452 (
13453 cat <<\_ASBOX
789c5f4a
VZ
13454## ------------------------------------ ##
13455## Report this to bug-autoconf@gnu.org. ##
13456## ------------------------------------ ##
e6cc62c6
VS
13457_ASBOX
13458 ) |
13459 sed "s/^/$as_me: WARNING: /" >&2
13460 ;;
13461esac
13462echo "$as_me:$LINENO: checking for $ac_header" >&5
13463echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13464if eval "test \"\${$as_ac_Header+set}\" = set"; then
13465 echo $ECHO_N "(cached) $ECHO_C" >&6
13466else
789c5f4a 13467 eval "$as_ac_Header=$ac_header_preproc"
90dd450c 13468fi
e6cc62c6
VS
13469echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13470echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13471
4f14bcd8 13472fi
e6cc62c6
VS
13473if test `eval echo '${'$as_ac_Header'}'` = yes; then
13474 cat >>confdefs.h <<_ACEOF
13475#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13476_ACEOF
13477
21d1c967 13478fi
e6cc62c6 13479
21d1c967 13480done
3a922bb4 13481
8284b0c5 13482
4f5a7f74
VZ
13483case "${host}" in
13484 *-pc-os2_emx | *-pc-os2-emx )
13485 if test $ac_cv_header_langinfo_h = "yes"; then
13486 LIBS="$LIBS -lintl"
13487 fi
13488 ;;
13489esac
1542ea39 13490
a0b9e27f 13491if test "$wxUSE_GUI" = "yes"; then
73d617c9 13492 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
e6cc62c6 13493
eb69fda5 13494for ac_header in X11/Xlib.h
21d1c967 13495do
e6cc62c6
VS
13496as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13497if eval "test \"\${$as_ac_Header+set}\" = set"; then
13498 echo "$as_me:$LINENO: checking for $ac_header" >&5
13499echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13500if eval "test \"\${$as_ac_Header+set}\" = set"; then
13501 echo $ECHO_N "(cached) $ECHO_C" >&6
13502fi
13503echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13504echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13505else
13506 # Is the header compilable?
13507echo "$as_me:$LINENO: checking $ac_header usability" >&5
13508echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13509cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13510#line $LINENO "configure"
e6cc62c6
VS
13511/* confdefs.h. */
13512_ACEOF
13513cat confdefs.h >>conftest.$ac_ext
13514cat >>conftest.$ac_ext <<_ACEOF
13515/* end confdefs.h. */
13516$ac_includes_default
13517#include <$ac_header>
13518_ACEOF
13519rm -f conftest.$ac_objext
13520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13521 (eval $ac_compile) 2>&5
e6cc62c6
VS
13522 ac_status=$?
13523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13524 (exit $ac_status); } &&
789c5f4a 13525 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13527 (eval $ac_try) 2>&5
13528 ac_status=$?
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 ac_header_compiler=yes
13532else
13533 echo "$as_me: failed program was:" >&5
13534sed 's/^/| /' conftest.$ac_ext >&5
13535
13536ac_header_compiler=no
13537fi
789c5f4a 13538rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13539echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13540echo "${ECHO_T}$ac_header_compiler" >&6
13541
13542# Is the header present?
13543echo "$as_me:$LINENO: checking $ac_header presence" >&5
13544echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13545cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13546#line $LINENO "configure"
e6cc62c6
VS
13547/* confdefs.h. */
13548_ACEOF
13549cat confdefs.h >>conftest.$ac_ext
13550cat >>conftest.$ac_ext <<_ACEOF
13551/* end confdefs.h. */
13552#include <$ac_header>
13553_ACEOF
13554if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13555 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13556 ac_status=$?
13557 grep -v '^ *+' conftest.er1 >conftest.err
13558 rm -f conftest.er1
13559 cat conftest.err >&5
13560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13561 (exit $ac_status); } >/dev/null; then
13562 if test -s conftest.err; then
13563 ac_cpp_err=$ac_c_preproc_warn_flag
13564 else
13565 ac_cpp_err=
13566 fi
13567else
13568 ac_cpp_err=yes
13569fi
13570if test -z "$ac_cpp_err"; then
13571 ac_header_preproc=yes
13572else
13573 echo "$as_me: failed program was:" >&5
13574sed 's/^/| /' conftest.$ac_ext >&5
13575
13576 ac_header_preproc=no
13577fi
13578rm -f conftest.err conftest.$ac_ext
13579echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13580echo "${ECHO_T}$ac_header_preproc" >&6
13581
13582# So? What about this header?
789c5f4a
VZ
13583case $ac_header_compiler:$ac_header_preproc in
13584 yes:no )
e6cc62c6
VS
13585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13586echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
13587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13588echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13589 (
13590 cat <<\_ASBOX
13591## ------------------------------------ ##
13592## Report this to bug-autoconf@gnu.org. ##
13593## ------------------------------------ ##
13594_ASBOX
13595 ) |
13596 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 13597 ;;
789c5f4a 13598 no:yes )
e6cc62c6
VS
13599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13600echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
13601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13602echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
13603 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13604echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13605 (
13606 cat <<\_ASBOX
789c5f4a
VZ
13607## ------------------------------------ ##
13608## Report this to bug-autoconf@gnu.org. ##
13609## ------------------------------------ ##
e6cc62c6
VS
13610_ASBOX
13611 ) |
13612 sed "s/^/$as_me: WARNING: /" >&2
13613 ;;
13614esac
13615echo "$as_me:$LINENO: checking for $ac_header" >&5
13616echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13617if eval "test \"\${$as_ac_Header+set}\" = set"; then
13618 echo $ECHO_N "(cached) $ECHO_C" >&6
13619else
789c5f4a 13620 eval "$as_ac_Header=$ac_header_preproc"
3a922bb4 13621fi
e6cc62c6
VS
13622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13623echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13624
90dd450c 13625fi
e6cc62c6
VS
13626if test `eval echo '${'$as_ac_Header'}'` = yes; then
13627 cat >>confdefs.h <<_ACEOF
13628#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13629_ACEOF
13630
247f5006 13631fi
e6cc62c6 13632
eb69fda5
VS
13633done
13634
13635
13636for ac_header in X11/XKBlib.h
13637do
13638as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13639echo "$as_me:$LINENO: checking for $ac_header" >&5
13640echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13641if eval "test \"\${$as_ac_Header+set}\" = set"; then
13642 echo $ECHO_N "(cached) $ECHO_C" >&6
13643else
13644 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13645#line $LINENO "configure"
eb69fda5
VS
13646/* confdefs.h. */
13647_ACEOF
13648cat confdefs.h >>conftest.$ac_ext
13649cat >>conftest.$ac_ext <<_ACEOF
13650/* end confdefs.h. */
13651
13652 #if HAVE_X11_XLIB_H
13653 #include <X11/Xlib.h>
13654 #endif
13655
13656
13657#include <$ac_header>
13658_ACEOF
13659rm -f conftest.$ac_objext
13660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13661 (eval $ac_compile) 2>&5
eb69fda5
VS
13662 ac_status=$?
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); } &&
789c5f4a 13665 { ac_try='test -s conftest.$ac_objext'
eb69fda5
VS
13666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667 (eval $ac_try) 2>&5
13668 ac_status=$?
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; }; then
13671 eval "$as_ac_Header=yes"
13672else
13673 echo "$as_me: failed program was:" >&5
13674sed 's/^/| /' conftest.$ac_ext >&5
13675
13676eval "$as_ac_Header=no"
13677fi
789c5f4a 13678rm -f conftest.$ac_objext conftest.$ac_ext
eb69fda5
VS
13679fi
13680echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13681echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13682if test `eval echo '${'$as_ac_Header'}'` = yes; then
13683 cat >>confdefs.h <<_ACEOF
13684#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13685_ACEOF
13686
13687fi
13688
247f5006
VZ
13689done
13690
a0b9e27f
MB
13691 fi
13692fi
247f5006 13693
247f5006 13694
e6cc62c6
VS
13695echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13696echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13697if test "${ac_cv_c_const+set}" = set; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13699else
13700 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13701#line $LINENO "configure"
e6cc62c6
VS
13702/* confdefs.h. */
13703_ACEOF
13704cat confdefs.h >>conftest.$ac_ext
13705cat >>conftest.$ac_ext <<_ACEOF
13706/* end confdefs.h. */
13707
13708int
13709main ()
13710{
13711/* FIXME: Include the comments suggested by Paul. */
13712#ifndef __cplusplus
13713 /* Ultrix mips cc rejects this. */
13714 typedef int charset[2];
13715 const charset x;
13716 /* SunOS 4.1.1 cc rejects this. */
13717 char const *const *ccp;
13718 char **p;
13719 /* NEC SVR4.0.2 mips cc rejects this. */
13720 struct point {int x, y;};
13721 static struct point const zero = {0,0};
13722 /* AIX XL C 1.02.0.0 rejects this.
13723 It does not let you subtract one const X* pointer from another in
13724 an arm of an if-expression whose if-part is not a constant
13725 expression */
13726 const char *g = "string";
13727 ccp = &g + (g ? g-g : 0);
13728 /* HPUX 7.0 cc rejects these. */
13729 ++ccp;
13730 p = (char**) ccp;
13731 ccp = (char const *const *) p;
13732 { /* SCO 3.2v4 cc rejects this. */
13733 char *t;
13734 char const *s = 0 ? (char *) 0 : (char const *) 0;
13735
13736 *t++ = 0;
13737 }
13738 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13739 int x[] = {25, 17};
13740 const int *foo = &x[0];
13741 ++foo;
13742 }
13743 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13744 typedef const int *iptr;
13745 iptr p = 0;
13746 ++p;
13747 }
13748 { /* AIX XL C 1.02.0.0 rejects this saying
13749 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13750 struct s { int j; const int *ap[3]; };
13751 struct s *b; b->j = 5;
13752 }
13753 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13754 const int foo = 10;
13755 }
13756#endif
13757
13758 ;
13759 return 0;
13760}
13761_ACEOF
13762rm -f conftest.$ac_objext
13763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13764 (eval $ac_compile) 2>&5
e6cc62c6
VS
13765 ac_status=$?
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } &&
789c5f4a 13768 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13770 (eval $ac_try) 2>&5
13771 ac_status=$?
13772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13773 (exit $ac_status); }; }; then
a0b9e27f 13774 ac_cv_c_const=yes
247f5006 13775else
e6cc62c6
VS
13776 echo "$as_me: failed program was:" >&5
13777sed 's/^/| /' conftest.$ac_ext >&5
13778
13779ac_cv_c_const=no
247f5006 13780fi
789c5f4a 13781rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 13782fi
e6cc62c6
VS
13783echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13784echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13785if test $ac_cv_c_const = no; then
e6cc62c6
VS
13786
13787cat >>confdefs.h <<\_ACEOF
13788#define const
13789_ACEOF
10f2d63a 13790
90dd450c 13791fi
81809c07 13792
e6cc62c6
VS
13793echo "$as_me:$LINENO: checking for inline" >&5
13794echo $ECHO_N "checking for inline... $ECHO_C" >&6
13795if test "${ac_cv_c_inline+set}" = set; then
13796 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13797else
a0b9e27f
MB
13798 ac_cv_c_inline=no
13799for ac_kw in inline __inline__ __inline; do
e6cc62c6 13800 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13801#line $LINENO "configure"
e6cc62c6
VS
13802/* confdefs.h. */
13803_ACEOF
13804cat confdefs.h >>conftest.$ac_ext
13805cat >>conftest.$ac_ext <<_ACEOF
13806/* end confdefs.h. */
13807#ifndef __cplusplus
13808typedef int foo_t;
13809static $ac_kw foo_t static_foo () {return 0; }
13810$ac_kw foo_t foo () {return 0; }
13811#endif
a0b9e27f 13812
e6cc62c6
VS
13813_ACEOF
13814rm -f conftest.$ac_objext
13815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13816 (eval $ac_compile) 2>&5
e6cc62c6
VS
13817 ac_status=$?
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } &&
789c5f4a 13820 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13822 (eval $ac_try) 2>&5
13823 ac_status=$?
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; }; then
a0b9e27f 13826 ac_cv_c_inline=$ac_kw; break
247f5006 13827else
e6cc62c6
VS
13828 echo "$as_me: failed program was:" >&5
13829sed 's/^/| /' conftest.$ac_ext >&5
13830
247f5006 13831fi
789c5f4a 13832rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 13833done
247f5006
VZ
13834
13835fi
e6cc62c6
VS
13836echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13837echo "${ECHO_T}$ac_cv_c_inline" >&6
13838case $ac_cv_c_inline in
a0b9e27f 13839 inline | yes) ;;
789c5f4a
VZ
13840 no)
13841cat >>confdefs.h <<\_ACEOF
13842#define inline
09d3439c 13843_ACEOF
789c5f4a
VZ
13844 ;;
13845 *) cat >>confdefs.h <<_ACEOF
13846#define inline $ac_cv_c_inline
13847_ACEOF
13848 ;;
a0b9e27f 13849esac
247f5006 13850
247f5006 13851
e6cc62c6
VS
13852echo "$as_me:$LINENO: checking for char" >&5
13853echo $ECHO_N "checking for char... $ECHO_C" >&6
13854if test "${ac_cv_type_char+set}" = set; then
13855 echo $ECHO_N "(cached) $ECHO_C" >&6
13856else
13857 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13858#line $LINENO "configure"
e6cc62c6
VS
13859/* confdefs.h. */
13860_ACEOF
13861cat confdefs.h >>conftest.$ac_ext
13862cat >>conftest.$ac_ext <<_ACEOF
13863/* end confdefs.h. */
13864$ac_includes_default
13865int
13866main ()
13867{
13868if ((char *) 0)
13869 return 0;
13870if (sizeof (char))
13871 return 0;
13872 ;
13873 return 0;
13874}
13875_ACEOF
13876rm -f conftest.$ac_objext
13877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13878 (eval $ac_compile) 2>&5
e6cc62c6
VS
13879 ac_status=$?
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } &&
789c5f4a 13882 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13884 (eval $ac_try) 2>&5
13885 ac_status=$?
13886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); }; }; then
13888 ac_cv_type_char=yes
13889else
13890 echo "$as_me: failed program was:" >&5
13891sed 's/^/| /' conftest.$ac_ext >&5
13892
13893ac_cv_type_char=no
13894fi
789c5f4a 13895rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13896fi
13897echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13898echo "${ECHO_T}$ac_cv_type_char" >&6
13899
13900echo "$as_me:$LINENO: checking size of char" >&5
13901echo $ECHO_N "checking size of char... $ECHO_C" >&6
13902if test "${ac_cv_sizeof_char+set}" = set; then
13903 echo $ECHO_N "(cached) $ECHO_C" >&6
13904else
13905 if test "$ac_cv_type_char" = yes; then
13906 # The cast to unsigned long works around a bug in the HP C Compiler
13907 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13908 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13909 # This bug is HP SR number 8606223364.
a0b9e27f 13910 if test "$cross_compiling" = yes; then
e6cc62c6
VS
13911 # Depending upon the size, compute the lo and hi bounds.
13912cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13913#line $LINENO "configure"
e6cc62c6
VS
13914/* confdefs.h. */
13915_ACEOF
13916cat confdefs.h >>conftest.$ac_ext
13917cat >>conftest.$ac_ext <<_ACEOF
13918/* end confdefs.h. */
13919$ac_includes_default
13920int
13921main ()
13922{
13923static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13924test_array [0] = 0
13925
13926 ;
13927 return 0;
13928}
13929_ACEOF
13930rm -f conftest.$ac_objext
13931if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13932 (eval $ac_compile) 2>&5
e6cc62c6
VS
13933 ac_status=$?
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } &&
789c5f4a 13936 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13938 (eval $ac_try) 2>&5
13939 ac_status=$?
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); }; }; then
13942 ac_lo=0 ac_mid=0
13943 while :; do
13944 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13945#line $LINENO "configure"
e6cc62c6
VS
13946/* confdefs.h. */
13947_ACEOF
13948cat confdefs.h >>conftest.$ac_ext
13949cat >>conftest.$ac_ext <<_ACEOF
13950/* end confdefs.h. */
13951$ac_includes_default
13952int
13953main ()
13954{
13955static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13956test_array [0] = 0
13957
13958 ;
13959 return 0;
13960}
13961_ACEOF
13962rm -f conftest.$ac_objext
13963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 13964 (eval $ac_compile) 2>&5
e6cc62c6
VS
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } &&
789c5f4a 13968 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13970 (eval $ac_try) 2>&5
13971 ac_status=$?
13972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973 (exit $ac_status); }; }; then
13974 ac_hi=$ac_mid; break
13975else
13976 echo "$as_me: failed program was:" >&5
13977sed 's/^/| /' conftest.$ac_ext >&5
13978
13979ac_lo=`expr $ac_mid + 1`
789c5f4a
VZ
13980 if test $ac_lo -le $ac_mid; then
13981 ac_lo= ac_hi=
13982 break
13983 fi
13984 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 13985fi
789c5f4a 13986rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 13987 done
a0b9e27f 13988else
e6cc62c6
VS
13989 echo "$as_me: failed program was:" >&5
13990sed 's/^/| /' conftest.$ac_ext >&5
13991
13992cat >conftest.$ac_ext <<_ACEOF
789c5f4a 13993#line $LINENO "configure"
e6cc62c6
VS
13994/* confdefs.h. */
13995_ACEOF
13996cat confdefs.h >>conftest.$ac_ext
13997cat >>conftest.$ac_ext <<_ACEOF
13998/* end confdefs.h. */
13999$ac_includes_default
14000int
14001main ()
14002{
14003static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14004test_array [0] = 0
14005
14006 ;
14007 return 0;
14008}
14009_ACEOF
14010rm -f conftest.$ac_objext
14011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14012 (eval $ac_compile) 2>&5
e6cc62c6
VS
14013 ac_status=$?
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } &&
789c5f4a 14016 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018 (eval $ac_try) 2>&5
14019 ac_status=$?
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }; }; then
14022 ac_hi=-1 ac_mid=-1
14023 while :; do
14024 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14025#line $LINENO "configure"
e6cc62c6
VS
14026/* confdefs.h. */
14027_ACEOF
14028cat confdefs.h >>conftest.$ac_ext
14029cat >>conftest.$ac_ext <<_ACEOF
14030/* end confdefs.h. */
14031$ac_includes_default
14032int
14033main ()
14034{
14035static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14036test_array [0] = 0
14037
14038 ;
14039 return 0;
14040}
14041_ACEOF
14042rm -f conftest.$ac_objext
14043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14044 (eval $ac_compile) 2>&5
e6cc62c6
VS
14045 ac_status=$?
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); } &&
789c5f4a 14048 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14050 (eval $ac_try) 2>&5
14051 ac_status=$?
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); }; }; then
14054 ac_lo=$ac_mid; break
14055else
14056 echo "$as_me: failed program was:" >&5
14057sed 's/^/| /' conftest.$ac_ext >&5
14058
14059ac_hi=`expr '(' $ac_mid ')' - 1`
789c5f4a
VZ
14060 if test $ac_mid -le $ac_hi; then
14061 ac_lo= ac_hi=
14062 break
14063 fi
14064 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14065fi
789c5f4a 14066rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14067 done
14068else
14069 echo "$as_me: failed program was:" >&5
14070sed 's/^/| /' conftest.$ac_ext >&5
14071
14072ac_lo= ac_hi=
14073fi
789c5f4a 14074rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14075fi
789c5f4a 14076rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14077# Binary search between lo and hi bounds.
14078while test "x$ac_lo" != "x$ac_hi"; do
14079 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14080 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14081#line $LINENO "configure"
e6cc62c6
VS
14082/* confdefs.h. */
14083_ACEOF
14084cat confdefs.h >>conftest.$ac_ext
14085cat >>conftest.$ac_ext <<_ACEOF
14086/* end confdefs.h. */
14087$ac_includes_default
14088int
14089main ()
14090{
14091static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14092test_array [0] = 0
14093
14094 ;
14095 return 0;
14096}
14097_ACEOF
14098rm -f conftest.$ac_objext
14099if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14100 (eval $ac_compile) 2>&5
e6cc62c6
VS
14101 ac_status=$?
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } &&
789c5f4a 14104 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14106 (eval $ac_try) 2>&5
14107 ac_status=$?
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); }; }; then
14110 ac_hi=$ac_mid
14111else
14112 echo "$as_me: failed program was:" >&5
14113sed 's/^/| /' conftest.$ac_ext >&5
14114
14115ac_lo=`expr '(' $ac_mid ')' + 1`
14116fi
789c5f4a 14117rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14118done
14119case $ac_lo in
14120?*) ac_cv_sizeof_char=$ac_lo;;
14121'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14122See \`config.log' for more details." >&5
14123echo "$as_me: error: cannot compute sizeof (char), 77
14124See \`config.log' for more details." >&2;}
14125 { (exit 1); exit 1; }; } ;;
14126esac
14127else
14128 if test "$cross_compiling" = yes; then
14129 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14130See \`config.log' for more details." >&5
14131echo "$as_me: error: cannot run test program while cross compiling
14132See \`config.log' for more details." >&2;}
14133 { (exit 1); exit 1; }; }
14134else
14135 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14136#line $LINENO "configure"
e6cc62c6
VS
14137/* confdefs.h. */
14138_ACEOF
14139cat confdefs.h >>conftest.$ac_ext
14140cat >>conftest.$ac_ext <<_ACEOF
14141/* end confdefs.h. */
14142$ac_includes_default
14143long longval () { return (long) (sizeof (char)); }
14144unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 14145#include <stdio.h>
e6cc62c6
VS
14146#include <stdlib.h>
14147int
14148main ()
247f5006 14149{
e6cc62c6
VS
14150
14151 FILE *f = fopen ("conftest.val", "w");
14152 if (! f)
14153 exit (1);
14154 if (((long) (sizeof (char))) < 0)
14155 {
14156 long i = longval ();
14157 if (i != ((long) (sizeof (char))))
14158 exit (1);
14159 fprintf (f, "%ld\n", i);
14160 }
14161 else
14162 {
14163 unsigned long i = ulongval ();
14164 if (i != ((long) (sizeof (char))))
14165 exit (1);
14166 fprintf (f, "%lu\n", i);
14167 }
14168 exit (ferror (f) || fclose (f) != 0);
14169
14170 ;
14171 return 0;
52127426 14172}
e6cc62c6
VS
14173_ACEOF
14174rm -f conftest$ac_exeext
14175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14176 (eval $ac_link) 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14181 (eval $ac_try) 2>&5
14182 ac_status=$?
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; }; then
14185 ac_cv_sizeof_char=`cat conftest.val`
14186else
14187 echo "$as_me: program exited with status $ac_status" >&5
14188echo "$as_me: failed program was:" >&5
14189sed 's/^/| /' conftest.$ac_ext >&5
14190
14191( exit $ac_status )
14192{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14193See \`config.log' for more details." >&5
14194echo "$as_me: error: cannot compute sizeof (char), 77
14195See \`config.log' for more details." >&2;}
14196 { (exit 1); exit 1; }; }
14197fi
789c5f4a 14198rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14199fi
14200fi
14201rm -f conftest.val
247f5006 14202else
a0b9e27f 14203 ac_cv_sizeof_char=0
247f5006 14204fi
247f5006 14205fi
e6cc62c6
VS
14206echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14207echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14208cat >>confdefs.h <<_ACEOF
14209#define SIZEOF_CHAR $ac_cv_sizeof_char
14210_ACEOF
14211
14212
14213echo "$as_me:$LINENO: checking for short" >&5
14214echo $ECHO_N "checking for short... $ECHO_C" >&6
14215if test "${ac_cv_type_short+set}" = set; then
14216 echo $ECHO_N "(cached) $ECHO_C" >&6
14217else
14218 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14219#line $LINENO "configure"
e6cc62c6
VS
14220/* confdefs.h. */
14221_ACEOF
14222cat confdefs.h >>conftest.$ac_ext
14223cat >>conftest.$ac_ext <<_ACEOF
14224/* end confdefs.h. */
14225$ac_includes_default
14226int
14227main ()
14228{
14229if ((short *) 0)
14230 return 0;
14231if (sizeof (short))
14232 return 0;
14233 ;
14234 return 0;
14235}
14236_ACEOF
14237rm -f conftest.$ac_objext
14238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14239 (eval $ac_compile) 2>&5
e6cc62c6
VS
14240 ac_status=$?
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); } &&
789c5f4a 14243 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14245 (eval $ac_try) 2>&5
14246 ac_status=$?
14247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14248 (exit $ac_status); }; }; then
14249 ac_cv_type_short=yes
14250else
14251 echo "$as_me: failed program was:" >&5
14252sed 's/^/| /' conftest.$ac_ext >&5
14253
14254ac_cv_type_short=no
14255fi
789c5f4a 14256rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14257fi
14258echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14259echo "${ECHO_T}$ac_cv_type_short" >&6
14260
14261echo "$as_me:$LINENO: checking size of short" >&5
14262echo $ECHO_N "checking size of short... $ECHO_C" >&6
14263if test "${ac_cv_sizeof_short+set}" = set; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14265else
14266 if test "$ac_cv_type_short" = yes; then
14267 # The cast to unsigned long works around a bug in the HP C Compiler
14268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14270 # This bug is HP SR number 8606223364.
14271 if test "$cross_compiling" = yes; then
14272 # Depending upon the size, compute the lo and hi bounds.
14273cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14274#line $LINENO "configure"
e6cc62c6
VS
14275/* confdefs.h. */
14276_ACEOF
14277cat confdefs.h >>conftest.$ac_ext
14278cat >>conftest.$ac_ext <<_ACEOF
14279/* end confdefs.h. */
14280$ac_includes_default
14281int
14282main ()
14283{
14284static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14285test_array [0] = 0
247f5006 14286
e6cc62c6
VS
14287 ;
14288 return 0;
14289}
14290_ACEOF
14291rm -f conftest.$ac_objext
14292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14293 (eval $ac_compile) 2>&5
e6cc62c6
VS
14294 ac_status=$?
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } &&
789c5f4a 14297 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14299 (eval $ac_try) 2>&5
14300 ac_status=$?
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); }; }; then
14303 ac_lo=0 ac_mid=0
14304 while :; do
14305 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14306#line $LINENO "configure"
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 (short))) <= $ac_mid)];
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
789c5f4a 14325 (eval $ac_compile) 2>&5
e6cc62c6
VS
14326 ac_status=$?
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } &&
789c5f4a 14329 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14331 (eval $ac_try) 2>&5
14332 ac_status=$?
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); }; }; then
14335 ac_hi=$ac_mid; break
14336else
14337 echo "$as_me: failed program was:" >&5
14338sed 's/^/| /' conftest.$ac_ext >&5
14339
14340ac_lo=`expr $ac_mid + 1`
789c5f4a
VZ
14341 if test $ac_lo -le $ac_mid; then
14342 ac_lo= ac_hi=
14343 break
14344 fi
14345 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14346fi
789c5f4a 14347rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14348 done
14349else
14350 echo "$as_me: failed program was:" >&5
14351sed 's/^/| /' conftest.$ac_ext >&5
14352
14353cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14354#line $LINENO "configure"
e6cc62c6
VS
14355/* confdefs.h. */
14356_ACEOF
14357cat confdefs.h >>conftest.$ac_ext
14358cat >>conftest.$ac_ext <<_ACEOF
14359/* end confdefs.h. */
14360$ac_includes_default
14361int
14362main ()
14363{
14364static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14365test_array [0] = 0
247f5006 14366
e6cc62c6
VS
14367 ;
14368 return 0;
14369}
14370_ACEOF
14371rm -f conftest.$ac_objext
14372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14373 (eval $ac_compile) 2>&5
e6cc62c6
VS
14374 ac_status=$?
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } &&
789c5f4a 14377 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14379 (eval $ac_try) 2>&5
14380 ac_status=$?
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); }; }; then
14383 ac_hi=-1 ac_mid=-1
14384 while :; do
14385 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14386#line $LINENO "configure"
e6cc62c6
VS
14387/* confdefs.h. */
14388_ACEOF
14389cat confdefs.h >>conftest.$ac_ext
14390cat >>conftest.$ac_ext <<_ACEOF
14391/* end confdefs.h. */
14392$ac_includes_default
14393int
14394main ()
14395{
14396static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14397test_array [0] = 0
247f5006 14398
e6cc62c6
VS
14399 ;
14400 return 0;
14401}
14402_ACEOF
14403rm -f conftest.$ac_objext
14404if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14405 (eval $ac_compile) 2>&5
e6cc62c6
VS
14406 ac_status=$?
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } &&
789c5f4a 14409 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14411 (eval $ac_try) 2>&5
14412 ac_status=$?
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); }; }; then
14415 ac_lo=$ac_mid; break
14416else
14417 echo "$as_me: failed program was:" >&5
14418sed 's/^/| /' conftest.$ac_ext >&5
14419
14420ac_hi=`expr '(' $ac_mid ')' - 1`
789c5f4a
VZ
14421 if test $ac_mid -le $ac_hi; then
14422 ac_lo= ac_hi=
14423 break
14424 fi
14425 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14426fi
789c5f4a 14427rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14428 done
247f5006 14429else
e6cc62c6
VS
14430 echo "$as_me: failed program was:" >&5
14431sed 's/^/| /' conftest.$ac_ext >&5
14432
14433ac_lo= ac_hi=
14434fi
789c5f4a 14435rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14436fi
789c5f4a 14437rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14438# Binary search between lo and hi bounds.
14439while test "x$ac_lo" != "x$ac_hi"; do
14440 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14441 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14442#line $LINENO "configure"
e6cc62c6
VS
14443/* confdefs.h. */
14444_ACEOF
14445cat confdefs.h >>conftest.$ac_ext
14446cat >>conftest.$ac_ext <<_ACEOF
14447/* end confdefs.h. */
14448$ac_includes_default
14449int
14450main ()
14451{
14452static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14453test_array [0] = 0
14454
14455 ;
14456 return 0;
14457}
14458_ACEOF
14459rm -f conftest.$ac_objext
14460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14461 (eval $ac_compile) 2>&5
e6cc62c6
VS
14462 ac_status=$?
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } &&
789c5f4a 14465 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467 (eval $ac_try) 2>&5
14468 ac_status=$?
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; }; then
14471 ac_hi=$ac_mid
14472else
14473 echo "$as_me: failed program was:" >&5
14474sed 's/^/| /' conftest.$ac_ext >&5
14475
14476ac_lo=`expr '(' $ac_mid ')' + 1`
14477fi
789c5f4a 14478rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14479done
14480case $ac_lo in
14481?*) ac_cv_sizeof_short=$ac_lo;;
14482'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14483See \`config.log' for more details." >&5
14484echo "$as_me: error: cannot compute sizeof (short), 77
14485See \`config.log' for more details." >&2;}
14486 { (exit 1); exit 1; }; } ;;
14487esac
247f5006 14488else
e6cc62c6
VS
14489 if test "$cross_compiling" = yes; then
14490 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14491See \`config.log' for more details." >&5
14492echo "$as_me: error: cannot run test program while cross compiling
14493See \`config.log' for more details." >&2;}
14494 { (exit 1); exit 1; }; }
14495else
14496 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14497#line $LINENO "configure"
e6cc62c6
VS
14498/* confdefs.h. */
14499_ACEOF
14500cat confdefs.h >>conftest.$ac_ext
14501cat >>conftest.$ac_ext <<_ACEOF
14502/* end confdefs.h. */
14503$ac_includes_default
14504long longval () { return (long) (sizeof (short)); }
14505unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14506#include <stdio.h>
e6cc62c6
VS
14507#include <stdlib.h>
14508int
14509main ()
a0b9e27f 14510{
e6cc62c6
VS
14511
14512 FILE *f = fopen ("conftest.val", "w");
14513 if (! f)
14514 exit (1);
14515 if (((long) (sizeof (short))) < 0)
14516 {
14517 long i = longval ();
14518 if (i != ((long) (sizeof (short))))
14519 exit (1);
14520 fprintf (f, "%ld\n", i);
14521 }
14522 else
14523 {
14524 unsigned long i = ulongval ();
14525 if (i != ((long) (sizeof (short))))
14526 exit (1);
14527 fprintf (f, "%lu\n", i);
14528 }
14529 exit (ferror (f) || fclose (f) != 0);
14530
14531 ;
14532 return 0;
a0b9e27f 14533}
e6cc62c6
VS
14534_ACEOF
14535rm -f conftest$ac_exeext
14536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14537 (eval $ac_link) 2>&5
14538 ac_status=$?
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14542 (eval $ac_try) 2>&5
14543 ac_status=$?
14544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14545 (exit $ac_status); }; }; then
14546 ac_cv_sizeof_short=`cat conftest.val`
14547else
14548 echo "$as_me: program exited with status $ac_status" >&5
14549echo "$as_me: failed program was:" >&5
14550sed 's/^/| /' conftest.$ac_ext >&5
14551
14552( exit $ac_status )
14553{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14554See \`config.log' for more details." >&5
14555echo "$as_me: error: cannot compute sizeof (short), 77
14556See \`config.log' for more details." >&2;}
14557 { (exit 1); exit 1; }; }
14558fi
789c5f4a 14559rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14560fi
14561fi
14562rm -f conftest.val
247f5006 14563else
a0b9e27f 14564 ac_cv_sizeof_short=0
247f5006 14565fi
247f5006 14566fi
e6cc62c6
VS
14567echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14568echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14569cat >>confdefs.h <<_ACEOF
14570#define SIZEOF_SHORT $ac_cv_sizeof_short
14571_ACEOF
14572
14573
14574echo "$as_me:$LINENO: checking for void *" >&5
14575echo $ECHO_N "checking for void *... $ECHO_C" >&6
14576if test "${ac_cv_type_void_p+set}" = set; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14578else
14579 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14580#line $LINENO "configure"
e6cc62c6
VS
14581/* confdefs.h. */
14582_ACEOF
14583cat confdefs.h >>conftest.$ac_ext
14584cat >>conftest.$ac_ext <<_ACEOF
14585/* end confdefs.h. */
14586$ac_includes_default
14587int
14588main ()
14589{
14590if ((void * *) 0)
14591 return 0;
14592if (sizeof (void *))
14593 return 0;
14594 ;
14595 return 0;
14596}
14597_ACEOF
14598rm -f conftest.$ac_objext
14599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14600 (eval $ac_compile) 2>&5
e6cc62c6
VS
14601 ac_status=$?
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); } &&
789c5f4a 14604 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14607 ac_status=$?
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; }; then
14610 ac_cv_type_void_p=yes
14611else
14612 echo "$as_me: failed program was:" >&5
14613sed 's/^/| /' conftest.$ac_ext >&5
14614
14615ac_cv_type_void_p=no
14616fi
789c5f4a 14617rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14618fi
14619echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14620echo "${ECHO_T}$ac_cv_type_void_p" >&6
14621
14622echo "$as_me:$LINENO: checking size of void *" >&5
14623echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14624if test "${ac_cv_sizeof_void_p+set}" = set; then
14625 echo $ECHO_N "(cached) $ECHO_C" >&6
14626else
14627 if test "$ac_cv_type_void_p" = yes; then
14628 # The cast to unsigned long works around a bug in the HP C Compiler
14629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14631 # This bug is HP SR number 8606223364.
14632 if test "$cross_compiling" = yes; then
14633 # Depending upon the size, compute the lo and hi bounds.
14634cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14635#line $LINENO "configure"
e6cc62c6
VS
14636/* confdefs.h. */
14637_ACEOF
14638cat confdefs.h >>conftest.$ac_ext
14639cat >>conftest.$ac_ext <<_ACEOF
14640/* end confdefs.h. */
14641$ac_includes_default
14642int
14643main ()
14644{
14645static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14646test_array [0] = 0
14647
14648 ;
14649 return 0;
14650}
14651_ACEOF
14652rm -f conftest.$ac_objext
14653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14654 (eval $ac_compile) 2>&5
e6cc62c6
VS
14655 ac_status=$?
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); } &&
789c5f4a 14658 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14660 (eval $ac_try) 2>&5
14661 ac_status=$?
14662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14663 (exit $ac_status); }; }; then
14664 ac_lo=0 ac_mid=0
14665 while :; do
14666 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14667#line $LINENO "configure"
e6cc62c6
VS
14668/* confdefs.h. */
14669_ACEOF
14670cat confdefs.h >>conftest.$ac_ext
14671cat >>conftest.$ac_ext <<_ACEOF
14672/* end confdefs.h. */
14673$ac_includes_default
14674int
14675main ()
14676{
14677static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14678test_array [0] = 0
247f5006 14679
e6cc62c6
VS
14680 ;
14681 return 0;
14682}
14683_ACEOF
14684rm -f conftest.$ac_objext
14685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14686 (eval $ac_compile) 2>&5
e6cc62c6
VS
14687 ac_status=$?
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); } &&
789c5f4a 14690 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
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); }; }; then
14696 ac_hi=$ac_mid; break
14697else
14698 echo "$as_me: failed program was:" >&5
14699sed 's/^/| /' conftest.$ac_ext >&5
14700
14701ac_lo=`expr $ac_mid + 1`
789c5f4a
VZ
14702 if test $ac_lo -le $ac_mid; then
14703 ac_lo= ac_hi=
14704 break
14705 fi
14706 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14707fi
789c5f4a 14708rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14709 done
14710else
14711 echo "$as_me: failed program was:" >&5
14712sed 's/^/| /' conftest.$ac_ext >&5
14713
14714cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14715#line $LINENO "configure"
e6cc62c6
VS
14716/* confdefs.h. */
14717_ACEOF
14718cat confdefs.h >>conftest.$ac_ext
14719cat >>conftest.$ac_ext <<_ACEOF
14720/* end confdefs.h. */
14721$ac_includes_default
14722int
14723main ()
14724{
14725static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
14726test_array [0] = 0
247f5006 14727
e6cc62c6
VS
14728 ;
14729 return 0;
14730}
14731_ACEOF
14732rm -f conftest.$ac_objext
14733if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14734 (eval $ac_compile) 2>&5
e6cc62c6
VS
14735 ac_status=$?
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } &&
789c5f4a 14738 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14740 (eval $ac_try) 2>&5
14741 ac_status=$?
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); }; }; then
14744 ac_hi=-1 ac_mid=-1
14745 while :; do
14746 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14747#line $LINENO "configure"
e6cc62c6
VS
14748/* confdefs.h. */
14749_ACEOF
14750cat confdefs.h >>conftest.$ac_ext
14751cat >>conftest.$ac_ext <<_ACEOF
14752/* end confdefs.h. */
14753$ac_includes_default
14754int
14755main ()
14756{
14757static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
14758test_array [0] = 0
247f5006 14759
e6cc62c6
VS
14760 ;
14761 return 0;
14762}
14763_ACEOF
14764rm -f conftest.$ac_objext
14765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14766 (eval $ac_compile) 2>&5
e6cc62c6
VS
14767 ac_status=$?
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); } &&
789c5f4a 14770 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14772 (eval $ac_try) 2>&5
14773 ac_status=$?
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); }; }; then
14776 ac_lo=$ac_mid; break
14777else
14778 echo "$as_me: failed program was:" >&5
14779sed 's/^/| /' conftest.$ac_ext >&5
14780
14781ac_hi=`expr '(' $ac_mid ')' - 1`
789c5f4a
VZ
14782 if test $ac_mid -le $ac_hi; then
14783 ac_lo= ac_hi=
14784 break
14785 fi
14786 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14787fi
789c5f4a 14788rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14789 done
a0b9e27f 14790else
e6cc62c6
VS
14791 echo "$as_me: failed program was:" >&5
14792sed 's/^/| /' conftest.$ac_ext >&5
14793
14794ac_lo= ac_hi=
14795fi
789c5f4a 14796rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14797fi
789c5f4a 14798rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14799# Binary search between lo and hi bounds.
14800while test "x$ac_lo" != "x$ac_hi"; do
14801 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14802 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14803#line $LINENO "configure"
e6cc62c6
VS
14804/* confdefs.h. */
14805_ACEOF
14806cat confdefs.h >>conftest.$ac_ext
14807cat >>conftest.$ac_ext <<_ACEOF
14808/* end confdefs.h. */
14809$ac_includes_default
14810int
14811main ()
14812{
14813static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14814test_array [0] = 0
14815
14816 ;
14817 return 0;
14818}
14819_ACEOF
14820rm -f conftest.$ac_objext
14821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14822 (eval $ac_compile) 2>&5
e6cc62c6
VS
14823 ac_status=$?
14824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14825 (exit $ac_status); } &&
789c5f4a 14826 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14828 (eval $ac_try) 2>&5
14829 ac_status=$?
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); }; }; then
14832 ac_hi=$ac_mid
14833else
14834 echo "$as_me: failed program was:" >&5
14835sed 's/^/| /' conftest.$ac_ext >&5
14836
14837ac_lo=`expr '(' $ac_mid ')' + 1`
14838fi
789c5f4a 14839rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14840done
14841case $ac_lo in
14842?*) ac_cv_sizeof_void_p=$ac_lo;;
14843'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14844See \`config.log' for more details." >&5
14845echo "$as_me: error: cannot compute sizeof (void *), 77
14846See \`config.log' for more details." >&2;}
14847 { (exit 1); exit 1; }; } ;;
14848esac
247f5006 14849else
e6cc62c6
VS
14850 if test "$cross_compiling" = yes; then
14851 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14852See \`config.log' for more details." >&5
14853echo "$as_me: error: cannot run test program while cross compiling
14854See \`config.log' for more details." >&2;}
14855 { (exit 1); exit 1; }; }
14856else
14857 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14858#line $LINENO "configure"
e6cc62c6
VS
14859/* confdefs.h. */
14860_ACEOF
14861cat confdefs.h >>conftest.$ac_ext
14862cat >>conftest.$ac_ext <<_ACEOF
14863/* end confdefs.h. */
14864$ac_includes_default
14865long longval () { return (long) (sizeof (void *)); }
14866unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 14867#include <stdio.h>
e6cc62c6
VS
14868#include <stdlib.h>
14869int
14870main ()
247f5006 14871{
e6cc62c6
VS
14872
14873 FILE *f = fopen ("conftest.val", "w");
14874 if (! f)
14875 exit (1);
14876 if (((long) (sizeof (void *))) < 0)
14877 {
14878 long i = longval ();
14879 if (i != ((long) (sizeof (void *))))
14880 exit (1);
14881 fprintf (f, "%ld\n", i);
14882 }
14883 else
14884 {
14885 unsigned long i = ulongval ();
14886 if (i != ((long) (sizeof (void *))))
14887 exit (1);
14888 fprintf (f, "%lu\n", i);
14889 }
14890 exit (ferror (f) || fclose (f) != 0);
14891
14892 ;
14893 return 0;
5c6fa7d2 14894}
e6cc62c6
VS
14895_ACEOF
14896rm -f conftest$ac_exeext
14897if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14898 (eval $ac_link) 2>&5
14899 ac_status=$?
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14903 (eval $ac_try) 2>&5
14904 ac_status=$?
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907 ac_cv_sizeof_void_p=`cat conftest.val`
14908else
14909 echo "$as_me: program exited with status $ac_status" >&5
14910echo "$as_me: failed program was:" >&5
14911sed 's/^/| /' conftest.$ac_ext >&5
14912
14913( exit $ac_status )
14914{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
14915See \`config.log' for more details." >&5
14916echo "$as_me: error: cannot compute sizeof (void *), 77
14917See \`config.log' for more details." >&2;}
14918 { (exit 1); exit 1; }; }
14919fi
789c5f4a 14920rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14921fi
14922fi
14923rm -f conftest.val
a0b9e27f 14924else
a0b9e27f
MB
14925 ac_cv_sizeof_void_p=0
14926fi
a0b9e27f 14927fi
e6cc62c6
VS
14928echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
14929echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
14930cat >>confdefs.h <<_ACEOF
14931#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
14932_ACEOF
14933
14934
14935echo "$as_me:$LINENO: checking for int" >&5
14936echo $ECHO_N "checking for int... $ECHO_C" >&6
14937if test "${ac_cv_type_int+set}" = set; then
14938 echo $ECHO_N "(cached) $ECHO_C" >&6
14939else
14940 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14941#line $LINENO "configure"
e6cc62c6
VS
14942/* confdefs.h. */
14943_ACEOF
14944cat confdefs.h >>conftest.$ac_ext
14945cat >>conftest.$ac_ext <<_ACEOF
14946/* end confdefs.h. */
14947$ac_includes_default
14948int
14949main ()
14950{
14951if ((int *) 0)
14952 return 0;
14953if (sizeof (int))
14954 return 0;
14955 ;
14956 return 0;
14957}
14958_ACEOF
14959rm -f conftest.$ac_objext
14960if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 14961 (eval $ac_compile) 2>&5
e6cc62c6
VS
14962 ac_status=$?
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); } &&
789c5f4a 14965 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14967 (eval $ac_try) 2>&5
14968 ac_status=$?
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); }; }; then
14971 ac_cv_type_int=yes
14972else
14973 echo "$as_me: failed program was:" >&5
14974sed 's/^/| /' conftest.$ac_ext >&5
14975
14976ac_cv_type_int=no
14977fi
789c5f4a 14978rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14979fi
14980echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
14981echo "${ECHO_T}$ac_cv_type_int" >&6
14982
14983echo "$as_me:$LINENO: checking size of int" >&5
14984echo $ECHO_N "checking size of int... $ECHO_C" >&6
14985if test "${ac_cv_sizeof_int+set}" = set; then
14986 echo $ECHO_N "(cached) $ECHO_C" >&6
14987else
14988 if test "$ac_cv_type_int" = yes; then
14989 # The cast to unsigned long works around a bug in the HP C Compiler
14990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14992 # This bug is HP SR number 8606223364.
14993 if test "$cross_compiling" = yes; then
14994 # Depending upon the size, compute the lo and hi bounds.
14995cat >conftest.$ac_ext <<_ACEOF
789c5f4a 14996#line $LINENO "configure"
e6cc62c6
VS
14997/* confdefs.h. */
14998_ACEOF
14999cat confdefs.h >>conftest.$ac_ext
15000cat >>conftest.$ac_ext <<_ACEOF
15001/* end confdefs.h. */
15002$ac_includes_default
15003int
15004main ()
15005{
15006static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15007test_array [0] = 0
8284b0c5 15008
e6cc62c6
VS
15009 ;
15010 return 0;
15011}
15012_ACEOF
15013rm -f conftest.$ac_objext
15014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15015 (eval $ac_compile) 2>&5
e6cc62c6
VS
15016 ac_status=$?
15017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15018 (exit $ac_status); } &&
789c5f4a 15019 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15021 (eval $ac_try) 2>&5
15022 ac_status=$?
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); }; }; then
15025 ac_lo=0 ac_mid=0
15026 while :; do
15027 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15028#line $LINENO "configure"
e6cc62c6
VS
15029/* confdefs.h. */
15030_ACEOF
15031cat confdefs.h >>conftest.$ac_ext
15032cat >>conftest.$ac_ext <<_ACEOF
15033/* end confdefs.h. */
15034$ac_includes_default
15035int
15036main ()
15037{
15038static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15039test_array [0] = 0
15040
15041 ;
15042 return 0;
15043}
15044_ACEOF
15045rm -f conftest.$ac_objext
15046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15047 (eval $ac_compile) 2>&5
e6cc62c6
VS
15048 ac_status=$?
15049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050 (exit $ac_status); } &&
789c5f4a 15051 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15053 (eval $ac_try) 2>&5
15054 ac_status=$?
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); }; }; then
15057 ac_hi=$ac_mid; break
15058else
15059 echo "$as_me: failed program was:" >&5
15060sed 's/^/| /' conftest.$ac_ext >&5
15061
15062ac_lo=`expr $ac_mid + 1`
789c5f4a
VZ
15063 if test $ac_lo -le $ac_mid; then
15064 ac_lo= ac_hi=
15065 break
15066 fi
15067 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 15068fi
789c5f4a 15069rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15070 done
15071else
15072 echo "$as_me: failed program was:" >&5
15073sed 's/^/| /' conftest.$ac_ext >&5
15074
15075cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15076#line $LINENO "configure"
e6cc62c6
VS
15077/* confdefs.h. */
15078_ACEOF
15079cat confdefs.h >>conftest.$ac_ext
15080cat >>conftest.$ac_ext <<_ACEOF
15081/* end confdefs.h. */
15082$ac_includes_default
15083int
15084main ()
15085{
15086static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15087test_array [0] = 0
247f5006 15088
e6cc62c6
VS
15089 ;
15090 return 0;
15091}
15092_ACEOF
15093rm -f conftest.$ac_objext
15094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15095 (eval $ac_compile) 2>&5
e6cc62c6
VS
15096 ac_status=$?
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); } &&
789c5f4a 15099 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101 (eval $ac_try) 2>&5
15102 ac_status=$?
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15105 ac_hi=-1 ac_mid=-1
15106 while :; do
15107 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15108#line $LINENO "configure"
e6cc62c6
VS
15109/* confdefs.h. */
15110_ACEOF
15111cat confdefs.h >>conftest.$ac_ext
15112cat >>conftest.$ac_ext <<_ACEOF
15113/* end confdefs.h. */
15114$ac_includes_default
15115int
15116main ()
15117{
15118static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15119test_array [0] = 0
247f5006 15120
e6cc62c6
VS
15121 ;
15122 return 0;
15123}
15124_ACEOF
15125rm -f conftest.$ac_objext
15126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15127 (eval $ac_compile) 2>&5
e6cc62c6
VS
15128 ac_status=$?
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } &&
789c5f4a 15131 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15133 (eval $ac_try) 2>&5
15134 ac_status=$?
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; }; then
15137 ac_lo=$ac_mid; break
15138else
15139 echo "$as_me: failed program was:" >&5
15140sed 's/^/| /' conftest.$ac_ext >&5
15141
15142ac_hi=`expr '(' $ac_mid ')' - 1`
789c5f4a
VZ
15143 if test $ac_mid -le $ac_hi; then
15144 ac_lo= ac_hi=
15145 break
15146 fi
15147 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15148fi
789c5f4a 15149rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15150 done
247f5006 15151else
e6cc62c6
VS
15152 echo "$as_me: failed program was:" >&5
15153sed 's/^/| /' conftest.$ac_ext >&5
15154
15155ac_lo= ac_hi=
15156fi
789c5f4a 15157rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15158fi
789c5f4a 15159rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15160# Binary search between lo and hi bounds.
15161while test "x$ac_lo" != "x$ac_hi"; do
15162 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15163 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15164#line $LINENO "configure"
e6cc62c6
VS
15165/* confdefs.h. */
15166_ACEOF
15167cat confdefs.h >>conftest.$ac_ext
15168cat >>conftest.$ac_ext <<_ACEOF
15169/* end confdefs.h. */
15170$ac_includes_default
15171int
15172main ()
15173{
15174static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15175test_array [0] = 0
15176
15177 ;
15178 return 0;
15179}
15180_ACEOF
15181rm -f conftest.$ac_objext
15182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15183 (eval $ac_compile) 2>&5
e6cc62c6
VS
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); } &&
789c5f4a 15187 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15189 (eval $ac_try) 2>&5
15190 ac_status=$?
15191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192 (exit $ac_status); }; }; then
15193 ac_hi=$ac_mid
15194else
15195 echo "$as_me: failed program was:" >&5
15196sed 's/^/| /' conftest.$ac_ext >&5
15197
15198ac_lo=`expr '(' $ac_mid ')' + 1`
15199fi
789c5f4a 15200rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15201done
15202case $ac_lo in
15203?*) ac_cv_sizeof_int=$ac_lo;;
15204'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15205See \`config.log' for more details." >&5
15206echo "$as_me: error: cannot compute sizeof (int), 77
15207See \`config.log' for more details." >&2;}
15208 { (exit 1); exit 1; }; } ;;
15209esac
a0b9e27f 15210else
e6cc62c6
VS
15211 if test "$cross_compiling" = yes; then
15212 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15213See \`config.log' for more details." >&5
15214echo "$as_me: error: cannot run test program while cross compiling
15215See \`config.log' for more details." >&2;}
15216 { (exit 1); exit 1; }; }
15217else
15218 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15219#line $LINENO "configure"
e6cc62c6
VS
15220/* confdefs.h. */
15221_ACEOF
15222cat confdefs.h >>conftest.$ac_ext
15223cat >>conftest.$ac_ext <<_ACEOF
15224/* end confdefs.h. */
15225$ac_includes_default
15226long longval () { return (long) (sizeof (int)); }
15227unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15228#include <stdio.h>
e6cc62c6
VS
15229#include <stdlib.h>
15230int
15231main ()
247f5006 15232{
e6cc62c6
VS
15233
15234 FILE *f = fopen ("conftest.val", "w");
15235 if (! f)
15236 exit (1);
15237 if (((long) (sizeof (int))) < 0)
15238 {
15239 long i = longval ();
15240 if (i != ((long) (sizeof (int))))
15241 exit (1);
15242 fprintf (f, "%ld\n", i);
15243 }
15244 else
15245 {
15246 unsigned long i = ulongval ();
15247 if (i != ((long) (sizeof (int))))
15248 exit (1);
15249 fprintf (f, "%lu\n", i);
15250 }
15251 exit (ferror (f) || fclose (f) != 0);
15252
15253 ;
15254 return 0;
247f5006 15255}
e6cc62c6
VS
15256_ACEOF
15257rm -f conftest$ac_exeext
15258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15259 (eval $ac_link) 2>&5
15260 ac_status=$?
15261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15264 (eval $ac_try) 2>&5
15265 ac_status=$?
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); }; }; then
15268 ac_cv_sizeof_int=`cat conftest.val`
15269else
15270 echo "$as_me: program exited with status $ac_status" >&5
15271echo "$as_me: failed program was:" >&5
15272sed 's/^/| /' conftest.$ac_ext >&5
15273
15274( exit $ac_status )
15275{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15276See \`config.log' for more details." >&5
15277echo "$as_me: error: cannot compute sizeof (int), 77
15278See \`config.log' for more details." >&2;}
15279 { (exit 1); exit 1; }; }
15280fi
789c5f4a 15281rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15282fi
15283fi
15284rm -f conftest.val
6f72b082 15285else
a0b9e27f 15286 ac_cv_sizeof_int=0
21d1c967 15287fi
698dcdb6 15288fi
e6cc62c6
VS
15289echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15290echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15291cat >>confdefs.h <<_ACEOF
15292#define SIZEOF_INT $ac_cv_sizeof_int
15293_ACEOF
15294
15295
15296echo "$as_me:$LINENO: checking for long" >&5
15297echo $ECHO_N "checking for long... $ECHO_C" >&6
15298if test "${ac_cv_type_long+set}" = set; then
15299 echo $ECHO_N "(cached) $ECHO_C" >&6
15300else
15301 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15302#line $LINENO "configure"
e6cc62c6
VS
15303/* confdefs.h. */
15304_ACEOF
15305cat confdefs.h >>conftest.$ac_ext
15306cat >>conftest.$ac_ext <<_ACEOF
15307/* end confdefs.h. */
15308$ac_includes_default
15309int
15310main ()
15311{
15312if ((long *) 0)
15313 return 0;
15314if (sizeof (long))
15315 return 0;
15316 ;
15317 return 0;
15318}
15319_ACEOF
15320rm -f conftest.$ac_objext
15321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15322 (eval $ac_compile) 2>&5
e6cc62c6
VS
15323 ac_status=$?
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); } &&
789c5f4a 15326 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15328 (eval $ac_try) 2>&5
15329 ac_status=$?
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; }; then
15332 ac_cv_type_long=yes
15333else
15334 echo "$as_me: failed program was:" >&5
15335sed 's/^/| /' conftest.$ac_ext >&5
15336
15337ac_cv_type_long=no
15338fi
789c5f4a 15339rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15340fi
15341echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15342echo "${ECHO_T}$ac_cv_type_long" >&6
15343
15344echo "$as_me:$LINENO: checking size of long" >&5
15345echo $ECHO_N "checking size of long... $ECHO_C" >&6
15346if test "${ac_cv_sizeof_long+set}" = set; then
15347 echo $ECHO_N "(cached) $ECHO_C" >&6
15348else
15349 if test "$ac_cv_type_long" = yes; then
15350 # The cast to unsigned long works around a bug in the HP C Compiler
15351 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15352 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15353 # This bug is HP SR number 8606223364.
15354 if test "$cross_compiling" = yes; then
15355 # Depending upon the size, compute the lo and hi bounds.
15356cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15357#line $LINENO "configure"
e6cc62c6
VS
15358/* confdefs.h. */
15359_ACEOF
15360cat confdefs.h >>conftest.$ac_ext
15361cat >>conftest.$ac_ext <<_ACEOF
15362/* end confdefs.h. */
15363$ac_includes_default
15364int
15365main ()
15366{
15367static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15368test_array [0] = 0
15369
15370 ;
15371 return 0;
15372}
15373_ACEOF
15374rm -f conftest.$ac_objext
15375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15376 (eval $ac_compile) 2>&5
e6cc62c6
VS
15377 ac_status=$?
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } &&
789c5f4a 15380 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15383 ac_status=$?
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; }; then
15386 ac_lo=0 ac_mid=0
15387 while :; do
15388 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15389#line $LINENO "configure"
e6cc62c6
VS
15390/* confdefs.h. */
15391_ACEOF
15392cat confdefs.h >>conftest.$ac_ext
15393cat >>conftest.$ac_ext <<_ACEOF
15394/* end confdefs.h. */
15395$ac_includes_default
15396int
15397main ()
15398{
15399static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15400test_array [0] = 0
4f14bcd8 15401
e6cc62c6
VS
15402 ;
15403 return 0;
15404}
15405_ACEOF
15406rm -f conftest.$ac_objext
15407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15408 (eval $ac_compile) 2>&5
e6cc62c6
VS
15409 ac_status=$?
15410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15411 (exit $ac_status); } &&
789c5f4a 15412 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15414 (eval $ac_try) 2>&5
15415 ac_status=$?
15416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15417 (exit $ac_status); }; }; then
15418 ac_hi=$ac_mid; break
15419else
15420 echo "$as_me: failed program was:" >&5
15421sed 's/^/| /' conftest.$ac_ext >&5
15422
15423ac_lo=`expr $ac_mid + 1`
789c5f4a
VZ
15424 if test $ac_lo -le $ac_mid; then
15425 ac_lo= ac_hi=
15426 break
15427 fi
15428 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15429fi
789c5f4a 15430rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15431 done
15432else
15433 echo "$as_me: failed program was:" >&5
15434sed 's/^/| /' conftest.$ac_ext >&5
15435
15436cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15437#line $LINENO "configure"
e6cc62c6
VS
15438/* confdefs.h. */
15439_ACEOF
15440cat confdefs.h >>conftest.$ac_ext
15441cat >>conftest.$ac_ext <<_ACEOF
15442/* end confdefs.h. */
15443$ac_includes_default
15444int
15445main ()
15446{
15447static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15448test_array [0] = 0
4f14bcd8 15449
e6cc62c6
VS
15450 ;
15451 return 0;
15452}
15453_ACEOF
15454rm -f conftest.$ac_objext
15455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15456 (eval $ac_compile) 2>&5
e6cc62c6
VS
15457 ac_status=$?
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } &&
789c5f4a 15460 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15463 ac_status=$?
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; }; then
15466 ac_hi=-1 ac_mid=-1
15467 while :; do
15468 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15469#line $LINENO "configure"
e6cc62c6
VS
15470/* confdefs.h. */
15471_ACEOF
15472cat confdefs.h >>conftest.$ac_ext
15473cat >>conftest.$ac_ext <<_ACEOF
15474/* end confdefs.h. */
15475$ac_includes_default
15476int
15477main ()
15478{
15479static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15480test_array [0] = 0
5c6fa7d2 15481
e6cc62c6
VS
15482 ;
15483 return 0;
15484}
15485_ACEOF
15486rm -f conftest.$ac_objext
15487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15488 (eval $ac_compile) 2>&5
e6cc62c6
VS
15489 ac_status=$?
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); } &&
789c5f4a 15492 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15495 ac_status=$?
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; }; then
15498 ac_lo=$ac_mid; break
15499else
15500 echo "$as_me: failed program was:" >&5
15501sed 's/^/| /' conftest.$ac_ext >&5
15502
15503ac_hi=`expr '(' $ac_mid ')' - 1`
789c5f4a
VZ
15504 if test $ac_mid -le $ac_hi; then
15505 ac_lo= ac_hi=
15506 break
15507 fi
15508 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15509fi
789c5f4a 15510rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15511 done
247f5006 15512else
e6cc62c6
VS
15513 echo "$as_me: failed program was:" >&5
15514sed 's/^/| /' conftest.$ac_ext >&5
15515
15516ac_lo= ac_hi=
15517fi
789c5f4a 15518rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15519fi
789c5f4a 15520rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15521# Binary search between lo and hi bounds.
15522while test "x$ac_lo" != "x$ac_hi"; do
15523 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15524 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15525#line $LINENO "configure"
e6cc62c6
VS
15526/* confdefs.h. */
15527_ACEOF
15528cat confdefs.h >>conftest.$ac_ext
15529cat >>conftest.$ac_ext <<_ACEOF
15530/* end confdefs.h. */
15531$ac_includes_default
15532int
15533main ()
15534{
15535static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15536test_array [0] = 0
15537
15538 ;
15539 return 0;
15540}
15541_ACEOF
15542rm -f conftest.$ac_objext
15543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 15544 (eval $ac_compile) 2>&5
e6cc62c6
VS
15545 ac_status=$?
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 (exit $ac_status); } &&
789c5f4a 15548 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15550 (eval $ac_try) 2>&5
15551 ac_status=$?
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); }; }; then
15554 ac_hi=$ac_mid
15555else
15556 echo "$as_me: failed program was:" >&5
15557sed 's/^/| /' conftest.$ac_ext >&5
15558
15559ac_lo=`expr '(' $ac_mid ')' + 1`
15560fi
789c5f4a 15561rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15562done
15563case $ac_lo in
15564?*) ac_cv_sizeof_long=$ac_lo;;
15565'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15566See \`config.log' for more details." >&5
15567echo "$as_me: error: cannot compute sizeof (long), 77
15568See \`config.log' for more details." >&2;}
15569 { (exit 1); exit 1; }; } ;;
15570esac
247f5006 15571else
e6cc62c6
VS
15572 if test "$cross_compiling" = yes; then
15573 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15574See \`config.log' for more details." >&5
15575echo "$as_me: error: cannot run test program while cross compiling
15576See \`config.log' for more details." >&2;}
15577 { (exit 1); exit 1; }; }
15578else
15579 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 15580#line $LINENO "configure"
e6cc62c6
VS
15581/* confdefs.h. */
15582_ACEOF
15583cat confdefs.h >>conftest.$ac_ext
15584cat >>conftest.$ac_ext <<_ACEOF
15585/* end confdefs.h. */
15586$ac_includes_default
15587long longval () { return (long) (sizeof (long)); }
15588unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 15589#include <stdio.h>
e6cc62c6
VS
15590#include <stdlib.h>
15591int
15592main ()
247f5006 15593{
e6cc62c6
VS
15594
15595 FILE *f = fopen ("conftest.val", "w");
15596 if (! f)
15597 exit (1);
15598 if (((long) (sizeof (long))) < 0)
15599 {
15600 long i = longval ();
15601 if (i != ((long) (sizeof (long))))
15602 exit (1);
15603 fprintf (f, "%ld\n", i);
15604 }
15605 else
15606 {
15607 unsigned long i = ulongval ();
15608 if (i != ((long) (sizeof (long))))
15609 exit (1);
15610 fprintf (f, "%lu\n", i);
15611 }
15612 exit (ferror (f) || fclose (f) != 0);
15613
15614 ;
15615 return 0;
247f5006 15616}
e6cc62c6
VS
15617_ACEOF
15618rm -f conftest$ac_exeext
15619if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15620 (eval $ac_link) 2>&5
15621 ac_status=$?
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15625 (eval $ac_try) 2>&5
15626 ac_status=$?
15627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628 (exit $ac_status); }; }; then
15629 ac_cv_sizeof_long=`cat conftest.val`
15630else
15631 echo "$as_me: program exited with status $ac_status" >&5
15632echo "$as_me: failed program was:" >&5
15633sed 's/^/| /' conftest.$ac_ext >&5
15634
15635( exit $ac_status )
15636{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
15637See \`config.log' for more details." >&5
15638echo "$as_me: error: cannot compute sizeof (long), 77
15639See \`config.log' for more details." >&2;}
15640 { (exit 1); exit 1; }; }
15641fi
789c5f4a 15642rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15643fi
15644fi
15645rm -f conftest.val
247f5006 15646else
a0b9e27f 15647 ac_cv_sizeof_long=0
247f5006 15648fi
247f5006 15649fi
e6cc62c6
VS
15650echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15651echo "${ECHO_T}$ac_cv_sizeof_long" >&6
15652cat >>confdefs.h <<_ACEOF
a0b9e27f 15653#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 15654_ACEOF
247f5006 15655
a0b9e27f 15656
ecfd48ca
VZ
15657echo "$as_me:$LINENO: checking for size_t" >&5
15658echo $ECHO_N "checking for size_t... $ECHO_C" >&6
15659if test "${ac_cv_type_size_t+set}" = set; then
15660 echo $ECHO_N "(cached) $ECHO_C" >&6
15661else
15662 cat >conftest.$ac_ext <<_ACEOF
15663#line $LINENO "configure"
15664/* confdefs.h. */
15665_ACEOF
15666cat confdefs.h >>conftest.$ac_ext
15667cat >>conftest.$ac_ext <<_ACEOF
15668/* end confdefs.h. */
15669$ac_includes_default
15670int
15671main ()
15672{
15673if ((size_t *) 0)
15674 return 0;
15675if (sizeof (size_t))
15676 return 0;
15677 ;
15678 return 0;
15679}
15680_ACEOF
15681rm -f conftest.$ac_objext
15682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15683 (eval $ac_compile) 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'
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_cv_type_size_t=yes
15694else
15695 echo "$as_me: failed program was:" >&5
15696sed 's/^/| /' conftest.$ac_ext >&5
15697
15698ac_cv_type_size_t=no
15699fi
15700rm -f conftest.$ac_objext conftest.$ac_ext
15701fi
15702echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15703echo "${ECHO_T}$ac_cv_type_size_t" >&6
15704
15705echo "$as_me:$LINENO: checking size of size_t" >&5
15706echo $ECHO_N "checking size of size_t... $ECHO_C" >&6
15707if test "${ac_cv_sizeof_size_t+set}" = set; then
15708 echo $ECHO_N "(cached) $ECHO_C" >&6
15709else
15710 if test "$ac_cv_type_size_t" = yes; then
15711 # The cast to unsigned long works around a bug in the HP C Compiler
15712 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15713 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15714 # This bug is HP SR number 8606223364.
15715 if test "$cross_compiling" = yes; then
15716 # Depending upon the size, compute the lo and hi bounds.
15717cat >conftest.$ac_ext <<_ACEOF
15718#line $LINENO "configure"
15719/* confdefs.h. */
15720_ACEOF
15721cat confdefs.h >>conftest.$ac_ext
15722cat >>conftest.$ac_ext <<_ACEOF
15723/* end confdefs.h. */
15724$ac_includes_default
15725int
15726main ()
15727{
15728static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)];
15729test_array [0] = 0
15730
15731 ;
15732 return 0;
15733}
15734_ACEOF
15735rm -f conftest.$ac_objext
15736if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15737 (eval $ac_compile) 2>&5
15738 ac_status=$?
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); } &&
15741 { ac_try='test -s conftest.$ac_objext'
15742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15743 (eval $ac_try) 2>&5
15744 ac_status=$?
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); }; }; then
15747 ac_lo=0 ac_mid=0
15748 while :; do
15749 cat >conftest.$ac_ext <<_ACEOF
15750#line $LINENO "configure"
15751/* confdefs.h. */
15752_ACEOF
15753cat confdefs.h >>conftest.$ac_ext
15754cat >>conftest.$ac_ext <<_ACEOF
15755/* end confdefs.h. */
15756$ac_includes_default
15757int
15758main ()
15759{
15760static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
15761test_array [0] = 0
15762
15763 ;
15764 return 0;
15765}
15766_ACEOF
15767rm -f conftest.$ac_objext
15768if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15769 (eval $ac_compile) 2>&5
15770 ac_status=$?
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); } &&
15773 { ac_try='test -s conftest.$ac_objext'
15774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775 (eval $ac_try) 2>&5
15776 ac_status=$?
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; }; then
15779 ac_hi=$ac_mid; break
15780else
15781 echo "$as_me: failed program was:" >&5
15782sed 's/^/| /' conftest.$ac_ext >&5
15783
15784ac_lo=`expr $ac_mid + 1`
15785 if test $ac_lo -le $ac_mid; then
15786 ac_lo= ac_hi=
15787 break
15788 fi
15789 ac_mid=`expr 2 '*' $ac_mid + 1`
15790fi
15791rm -f conftest.$ac_objext conftest.$ac_ext
15792 done
15793else
15794 echo "$as_me: failed program was:" >&5
15795sed 's/^/| /' conftest.$ac_ext >&5
15796
15797cat >conftest.$ac_ext <<_ACEOF
15798#line $LINENO "configure"
15799/* confdefs.h. */
15800_ACEOF
15801cat confdefs.h >>conftest.$ac_ext
15802cat >>conftest.$ac_ext <<_ACEOF
15803/* end confdefs.h. */
15804$ac_includes_default
15805int
15806main ()
15807{
15808static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)];
15809test_array [0] = 0
15810
15811 ;
15812 return 0;
15813}
15814_ACEOF
15815rm -f conftest.$ac_objext
15816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15817 (eval $ac_compile) 2>&5
15818 ac_status=$?
15819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15820 (exit $ac_status); } &&
15821 { ac_try='test -s conftest.$ac_objext'
15822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15823 (eval $ac_try) 2>&5
15824 ac_status=$?
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); }; }; then
15827 ac_hi=-1 ac_mid=-1
15828 while :; do
15829 cat >conftest.$ac_ext <<_ACEOF
15830#line $LINENO "configure"
15831/* confdefs.h. */
15832_ACEOF
15833cat confdefs.h >>conftest.$ac_ext
15834cat >>conftest.$ac_ext <<_ACEOF
15835/* end confdefs.h. */
15836$ac_includes_default
15837int
15838main ()
15839{
15840static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)];
15841test_array [0] = 0
15842
15843 ;
15844 return 0;
15845}
15846_ACEOF
15847rm -f conftest.$ac_objext
15848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15849 (eval $ac_compile) 2>&5
15850 ac_status=$?
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } &&
15853 { ac_try='test -s conftest.$ac_objext'
15854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15855 (eval $ac_try) 2>&5
15856 ac_status=$?
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); }; }; then
15859 ac_lo=$ac_mid; break
15860else
15861 echo "$as_me: failed program was:" >&5
15862sed 's/^/| /' conftest.$ac_ext >&5
15863
15864ac_hi=`expr '(' $ac_mid ')' - 1`
15865 if test $ac_mid -le $ac_hi; then
15866 ac_lo= ac_hi=
15867 break
15868 fi
15869 ac_mid=`expr 2 '*' $ac_mid`
15870fi
15871rm -f conftest.$ac_objext conftest.$ac_ext
15872 done
15873else
15874 echo "$as_me: failed program was:" >&5
15875sed 's/^/| /' conftest.$ac_ext >&5
15876
15877ac_lo= ac_hi=
15878fi
15879rm -f conftest.$ac_objext conftest.$ac_ext
15880fi
15881rm -f conftest.$ac_objext conftest.$ac_ext
15882# Binary search between lo and hi bounds.
15883while test "x$ac_lo" != "x$ac_hi"; do
15884 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15885 cat >conftest.$ac_ext <<_ACEOF
15886#line $LINENO "configure"
15887/* confdefs.h. */
15888_ACEOF
15889cat confdefs.h >>conftest.$ac_ext
15890cat >>conftest.$ac_ext <<_ACEOF
15891/* end confdefs.h. */
15892$ac_includes_default
15893int
15894main ()
15895{
15896static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)];
15897test_array [0] = 0
15898
15899 ;
15900 return 0;
15901}
15902_ACEOF
15903rm -f conftest.$ac_objext
15904if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15905 (eval $ac_compile) 2>&5
15906 ac_status=$?
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); } &&
15909 { ac_try='test -s conftest.$ac_objext'
15910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911 (eval $ac_try) 2>&5
15912 ac_status=$?
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); }; }; then
15915 ac_hi=$ac_mid
15916else
15917 echo "$as_me: failed program was:" >&5
15918sed 's/^/| /' conftest.$ac_ext >&5
15919
15920ac_lo=`expr '(' $ac_mid ')' + 1`
15921fi
15922rm -f conftest.$ac_objext conftest.$ac_ext
15923done
15924case $ac_lo in
15925?*) ac_cv_sizeof_size_t=$ac_lo;;
15926'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
15927See \`config.log' for more details." >&5
15928echo "$as_me: error: cannot compute sizeof (size_t), 77
15929See \`config.log' for more details." >&2;}
15930 { (exit 1); exit 1; }; } ;;
15931esac
15932else
15933 if test "$cross_compiling" = yes; then
15934 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15935See \`config.log' for more details." >&5
15936echo "$as_me: error: cannot run test program while cross compiling
15937See \`config.log' for more details." >&2;}
15938 { (exit 1); exit 1; }; }
15939else
15940 cat >conftest.$ac_ext <<_ACEOF
15941#line $LINENO "configure"
15942/* confdefs.h. */
15943_ACEOF
15944cat confdefs.h >>conftest.$ac_ext
15945cat >>conftest.$ac_ext <<_ACEOF
15946/* end confdefs.h. */
15947$ac_includes_default
15948long longval () { return (long) (sizeof (size_t)); }
15949unsigned long ulongval () { return (long) (sizeof (size_t)); }
15950#include <stdio.h>
15951#include <stdlib.h>
15952int
15953main ()
15954{
15955
15956 FILE *f = fopen ("conftest.val", "w");
15957 if (! f)
15958 exit (1);
15959 if (((long) (sizeof (size_t))) < 0)
15960 {
15961 long i = longval ();
15962 if (i != ((long) (sizeof (size_t))))
15963 exit (1);
15964 fprintf (f, "%ld\n", i);
15965 }
15966 else
15967 {
15968 unsigned long i = ulongval ();
15969 if (i != ((long) (sizeof (size_t))))
15970 exit (1);
15971 fprintf (f, "%lu\n", i);
15972 }
15973 exit (ferror (f) || fclose (f) != 0);
15974
15975 ;
15976 return 0;
15977}
15978_ACEOF
15979rm -f conftest$ac_exeext
15980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15981 (eval $ac_link) 2>&5
15982 ac_status=$?
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15986 (eval $ac_try) 2>&5
15987 ac_status=$?
15988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989 (exit $ac_status); }; }; then
15990 ac_cv_sizeof_size_t=`cat conftest.val`
15991else
15992 echo "$as_me: program exited with status $ac_status" >&5
15993echo "$as_me: failed program was:" >&5
15994sed 's/^/| /' conftest.$ac_ext >&5
15995
15996( exit $ac_status )
15997{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77
15998See \`config.log' for more details." >&5
15999echo "$as_me: error: cannot compute sizeof (size_t), 77
16000See \`config.log' for more details." >&2;}
16001 { (exit 1); exit 1; }; }
16002fi
16003rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16004fi
16005fi
16006rm -f conftest.val
16007else
16008 ac_cv_sizeof_size_t=0
16009fi
16010fi
16011echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
16012echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6
16013cat >>confdefs.h <<_ACEOF
16014#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16015_ACEOF
16016
16017
a0b9e27f
MB
16018
16019case "${host}" in
16020 arm-*-linux* )
e6cc62c6
VS
16021 echo "$as_me:$LINENO: checking for long long" >&5
16022echo $ECHO_N "checking for long long... $ECHO_C" >&6
16023if test "${ac_cv_type_long_long+set}" = set; then
16024 echo $ECHO_N "(cached) $ECHO_C" >&6
16025else
16026 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16027#line $LINENO "configure"
e6cc62c6
VS
16028/* confdefs.h. */
16029_ACEOF
16030cat confdefs.h >>conftest.$ac_ext
16031cat >>conftest.$ac_ext <<_ACEOF
16032/* end confdefs.h. */
16033$ac_includes_default
16034int
16035main ()
16036{
16037if ((long long *) 0)
16038 return 0;
16039if (sizeof (long long))
16040 return 0;
16041 ;
16042 return 0;
16043}
16044_ACEOF
16045rm -f conftest.$ac_objext
16046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16047 (eval $ac_compile) 2>&5
e6cc62c6
VS
16048 ac_status=$?
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); } &&
789c5f4a 16051 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053 (eval $ac_try) 2>&5
16054 ac_status=$?
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; }; then
16057 ac_cv_type_long_long=yes
16058else
16059 echo "$as_me: failed program was:" >&5
16060sed 's/^/| /' conftest.$ac_ext >&5
16061
16062ac_cv_type_long_long=no
16063fi
789c5f4a 16064rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16065fi
16066echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16067echo "${ECHO_T}$ac_cv_type_long_long" >&6
16068
16069echo "$as_me:$LINENO: checking size of long long" >&5
16070echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16071if test "${ac_cv_sizeof_long_long+set}" = set; then
16072 echo $ECHO_N "(cached) $ECHO_C" >&6
16073else
16074 if test "$ac_cv_type_long_long" = yes; then
16075 # The cast to unsigned long works around a bug in the HP C Compiler
16076 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16077 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16078 # This bug is HP SR number 8606223364.
a0b9e27f 16079 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16080 # Depending upon the size, compute the lo and hi bounds.
16081cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16082#line $LINENO "configure"
e6cc62c6
VS
16083/* confdefs.h. */
16084_ACEOF
16085cat confdefs.h >>conftest.$ac_ext
16086cat >>conftest.$ac_ext <<_ACEOF
16087/* end confdefs.h. */
16088$ac_includes_default
16089int
16090main ()
16091{
16092static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16093test_array [0] = 0
16094
16095 ;
16096 return 0;
16097}
16098_ACEOF
16099rm -f conftest.$ac_objext
16100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16101 (eval $ac_compile) 2>&5
e6cc62c6
VS
16102 ac_status=$?
16103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16104 (exit $ac_status); } &&
789c5f4a 16105 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16107 (eval $ac_try) 2>&5
16108 ac_status=$?
16109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16110 (exit $ac_status); }; }; then
16111 ac_lo=0 ac_mid=0
16112 while :; do
16113 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16114#line $LINENO "configure"
e6cc62c6
VS
16115/* confdefs.h. */
16116_ACEOF
16117cat confdefs.h >>conftest.$ac_ext
16118cat >>conftest.$ac_ext <<_ACEOF
16119/* end confdefs.h. */
16120$ac_includes_default
16121int
16122main ()
16123{
16124static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16125test_array [0] = 0
16126
16127 ;
16128 return 0;
16129}
16130_ACEOF
16131rm -f conftest.$ac_objext
16132if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16133 (eval $ac_compile) 2>&5
e6cc62c6
VS
16134 ac_status=$?
16135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16136 (exit $ac_status); } &&
789c5f4a 16137 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16139 (eval $ac_try) 2>&5
16140 ac_status=$?
16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16142 (exit $ac_status); }; }; then
16143 ac_hi=$ac_mid; break
16144else
16145 echo "$as_me: failed program was:" >&5
16146sed 's/^/| /' conftest.$ac_ext >&5
16147
16148ac_lo=`expr $ac_mid + 1`
789c5f4a
VZ
16149 if test $ac_lo -le $ac_mid; then
16150 ac_lo= ac_hi=
16151 break
16152 fi
16153 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 16154fi
789c5f4a 16155rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16156 done
16157else
16158 echo "$as_me: failed program was:" >&5
16159sed 's/^/| /' conftest.$ac_ext >&5
16160
16161cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16162#line $LINENO "configure"
e6cc62c6
VS
16163/* confdefs.h. */
16164_ACEOF
16165cat confdefs.h >>conftest.$ac_ext
16166cat >>conftest.$ac_ext <<_ACEOF
16167/* end confdefs.h. */
16168$ac_includes_default
16169int
16170main ()
16171{
16172static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16173test_array [0] = 0
16174
16175 ;
16176 return 0;
16177}
16178_ACEOF
16179rm -f conftest.$ac_objext
16180if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16181 (eval $ac_compile) 2>&5
e6cc62c6
VS
16182 ac_status=$?
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } &&
789c5f4a 16185 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16187 (eval $ac_try) 2>&5
16188 ac_status=$?
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; }; then
16191 ac_hi=-1 ac_mid=-1
16192 while :; do
16193 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16194#line $LINENO "configure"
e6cc62c6
VS
16195/* confdefs.h. */
16196_ACEOF
16197cat confdefs.h >>conftest.$ac_ext
16198cat >>conftest.$ac_ext <<_ACEOF
16199/* end confdefs.h. */
16200$ac_includes_default
16201int
16202main ()
16203{
16204static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16205test_array [0] = 0
16206
16207 ;
16208 return 0;
16209}
16210_ACEOF
16211rm -f conftest.$ac_objext
16212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16213 (eval $ac_compile) 2>&5
e6cc62c6
VS
16214 ac_status=$?
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); } &&
789c5f4a 16217 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16219 (eval $ac_try) 2>&5
16220 ac_status=$?
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); }; }; then
16223 ac_lo=$ac_mid; break
16224else
16225 echo "$as_me: failed program was:" >&5
16226sed 's/^/| /' conftest.$ac_ext >&5
16227
16228ac_hi=`expr '(' $ac_mid ')' - 1`
789c5f4a
VZ
16229 if test $ac_mid -le $ac_hi; then
16230 ac_lo= ac_hi=
16231 break
16232 fi
16233 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16234fi
789c5f4a 16235rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16236 done
16237else
16238 echo "$as_me: failed program was:" >&5
16239sed 's/^/| /' conftest.$ac_ext >&5
16240
16241ac_lo= ac_hi=
16242fi
789c5f4a 16243rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16244fi
789c5f4a 16245rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16246# Binary search between lo and hi bounds.
16247while test "x$ac_lo" != "x$ac_hi"; do
16248 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16249 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16250#line $LINENO "configure"
e6cc62c6
VS
16251/* confdefs.h. */
16252_ACEOF
16253cat confdefs.h >>conftest.$ac_ext
16254cat >>conftest.$ac_ext <<_ACEOF
16255/* end confdefs.h. */
16256$ac_includes_default
16257int
16258main ()
16259{
16260static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16261test_array [0] = 0
16262
16263 ;
16264 return 0;
16265}
16266_ACEOF
16267rm -f conftest.$ac_objext
16268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16269 (eval $ac_compile) 2>&5
e6cc62c6
VS
16270 ac_status=$?
16271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272 (exit $ac_status); } &&
789c5f4a 16273 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16275 (eval $ac_try) 2>&5
16276 ac_status=$?
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); }; }; then
16279 ac_hi=$ac_mid
16280else
16281 echo "$as_me: failed program was:" >&5
16282sed 's/^/| /' conftest.$ac_ext >&5
16283
16284ac_lo=`expr '(' $ac_mid ')' + 1`
16285fi
789c5f4a 16286rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16287done
16288case $ac_lo in
16289?*) ac_cv_sizeof_long_long=$ac_lo;;
16290'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16291See \`config.log' for more details." >&5
16292echo "$as_me: error: cannot compute sizeof (long long), 77
16293See \`config.log' for more details." >&2;}
16294 { (exit 1); exit 1; }; } ;;
16295esac
a0b9e27f 16296else
e6cc62c6
VS
16297 if test "$cross_compiling" = yes; then
16298 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16299See \`config.log' for more details." >&5
16300echo "$as_me: error: cannot run test program while cross compiling
16301See \`config.log' for more details." >&2;}
16302 { (exit 1); exit 1; }; }
16303else
16304 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16305#line $LINENO "configure"
e6cc62c6
VS
16306/* confdefs.h. */
16307_ACEOF
16308cat confdefs.h >>conftest.$ac_ext
16309cat >>conftest.$ac_ext <<_ACEOF
16310/* end confdefs.h. */
16311$ac_includes_default
16312long longval () { return (long) (sizeof (long long)); }
16313unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 16314#include <stdio.h>
e6cc62c6
VS
16315#include <stdlib.h>
16316int
16317main ()
247f5006 16318{
e6cc62c6
VS
16319
16320 FILE *f = fopen ("conftest.val", "w");
16321 if (! f)
16322 exit (1);
16323 if (((long) (sizeof (long long))) < 0)
16324 {
16325 long i = longval ();
16326 if (i != ((long) (sizeof (long long))))
16327 exit (1);
16328 fprintf (f, "%ld\n", i);
16329 }
16330 else
16331 {
16332 unsigned long i = ulongval ();
16333 if (i != ((long) (sizeof (long long))))
16334 exit (1);
16335 fprintf (f, "%lu\n", i);
16336 }
16337 exit (ferror (f) || fclose (f) != 0);
16338
16339 ;
16340 return 0;
247f5006 16341}
e6cc62c6
VS
16342_ACEOF
16343rm -f conftest$ac_exeext
16344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16345 (eval $ac_link) 2>&5
16346 ac_status=$?
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16350 (eval $ac_try) 2>&5
16351 ac_status=$?
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; }; then
16354 ac_cv_sizeof_long_long=`cat conftest.val`
16355else
16356 echo "$as_me: program exited with status $ac_status" >&5
16357echo "$as_me: failed program was:" >&5
16358sed 's/^/| /' conftest.$ac_ext >&5
16359
16360( exit $ac_status )
16361{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16362See \`config.log' for more details." >&5
16363echo "$as_me: error: cannot compute sizeof (long long), 77
16364See \`config.log' for more details." >&2;}
16365 { (exit 1); exit 1; }; }
16366fi
789c5f4a 16367rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16368fi
16369fi
16370rm -f conftest.val
7b4a847f 16371else
a0b9e27f 16372 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
16373fi
16374fi
e6cc62c6
VS
16375echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16376echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16377cat >>confdefs.h <<_ACEOF
16378#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16379_ACEOF
16380
16381
16382 ;;
16383 *-hp-hpux* )
16384 echo "$as_me:$LINENO: checking for long long" >&5
16385echo $ECHO_N "checking for long long... $ECHO_C" >&6
16386if test "${ac_cv_type_long_long+set}" = set; then
16387 echo $ECHO_N "(cached) $ECHO_C" >&6
16388else
16389 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16390#line $LINENO "configure"
e6cc62c6
VS
16391/* confdefs.h. */
16392_ACEOF
16393cat confdefs.h >>conftest.$ac_ext
16394cat >>conftest.$ac_ext <<_ACEOF
16395/* end confdefs.h. */
16396$ac_includes_default
16397int
16398main ()
16399{
16400if ((long long *) 0)
16401 return 0;
16402if (sizeof (long long))
16403 return 0;
16404 ;
16405 return 0;
16406}
16407_ACEOF
16408rm -f conftest.$ac_objext
16409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16410 (eval $ac_compile) 2>&5
e6cc62c6
VS
16411 ac_status=$?
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } &&
789c5f4a 16414 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16416 (eval $ac_try) 2>&5
16417 ac_status=$?
16418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16419 (exit $ac_status); }; }; then
16420 ac_cv_type_long_long=yes
16421else
16422 echo "$as_me: failed program was:" >&5
16423sed 's/^/| /' conftest.$ac_ext >&5
16424
16425ac_cv_type_long_long=no
16426fi
789c5f4a 16427rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16428fi
16429echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16430echo "${ECHO_T}$ac_cv_type_long_long" >&6
16431
16432echo "$as_me:$LINENO: checking size of long long" >&5
16433echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16434if test "${ac_cv_sizeof_long_long+set}" = set; then
16435 echo $ECHO_N "(cached) $ECHO_C" >&6
16436else
16437 if test "$ac_cv_type_long_long" = yes; then
16438 # The cast to unsigned long works around a bug in the HP C Compiler
16439 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16440 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16441 # This bug is HP SR number 8606223364.
16442 if test "$cross_compiling" = yes; then
16443 # Depending upon the size, compute the lo and hi bounds.
16444cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16445#line $LINENO "configure"
e6cc62c6
VS
16446/* confdefs.h. */
16447_ACEOF
16448cat confdefs.h >>conftest.$ac_ext
16449cat >>conftest.$ac_ext <<_ACEOF
16450/* end confdefs.h. */
16451$ac_includes_default
16452int
16453main ()
16454{
16455static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16456test_array [0] = 0
16457
16458 ;
16459 return 0;
16460}
16461_ACEOF
16462rm -f conftest.$ac_objext
16463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16464 (eval $ac_compile) 2>&5
e6cc62c6
VS
16465 ac_status=$?
16466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16467 (exit $ac_status); } &&
789c5f4a 16468 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16470 (eval $ac_try) 2>&5
16471 ac_status=$?
16472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16473 (exit $ac_status); }; }; then
16474 ac_lo=0 ac_mid=0
16475 while :; do
16476 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16477#line $LINENO "configure"
e6cc62c6
VS
16478/* confdefs.h. */
16479_ACEOF
16480cat confdefs.h >>conftest.$ac_ext
16481cat >>conftest.$ac_ext <<_ACEOF
16482/* end confdefs.h. */
16483$ac_includes_default
16484int
16485main ()
16486{
16487static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16488test_array [0] = 0
8284b0c5 16489
e6cc62c6
VS
16490 ;
16491 return 0;
16492}
16493_ACEOF
16494rm -f conftest.$ac_objext
16495if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16496 (eval $ac_compile) 2>&5
e6cc62c6
VS
16497 ac_status=$?
16498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16499 (exit $ac_status); } &&
789c5f4a 16500 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502 (eval $ac_try) 2>&5
16503 ac_status=$?
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; }; then
16506 ac_hi=$ac_mid; break
16507else
16508 echo "$as_me: failed program was:" >&5
16509sed 's/^/| /' conftest.$ac_ext >&5
16510
16511ac_lo=`expr $ac_mid + 1`
789c5f4a
VZ
16512 if test $ac_lo -le $ac_mid; then
16513 ac_lo= ac_hi=
16514 break
16515 fi
16516 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 16517fi
789c5f4a 16518rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16519 done
16520else
16521 echo "$as_me: failed program was:" >&5
16522sed 's/^/| /' conftest.$ac_ext >&5
16523
16524cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16525#line $LINENO "configure"
e6cc62c6
VS
16526/* confdefs.h. */
16527_ACEOF
16528cat confdefs.h >>conftest.$ac_ext
16529cat >>conftest.$ac_ext <<_ACEOF
16530/* end confdefs.h. */
16531$ac_includes_default
16532int
16533main ()
16534{
16535static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16536test_array [0] = 0
a0b9e27f 16537
e6cc62c6
VS
16538 ;
16539 return 0;
16540}
16541_ACEOF
16542rm -f conftest.$ac_objext
16543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16544 (eval $ac_compile) 2>&5
e6cc62c6
VS
16545 ac_status=$?
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } &&
789c5f4a 16548 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16550 (eval $ac_try) 2>&5
16551 ac_status=$?
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); }; }; then
16554 ac_hi=-1 ac_mid=-1
16555 while :; do
16556 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16557#line $LINENO "configure"
e6cc62c6
VS
16558/* confdefs.h. */
16559_ACEOF
16560cat confdefs.h >>conftest.$ac_ext
16561cat >>conftest.$ac_ext <<_ACEOF
16562/* end confdefs.h. */
16563$ac_includes_default
16564int
16565main ()
16566{
16567static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16568test_array [0] = 0
a0b9e27f 16569
e6cc62c6
VS
16570 ;
16571 return 0;
16572}
16573_ACEOF
16574rm -f conftest.$ac_objext
16575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16576 (eval $ac_compile) 2>&5
e6cc62c6
VS
16577 ac_status=$?
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } &&
789c5f4a 16580 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16582 (eval $ac_try) 2>&5
16583 ac_status=$?
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); }; }; then
16586 ac_lo=$ac_mid; break
16587else
16588 echo "$as_me: failed program was:" >&5
16589sed 's/^/| /' conftest.$ac_ext >&5
16590
16591ac_hi=`expr '(' $ac_mid ')' - 1`
789c5f4a
VZ
16592 if test $ac_mid -le $ac_hi; then
16593 ac_lo= ac_hi=
16594 break
16595 fi
16596 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16597fi
789c5f4a 16598rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16599 done
8284b0c5 16600else
e6cc62c6
VS
16601 echo "$as_me: failed program was:" >&5
16602sed 's/^/| /' conftest.$ac_ext >&5
16603
16604ac_lo= ac_hi=
16605fi
789c5f4a 16606rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16607fi
789c5f4a 16608rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16609# Binary search between lo and hi bounds.
16610while test "x$ac_lo" != "x$ac_hi"; do
16611 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16612 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16613#line $LINENO "configure"
e6cc62c6
VS
16614/* confdefs.h. */
16615_ACEOF
16616cat confdefs.h >>conftest.$ac_ext
16617cat >>conftest.$ac_ext <<_ACEOF
16618/* end confdefs.h. */
16619$ac_includes_default
16620int
16621main ()
16622{
16623static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16624test_array [0] = 0
16625
16626 ;
16627 return 0;
16628}
16629_ACEOF
16630rm -f conftest.$ac_objext
16631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16632 (eval $ac_compile) 2>&5
e6cc62c6
VS
16633 ac_status=$?
16634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16635 (exit $ac_status); } &&
789c5f4a 16636 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16638 (eval $ac_try) 2>&5
16639 ac_status=$?
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; }; then
16642 ac_hi=$ac_mid
16643else
16644 echo "$as_me: failed program was:" >&5
16645sed 's/^/| /' conftest.$ac_ext >&5
16646
16647ac_lo=`expr '(' $ac_mid ')' + 1`
16648fi
789c5f4a 16649rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16650done
16651case $ac_lo in
16652?*) ac_cv_sizeof_long_long=$ac_lo;;
16653'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16654See \`config.log' for more details." >&5
16655echo "$as_me: error: cannot compute sizeof (long long), 77
16656See \`config.log' for more details." >&2;}
16657 { (exit 1); exit 1; }; } ;;
16658esac
8284b0c5 16659else
e6cc62c6
VS
16660 if test "$cross_compiling" = yes; then
16661 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16662See \`config.log' for more details." >&5
16663echo "$as_me: error: cannot run test program while cross compiling
16664See \`config.log' for more details." >&2;}
16665 { (exit 1); exit 1; }; }
16666else
16667 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16668#line $LINENO "configure"
e6cc62c6
VS
16669/* confdefs.h. */
16670_ACEOF
16671cat confdefs.h >>conftest.$ac_ext
16672cat >>conftest.$ac_ext <<_ACEOF
16673/* end confdefs.h. */
16674$ac_includes_default
16675long longval () { return (long) (sizeof (long long)); }
16676unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16677#include <stdio.h>
e6cc62c6
VS
16678#include <stdlib.h>
16679int
16680main ()
8284b0c5 16681{
e6cc62c6
VS
16682
16683 FILE *f = fopen ("conftest.val", "w");
16684 if (! f)
16685 exit (1);
16686 if (((long) (sizeof (long long))) < 0)
16687 {
16688 long i = longval ();
16689 if (i != ((long) (sizeof (long long))))
16690 exit (1);
16691 fprintf (f, "%ld\n", i);
16692 }
16693 else
16694 {
16695 unsigned long i = ulongval ();
16696 if (i != ((long) (sizeof (long long))))
16697 exit (1);
16698 fprintf (f, "%lu\n", i);
16699 }
16700 exit (ferror (f) || fclose (f) != 0);
16701
16702 ;
16703 return 0;
8284b0c5 16704}
e6cc62c6
VS
16705_ACEOF
16706rm -f conftest$ac_exeext
16707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16708 (eval $ac_link) 2>&5
16709 ac_status=$?
16710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16713 (eval $ac_try) 2>&5
16714 ac_status=$?
16715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716 (exit $ac_status); }; }; then
16717 ac_cv_sizeof_long_long=`cat conftest.val`
16718else
16719 echo "$as_me: program exited with status $ac_status" >&5
16720echo "$as_me: failed program was:" >&5
16721sed 's/^/| /' conftest.$ac_ext >&5
16722
16723( exit $ac_status )
16724{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16725See \`config.log' for more details." >&5
16726echo "$as_me: error: cannot compute sizeof (long long), 77
16727See \`config.log' for more details." >&2;}
16728 { (exit 1); exit 1; }; }
16729fi
789c5f4a 16730rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16731fi
16732fi
16733rm -f conftest.val
5c6fa7d2
RR
16734else
16735 ac_cv_sizeof_long_long=0
52127426 16736fi
4f57cf11 16737fi
e6cc62c6
VS
16738echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16739echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16740cat >>confdefs.h <<_ACEOF
4f57cf11 16741#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16742_ACEOF
4f57cf11
GD
16743
16744
16745 if test "$ac_cv_sizeof_long_long" != "0"; then
16746 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16747 fi
16748 ;;
16749 * )
e6cc62c6
VS
16750 echo "$as_me:$LINENO: checking for long long" >&5
16751echo $ECHO_N "checking for long long... $ECHO_C" >&6
16752if test "${ac_cv_type_long_long+set}" = set; then
16753 echo $ECHO_N "(cached) $ECHO_C" >&6
16754else
16755 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16756#line $LINENO "configure"
e6cc62c6
VS
16757/* confdefs.h. */
16758_ACEOF
16759cat confdefs.h >>conftest.$ac_ext
16760cat >>conftest.$ac_ext <<_ACEOF
16761/* end confdefs.h. */
16762$ac_includes_default
16763int
16764main ()
16765{
16766if ((long long *) 0)
16767 return 0;
16768if (sizeof (long long))
16769 return 0;
16770 ;
16771 return 0;
16772}
16773_ACEOF
16774rm -f conftest.$ac_objext
16775if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16776 (eval $ac_compile) 2>&5
e6cc62c6
VS
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); } &&
789c5f4a 16780 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16782 (eval $ac_try) 2>&5
16783 ac_status=$?
16784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16785 (exit $ac_status); }; }; then
16786 ac_cv_type_long_long=yes
16787else
16788 echo "$as_me: failed program was:" >&5
16789sed 's/^/| /' conftest.$ac_ext >&5
16790
16791ac_cv_type_long_long=no
16792fi
789c5f4a 16793rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16794fi
16795echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16796echo "${ECHO_T}$ac_cv_type_long_long" >&6
16797
16798echo "$as_me:$LINENO: checking size of long long" >&5
16799echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16800if test "${ac_cv_sizeof_long_long+set}" = set; then
16801 echo $ECHO_N "(cached) $ECHO_C" >&6
16802else
16803 if test "$ac_cv_type_long_long" = yes; then
16804 # The cast to unsigned long works around a bug in the HP C Compiler
16805 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16806 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16807 # This bug is HP SR number 8606223364.
4f57cf11 16808 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16809 # Depending upon the size, compute the lo and hi bounds.
16810cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16811#line $LINENO "configure"
e6cc62c6
VS
16812/* confdefs.h. */
16813_ACEOF
16814cat confdefs.h >>conftest.$ac_ext
16815cat >>conftest.$ac_ext <<_ACEOF
16816/* end confdefs.h. */
16817$ac_includes_default
16818int
16819main ()
16820{
16821static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16822test_array [0] = 0
16823
16824 ;
16825 return 0;
16826}
16827_ACEOF
16828rm -f conftest.$ac_objext
16829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16830 (eval $ac_compile) 2>&5
e6cc62c6
VS
16831 ac_status=$?
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); } &&
789c5f4a 16834 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16836 (eval $ac_try) 2>&5
16837 ac_status=$?
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; }; then
16840 ac_lo=0 ac_mid=0
16841 while :; do
16842 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16843#line $LINENO "configure"
e6cc62c6
VS
16844/* confdefs.h. */
16845_ACEOF
16846cat confdefs.h >>conftest.$ac_ext
16847cat >>conftest.$ac_ext <<_ACEOF
16848/* end confdefs.h. */
16849$ac_includes_default
16850int
16851main ()
16852{
16853static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16854test_array [0] = 0
16855
16856 ;
16857 return 0;
16858}
16859_ACEOF
16860rm -f conftest.$ac_objext
16861if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16862 (eval $ac_compile) 2>&5
e6cc62c6
VS
16863 ac_status=$?
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); } &&
789c5f4a 16866 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16868 (eval $ac_try) 2>&5
16869 ac_status=$?
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }; }; then
16872 ac_hi=$ac_mid; break
16873else
16874 echo "$as_me: failed program was:" >&5
16875sed 's/^/| /' conftest.$ac_ext >&5
16876
16877ac_lo=`expr $ac_mid + 1`
789c5f4a
VZ
16878 if test $ac_lo -le $ac_mid; then
16879 ac_lo= ac_hi=
16880 break
16881 fi
16882 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 16883fi
789c5f4a 16884rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16885 done
16886else
16887 echo "$as_me: failed program was:" >&5
16888sed 's/^/| /' conftest.$ac_ext >&5
16889
16890cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16891#line $LINENO "configure"
e6cc62c6
VS
16892/* confdefs.h. */
16893_ACEOF
16894cat confdefs.h >>conftest.$ac_ext
16895cat >>conftest.$ac_ext <<_ACEOF
16896/* end confdefs.h. */
16897$ac_includes_default
16898int
16899main ()
16900{
16901static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16902test_array [0] = 0
16903
16904 ;
16905 return 0;
16906}
16907_ACEOF
16908rm -f conftest.$ac_objext
16909if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16910 (eval $ac_compile) 2>&5
e6cc62c6
VS
16911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } &&
789c5f4a 16914 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16917 ac_status=$?
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; }; then
16920 ac_hi=-1 ac_mid=-1
16921 while :; do
16922 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16923#line $LINENO "configure"
e6cc62c6
VS
16924/* confdefs.h. */
16925_ACEOF
16926cat confdefs.h >>conftest.$ac_ext
16927cat >>conftest.$ac_ext <<_ACEOF
16928/* end confdefs.h. */
16929$ac_includes_default
16930int
16931main ()
16932{
16933static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16934test_array [0] = 0
16935
16936 ;
16937 return 0;
16938}
16939_ACEOF
16940rm -f conftest.$ac_objext
16941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16942 (eval $ac_compile) 2>&5
e6cc62c6
VS
16943 ac_status=$?
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } &&
789c5f4a 16946 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16948 (eval $ac_try) 2>&5
16949 ac_status=$?
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; }; then
16952 ac_lo=$ac_mid; break
16953else
16954 echo "$as_me: failed program was:" >&5
16955sed 's/^/| /' conftest.$ac_ext >&5
16956
16957ac_hi=`expr '(' $ac_mid ')' - 1`
789c5f4a
VZ
16958 if test $ac_mid -le $ac_hi; then
16959 ac_lo= ac_hi=
16960 break
16961 fi
16962 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16963fi
789c5f4a 16964rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16965 done
4f57cf11 16966else
e6cc62c6
VS
16967 echo "$as_me: failed program was:" >&5
16968sed 's/^/| /' conftest.$ac_ext >&5
16969
16970ac_lo= ac_hi=
16971fi
789c5f4a 16972rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16973fi
789c5f4a 16974rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16975# Binary search between lo and hi bounds.
16976while test "x$ac_lo" != "x$ac_hi"; do
16977 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16978 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 16979#line $LINENO "configure"
e6cc62c6
VS
16980/* confdefs.h. */
16981_ACEOF
16982cat confdefs.h >>conftest.$ac_ext
16983cat >>conftest.$ac_ext <<_ACEOF
16984/* end confdefs.h. */
16985$ac_includes_default
16986int
16987main ()
16988{
16989static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16990test_array [0] = 0
16991
16992 ;
16993 return 0;
16994}
16995_ACEOF
16996rm -f conftest.$ac_objext
16997if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 16998 (eval $ac_compile) 2>&5
e6cc62c6
VS
16999 ac_status=$?
17000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17001 (exit $ac_status); } &&
789c5f4a 17002 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17004 (eval $ac_try) 2>&5
17005 ac_status=$?
17006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17007 (exit $ac_status); }; }; then
17008 ac_hi=$ac_mid
17009else
17010 echo "$as_me: failed program was:" >&5
17011sed 's/^/| /' conftest.$ac_ext >&5
17012
17013ac_lo=`expr '(' $ac_mid ')' + 1`
17014fi
789c5f4a 17015rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17016done
17017case $ac_lo in
17018?*) ac_cv_sizeof_long_long=$ac_lo;;
17019'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17020See \`config.log' for more details." >&5
17021echo "$as_me: error: cannot compute sizeof (long long), 77
17022See \`config.log' for more details." >&2;}
17023 { (exit 1); exit 1; }; } ;;
17024esac
17025else
17026 if test "$cross_compiling" = yes; then
17027 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17028See \`config.log' for more details." >&5
17029echo "$as_me: error: cannot run test program while cross compiling
17030See \`config.log' for more details." >&2;}
17031 { (exit 1); exit 1; }; }
17032else
17033 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17034#line $LINENO "configure"
e6cc62c6
VS
17035/* confdefs.h. */
17036_ACEOF
17037cat confdefs.h >>conftest.$ac_ext
17038cat >>conftest.$ac_ext <<_ACEOF
17039/* end confdefs.h. */
17040$ac_includes_default
17041long longval () { return (long) (sizeof (long long)); }
17042unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 17043#include <stdio.h>
e6cc62c6
VS
17044#include <stdlib.h>
17045int
17046main ()
4f57cf11 17047{
e6cc62c6
VS
17048
17049 FILE *f = fopen ("conftest.val", "w");
17050 if (! f)
17051 exit (1);
17052 if (((long) (sizeof (long long))) < 0)
17053 {
17054 long i = longval ();
17055 if (i != ((long) (sizeof (long long))))
17056 exit (1);
17057 fprintf (f, "%ld\n", i);
17058 }
17059 else
17060 {
17061 unsigned long i = ulongval ();
17062 if (i != ((long) (sizeof (long long))))
17063 exit (1);
17064 fprintf (f, "%lu\n", i);
17065 }
17066 exit (ferror (f) || fclose (f) != 0);
17067
17068 ;
17069 return 0;
4f57cf11 17070}
e6cc62c6
VS
17071_ACEOF
17072rm -f conftest$ac_exeext
17073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17074 (eval $ac_link) 2>&5
17075 ac_status=$?
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17079 (eval $ac_try) 2>&5
17080 ac_status=$?
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; }; then
17083 ac_cv_sizeof_long_long=`cat conftest.val`
17084else
17085 echo "$as_me: program exited with status $ac_status" >&5
17086echo "$as_me: failed program was:" >&5
17087sed 's/^/| /' conftest.$ac_ext >&5
17088
17089( exit $ac_status )
17090{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17091See \`config.log' for more details." >&5
17092echo "$as_me: error: cannot compute sizeof (long long), 77
17093See \`config.log' for more details." >&2;}
17094 { (exit 1); exit 1; }; }
17095fi
789c5f4a 17096rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17097fi
17098fi
17099rm -f conftest.val
4f57cf11 17100else
4f57cf11
GD
17101 ac_cv_sizeof_long_long=0
17102fi
7b4a847f 17103fi
e6cc62c6
VS
17104echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17105echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17106cat >>confdefs.h <<_ACEOF
21d1c967 17107#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 17108_ACEOF
9e691f46 17109
8284b0c5 17110
21d1c967
GD
17111esac
17112
e6cc62c6
VS
17113echo "$as_me:$LINENO: checking size of wchar_t" >&5
17114echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
17115if test "${wx_cv_sizeof_wchar_t+set}" = set; then
17116 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 17117else
e6cc62c6 17118
21d1c967 17119 if test "$cross_compiling" = yes; then
e6cc62c6 17120
2b5f62a0
VZ
17121 case "${host}" in
17122 *-pc-msdosdjgpp )
17123 wx_cv_sizeof_wchar_t=0
17124 ;;
17125 * )
17126 wx_cv_sizeof_wchar_t=4
17127 ;;
17128 esac
e6cc62c6
VS
17129
17130
6f72b082 17131else
e6cc62c6 17132 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17133#line $LINENO "configure"
e6cc62c6
VS
17134/* confdefs.h. */
17135_ACEOF
17136cat confdefs.h >>conftest.$ac_ext
17137cat >>conftest.$ac_ext <<_ACEOF
17138/* end confdefs.h. */
21d1c967 17139
2b5f62a0
VZ
17140 /* DJGPP only has fake wchar_t: */
17141 #ifdef __DJGPP__
17142 # error "fake wchar_t"
17143 #endif
21d1c967
GD
17144 #ifdef HAVE_WCHAR_H
17145 # ifdef __CYGWIN__
17146 # include <stddef.h>
17147 # endif
17148 # include <wchar.h>
17149 #endif
17150 #ifdef HAVE_STDLIB_H
17151 # include <stdlib.h>
17152 #endif
17153 #include <stdio.h>
17154 int main()
17155 {
17156 FILE *f=fopen("conftestval", "w");
17157 if (!f) exit(1);
17158 fprintf(f, "%i", sizeof(wchar_t));
17159 exit(0);
17160 }
e6cc62c6
VS
17161
17162_ACEOF
17163rm -f conftest$ac_exeext
17164if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17165 (eval $ac_link) 2>&5
17166 ac_status=$?
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17170 (eval $ac_try) 2>&5
17171 ac_status=$?
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; }; then
21d1c967 17174 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 17175else
e6cc62c6
VS
17176 echo "$as_me: program exited with status $ac_status" >&5
17177echo "$as_me: failed program was:" >&5
17178sed 's/^/| /' conftest.$ac_ext >&5
17179
17180( exit $ac_status )
17181wx_cv_sizeof_wchar_t=0
6f72b082 17182fi
789c5f4a 17183rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 17184fi
6f72b082 17185
3f345b47 17186fi
e6cc62c6
VS
17187echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
17188echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 17189
e6cc62c6 17190cat >>confdefs.h <<_ACEOF
21d1c967 17191#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 17192_ACEOF
90dd450c 17193
8284b0c5 17194
21d1c967
GD
17195# Check whether --enable-largefile or --disable-largefile was given.
17196if test "${enable_largefile+set}" = set; then
17197 enableval="$enable_largefile"
3f345b47 17198
e6cc62c6 17199fi;
21d1c967
GD
17200if test "$enable_largefile" != no; then
17201 wx_largefile=no
e6cc62c6
VS
17202
17203 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17204echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
17205if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17206 echo $ECHO_N "(cached) $ECHO_C" >&6
17207else
17208
17209 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17210#line $LINENO "configure"
e6cc62c6
VS
17211/* confdefs.h. */
17212_ACEOF
17213cat confdefs.h >>conftest.$ac_ext
17214cat >>conftest.$ac_ext <<_ACEOF
17215/* end confdefs.h. */
21d1c967
GD
17216#define _FILE_OFFSET_BITS 64
17217 #include <sys/types.h>
e6cc62c6
VS
17218int
17219main ()
17220{
21d1c967
GD
17221typedef struct {
17222 unsigned int field: sizeof(off_t) == 8;
17223} wxlf;
17224
e6cc62c6
VS
17225 ;
17226 return 0;
17227}
17228_ACEOF
17229rm -f conftest.$ac_objext
17230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 17231 (eval $ac_compile) 2>&5
e6cc62c6
VS
17232 ac_status=$?
17233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17234 (exit $ac_status); } &&
789c5f4a 17235 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237 (eval $ac_try) 2>&5
17238 ac_status=$?
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; }; then
21d1c967 17241 ac_cv_sys_file_offset_bits=64
f6bcfd97 17242else
e6cc62c6
VS
17243 echo "$as_me: failed program was:" >&5
17244sed 's/^/| /' conftest.$ac_ext >&5
17245
17246ac_cv_sys_file_offset_bits=no
247f5006 17247fi
789c5f4a 17248rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17249
a0b9e27f 17250
e6cc62c6
VS
17251fi
17252echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17253echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
17254
17255 if test "$ac_cv_sys_file_offset_bits" != no; then
17256 wx_largefile=yes
e6cc62c6 17257 cat >>confdefs.h <<_ACEOF
21d1c967 17258#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 17259_ACEOF
21d1c967
GD
17260
17261 fi
17262
17263 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
17264
17265 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17266echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
17267if test "${ac_cv_sys_large_files+set}" = set; then
17268 echo $ECHO_N "(cached) $ECHO_C" >&6
17269else
17270
17271 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17272#line $LINENO "configure"
e6cc62c6
VS
17273/* confdefs.h. */
17274_ACEOF
17275cat confdefs.h >>conftest.$ac_ext
17276cat >>conftest.$ac_ext <<_ACEOF
17277/* end confdefs.h. */
21d1c967
GD
17278#define _LARGE_FILES 1
17279 #include <sys/types.h>
e6cc62c6
VS
17280int
17281main ()
17282{
21d1c967
GD
17283typedef struct {
17284 unsigned int field: sizeof(off_t) == 8;
17285} wxlf;
17286
e6cc62c6
VS
17287 ;
17288 return 0;
17289}
17290_ACEOF
17291rm -f conftest.$ac_objext
17292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 17293 (eval $ac_compile) 2>&5
e6cc62c6
VS
17294 ac_status=$?
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); } &&
789c5f4a 17297 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299 (eval $ac_try) 2>&5
17300 ac_status=$?
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; }; then
21d1c967 17303 ac_cv_sys_large_files=1
f6bcfd97 17304else
e6cc62c6
VS
17305 echo "$as_me: failed program was:" >&5
17306sed 's/^/| /' conftest.$ac_ext >&5
17307
17308ac_cv_sys_large_files=no
247f5006 17309fi
789c5f4a 17310rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 17311
e6cc62c6
VS
17312
17313fi
17314echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17315echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 17316
21d1c967
GD
17317 if test "$ac_cv_sys_large_files" != no; then
17318 wx_largefile=yes
e6cc62c6 17319 cat >>confdefs.h <<_ACEOF
21d1c967 17320#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 17321_ACEOF
90dd450c 17322
90dd450c
VZ
17323 fi
17324
90dd450c 17325 fi
90dd450c 17326
e6cc62c6
VS
17327 echo "$as_me:$LINENO: checking if large file support is available" >&5
17328echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 17329 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 17330 cat >>confdefs.h <<\_ACEOF
21d1c967 17331#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 17332_ACEOF
90dd450c 17333
90dd450c 17334 fi
e6cc62c6
VS
17335 echo "$as_me:$LINENO: result: $wx_largefile" >&5
17336echo "${ECHO_T}$wx_largefile" >&6
21d1c967 17337fi
90dd450c 17338
8284b0c5 17339
f02444d0 17340if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
17341 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
17342 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 17343 else
e26c13cf 17344 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 17345 fi
e26c13cf 17346 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
17347fi
17348
e6cc62c6
VS
17349echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17350echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17351if test "${ac_cv_c_bigendian+set}" = set; then
17352 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 17353else
21d1c967
GD
17354 ac_cv_c_bigendian=unknown
17355# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6 17356cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17357#line $LINENO "configure"
e6cc62c6
VS
17358/* confdefs.h. */
17359_ACEOF
17360cat confdefs.h >>conftest.$ac_ext
17361cat >>conftest.$ac_ext <<_ACEOF
17362/* end confdefs.h. */
21d1c967
GD
17363#include <sys/types.h>
17364#include <sys/param.h>
e6cc62c6
VS
17365int
17366main ()
17367{
21d1c967
GD
17368
17369#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17370 bogus endian macros
17371#endif
e6cc62c6
VS
17372 ;
17373 return 0;
17374}
17375_ACEOF
17376rm -f conftest.$ac_objext
17377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 17378 (eval $ac_compile) 2>&5
e6cc62c6
VS
17379 ac_status=$?
17380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17381 (exit $ac_status); } &&
789c5f4a 17382 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17384 (eval $ac_try) 2>&5
17385 ac_status=$?
17386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); }; }; then
21d1c967 17388 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6 17389cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17390#line $LINENO "configure"
e6cc62c6
VS
17391/* confdefs.h. */
17392_ACEOF
17393cat confdefs.h >>conftest.$ac_ext
17394cat >>conftest.$ac_ext <<_ACEOF
17395/* end confdefs.h. */
21d1c967
GD
17396#include <sys/types.h>
17397#include <sys/param.h>
e6cc62c6
VS
17398int
17399main ()
17400{
21d1c967
GD
17401
17402#if BYTE_ORDER != BIG_ENDIAN
17403 not big endian
17404#endif
e6cc62c6
VS
17405 ;
17406 return 0;
17407}
17408_ACEOF
17409rm -f conftest.$ac_objext
17410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 17411 (eval $ac_compile) 2>&5
e6cc62c6
VS
17412 ac_status=$?
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); } &&
789c5f4a 17415 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17417 (eval $ac_try) 2>&5
17418 ac_status=$?
17419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420 (exit $ac_status); }; }; then
21d1c967 17421 ac_cv_c_bigendian=yes
3f345b47 17422else
e6cc62c6
VS
17423 echo "$as_me: failed program was:" >&5
17424sed 's/^/| /' conftest.$ac_ext >&5
17425
17426ac_cv_c_bigendian=no
3f345b47 17427fi
789c5f4a 17428rm -f conftest.$ac_objext conftest.$ac_ext
3f345b47 17429else
e6cc62c6
VS
17430 echo "$as_me: failed program was:" >&5
17431sed 's/^/| /' conftest.$ac_ext >&5
17432
3f345b47 17433fi
789c5f4a 17434rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17435if test $ac_cv_c_bigendian = unknown; then
17436if test "$cross_compiling" = yes; then
17437 ac_cv_c_bigendian=unknown
10f2d63a 17438else
e6cc62c6 17439 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17440#line $LINENO "configure"
e6cc62c6
VS
17441/* confdefs.h. */
17442_ACEOF
17443cat confdefs.h >>conftest.$ac_ext
17444cat >>conftest.$ac_ext <<_ACEOF
17445/* end confdefs.h. */
21d1c967
GD
17446main () {
17447 /* Are we little or big endian? From Harbison&Steele. */
17448 union
17449 {
17450 long l;
17451 char c[sizeof (long)];
17452 } u;
17453 u.l = 1;
17454 exit (u.c[sizeof (long) - 1] == 1);
17455}
e6cc62c6
VS
17456_ACEOF
17457rm -f conftest$ac_exeext
17458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17459 (eval $ac_link) 2>&5
17460 ac_status=$?
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464 (eval $ac_try) 2>&5
17465 ac_status=$?
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; }; then
21d1c967 17468 ac_cv_c_bigendian=no
3f345b47 17469else
e6cc62c6
VS
17470 echo "$as_me: program exited with status $ac_status" >&5
17471echo "$as_me: failed program was:" >&5
17472sed 's/^/| /' conftest.$ac_ext >&5
17473
17474( exit $ac_status )
17475ac_cv_c_bigendian=yes
247f5006 17476fi
789c5f4a 17477rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 17478fi
3f345b47 17479fi
8168de4c 17480fi
e6cc62c6
VS
17481echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17482echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 17483if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
17484 { 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
17485echo "$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
17486fi
17487if test $ac_cv_c_bigendian = yes; then
e6cc62c6 17488 cat >>confdefs.h <<\_ACEOF
247f5006 17489#define WORDS_BIGENDIAN 1
e6cc62c6 17490_ACEOF
247f5006
VZ
17491
17492fi
17493
17494
e6cc62c6
VS
17495
17496ac_ext=cc
17497ac_cpp='$CXXCPP $CPPFLAGS'
17498ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17499ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17500ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17501echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
17502echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 17503if test -z "$CXXCPP"; then
e6cc62c6
VS
17504 if test "${ac_cv_prog_CXXCPP+set}" = set; then
17505 echo $ECHO_N "(cached) $ECHO_C" >&6
17506else
17507 # Double quotes because CXXCPP needs to be expanded
17508 for CXXCPP in "$CXX -E" "/lib/cpp"
17509 do
17510 ac_preproc_ok=false
17511for ac_cxx_preproc_warn_flag in '' yes
17512do
17513 # Use a header file that comes with gcc, so configuring glibc
17514 # with a fresh cross-compiler works.
17515 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17516 # <limits.h> exists even on freestanding compilers.
17517 # On the NeXT, cc -E runs the code through the compiler's parser,
17518 # not just through cpp. "Syntax error" is here to catch this case.
17519 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17520#line $LINENO "configure"
e6cc62c6
VS
17521/* confdefs.h. */
17522_ACEOF
17523cat confdefs.h >>conftest.$ac_ext
17524cat >>conftest.$ac_ext <<_ACEOF
17525/* end confdefs.h. */
17526#ifdef __STDC__
17527# include <limits.h>
17528#else
17529# include <assert.h>
17530#endif
789c5f4a 17531 Syntax error
e6cc62c6
VS
17532_ACEOF
17533if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17534 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17535 ac_status=$?
17536 grep -v '^ *+' conftest.er1 >conftest.err
17537 rm -f conftest.er1
17538 cat conftest.err >&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); } >/dev/null; then
17541 if test -s conftest.err; then
17542 ac_cpp_err=$ac_cxx_preproc_warn_flag
17543 else
17544 ac_cpp_err=
17545 fi
247f5006 17546else
e6cc62c6
VS
17547 ac_cpp_err=yes
17548fi
17549if test -z "$ac_cpp_err"; then
17550 :
17551else
17552 echo "$as_me: failed program was:" >&5
17553sed 's/^/| /' conftest.$ac_ext >&5
17554
17555 # Broken: fails on valid input.
17556continue
17557fi
17558rm -f conftest.err conftest.$ac_ext
17559
17560 # OK, works on sane cases. Now check whether non-existent headers
17561 # can be detected and how.
17562 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17563#line $LINENO "configure"
e6cc62c6
VS
17564/* confdefs.h. */
17565_ACEOF
17566cat confdefs.h >>conftest.$ac_ext
17567cat >>conftest.$ac_ext <<_ACEOF
17568/* end confdefs.h. */
17569#include <ac_nonexistent.h>
17570_ACEOF
17571if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17572 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17573 ac_status=$?
17574 grep -v '^ *+' conftest.er1 >conftest.err
17575 rm -f conftest.er1
17576 cat conftest.err >&5
17577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17578 (exit $ac_status); } >/dev/null; then
17579 if test -s conftest.err; then
17580 ac_cpp_err=$ac_cxx_preproc_warn_flag
17581 else
17582 ac_cpp_err=
17583 fi
17584else
17585 ac_cpp_err=yes
17586fi
17587if test -z "$ac_cpp_err"; then
17588 # Broken: success on invalid input.
17589continue
17590else
17591 echo "$as_me: failed program was:" >&5
17592sed 's/^/| /' conftest.$ac_ext >&5
17593
17594 # Passes both tests.
17595ac_preproc_ok=:
17596break
17597fi
17598rm -f conftest.err conftest.$ac_ext
17599
17600done
17601# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17602rm -f conftest.err conftest.$ac_ext
17603if $ac_preproc_ok; then
17604 break
17605fi
17606
17607 done
17608 ac_cv_prog_CXXCPP=$CXXCPP
17609
17610fi
17611 CXXCPP=$ac_cv_prog_CXXCPP
17612else
17613 ac_cv_prog_CXXCPP=$CXXCPP
17614fi
17615echo "$as_me:$LINENO: result: $CXXCPP" >&5
17616echo "${ECHO_T}$CXXCPP" >&6
17617ac_preproc_ok=false
17618for ac_cxx_preproc_warn_flag in '' yes
17619do
17620 # Use a header file that comes with gcc, so configuring glibc
17621 # with a fresh cross-compiler works.
17622 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17623 # <limits.h> exists even on freestanding compilers.
17624 # On the NeXT, cc -E runs the code through the compiler's parser,
17625 # not just through cpp. "Syntax error" is here to catch this case.
17626 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17627#line $LINENO "configure"
e6cc62c6
VS
17628/* confdefs.h. */
17629_ACEOF
17630cat confdefs.h >>conftest.$ac_ext
17631cat >>conftest.$ac_ext <<_ACEOF
17632/* end confdefs.h. */
17633#ifdef __STDC__
17634# include <limits.h>
17635#else
17636# include <assert.h>
17637#endif
789c5f4a 17638 Syntax error
e6cc62c6
VS
17639_ACEOF
17640if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17641 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17642 ac_status=$?
17643 grep -v '^ *+' conftest.er1 >conftest.err
17644 rm -f conftest.er1
17645 cat conftest.err >&5
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); } >/dev/null; then
17648 if test -s conftest.err; then
17649 ac_cpp_err=$ac_cxx_preproc_warn_flag
17650 else
17651 ac_cpp_err=
17652 fi
17653else
17654 ac_cpp_err=yes
17655fi
17656if test -z "$ac_cpp_err"; then
21d1c967 17657 :
698dcdb6 17658else
e6cc62c6
VS
17659 echo "$as_me: failed program was:" >&5
17660sed 's/^/| /' conftest.$ac_ext >&5
17661
17662 # Broken: fails on valid input.
17663continue
17664fi
17665rm -f conftest.err conftest.$ac_ext
17666
17667 # OK, works on sane cases. Now check whether non-existent headers
17668 # can be detected and how.
17669 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17670#line $LINENO "configure"
e6cc62c6
VS
17671/* confdefs.h. */
17672_ACEOF
17673cat confdefs.h >>conftest.$ac_ext
17674cat >>conftest.$ac_ext <<_ACEOF
17675/* end confdefs.h. */
17676#include <ac_nonexistent.h>
17677_ACEOF
17678if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17680 ac_status=$?
17681 grep -v '^ *+' conftest.er1 >conftest.err
17682 rm -f conftest.er1
17683 cat conftest.err >&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); } >/dev/null; then
17686 if test -s conftest.err; then
17687 ac_cpp_err=$ac_cxx_preproc_warn_flag
17688 else
17689 ac_cpp_err=
17690 fi
17691else
17692 ac_cpp_err=yes
247f5006 17693fi
e6cc62c6
VS
17694if test -z "$ac_cpp_err"; then
17695 # Broken: success on invalid input.
17696continue
17697else
17698 echo "$as_me: failed program was:" >&5
17699sed 's/^/| /' conftest.$ac_ext >&5
17700
17701 # Passes both tests.
17702ac_preproc_ok=:
17703break
328a083c 17704fi
e6cc62c6
VS
17705rm -f conftest.err conftest.$ac_ext
17706
17707done
17708# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17709rm -f conftest.err conftest.$ac_ext
17710if $ac_preproc_ok; then
17711 :
17712else
17713 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17714See \`config.log' for more details." >&5
17715echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
17716See \`config.log' for more details." >&2;}
17717 { (exit 1); exit 1; }; }
90dd450c 17718fi
e6cc62c6
VS
17719
17720ac_ext=cc
17721ac_cpp='$CXXCPP $CPPFLAGS'
17722ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17723ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17724ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17725
1e6feb95 17726
1725144d 17727
21d1c967 17728 if test "$cross_compiling" = "yes"; then
e6cc62c6 17729 cat >>confdefs.h <<\_ACEOF
21d1c967 17730#define wxUSE_IOSTREAMH 1
e6cc62c6 17731_ACEOF
ab9b9eab 17732
21d1c967 17733 else
e6cc62c6
VS
17734
17735
17736 ac_ext=cc
5c6fa7d2 17737ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17738ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17739ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17740ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17741
52127426 17742
247f5006 17743
e6cc62c6 17744for ac_header in iostream
21d1c967 17745do
e6cc62c6
VS
17746as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17747if eval "test \"\${$as_ac_Header+set}\" = set"; then
17748 echo "$as_me:$LINENO: checking for $ac_header" >&5
17749echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17750if eval "test \"\${$as_ac_Header+set}\" = set"; then
17751 echo $ECHO_N "(cached) $ECHO_C" >&6
17752fi
17753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17754echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17755else
17756 # Is the header compilable?
17757echo "$as_me:$LINENO: checking $ac_header usability" >&5
17758echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17759cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17760#line $LINENO "configure"
e6cc62c6
VS
17761/* confdefs.h. */
17762_ACEOF
17763cat confdefs.h >>conftest.$ac_ext
17764cat >>conftest.$ac_ext <<_ACEOF
17765/* end confdefs.h. */
17766$ac_includes_default
17767#include <$ac_header>
17768_ACEOF
17769rm -f conftest.$ac_objext
17770if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 17771 (eval $ac_compile) 2>&5
e6cc62c6
VS
17772 ac_status=$?
17773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17774 (exit $ac_status); } &&
789c5f4a 17775 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17777 (eval $ac_try) 2>&5
17778 ac_status=$?
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); }; }; then
17781 ac_header_compiler=yes
17782else
17783 echo "$as_me: failed program was:" >&5
17784sed 's/^/| /' conftest.$ac_ext >&5
17785
17786ac_header_compiler=no
17787fi
789c5f4a 17788rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17789echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17790echo "${ECHO_T}$ac_header_compiler" >&6
17791
17792# Is the header present?
17793echo "$as_me:$LINENO: checking $ac_header presence" >&5
17794echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17795cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17796#line $LINENO "configure"
e6cc62c6
VS
17797/* confdefs.h. */
17798_ACEOF
17799cat confdefs.h >>conftest.$ac_ext
17800cat >>conftest.$ac_ext <<_ACEOF
17801/* end confdefs.h. */
17802#include <$ac_header>
17803_ACEOF
17804if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17806 ac_status=$?
17807 grep -v '^ *+' conftest.er1 >conftest.err
17808 rm -f conftest.er1
17809 cat conftest.err >&5
17810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17811 (exit $ac_status); } >/dev/null; then
17812 if test -s conftest.err; then
17813 ac_cpp_err=$ac_cxx_preproc_warn_flag
17814 else
17815 ac_cpp_err=
17816 fi
17817else
17818 ac_cpp_err=yes
17819fi
17820if test -z "$ac_cpp_err"; then
17821 ac_header_preproc=yes
17822else
17823 echo "$as_me: failed program was:" >&5
17824sed 's/^/| /' conftest.$ac_ext >&5
17825
17826 ac_header_preproc=no
17827fi
17828rm -f conftest.err conftest.$ac_ext
17829echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17830echo "${ECHO_T}$ac_header_preproc" >&6
17831
17832# So? What about this header?
789c5f4a
VZ
17833case $ac_header_compiler:$ac_header_preproc in
17834 yes:no )
e6cc62c6
VS
17835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17836echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
17837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17838echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17839 (
17840 cat <<\_ASBOX
17841## ------------------------------------ ##
17842## Report this to bug-autoconf@gnu.org. ##
17843## ------------------------------------ ##
17844_ASBOX
17845 ) |
17846 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 17847 ;;
789c5f4a 17848 no:yes )
e6cc62c6
VS
17849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17850echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
17851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17852echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
17853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17854echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17855 (
17856 cat <<\_ASBOX
789c5f4a
VZ
17857## ------------------------------------ ##
17858## Report this to bug-autoconf@gnu.org. ##
17859## ------------------------------------ ##
e6cc62c6
VS
17860_ASBOX
17861 ) |
17862 sed "s/^/$as_me: WARNING: /" >&2
17863 ;;
17864esac
17865echo "$as_me:$LINENO: checking for $ac_header" >&5
17866echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17867if eval "test \"\${$as_ac_Header+set}\" = set"; then
17868 echo $ECHO_N "(cached) $ECHO_C" >&6
17869else
789c5f4a 17870 eval "$as_ac_Header=$ac_header_preproc"
ab9b9eab 17871fi
e6cc62c6
VS
17872echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17873echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17874
90dd450c 17875fi
e6cc62c6
VS
17876if test `eval echo '${'$as_ac_Header'}'` = yes; then
17877 cat >>confdefs.h <<_ACEOF
17878#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17879_ACEOF
17880
90dd450c 17881fi
e6cc62c6 17882
21d1c967 17883done
10f2d63a 17884
8284b0c5 17885
21d1c967
GD
17886 if test "$ac_cv_header_iostream" = "yes" ; then
17887 :
17888 else
e6cc62c6 17889 cat >>confdefs.h <<\_ACEOF
21d1c967 17890#define wxUSE_IOSTREAMH 1
e6cc62c6 17891_ACEOF
788deba1 17892
90dd450c 17893 fi
ab9b9eab 17894
21d1c967 17895 ac_ext=c
21d1c967 17896ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17899ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 17900
21d1c967 17901 fi
ab9b9eab 17902
52127426 17903
8284b0c5 17904
e6cc62c6
VS
17905 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
17906echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
17907if test "${wx_cv_cpp_bool+set}" = set; then
17908 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17909else
e6cc62c6
VS
17910
17911
17912
17913 ac_ext=cc
5c6fa7d2 17914ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17915ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17916ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17917ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 17918
8284b0c5 17919
e6cc62c6 17920 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 17921#line $LINENO "configure"
e6cc62c6
VS
17922/* confdefs.h. */
17923_ACEOF
17924cat confdefs.h >>conftest.$ac_ext
17925cat >>conftest.$ac_ext <<_ACEOF
17926/* end confdefs.h. */
21d1c967 17927
e6cc62c6
VS
17928
17929int
17930main ()
17931{
21d1c967
GD
17932
17933 bool b = true;
17934
17935 return 0;
e6cc62c6
VS
17936
17937 ;
17938 return 0;
17939}
17940_ACEOF
17941rm -f conftest.$ac_objext
17942if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 17943 (eval $ac_compile) 2>&5
e6cc62c6
VS
17944 ac_status=$?
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); } &&
789c5f4a 17947 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17949 (eval $ac_try) 2>&5
17950 ac_status=$?
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); }; }; then
17953
21d1c967 17954 wx_cv_cpp_bool=yes
e6cc62c6 17955
698dcdb6 17956else
e6cc62c6
VS
17957 echo "$as_me: failed program was:" >&5
17958sed 's/^/| /' conftest.$ac_ext >&5
17959
17960
21d1c967 17961 wx_cv_cpp_bool=no
e6cc62c6
VS
17962
17963
698dcdb6 17964fi
789c5f4a 17965rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17966
17967 ac_ext=c
21d1c967 17968ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
17969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17971ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 17972
a0b9e27f 17973
e6cc62c6
VS
17974fi
17975echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
17976echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
17977
17978 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 17979 cat >>confdefs.h <<\_ACEOF
21d1c967 17980#define HAVE_BOOL 1
e6cc62c6 17981_ACEOF
ab9b9eab 17982
21d1c967
GD
17983 fi
17984
52127426 17985
8284b0c5 17986
e6cc62c6
VS
17987 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
17988echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
17989if test "${wx_cv_explicit+set}" = set; then
17990 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 17991else
e6cc62c6
VS
17992
17993
17994
17995 ac_ext=cc
5c6fa7d2 17996ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
17997ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17998ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17999ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 18000
8284b0c5 18001
e6cc62c6 18002 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18003#line $LINENO "configure"
e6cc62c6
VS
18004/* confdefs.h. */
18005_ACEOF
18006cat confdefs.h >>conftest.$ac_ext
18007cat >>conftest.$ac_ext <<_ACEOF
18008/* end confdefs.h. */
986ecc86
VZ
18009
18010 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
18011
18012int
18013main ()
18014{
986ecc86
VZ
18015
18016 return 0;
e6cc62c6
VS
18017
18018 ;
18019 return 0;
18020}
18021_ACEOF
18022rm -f conftest.$ac_objext
18023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 18024 (eval $ac_compile) 2>&5
e6cc62c6
VS
18025 ac_status=$?
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); } &&
789c5f4a 18028 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18030 (eval $ac_try) 2>&5
18031 ac_status=$?
18032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033 (exit $ac_status); }; }; then
18034
18035 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18036#line $LINENO "configure"
e6cc62c6
VS
18037/* confdefs.h. */
18038_ACEOF
18039cat confdefs.h >>conftest.$ac_ext
18040cat >>conftest.$ac_ext <<_ACEOF
18041/* end confdefs.h. */
986ecc86
VZ
18042
18043 class Foo { public: explicit Foo(int) {} };
18044 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
18045
18046int
18047main ()
18048{
986ecc86
VZ
18049
18050 TakeFoo(17);
18051 return 0;
e6cc62c6
VS
18052
18053 ;
18054 return 0;
18055}
18056_ACEOF
18057rm -f conftest.$ac_objext
18058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 18059 (eval $ac_compile) 2>&5
e6cc62c6
VS
18060 ac_status=$?
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); } &&
789c5f4a 18063 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18065 (eval $ac_try) 2>&5
18066 ac_status=$?
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; }; then
986ecc86
VZ
18069 wx_cv_explicit=no
18070else
e6cc62c6
VS
18071 echo "$as_me: failed program was:" >&5
18072sed 's/^/| /' conftest.$ac_ext >&5
18073
18074wx_cv_explicit=yes
18075
986ecc86 18076fi
789c5f4a 18077rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 18078
986ecc86 18079else
e6cc62c6
VS
18080 echo "$as_me: failed program was:" >&5
18081sed 's/^/| /' conftest.$ac_ext >&5
18082
18083wx_cv_explicit=no
18084
986ecc86 18085fi
789c5f4a 18086rm -f conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
18087
18088 ac_ext=c
986ecc86 18089ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18090ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18091ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18092ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 18093
a0b9e27f 18094
e6cc62c6
VS
18095fi
18096echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
18097echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
18098
18099 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 18100 cat >>confdefs.h <<\_ACEOF
986ecc86 18101#define HAVE_EXPLICIT 1
e6cc62c6 18102_ACEOF
986ecc86
VZ
18103
18104 fi
18105
8284b0c5 18106
e6cc62c6
VS
18107echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
18108echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
18109if test "${ac_cv_cxx_const_cast+set}" = set; then
18110 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 18111else
521196a2 18112
521196a2 18113
e6cc62c6
VS
18114 ac_ext=cc
18115ac_cpp='$CXXCPP $CPPFLAGS'
18116ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18117ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18118ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18119
18120 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18121#line $LINENO "configure"
e6cc62c6
VS
18122/* confdefs.h. */
18123_ACEOF
18124cat confdefs.h >>conftest.$ac_ext
18125cat >>conftest.$ac_ext <<_ACEOF
18126/* end confdefs.h. */
18127
18128int
18129main ()
18130{
521196a2 18131int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
18132 ;
18133 return 0;
18134}
18135_ACEOF
18136rm -f conftest.$ac_objext
18137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 18138 (eval $ac_compile) 2>&5
e6cc62c6
VS
18139 ac_status=$?
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); } &&
789c5f4a 18142 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18144 (eval $ac_try) 2>&5
18145 ac_status=$?
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); }; }; then
521196a2
MB
18148 ac_cv_cxx_const_cast=yes
18149else
e6cc62c6
VS
18150 echo "$as_me: failed program was:" >&5
18151sed 's/^/| /' conftest.$ac_ext >&5
18152
18153ac_cv_cxx_const_cast=no
521196a2 18154fi
789c5f4a 18155rm -f conftest.$ac_objext conftest.$ac_ext
521196a2 18156 ac_ext=c
521196a2 18157ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18158ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18159ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18160ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
18161
18162
18163fi
e6cc62c6
VS
18164echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
18165echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 18166if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
18167
18168cat >>confdefs.h <<\_ACEOF
18169#define HAVE_CONST_CAST
18170_ACEOF
521196a2
MB
18171
18172fi
18173
ecfd48ca
VZ
18174echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
18175echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6
18176if test "${ac_cv_cxx_static_cast+set}" = set; then
18177 echo $ECHO_N "(cached) $ECHO_C" >&6
18178else
18179
18180
18181 ac_ext=cc
18182ac_cpp='$CXXCPP $CPPFLAGS'
18183ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18184ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18185ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18186
18187 cat >conftest.$ac_ext <<_ACEOF
18188#line $LINENO "configure"
18189/* confdefs.h. */
18190_ACEOF
18191cat confdefs.h >>conftest.$ac_ext
18192cat >>conftest.$ac_ext <<_ACEOF
18193/* end confdefs.h. */
18194#include <typeinfo>
18195class Base { public : Base () {} virtual void f () = 0; };
18196class Derived : public Base { public : Derived () {} virtual void f () {} };
18197int g (Derived&) { return 0; }
18198int
18199main ()
18200{
18201
18202Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
18203 ;
18204 return 0;
18205}
18206_ACEOF
18207rm -f conftest.$ac_objext
18208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18209 (eval $ac_compile) 2>&5
18210 ac_status=$?
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); } &&
18213 { ac_try='test -s conftest.$ac_objext'
18214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18215 (eval $ac_try) 2>&5
18216 ac_status=$?
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); }; }; then
18219 ac_cv_cxx_static_cast=yes
18220else
18221 echo "$as_me: failed program was:" >&5
18222sed 's/^/| /' conftest.$ac_ext >&5
18223
18224ac_cv_cxx_static_cast=no
18225fi
18226rm -f conftest.$ac_objext conftest.$ac_ext
18227 ac_ext=c
18228ac_cpp='$CPP $CPPFLAGS'
18229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18231ac_compiler_gnu=$ac_cv_c_compiler_gnu
18232
18233
18234fi
18235echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
18236echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6
18237if test "$ac_cv_cxx_static_cast" = yes; then
18238
18239cat >>confdefs.h <<\_ACEOF
18240#define HAVE_STATIC_CAST
18241_ACEOF
18242
18243fi
18244
521196a2 18245
e87b7833
MB
18246if test "$wxUSE_STL" = "yes"; then
18247 ac_ext=cc
18248ac_cpp='$CXXCPP $CPPFLAGS'
18249ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18250ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18251ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18252
18253
18254 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
18255echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
18256 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18257#line $LINENO "configure"
e87b7833
MB
18258/* confdefs.h. */
18259_ACEOF
18260cat confdefs.h >>conftest.$ac_ext
18261cat >>conftest.$ac_ext <<_ACEOF
18262/* end confdefs.h. */
18263#include <string>
18264 #include <functional>
18265 #include <algorithm>
18266 #include <vector>
18267 #include <list>
18268int
18269main ()
18270{
18271std::vector<int> moo;
18272 std::list<int> foo;
18273 std::vector<int>::iterator it =
18274 std::find_if(moo.begin(), moo.end(),
18275 std::bind2nd(std::less<int>(), 3));
18276 ;
18277 return 0;
18278}
18279_ACEOF
18280rm -f conftest.$ac_objext
18281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 18282 (eval $ac_compile) 2>&5
e87b7833
MB
18283 ac_status=$?
18284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18285 (exit $ac_status); } &&
789c5f4a 18286 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
18287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18288 (eval $ac_try) 2>&5
18289 ac_status=$?
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); }; }; then
18292 echo "$as_me:$LINENO: result: yes" >&5
18293echo "${ECHO_T}yes" >&6
18294else
18295 echo "$as_me: failed program was:" >&5
18296sed 's/^/| /' conftest.$ac_ext >&5
18297
18298echo "$as_me:$LINENO: result: no" >&5
18299echo "${ECHO_T}no" >&6
18300 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
18301echo "$as_me: error: Basic STL functionality missing" >&2;}
18302 { (exit 1); exit 1; }; }
18303fi
789c5f4a 18304rm -f conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
18305
18306 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
18307echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
18308 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18309#line $LINENO "configure"
e87b7833
MB
18310/* confdefs.h. */
18311_ACEOF
18312cat confdefs.h >>conftest.$ac_ext
18313cat >>conftest.$ac_ext <<_ACEOF
18314/* end confdefs.h. */
18315#include <string>
18316int
18317main ()
18318{
18319std::wstring foo;
18320 ;
18321 return 0;
18322}
18323_ACEOF
18324rm -f conftest.$ac_objext
18325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 18326 (eval $ac_compile) 2>&5
e87b7833
MB
18327 ac_status=$?
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); } &&
789c5f4a 18330 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
18331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18332 (eval $ac_try) 2>&5
18333 ac_status=$?
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); }; }; then
18336 echo "$as_me:$LINENO: result: yes" >&5
18337echo "${ECHO_T}yes" >&6
18338 cat >>confdefs.h <<\_ACEOF
18339#define HAVE_STD_WSTRING 1
18340_ACEOF
18341
18342else
18343 echo "$as_me: failed program was:" >&5
18344sed 's/^/| /' conftest.$ac_ext >&5
18345
18346echo "$as_me:$LINENO: result: no" >&5
18347echo "${ECHO_T}no" >&6
18348fi
789c5f4a 18349rm -f conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
18350
18351 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
18352echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
18353 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18354#line $LINENO "configure"
e87b7833
MB
18355/* confdefs.h. */
18356_ACEOF
18357cat confdefs.h >>conftest.$ac_ext
18358cat >>conftest.$ac_ext <<_ACEOF
18359/* end confdefs.h. */
18360#include <string>
18361int
18362main ()
18363{
18364std::string foo, bar;
18365 foo.compare(bar);
18366 foo.compare(1, 1, bar);
18367 foo.compare(1, 1, bar, 1, 1);
18368 foo.compare("");
18369 foo.compare(1, 1, "");
18370 foo.compare(1, 1, "", 2);
18371 ;
18372 return 0;
18373}
18374_ACEOF
18375rm -f conftest.$ac_objext
18376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 18377 (eval $ac_compile) 2>&5
e87b7833
MB
18378 ac_status=$?
18379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18380 (exit $ac_status); } &&
789c5f4a 18381 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
18382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18383 (eval $ac_try) 2>&5
18384 ac_status=$?
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; }; then
18387 echo "$as_me:$LINENO: result: yes" >&5
18388echo "${ECHO_T}yes" >&6
18389 cat >>confdefs.h <<\_ACEOF
18390#define HAVE_STD_STRING_COMPARE 1
18391_ACEOF
18392
18393else
18394 echo "$as_me: failed program was:" >&5
18395sed 's/^/| /' conftest.$ac_ext >&5
18396
18397echo "$as_me:$LINENO: result: no" >&5
18398echo "${ECHO_T}no" >&6
18399fi
789c5f4a 18400rm -f conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
18401
18402 ac_ext=c
18403ac_cpp='$CPP $CPPFLAGS'
18404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18406ac_compiler_gnu=$ac_cv_c_compiler_gnu
18407
18408fi
18409
8284b0c5 18410
21d1c967
GD
18411SEARCH_INCLUDE="\
18412 /usr/local/include \
18413 \
21d1c967 18414 /usr/Motif-2.1/include \
789c5f4a 18415 /usr/Motif-1.2/include \
21d1c967
GD
18416 /usr/include/Motif1.2 \
18417 /opt/xpm/include/X11 \
18418 /opt/GBxpm/include/ \
18419 /opt/GBxpm/X11/include/ \
18420 \
21d1c967
GD
18421 /usr/dt/include \
18422 /usr/openwin/include \
18423 \
18424 /usr/include/Xm \
18425 \
18426 /usr/X11R6/include \
18427 /usr/X11R6.4/include \
18428 /usr/X11R5/include \
18429 /usr/X11R4/include \
18430 \
18431 /usr/include/X11R6 \
18432 /usr/include/X11R5 \
18433 /usr/include/X11R4 \
18434 \
18435 /usr/local/X11R6/include \
18436 /usr/local/X11R5/include \
18437 /usr/local/X11R4/include \
18438 \
18439 /usr/local/include/X11R6 \
18440 /usr/local/include/X11R5 \
18441 /usr/local/include/X11R4 \
18442 \
18443 /usr/X11/include \
18444 /usr/include/X11 \
18445 /usr/local/X11/include \
18446 /usr/local/include/X11 \
18447 \
18448 /usr/X386/include \
18449 /usr/x386/include \
18450 /usr/XFree86/include/X11 \
18451 \
18452 X:/XFree86/include \
18453 X:/XFree86/include/X11 \
18454 \
18455 /usr/include/gtk \
18456 /usr/local/include/gtk \
18457 /usr/include/glib \
18458 /usr/local/include/glib \
18459 \
18460 /usr/include/qt \
18461 /usr/local/include/qt \
18462 \
18463 /usr/include/windows \
18464 /usr/include/wine \
18465 /usr/local/include/wine \
18466 \
18467 /usr/unsupported/include \
18468 /usr/athena/include \
18469 /usr/local/x11r5/include \
18470 /usr/lpp/Xamples/include \
18471 \
2b5f62a0 18472 /usr/openwin/share/include"
21d1c967 18473
5a60a58a 18474SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64"
21d1c967 18475
8284b0c5 18476
e6cc62c6 18477cat >confcache <<\_ACEOF
21d1c967
GD
18478# This file is a shell script that caches the results of configure
18479# tests run on this system so they can be shared between configure
e6cc62c6
VS
18480# scripts and configure runs, see configure's option --config-cache.
18481# It is not useful on other systems. If it contains results you don't
18482# want to keep, you may remove or edit it.
21d1c967 18483#
e6cc62c6
VS
18484# config.status only pays attention to the cache file if you give it
18485# the --recheck option to rerun configure.
21d1c967 18486#
e6cc62c6
VS
18487# `ac_cv_env_foo' variables (set or unset) will be overridden when
18488# loading this file, other *unset* `ac_cv_foo' will be assigned the
18489# following values.
18490
18491_ACEOF
18492
21d1c967
GD
18493# The following way of writing the cache mishandles newlines in values,
18494# but we know of no workaround that is simple, portable, and efficient.
18495# So, don't put newlines in cache variables' values.
18496# Ultrix sh set writes to stderr and can't be redirected directly,
18497# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
18498{
18499 (set) 2>&1 |
18500 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18501 *ac_space=\ *)
18502 # `set' does not quote correctly, so add quotes (double-quote
18503 # substitution turns \\\\ into \\, and sed turns \\ into \).
18504 sed -n \
789c5f4a
VZ
18505 "s/'/'\\\\''/g;
18506 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
18507 ;;
18508 *)
18509 # `set' quotes correctly as required by POSIX, so do not add quotes.
18510 sed -n \
789c5f4a 18511 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
18512 ;;
18513 esac;
18514} |
18515 sed '
18516 t clear
18517 : clear
18518 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18519 t end
18520 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18521 : end' >>confcache
18522if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 18523 if test -w $cache_file; then
e6cc62c6
VS
18524 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18525 cat confcache >$cache_file
21d1c967
GD
18526 else
18527 echo "not updating unwritable cache $cache_file"
18528 fi
ab9b9eab 18529fi
21d1c967 18530rm -f confcache
ab9b9eab 18531
fe0895cf 18532if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
18533 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
18534echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
18535if test "${wx_cv_lib_glibc21+set}" = set; then
18536 echo $ECHO_N "(cached) $ECHO_C" >&6
18537else
18538
18539 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18540#line $LINENO "configure"
e6cc62c6
VS
18541/* confdefs.h. */
18542_ACEOF
18543cat confdefs.h >>conftest.$ac_ext
18544cat >>conftest.$ac_ext <<_ACEOF
18545/* end confdefs.h. */
21d1c967 18546#include <features.h>
e6cc62c6
VS
18547int
18548main ()
18549{
ab9b9eab 18550
21d1c967
GD
18551 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
18552 #error not glibc2.1
18553 #endif
e6cc62c6
VS
18554
18555 ;
18556 return 0;
18557}
18558_ACEOF
18559rm -f conftest.$ac_objext
18560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 18561 (eval $ac_compile) 2>&5
e6cc62c6
VS
18562 ac_status=$?
18563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18564 (exit $ac_status); } &&
789c5f4a 18565 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18567 (eval $ac_try) 2>&5
18568 ac_status=$?
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; }; then
18571
21d1c967 18572 wx_cv_lib_glibc21=yes
e6cc62c6 18573
698dcdb6 18574else
e6cc62c6
VS
18575 echo "$as_me: failed program was:" >&5
18576sed 's/^/| /' conftest.$ac_ext >&5
18577
18578
21d1c967 18579 wx_cv_lib_glibc21=no
e6cc62c6
VS
18580
18581
247f5006 18582fi
789c5f4a 18583rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 18584
e6cc62c6
VS
18585fi
18586echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
18587echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 18588 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 18589 cat >>confdefs.h <<\_ACEOF
21d1c967 18590#define wxHAVE_GLIBC2 1
e6cc62c6 18591_ACEOF
1e487827 18592
90dd450c 18593 fi
ab9b9eab
VZ
18594fi
18595
5c0a20c3
VZ
18596if test "x$wx_cv_lib_glibc21" = "xyes"; then
18597 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 18598 cat >>confdefs.h <<\_ACEOF
5c0a20c3 18599#define _GNU_SOURCE 1
e6cc62c6 18600_ACEOF
5c0a20c3
VZ
18601
18602 fi
18603fi
18604
8284b0c5
MB
18605
18606
21d1c967 18607if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 18608 cat >>confdefs.h <<\_ACEOF
21d1c967 18609#define wxUSE_REGEX 1
e6cc62c6 18610_ACEOF
698dcdb6 18611
8284b0c5 18612
30f2fa6c
VS
18613 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
18614 { echo "$as_me:$LINENO: WARNING: Unicode build requires built-in regex library, will use it instead" >&5
18615echo "$as_me: WARNING: Unicode build requires built-in regex library, will use it instead" >&2;}
18616 wxUSE_REGEX=builtin
18617 fi
18618
21d1c967 18619 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
18620 if test "${ac_cv_header_regex_h+set}" = set; then
18621 echo "$as_me:$LINENO: checking for regex.h" >&5
18622echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18623if test "${ac_cv_header_regex_h+set}" = set; then
18624 echo $ECHO_N "(cached) $ECHO_C" >&6
18625fi
18626echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18627echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18628else
18629 # Is the header compilable?
18630echo "$as_me:$LINENO: checking regex.h usability" >&5
18631echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
18632cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18633#line $LINENO "configure"
e6cc62c6
VS
18634/* confdefs.h. */
18635_ACEOF
18636cat confdefs.h >>conftest.$ac_ext
18637cat >>conftest.$ac_ext <<_ACEOF
18638/* end confdefs.h. */
18639$ac_includes_default
247f5006 18640#include <regex.h>
e6cc62c6
VS
18641_ACEOF
18642rm -f conftest.$ac_objext
18643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 18644 (eval $ac_compile) 2>&5
e6cc62c6
VS
18645 ac_status=$?
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } &&
789c5f4a 18648 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18650 (eval $ac_try) 2>&5
18651 ac_status=$?
18652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18653 (exit $ac_status); }; }; then
18654 ac_header_compiler=yes
18655else
18656 echo "$as_me: failed program was:" >&5
18657sed 's/^/| /' conftest.$ac_ext >&5
18658
18659ac_header_compiler=no
18660fi
789c5f4a 18661rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
18662echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18663echo "${ECHO_T}$ac_header_compiler" >&6
18664
18665# Is the header present?
18666echo "$as_me:$LINENO: checking regex.h presence" >&5
18667echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
18668cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18669#line $LINENO "configure"
e6cc62c6
VS
18670/* confdefs.h. */
18671_ACEOF
18672cat confdefs.h >>conftest.$ac_ext
18673cat >>conftest.$ac_ext <<_ACEOF
18674/* end confdefs.h. */
18675#include <regex.h>
18676_ACEOF
18677if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18678 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18679 ac_status=$?
18680 grep -v '^ *+' conftest.er1 >conftest.err
18681 rm -f conftest.er1
18682 cat conftest.err >&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } >/dev/null; then
18685 if test -s conftest.err; then
18686 ac_cpp_err=$ac_c_preproc_warn_flag
18687 else
18688 ac_cpp_err=
18689 fi
18690else
18691 ac_cpp_err=yes
18692fi
18693if test -z "$ac_cpp_err"; then
18694 ac_header_preproc=yes
18695else
18696 echo "$as_me: failed program was:" >&5
18697sed 's/^/| /' conftest.$ac_ext >&5
18698
18699 ac_header_preproc=no
18700fi
18701rm -f conftest.err conftest.$ac_ext
18702echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18703echo "${ECHO_T}$ac_header_preproc" >&6
18704
18705# So? What about this header?
789c5f4a
VZ
18706case $ac_header_compiler:$ac_header_preproc in
18707 yes:no )
e6cc62c6
VS
18708 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
18709echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
18710 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18711echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18712 (
18713 cat <<\_ASBOX
18714## ------------------------------------ ##
18715## Report this to bug-autoconf@gnu.org. ##
18716## ------------------------------------ ##
18717_ASBOX
18718 ) |
18719 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 18720 ;;
789c5f4a 18721 no:yes )
e6cc62c6
VS
18722 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
18723echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
18724 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
18725echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
18726 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
18727echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
18728 (
18729 cat <<\_ASBOX
789c5f4a
VZ
18730## ------------------------------------ ##
18731## Report this to bug-autoconf@gnu.org. ##
18732## ------------------------------------ ##
e6cc62c6
VS
18733_ASBOX
18734 ) |
18735 sed "s/^/$as_me: WARNING: /" >&2
18736 ;;
18737esac
18738echo "$as_me:$LINENO: checking for regex.h" >&5
18739echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18740if test "${ac_cv_header_regex_h+set}" = set; then
18741 echo $ECHO_N "(cached) $ECHO_C" >&6
18742else
18743 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 18744fi
e6cc62c6
VS
18745echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18746echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18747
698dcdb6 18748fi
e6cc62c6
VS
18749if test $ac_cv_header_regex_h = yes; then
18750
18751for ac_func in regcomp
21d1c967 18752do
e6cc62c6
VS
18753as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18754echo "$as_me:$LINENO: checking for $ac_func" >&5
18755echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18756if eval "test \"\${$as_ac_var+set}\" = set"; then
18757 echo $ECHO_N "(cached) $ECHO_C" >&6
18758else
18759 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18760#line $LINENO "configure"
e6cc62c6
VS
18761/* confdefs.h. */
18762_ACEOF
18763cat confdefs.h >>conftest.$ac_ext
18764cat >>conftest.$ac_ext <<_ACEOF
18765/* end confdefs.h. */
a0b9e27f 18766/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
18767 which can conflict with char $ac_func (); below.
18768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18769 <limits.h> exists even on freestanding compilers. */
18770#ifdef __STDC__
18771# include <limits.h>
18772#else
18773# include <assert.h>
18774#endif
21d1c967 18775/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
18776#ifdef __cplusplus
18777extern "C"
18778{
18779#endif
21d1c967 18780/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
18781 builtin and then its argument prototype would still apply. */
18782char $ac_func ();
21d1c967
GD
18783/* The GNU C library defines this for functions which it implements
18784 to always fail with ENOSYS. Some functions are actually named
18785 something starting with __ and the normal name is an alias. */
18786#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18787choke me
18788#else
e6cc62c6
VS
18789char (*f) () = $ac_func;
18790#endif
18791#ifdef __cplusplus
18792}
21d1c967 18793#endif
90dd450c 18794
e6cc62c6
VS
18795int
18796main ()
18797{
18798return f != $ac_func;
18799 ;
18800 return 0;
18801}
18802_ACEOF
18803rm -f conftest.$ac_objext conftest$ac_exeext
18804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 18805 (eval $ac_link) 2>&5
e6cc62c6
VS
18806 ac_status=$?
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); } &&
789c5f4a 18809 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
18810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811 (eval $ac_try) 2>&5
18812 ac_status=$?
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; }; then
18815 eval "$as_ac_var=yes"
18816else
18817 echo "$as_me: failed program was:" >&5
18818sed 's/^/| /' conftest.$ac_ext >&5
18819
18820eval "$as_ac_var=no"
18821fi
789c5f4a 18822rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
18823fi
18824echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18825echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18826if test `eval echo '${'$as_ac_var'}'` = yes; then
18827 cat >>confdefs.h <<_ACEOF
18828#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18829_ACEOF
5c6fa7d2 18830
698dcdb6 18831fi
21d1c967
GD
18832done
18833
ab9b9eab
VZ
18834fi
18835
8284b0c5 18836
e6cc62c6 18837
21d1c967
GD
18838 if test "x$ac_cv_func_regcomp" != "xyes"; then
18839 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
18840 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
18841echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
18842 { (exit 1); exit 1; }; }
21d1c967 18843 else
e6cc62c6
VS
18844 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
18845echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
18846 wxUSE_REGEX=builtin
18847 fi
18848 else
18849 wxUSE_REGEX=sys
18850 fi
ab9b9eab 18851 fi
21d1c967 18852fi
90dd450c 18853
8284b0c5 18854
21d1c967
GD
18855ZLIB_LINK=
18856if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 18857 cat >>confdefs.h <<\_ACEOF
21d1c967 18858#define wxUSE_ZLIB 1
e6cc62c6 18859_ACEOF
21d1c967 18860
8284b0c5 18861
21d1c967 18862 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
18863 if test "$USE_DARWIN" = 1; then
18864 system_zlib_h_ok="yes"
18865 else
e6cc62c6
VS
18866 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
18867echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
18868if test "${ac_cv_header_zlib_h+set}" = set; then
18869 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
18870else
18871 if test "$cross_compiling" = yes; then
89e6bf6d 18872 unset ac_cv_header_zlib_h
e6cc62c6 18873
d643b80e 18874else
e6cc62c6 18875 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18876#line $LINENO "configure"
e6cc62c6
VS
18877/* confdefs.h. */
18878_ACEOF
18879cat confdefs.h >>conftest.$ac_ext
18880cat >>conftest.$ac_ext <<_ACEOF
18881/* end confdefs.h. */
18882
ef33c576 18883 #include <zlib.h>
d775acfa 18884 #include <stdio.h>
d643b80e 18885
d775acfa
VZ
18886 int main()
18887 {
18888 FILE *f=fopen("conftestval", "w");
18889 if (!f) exit(1);
18890 fprintf(f, "%s",
18891 ZLIB_VERSION[0] == '1' &&
18892 (ZLIB_VERSION[2] > '1' ||
18893 (ZLIB_VERSION[2] == '1' &&
18894 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
18895 exit(0);
18896 }
e6cc62c6
VS
18897
18898_ACEOF
18899rm -f conftest$ac_exeext
18900if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18901 (eval $ac_link) 2>&5
18902 ac_status=$?
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18906 (eval $ac_try) 2>&5
18907 ac_status=$?
18908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909 (exit $ac_status); }; }; then
d643b80e
VZ
18910 ac_cv_header_zlib_h=`cat conftestval`
18911else
e6cc62c6
VS
18912 echo "$as_me: program exited with status $ac_status" >&5
18913echo "$as_me: failed program was:" >&5
18914sed 's/^/| /' conftest.$ac_ext >&5
18915
18916( exit $ac_status )
18917ac_cv_header_zlib_h=no
d643b80e 18918fi
789c5f4a 18919rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
18920fi
18921
d643b80e 18922fi
e6cc62c6
VS
18923echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18924echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
18925 if test "${ac_cv_header_zlib_h+set}" = set; then
18926 echo "$as_me:$LINENO: checking for zlib.h" >&5
18927echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
18928if test "${ac_cv_header_zlib_h+set}" = set; then
18929 echo $ECHO_N "(cached) $ECHO_C" >&6
18930fi
18931echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
18932echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 18933else
e6cc62c6
VS
18934 # Is the header compilable?
18935echo "$as_me:$LINENO: checking zlib.h usability" >&5
18936echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
18937cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18938#line $LINENO "configure"
e6cc62c6
VS
18939/* confdefs.h. */
18940_ACEOF
18941cat confdefs.h >>conftest.$ac_ext
18942cat >>conftest.$ac_ext <<_ACEOF
18943/* end confdefs.h. */
18944$ac_includes_default
89e6bf6d 18945#include <zlib.h>
e6cc62c6
VS
18946_ACEOF
18947rm -f conftest.$ac_objext
18948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 18949 (eval $ac_compile) 2>&5
e6cc62c6
VS
18950 ac_status=$?
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); } &&
789c5f4a 18953 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18955 (eval $ac_try) 2>&5
18956 ac_status=$?
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); }; }; then
18959 ac_header_compiler=yes
18960else
18961 echo "$as_me: failed program was:" >&5
18962sed 's/^/| /' conftest.$ac_ext >&5
18963
18964ac_header_compiler=no
18965fi
789c5f4a 18966rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
18967echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18968echo "${ECHO_T}$ac_header_compiler" >&6
18969
18970# Is the header present?
18971echo "$as_me:$LINENO: checking zlib.h presence" >&5
18972echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
18973cat >conftest.$ac_ext <<_ACEOF
789c5f4a 18974#line $LINENO "configure"
e6cc62c6
VS
18975/* confdefs.h. */
18976_ACEOF
18977cat confdefs.h >>conftest.$ac_ext
18978cat >>conftest.$ac_ext <<_ACEOF
18979/* end confdefs.h. */
18980#include <zlib.h>
18981_ACEOF
18982if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18983 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18984 ac_status=$?
18985 grep -v '^ *+' conftest.er1 >conftest.err
18986 rm -f conftest.er1
18987 cat conftest.err >&5
18988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989 (exit $ac_status); } >/dev/null; then
18990 if test -s conftest.err; then
18991 ac_cpp_err=$ac_c_preproc_warn_flag
18992 else
18993 ac_cpp_err=
18994 fi
18995else
18996 ac_cpp_err=yes
18997fi
18998if test -z "$ac_cpp_err"; then
18999 ac_header_preproc=yes
19000else
19001 echo "$as_me: failed program was:" >&5
19002sed 's/^/| /' conftest.$ac_ext >&5
19003
19004 ac_header_preproc=no
19005fi
19006rm -f conftest.err conftest.$ac_ext
19007echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19008echo "${ECHO_T}$ac_header_preproc" >&6
19009
19010# So? What about this header?
789c5f4a
VZ
19011case $ac_header_compiler:$ac_header_preproc in
19012 yes:no )
e6cc62c6
VS
19013 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19014echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
19015 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19016echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
19017 (
19018 cat <<\_ASBOX
19019## ------------------------------------ ##
19020## Report this to bug-autoconf@gnu.org. ##
19021## ------------------------------------ ##
19022_ASBOX
19023 ) |
19024 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 19025 ;;
789c5f4a 19026 no:yes )
e6cc62c6
VS
19027 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19028echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
19029 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
19030echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
19031 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19032echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
19033 (
19034 cat <<\_ASBOX
789c5f4a
VZ
19035## ------------------------------------ ##
19036## Report this to bug-autoconf@gnu.org. ##
19037## ------------------------------------ ##
e6cc62c6
VS
19038_ASBOX
19039 ) |
19040 sed "s/^/$as_me: WARNING: /" >&2
19041 ;;
19042esac
19043echo "$as_me:$LINENO: checking for zlib.h" >&5
19044echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19045if test "${ac_cv_header_zlib_h+set}" = set; then
19046 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 19047else
e6cc62c6
VS
19048 ac_cv_header_zlib_h=$ac_header_preproc
19049fi
19050echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19051echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19052
89e6bf6d
VZ
19053fi
19054
d643b80e 19055
e6cc62c6 19056
d775acfa
VZ
19057 system_zlib_h_ok=$ac_cv_header_zlib_h
19058 fi
19059
19060 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
19061 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19062echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19063if test "${ac_cv_lib_z_deflate+set}" = set; then
19064 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19065else
e6cc62c6 19066 ac_check_lib_save_LIBS=$LIBS
21d1c967 19067LIBS="-lz $LIBS"
e6cc62c6 19068cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19069#line $LINENO "configure"
e6cc62c6
VS
19070/* confdefs.h. */
19071_ACEOF
19072cat confdefs.h >>conftest.$ac_ext
19073cat >>conftest.$ac_ext <<_ACEOF
19074/* end confdefs.h. */
19075
21d1c967 19076/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19077#ifdef __cplusplus
19078extern "C"
19079#endif
21d1c967 19080/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19081 builtin and then its argument prototype would still apply. */
19082char deflate ();
19083int
19084main ()
19085{
19086deflate ();
19087 ;
19088 return 0;
19089}
19090_ACEOF
19091rm -f conftest.$ac_objext conftest$ac_exeext
19092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 19093 (eval $ac_link) 2>&5
e6cc62c6
VS
19094 ac_status=$?
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); } &&
789c5f4a 19097 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19099 (eval $ac_try) 2>&5
19100 ac_status=$?
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); }; }; then
19103 ac_cv_lib_z_deflate=yes
19104else
19105 echo "$as_me: failed program was:" >&5
19106sed 's/^/| /' conftest.$ac_ext >&5
19107
19108ac_cv_lib_z_deflate=no
19109fi
789c5f4a 19110rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19111LIBS=$ac_check_lib_save_LIBS
19112fi
19113echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19114echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
19115if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 19116 ZLIB_LINK=" -lz"
a0b9e27f 19117fi
698dcdb6 19118
d643b80e 19119 fi
247f5006 19120
21d1c967
GD
19121 if test "x$ZLIB_LINK" = "x" ; then
19122 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
19123 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
19124echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
19125 { (exit 1); exit 1; }; }
21d1c967 19126 else
e6cc62c6
VS
19127 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
19128echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
19129 wxUSE_ZLIB=builtin
19130 fi
19131 else
19132 wxUSE_ZLIB=sys
19133 fi
19134 fi
ab9b9eab
VZ
19135fi
19136
8284b0c5 19137
21d1c967
GD
19138PNG_LINK=
19139if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 19140 cat >>confdefs.h <<\_ACEOF
21d1c967 19141#define wxUSE_LIBPNG 1
e6cc62c6 19142_ACEOF
90dd450c 19143
8284b0c5 19144
21d1c967 19145 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
19146 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
19147echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
19148 wxUSE_LIBPNG=sys
19149 fi
90dd450c 19150
21d1c967 19151 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
19152 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
19153echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
19154 wxUSE_LIBPNG=builtin
19155 fi
19156
19157 if test "$wxUSE_MGL" != 1 ; then
19158 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
19159 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
19160echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
19161if test "${ac_cv_header_png_h+set}" = set; then
19162 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
19163else
19164 if test "$cross_compiling" = yes; then
89e6bf6d 19165 unset ac_cv_header_png_h
e6cc62c6 19166
5d3f766d 19167else
e6cc62c6 19168 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19169#line $LINENO "configure"
e6cc62c6
VS
19170/* confdefs.h. */
19171_ACEOF
19172cat confdefs.h >>conftest.$ac_ext
19173cat >>conftest.$ac_ext <<_ACEOF
19174/* end confdefs.h. */
19175
ef33c576 19176 #include <png.h>
5d3f766d
VZ
19177 #include <stdio.h>
19178
19179 int main()
19180 {
19181 FILE *f=fopen("conftestval", "w");
19182 if (!f) exit(1);
19183 fprintf(f, "%s",
19184 PNG_LIBPNG_VER > 90 ? "yes" : "no");
19185 exit(0);
19186 }
e6cc62c6
VS
19187
19188_ACEOF
19189rm -f conftest$ac_exeext
19190if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19191 (eval $ac_link) 2>&5
19192 ac_status=$?
19193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19196 (eval $ac_try) 2>&5
19197 ac_status=$?
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); }; }; then
5d3f766d
VZ
19200 ac_cv_header_png_h=`cat conftestval`
19201else
e6cc62c6
VS
19202 echo "$as_me: program exited with status $ac_status" >&5
19203echo "$as_me: failed program was:" >&5
19204sed 's/^/| /' conftest.$ac_ext >&5
19205
19206( exit $ac_status )
19207ac_cv_header_png_h=no
5d3f766d 19208fi
789c5f4a 19209rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
19210fi
19211
5d3f766d 19212fi
e6cc62c6
VS
19213echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19214echo "${ECHO_T}$ac_cv_header_png_h" >&6
19215 if test "${ac_cv_header_png_h+set}" = set; then
19216 echo "$as_me:$LINENO: checking for png.h" >&5
19217echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19218if test "${ac_cv_header_png_h+set}" = set; then
19219 echo $ECHO_N "(cached) $ECHO_C" >&6
19220fi
19221echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19222echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 19223else
e6cc62c6
VS
19224 # Is the header compilable?
19225echo "$as_me:$LINENO: checking png.h usability" >&5
19226echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
19227cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19228#line $LINENO "configure"
e6cc62c6
VS
19229/* confdefs.h. */
19230_ACEOF
19231cat confdefs.h >>conftest.$ac_ext
19232cat >>conftest.$ac_ext <<_ACEOF
19233/* end confdefs.h. */
19234$ac_includes_default
89e6bf6d 19235#include <png.h>
e6cc62c6
VS
19236_ACEOF
19237rm -f conftest.$ac_objext
19238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 19239 (eval $ac_compile) 2>&5
e6cc62c6
VS
19240 ac_status=$?
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); } &&
789c5f4a 19243 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19245 (eval $ac_try) 2>&5
19246 ac_status=$?
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; }; then
19249 ac_header_compiler=yes
19250else
19251 echo "$as_me: failed program was:" >&5
19252sed 's/^/| /' conftest.$ac_ext >&5
19253
19254ac_header_compiler=no
19255fi
789c5f4a 19256rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19257echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19258echo "${ECHO_T}$ac_header_compiler" >&6
19259
19260# Is the header present?
19261echo "$as_me:$LINENO: checking png.h presence" >&5
19262echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
19263cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19264#line $LINENO "configure"
e6cc62c6
VS
19265/* confdefs.h. */
19266_ACEOF
19267cat confdefs.h >>conftest.$ac_ext
19268cat >>conftest.$ac_ext <<_ACEOF
19269/* end confdefs.h. */
19270#include <png.h>
19271_ACEOF
19272if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19273 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19274 ac_status=$?
19275 grep -v '^ *+' conftest.er1 >conftest.err
19276 rm -f conftest.er1
19277 cat conftest.err >&5
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); } >/dev/null; then
19280 if test -s conftest.err; then
19281 ac_cpp_err=$ac_c_preproc_warn_flag
19282 else
19283 ac_cpp_err=
19284 fi
19285else
19286 ac_cpp_err=yes
19287fi
19288if test -z "$ac_cpp_err"; then
19289 ac_header_preproc=yes
19290else
19291 echo "$as_me: failed program was:" >&5
19292sed 's/^/| /' conftest.$ac_ext >&5
19293
19294 ac_header_preproc=no
19295fi
19296rm -f conftest.err conftest.$ac_ext
19297echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19298echo "${ECHO_T}$ac_header_preproc" >&6
19299
19300# So? What about this header?
789c5f4a
VZ
19301case $ac_header_compiler:$ac_header_preproc in
19302 yes:no )
e6cc62c6
VS
19303 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19304echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
19305 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19306echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19307 (
19308 cat <<\_ASBOX
19309## ------------------------------------ ##
19310## Report this to bug-autoconf@gnu.org. ##
19311## ------------------------------------ ##
19312_ASBOX
19313 ) |
19314 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 19315 ;;
789c5f4a 19316 no:yes )
e6cc62c6
VS
19317 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19318echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
19319 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
19320echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
19321 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19322echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
19323 (
19324 cat <<\_ASBOX
789c5f4a
VZ
19325## ------------------------------------ ##
19326## Report this to bug-autoconf@gnu.org. ##
19327## ------------------------------------ ##
e6cc62c6
VS
19328_ASBOX
19329 ) |
19330 sed "s/^/$as_me: WARNING: /" >&2
19331 ;;
19332esac
19333echo "$as_me:$LINENO: checking for png.h" >&5
19334echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19335if test "${ac_cv_header_png_h+set}" = set; then
19336 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 19337else
e6cc62c6
VS
19338 ac_cv_header_png_h=$ac_header_preproc
19339fi
19340echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19341echo "${ECHO_T}$ac_cv_header_png_h" >&6
19342
89e6bf6d
VZ
19343fi
19344
5d3f766d 19345
e6cc62c6 19346
5d3f766d 19347 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
19348 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
19349echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
19350if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
19351 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19352else
e6cc62c6 19353 ac_check_lib_save_LIBS=$LIBS
21d1c967 19354LIBS="-lpng -lz -lm $LIBS"
e6cc62c6 19355cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19356#line $LINENO "configure"
e6cc62c6
VS
19357/* confdefs.h. */
19358_ACEOF
19359cat confdefs.h >>conftest.$ac_ext
19360cat >>conftest.$ac_ext <<_ACEOF
19361/* end confdefs.h. */
19362
21d1c967 19363/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19364#ifdef __cplusplus
19365extern "C"
19366#endif
21d1c967 19367/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19368 builtin and then its argument prototype would still apply. */
19369char png_check_sig ();
19370int
19371main ()
19372{
19373png_check_sig ();
19374 ;
19375 return 0;
19376}
19377_ACEOF
19378rm -f conftest.$ac_objext conftest$ac_exeext
19379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 19380 (eval $ac_link) 2>&5
e6cc62c6
VS
19381 ac_status=$?
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); } &&
789c5f4a 19384 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19386 (eval $ac_try) 2>&5
19387 ac_status=$?
19388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19389 (exit $ac_status); }; }; then
19390 ac_cv_lib_png_png_check_sig=yes
19391else
19392 echo "$as_me: failed program was:" >&5
19393sed 's/^/| /' conftest.$ac_ext >&5
19394
19395ac_cv_lib_png_png_check_sig=no
19396fi
789c5f4a 19397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19398LIBS=$ac_check_lib_save_LIBS
19399fi
19400echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
19401echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
19402if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 19403 PNG_LINK=" -lpng"
a0b9e27f 19404fi
90dd450c 19405
5d3f766d 19406 fi
247f5006 19407
21d1c967
GD
19408 if test "x$PNG_LINK" = "x" ; then
19409 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
19410 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
19411echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
19412 { (exit 1); exit 1; }; }
21d1c967 19413 else
e6cc62c6
VS
19414 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
19415echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
19416 wxUSE_LIBPNG=builtin
19417 fi
19418 else
2b5f62a0 19419 wxUSE_LIBPNG=sys
21d1c967
GD
19420 fi
19421 fi
19422 fi
90dd450c 19423
21d1c967 19424 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
19425fi
19426
8284b0c5 19427
21d1c967
GD
19428JPEG_LINK=
19429if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 19430 cat >>confdefs.h <<\_ACEOF
21d1c967 19431#define wxUSE_LIBJPEG 1
e6cc62c6 19432_ACEOF
90dd450c 19433
8284b0c5 19434
21d1c967 19435 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
19436 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
19437echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
19438 wxUSE_LIBJPEG=sys
19439 fi
90dd450c 19440
21d1c967
GD
19441 if test "$wxUSE_MGL" != 1 ; then
19442 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
19443 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
19444echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
19445 if test "${ac_cv_header_jpeglib_h+set}" = set; then
19446 echo $ECHO_N "(cached) $ECHO_C" >&6
19447else
19448 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19449#line $LINENO "configure"
e6cc62c6
VS
19450/* confdefs.h. */
19451_ACEOF
19452cat confdefs.h >>conftest.$ac_ext
19453cat >>conftest.$ac_ext <<_ACEOF
19454/* end confdefs.h. */
90dd450c 19455
21d1c967
GD
19456 #undef HAVE_STDLIB_H
19457 #include <stdio.h>
19458 #include <jpeglib.h>
90dd450c 19459
e6cc62c6
VS
19460int
19461main ()
19462{
19463
19464
19465 ;
19466 return 0;
19467}
19468_ACEOF
19469rm -f conftest.$ac_objext
19470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 19471 (eval $ac_compile) 2>&5
e6cc62c6
VS
19472 ac_status=$?
19473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474 (exit $ac_status); } &&
789c5f4a 19475 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19478 ac_status=$?
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; }; then
21d1c967 19481 ac_cv_header_jpeglib_h=yes
90dd450c 19482else
e6cc62c6
VS
19483 echo "$as_me: failed program was:" >&5
19484sed 's/^/| /' conftest.$ac_ext >&5
19485
19486ac_cv_header_jpeglib_h=no
19487
90dd450c 19488fi
789c5f4a 19489rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 19490
90dd450c
VZ
19491fi
19492
e6cc62c6
VS
19493 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
19494echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 19495
21d1c967 19496 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
19497 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
19498echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
19499if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
19500 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19501else
e6cc62c6 19502 ac_check_lib_save_LIBS=$LIBS
21d1c967 19503LIBS="-ljpeg $LIBS"
e6cc62c6 19504cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19505#line $LINENO "configure"
e6cc62c6
VS
19506/* confdefs.h. */
19507_ACEOF
19508cat confdefs.h >>conftest.$ac_ext
19509cat >>conftest.$ac_ext <<_ACEOF
19510/* end confdefs.h. */
19511
21d1c967 19512/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19513#ifdef __cplusplus
19514extern "C"
19515#endif
21d1c967 19516/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19517 builtin and then its argument prototype would still apply. */
19518char jpeg_read_header ();
19519int
19520main ()
19521{
19522jpeg_read_header ();
19523 ;
19524 return 0;
19525}
19526_ACEOF
19527rm -f conftest.$ac_objext conftest$ac_exeext
19528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 19529 (eval $ac_link) 2>&5
e6cc62c6
VS
19530 ac_status=$?
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); } &&
789c5f4a 19533 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19535 (eval $ac_try) 2>&5
19536 ac_status=$?
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; }; then
19539 ac_cv_lib_jpeg_jpeg_read_header=yes
19540else
19541 echo "$as_me: failed program was:" >&5
19542sed 's/^/| /' conftest.$ac_ext >&5
19543
19544ac_cv_lib_jpeg_jpeg_read_header=no
19545fi
789c5f4a 19546rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19547LIBS=$ac_check_lib_save_LIBS
19548fi
19549echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
19550echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
19551if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 19552 JPEG_LINK=" -ljpeg"
90dd450c
VZ
19553fi
19554
21d1c967 19555 fi
90dd450c 19556
21d1c967
GD
19557 if test "x$JPEG_LINK" = "x" ; then
19558 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
19559 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
19560echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
19561 { (exit 1); exit 1; }; }
21d1c967 19562 else
e6cc62c6
VS
19563 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
19564echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
19565 wxUSE_LIBJPEG=builtin
19566 fi
19567 else
19568 wxUSE_LIBJPEG=sys
19569 fi
19570 fi
19571 fi
21d1c967 19572fi
90dd450c 19573
8284b0c5 19574
21d1c967 19575TIFF_LINK=
2b5f62a0 19576TIFF_PREREQ_LINKS=-lm
21d1c967 19577if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 19578 cat >>confdefs.h <<\_ACEOF
21d1c967 19579#define wxUSE_LIBTIFF 1
e6cc62c6 19580_ACEOF
21d1c967 19581
8284b0c5 19582
21d1c967 19583 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
19584 if test "$wxUSE_LIBJPEG" = "sys"; then
19585 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
19586 fi
19587 if test "$wxUSE_ZLIB" = "sys"; then
19588 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
19589 fi
e6cc62c6
VS
19590 if test "${ac_cv_header_tiffio_h+set}" = set; then
19591 echo "$as_me:$LINENO: checking for tiffio.h" >&5
19592echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19593if test "${ac_cv_header_tiffio_h+set}" = set; then
19594 echo $ECHO_N "(cached) $ECHO_C" >&6
19595fi
19596echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19597echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19598else
19599 # Is the header compilable?
19600echo "$as_me:$LINENO: checking tiffio.h usability" >&5
19601echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
19602cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19603#line $LINENO "configure"
e6cc62c6
VS
19604/* confdefs.h. */
19605_ACEOF
19606cat confdefs.h >>conftest.$ac_ext
19607cat >>conftest.$ac_ext <<_ACEOF
19608/* end confdefs.h. */
19609$ac_includes_default
247f5006 19610#include <tiffio.h>
e6cc62c6
VS
19611_ACEOF
19612rm -f conftest.$ac_objext
19613if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 19614 (eval $ac_compile) 2>&5
e6cc62c6
VS
19615 ac_status=$?
19616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); } &&
789c5f4a 19618 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19620 (eval $ac_try) 2>&5
19621 ac_status=$?
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); }; }; then
19624 ac_header_compiler=yes
19625else
19626 echo "$as_me: failed program was:" >&5
19627sed 's/^/| /' conftest.$ac_ext >&5
19628
19629ac_header_compiler=no
19630fi
789c5f4a 19631rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19632echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19633echo "${ECHO_T}$ac_header_compiler" >&6
19634
19635# Is the header present?
19636echo "$as_me:$LINENO: checking tiffio.h presence" >&5
19637echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
19638cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19639#line $LINENO "configure"
e6cc62c6
VS
19640/* confdefs.h. */
19641_ACEOF
19642cat confdefs.h >>conftest.$ac_ext
19643cat >>conftest.$ac_ext <<_ACEOF
19644/* end confdefs.h. */
19645#include <tiffio.h>
19646_ACEOF
19647if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19648 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19649 ac_status=$?
19650 grep -v '^ *+' conftest.er1 >conftest.err
19651 rm -f conftest.er1
19652 cat conftest.err >&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); } >/dev/null; then
19655 if test -s conftest.err; then
19656 ac_cpp_err=$ac_c_preproc_warn_flag
19657 else
19658 ac_cpp_err=
19659 fi
19660else
19661 ac_cpp_err=yes
19662fi
19663if test -z "$ac_cpp_err"; then
19664 ac_header_preproc=yes
19665else
19666 echo "$as_me: failed program was:" >&5
19667sed 's/^/| /' conftest.$ac_ext >&5
19668
19669 ac_header_preproc=no
19670fi
19671rm -f conftest.err conftest.$ac_ext
19672echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19673echo "${ECHO_T}$ac_header_preproc" >&6
19674
19675# So? What about this header?
789c5f4a
VZ
19676case $ac_header_compiler:$ac_header_preproc in
19677 yes:no )
e6cc62c6
VS
19678 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
19679echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
19680 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19681echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19682 (
19683 cat <<\_ASBOX
19684## ------------------------------------ ##
19685## Report this to bug-autoconf@gnu.org. ##
19686## ------------------------------------ ##
19687_ASBOX
19688 ) |
19689 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 19690 ;;
789c5f4a 19691 no:yes )
e6cc62c6
VS
19692 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
19693echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
19694 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
19695echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
19696 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
19697echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
19698 (
19699 cat <<\_ASBOX
789c5f4a
VZ
19700## ------------------------------------ ##
19701## Report this to bug-autoconf@gnu.org. ##
19702## ------------------------------------ ##
e6cc62c6
VS
19703_ASBOX
19704 ) |
19705 sed "s/^/$as_me: WARNING: /" >&2
19706 ;;
19707esac
19708echo "$as_me:$LINENO: checking for tiffio.h" >&5
19709echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19710if test "${ac_cv_header_tiffio_h+set}" = set; then
19711 echo $ECHO_N "(cached) $ECHO_C" >&6
19712else
19713 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 19714fi
e6cc62c6
VS
19715echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19716echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19717
21d1c967 19718fi
e6cc62c6 19719if test $ac_cv_header_tiffio_h = yes; then
0e012a93
VZ
19720
19721 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
e6cc62c6
VS
19722echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
19723if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
19724 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 19725else
e6cc62c6 19726 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 19727LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6 19728cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19729#line $LINENO "configure"
e6cc62c6
VS
19730/* confdefs.h. */
19731_ACEOF
19732cat confdefs.h >>conftest.$ac_ext
19733cat >>conftest.$ac_ext <<_ACEOF
19734/* end confdefs.h. */
19735
ab9b9eab 19736/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19737#ifdef __cplusplus
19738extern "C"
19739#endif
ab9b9eab 19740/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19741 builtin and then its argument prototype would still apply. */
19742char TIFFError ();
19743int
19744main ()
19745{
19746TIFFError ();
19747 ;
19748 return 0;
19749}
19750_ACEOF
19751rm -f conftest.$ac_objext conftest$ac_exeext
19752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 19753 (eval $ac_link) 2>&5
e6cc62c6
VS
19754 ac_status=$?
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); } &&
789c5f4a 19757 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19759 (eval $ac_try) 2>&5
19760 ac_status=$?
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); }; }; then
19763 ac_cv_lib_tiff_TIFFError=yes
19764else
19765 echo "$as_me: failed program was:" >&5
19766sed 's/^/| /' conftest.$ac_ext >&5
19767
19768ac_cv_lib_tiff_TIFFError=no
19769fi
789c5f4a 19770rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19771LIBS=$ac_check_lib_save_LIBS
19772fi
19773echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
19774echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
19775if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 19776 TIFF_LINK=" -ltiff"
a0b9e27f 19777fi
cd6d6d5b 19778
e6cc62c6 19779
0e012a93 19780
a0b9e27f 19781fi
8284b0c5 19782
247f5006 19783
e6cc62c6 19784
21d1c967
GD
19785 if test "x$TIFF_LINK" = "x" ; then
19786 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
19787 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
19788echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
19789 { (exit 1); exit 1; }; }
90dd450c 19790 else
e6cc62c6
VS
19791 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
19792echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 19793 wxUSE_LIBTIFF=builtin
d8356fa3 19794 fi
d8356fa3 19795 else
21d1c967 19796 wxUSE_LIBTIFF=sys
d8356fa3 19797 fi
21d1c967 19798 fi
21d1c967 19799fi
10f2d63a 19800
8284b0c5 19801
672abd7a 19802if test "$wxUSE_EXPAT" != "no"; then
e06468e8 19803 wxUSE_XML=yes
672abd7a
VS
19804 cat >>confdefs.h <<\_ACEOF
19805#define wxUSE_EXPAT 1
19806_ACEOF
19807
19808 cat >>confdefs.h <<\_ACEOF
19809#define wxUSE_XML 1
19810_ACEOF
19811
19812
19813 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
19814 if test "${ac_cv_header_expat_h+set}" = set; then
19815 echo "$as_me:$LINENO: checking for expat.h" >&5
19816echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19817if test "${ac_cv_header_expat_h+set}" = set; then
19818 echo $ECHO_N "(cached) $ECHO_C" >&6
19819fi
19820echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19821echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19822else
19823 # Is the header compilable?
19824echo "$as_me:$LINENO: checking expat.h usability" >&5
19825echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
19826cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19827#line $LINENO "configure"
672abd7a
VS
19828/* confdefs.h. */
19829_ACEOF
19830cat confdefs.h >>conftest.$ac_ext
19831cat >>conftest.$ac_ext <<_ACEOF
19832/* end confdefs.h. */
19833$ac_includes_default
19834#include <expat.h>
19835_ACEOF
19836rm -f conftest.$ac_objext
19837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 19838 (eval $ac_compile) 2>&5
672abd7a
VS
19839 ac_status=$?
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); } &&
789c5f4a 19842 { ac_try='test -s conftest.$ac_objext'
672abd7a
VS
19843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19844 (eval $ac_try) 2>&5
19845 ac_status=$?
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; }; then
19848 ac_header_compiler=yes
19849else
19850 echo "$as_me: failed program was:" >&5
19851sed 's/^/| /' conftest.$ac_ext >&5
19852
19853ac_header_compiler=no
19854fi
789c5f4a 19855rm -f conftest.$ac_objext conftest.$ac_ext
672abd7a
VS
19856echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19857echo "${ECHO_T}$ac_header_compiler" >&6
19858
19859# Is the header present?
19860echo "$as_me:$LINENO: checking expat.h presence" >&5
19861echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
19862cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19863#line $LINENO "configure"
672abd7a
VS
19864/* confdefs.h. */
19865_ACEOF
19866cat confdefs.h >>conftest.$ac_ext
19867cat >>conftest.$ac_ext <<_ACEOF
19868/* end confdefs.h. */
19869#include <expat.h>
19870_ACEOF
19871if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19872 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19873 ac_status=$?
19874 grep -v '^ *+' conftest.er1 >conftest.err
19875 rm -f conftest.er1
19876 cat conftest.err >&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); } >/dev/null; then
19879 if test -s conftest.err; then
19880 ac_cpp_err=$ac_c_preproc_warn_flag
19881 else
19882 ac_cpp_err=
19883 fi
19884else
19885 ac_cpp_err=yes
19886fi
19887if test -z "$ac_cpp_err"; then
19888 ac_header_preproc=yes
19889else
19890 echo "$as_me: failed program was:" >&5
19891sed 's/^/| /' conftest.$ac_ext >&5
19892
19893 ac_header_preproc=no
19894fi
19895rm -f conftest.err conftest.$ac_ext
19896echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19897echo "${ECHO_T}$ac_header_preproc" >&6
19898
19899# So? What about this header?
789c5f4a
VZ
19900case $ac_header_compiler:$ac_header_preproc in
19901 yes:no )
672abd7a
VS
19902 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
19903echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
19904 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19905echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19906 (
19907 cat <<\_ASBOX
19908## ------------------------------------ ##
19909## Report this to bug-autoconf@gnu.org. ##
19910## ------------------------------------ ##
19911_ASBOX
19912 ) |
19913 sed "s/^/$as_me: WARNING: /" >&2
672abd7a 19914 ;;
789c5f4a 19915 no:yes )
672abd7a
VS
19916 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
19917echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
19918 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
19919echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
672abd7a
VS
19920 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
19921echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
19922 (
19923 cat <<\_ASBOX
789c5f4a
VZ
19924## ------------------------------------ ##
19925## Report this to bug-autoconf@gnu.org. ##
19926## ------------------------------------ ##
672abd7a
VS
19927_ASBOX
19928 ) |
19929 sed "s/^/$as_me: WARNING: /" >&2
19930 ;;
19931esac
19932echo "$as_me:$LINENO: checking for expat.h" >&5
19933echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
19934if test "${ac_cv_header_expat_h+set}" = set; then
19935 echo $ECHO_N "(cached) $ECHO_C" >&6
19936else
19937 ac_cv_header_expat_h=$ac_header_preproc
19938fi
19939echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
19940echo "${ECHO_T}$ac_cv_header_expat_h" >&6
19941
19942fi
5f0b6dff
VS
19943if test $ac_cv_header_expat_h = yes; then
19944 found_expat_h=1
19945fi
19946
19947
19948 if test "x$found_expat_h" = "x1"; then
19949 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
19950echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
19951if test "${wx_cv_expat_is_not_broken+set}" = set; then
19952 echo $ECHO_N "(cached) $ECHO_C" >&6
19953else
19954
19955
672abd7a 19956
5f0b6dff
VS
19957 ac_ext=cc
19958ac_cpp='$CXXCPP $CPPFLAGS'
19959ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19960ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19961ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19962
19963 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 19964#line $LINENO "configure"
5f0b6dff
VS
19965/* confdefs.h. */
19966_ACEOF
19967cat confdefs.h >>conftest.$ac_ext
19968cat >>conftest.$ac_ext <<_ACEOF
19969/* end confdefs.h. */
19970#include <expat.h>
19971int
19972main ()
19973{
672abd7a 19974
5f0b6dff
VS
19975 ;
19976 return 0;
19977}
19978_ACEOF
19979rm -f conftest.$ac_objext
19980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 19981 (eval $ac_compile) 2>&5
5f0b6dff
VS
19982 ac_status=$?
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); } &&
789c5f4a 19985 { ac_try='test -s conftest.$ac_objext'
5f0b6dff
VS
19986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987 (eval $ac_try) 2>&5
19988 ac_status=$?
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; }; then
19991 wx_cv_expat_is_not_broken=yes
19992else
19993 echo "$as_me: failed program was:" >&5
19994sed 's/^/| /' conftest.$ac_ext >&5
19995
19996wx_cv_expat_is_not_broken=no
19997
19998fi
789c5f4a 19999rm -f conftest.$ac_objext conftest.$ac_ext
5f0b6dff
VS
20000 ac_ext=c
20001ac_cpp='$CPP $CPPFLAGS'
20002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20004ac_compiler_gnu=$ac_cv_c_compiler_gnu
20005
20006
20007
20008fi
20009echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
20010echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
20011 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
20012 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
20013echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
20014if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
20015 echo $ECHO_N "(cached) $ECHO_C" >&6
20016else
20017 ac_check_lib_save_LIBS=$LIBS
20018LIBS="-lexpat $LIBS"
20019cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20020#line $LINENO "configure"
672abd7a
VS
20021/* confdefs.h. */
20022_ACEOF
20023cat confdefs.h >>conftest.$ac_ext
20024cat >>conftest.$ac_ext <<_ACEOF
20025/* end confdefs.h. */
20026
20027/* Override any gcc2 internal prototype to avoid an error. */
20028#ifdef __cplusplus
20029extern "C"
20030#endif
20031/* We use char because int might match the return type of a gcc2
20032 builtin and then its argument prototype would still apply. */
20033char XML_ParserCreate ();
20034int
20035main ()
20036{
20037XML_ParserCreate ();
20038 ;
20039 return 0;
20040}
20041_ACEOF
20042rm -f conftest.$ac_objext conftest$ac_exeext
20043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 20044 (eval $ac_link) 2>&5
672abd7a
VS
20045 ac_status=$?
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); } &&
789c5f4a 20048 { ac_try='test -s conftest$ac_exeext'
672abd7a
VS
20049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20050 (eval $ac_try) 2>&5
20051 ac_status=$?
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); }; }; then
20054 ac_cv_lib_expat_XML_ParserCreate=yes
20055else
20056 echo "$as_me: failed program was:" >&5
20057sed 's/^/| /' conftest.$ac_ext >&5
20058
20059ac_cv_lib_expat_XML_ParserCreate=no
20060fi
789c5f4a 20061rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
672abd7a
VS
20062LIBS=$ac_check_lib_save_LIBS
20063fi
20064echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
20065echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
20066if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
20067 EXPAT_LINK=" -lexpat"
20068fi
20069
5f0b6dff 20070 fi
672abd7a
VS
20071 fi
20072 if test "x$EXPAT_LINK" = "x" ; then
20073 if test "$wxUSE_EXPAT" = "sys" ; then
20074 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
20075echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
20076 { (exit 1); exit 1; }; }
20077 else
20078 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
20079echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
20080 wxUSE_EXPAT=builtin
20081 fi
20082 else
20083 wxUSE_EXPAT=sys
20084 fi
20085 fi
20086 if test "$wxUSE_EXPAT" = "builtin" ; then
20087
20088
20089subdirs="$subdirs src/expat"
20090
20091 fi
20092fi
20093
20094
20095
3527f29c
VS
20096if test "$wxUSE_LIBMSPACK" != "no"; then
20097
20098 if test "${ac_cv_header_mspack_h+set}" = set; then
20099 echo "$as_me:$LINENO: checking for mspack.h" >&5
20100echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20101if test "${ac_cv_header_mspack_h+set}" = set; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
20103fi
20104echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20105echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20106else
20107 # Is the header compilable?
20108echo "$as_me:$LINENO: checking mspack.h usability" >&5
20109echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
20110cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20111#line $LINENO "configure"
3527f29c
VS
20112/* confdefs.h. */
20113_ACEOF
20114cat confdefs.h >>conftest.$ac_ext
20115cat >>conftest.$ac_ext <<_ACEOF
20116/* end confdefs.h. */
20117$ac_includes_default
20118#include <mspack.h>
20119_ACEOF
20120rm -f conftest.$ac_objext
20121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 20122 (eval $ac_compile) 2>&5
3527f29c
VS
20123 ac_status=$?
20124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); } &&
789c5f4a 20126 { ac_try='test -s conftest.$ac_objext'
3527f29c
VS
20127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20128 (eval $ac_try) 2>&5
20129 ac_status=$?
20130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20131 (exit $ac_status); }; }; then
20132 ac_header_compiler=yes
20133else
20134 echo "$as_me: failed program was:" >&5
20135sed 's/^/| /' conftest.$ac_ext >&5
20136
20137ac_header_compiler=no
20138fi
789c5f4a 20139rm -f conftest.$ac_objext conftest.$ac_ext
3527f29c
VS
20140echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20141echo "${ECHO_T}$ac_header_compiler" >&6
20142
20143# Is the header present?
20144echo "$as_me:$LINENO: checking mspack.h presence" >&5
20145echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
20146cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20147#line $LINENO "configure"
3527f29c
VS
20148/* confdefs.h. */
20149_ACEOF
20150cat confdefs.h >>conftest.$ac_ext
20151cat >>conftest.$ac_ext <<_ACEOF
20152/* end confdefs.h. */
20153#include <mspack.h>
20154_ACEOF
20155if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20157 ac_status=$?
20158 grep -v '^ *+' conftest.er1 >conftest.err
20159 rm -f conftest.er1
20160 cat conftest.err >&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); } >/dev/null; then
20163 if test -s conftest.err; then
20164 ac_cpp_err=$ac_c_preproc_warn_flag
20165 else
20166 ac_cpp_err=
20167 fi
20168else
20169 ac_cpp_err=yes
20170fi
20171if test -z "$ac_cpp_err"; then
20172 ac_header_preproc=yes
20173else
20174 echo "$as_me: failed program was:" >&5
20175sed 's/^/| /' conftest.$ac_ext >&5
20176
20177 ac_header_preproc=no
20178fi
20179rm -f conftest.err conftest.$ac_ext
20180echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20181echo "${ECHO_T}$ac_header_preproc" >&6
20182
20183# So? What about this header?
789c5f4a
VZ
20184case $ac_header_compiler:$ac_header_preproc in
20185 yes:no )
3527f29c
VS
20186 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
20187echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
20188 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
20189echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
20190 (
20191 cat <<\_ASBOX
20192## ------------------------------------ ##
20193## Report this to bug-autoconf@gnu.org. ##
20194## ------------------------------------ ##
20195_ASBOX
20196 ) |
20197 sed "s/^/$as_me: WARNING: /" >&2
3527f29c 20198 ;;
789c5f4a 20199 no:yes )
3527f29c
VS
20200 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
20201echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
20202 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
20203echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
3527f29c
VS
20204 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
20205echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
20206 (
20207 cat <<\_ASBOX
789c5f4a
VZ
20208## ------------------------------------ ##
20209## Report this to bug-autoconf@gnu.org. ##
20210## ------------------------------------ ##
3527f29c
VS
20211_ASBOX
20212 ) |
20213 sed "s/^/$as_me: WARNING: /" >&2
20214 ;;
20215esac
20216echo "$as_me:$LINENO: checking for mspack.h" >&5
20217echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20218if test "${ac_cv_header_mspack_h+set}" = set; then
20219 echo $ECHO_N "(cached) $ECHO_C" >&6
20220else
20221 ac_cv_header_mspack_h=$ac_header_preproc
20222fi
20223echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20224echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20225
20226fi
20227if test $ac_cv_header_mspack_h = yes; then
20228 found_mspack_h=1
20229fi
20230
20231
20232 if test "x$found_mspack_h" = "x1"; then
20233 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
20234echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
20235if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
20236 echo $ECHO_N "(cached) $ECHO_C" >&6
20237else
20238 ac_check_lib_save_LIBS=$LIBS
20239LIBS="-lmspack $LIBS"
20240cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20241#line $LINENO "configure"
3527f29c
VS
20242/* confdefs.h. */
20243_ACEOF
20244cat confdefs.h >>conftest.$ac_ext
20245cat >>conftest.$ac_ext <<_ACEOF
20246/* end confdefs.h. */
20247
20248/* Override any gcc2 internal prototype to avoid an error. */
20249#ifdef __cplusplus
20250extern "C"
20251#endif
20252/* We use char because int might match the return type of a gcc2
20253 builtin and then its argument prototype would still apply. */
20254char mspack_create_chm_decompressor ();
20255int
20256main ()
20257{
20258mspack_create_chm_decompressor ();
20259 ;
20260 return 0;
20261}
20262_ACEOF
20263rm -f conftest.$ac_objext conftest$ac_exeext
20264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 20265 (eval $ac_link) 2>&5
3527f29c
VS
20266 ac_status=$?
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); } &&
789c5f4a 20269 { ac_try='test -s conftest$ac_exeext'
3527f29c
VS
20270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20271 (eval $ac_try) 2>&5
20272 ac_status=$?
20273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); }; }; then
20275 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
20276else
20277 echo "$as_me: failed program was:" >&5
20278sed 's/^/| /' conftest.$ac_ext >&5
20279
20280ac_cv_lib_mspack_mspack_create_chm_decompressor=no
20281fi
789c5f4a 20282rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3527f29c
VS
20283LIBS=$ac_check_lib_save_LIBS
20284fi
20285echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
20286echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
20287if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
20288 MSPACK_LINK=" -lmspack"
20289fi
20290
20291 fi
20292 if test "x$MSPACK_LINK" = "x" ; then
20293 wxUSE_LIBMSPACK=no
20294 else
20295 cat >>confdefs.h <<\_ACEOF
20296#define wxUSE_LIBMSPACK 1
20297_ACEOF
20298
20299 fi
20300fi
20301
20302
20303
21d1c967 20304AFMINSTALL=
2b5f62a0 20305WIN32INSTALL=
90dd450c 20306
21d1c967
GD
20307TOOLKIT=
20308TOOLKIT_INCLUDE=
20309WIDGET_SET=
20310
20311if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
20312
20313for ac_header in w32api.h
21d1c967 20314do
e6cc62c6
VS
20315as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20316if eval "test \"\${$as_ac_Header+set}\" = set"; then
20317 echo "$as_me:$LINENO: checking for $ac_header" >&5
20318echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20319if eval "test \"\${$as_ac_Header+set}\" = set"; then
20320 echo $ECHO_N "(cached) $ECHO_C" >&6
20321fi
20322echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20323echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20324else
20325 # Is the header compilable?
20326echo "$as_me:$LINENO: checking $ac_header usability" >&5
20327echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20328cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20329#line $LINENO "configure"
e6cc62c6
VS
20330/* confdefs.h. */
20331_ACEOF
20332cat confdefs.h >>conftest.$ac_ext
20333cat >>conftest.$ac_ext <<_ACEOF
20334/* end confdefs.h. */
20335$ac_includes_default
20336#include <$ac_header>
20337_ACEOF
20338rm -f conftest.$ac_objext
20339if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 20340 (eval $ac_compile) 2>&5
e6cc62c6
VS
20341 ac_status=$?
20342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); } &&
789c5f4a 20344 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20346 (eval $ac_try) 2>&5
20347 ac_status=$?
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); }; }; then
20350 ac_header_compiler=yes
20351else
20352 echo "$as_me: failed program was:" >&5
20353sed 's/^/| /' conftest.$ac_ext >&5
20354
20355ac_header_compiler=no
20356fi
789c5f4a 20357rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20358echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20359echo "${ECHO_T}$ac_header_compiler" >&6
20360
20361# Is the header present?
20362echo "$as_me:$LINENO: checking $ac_header presence" >&5
20363echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20364cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20365#line $LINENO "configure"
e6cc62c6
VS
20366/* confdefs.h. */
20367_ACEOF
20368cat confdefs.h >>conftest.$ac_ext
20369cat >>conftest.$ac_ext <<_ACEOF
20370/* end confdefs.h. */
20371#include <$ac_header>
20372_ACEOF
20373if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20375 ac_status=$?
20376 grep -v '^ *+' conftest.er1 >conftest.err
20377 rm -f conftest.er1
20378 cat conftest.err >&5
20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20380 (exit $ac_status); } >/dev/null; then
20381 if test -s conftest.err; then
20382 ac_cpp_err=$ac_c_preproc_warn_flag
20383 else
20384 ac_cpp_err=
20385 fi
20386else
20387 ac_cpp_err=yes
20388fi
20389if test -z "$ac_cpp_err"; then
20390 ac_header_preproc=yes
20391else
20392 echo "$as_me: failed program was:" >&5
20393sed 's/^/| /' conftest.$ac_ext >&5
20394
20395 ac_header_preproc=no
20396fi
20397rm -f conftest.err conftest.$ac_ext
20398echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20399echo "${ECHO_T}$ac_header_preproc" >&6
20400
20401# So? What about this header?
789c5f4a
VZ
20402case $ac_header_compiler:$ac_header_preproc in
20403 yes:no )
e6cc62c6
VS
20404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20405echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
20406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20407echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20408 (
20409 cat <<\_ASBOX
20410## ------------------------------------ ##
20411## Report this to bug-autoconf@gnu.org. ##
20412## ------------------------------------ ##
20413_ASBOX
20414 ) |
20415 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 20416 ;;
789c5f4a 20417 no:yes )
e6cc62c6
VS
20418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20419echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
20420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20421echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
20422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20423echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20424 (
20425 cat <<\_ASBOX
789c5f4a
VZ
20426## ------------------------------------ ##
20427## Report this to bug-autoconf@gnu.org. ##
20428## ------------------------------------ ##
e6cc62c6
VS
20429_ASBOX
20430 ) |
20431 sed "s/^/$as_me: WARNING: /" >&2
20432 ;;
20433esac
20434echo "$as_me:$LINENO: checking for $ac_header" >&5
20435echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20436if eval "test \"\${$as_ac_Header+set}\" = set"; then
20437 echo $ECHO_N "(cached) $ECHO_C" >&6
20438else
789c5f4a 20439 eval "$as_ac_Header=$ac_header_preproc"
f79bd02d 20440fi
e6cc62c6
VS
20441echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20442echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20443
21d1c967 20444fi
e6cc62c6
VS
20445if test `eval echo '${'$as_ac_Header'}'` = yes; then
20446 cat >>confdefs.h <<_ACEOF
20447#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20448_ACEOF
20449
21d1c967 20450fi
e6cc62c6 20451
21d1c967 20452done
f79bd02d 20453
e6cc62c6
VS
20454 if test "${ac_cv_header_windows_h+set}" = set; then
20455 echo "$as_me:$LINENO: checking for windows.h" >&5
20456echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
20457if test "${ac_cv_header_windows_h+set}" = set; then
20458 echo $ECHO_N "(cached) $ECHO_C" >&6
20459fi
20460echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20461echo "${ECHO_T}$ac_cv_header_windows_h" >&6
20462else
20463 # Is the header compilable?
20464echo "$as_me:$LINENO: checking windows.h usability" >&5
20465echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
20466cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20467#line $LINENO "configure"
e6cc62c6
VS
20468/* confdefs.h. */
20469_ACEOF
20470cat confdefs.h >>conftest.$ac_ext
20471cat >>conftest.$ac_ext <<_ACEOF
20472/* end confdefs.h. */
20473$ac_includes_default
247f5006 20474#include <windows.h>
e6cc62c6
VS
20475_ACEOF
20476rm -f conftest.$ac_objext
20477if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 20478 (eval $ac_compile) 2>&5
e6cc62c6
VS
20479 ac_status=$?
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); } &&
789c5f4a 20482 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484 (eval $ac_try) 2>&5
20485 ac_status=$?
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; }; then
20488 ac_header_compiler=yes
20489else
20490 echo "$as_me: failed program was:" >&5
20491sed 's/^/| /' conftest.$ac_ext >&5
20492
20493ac_header_compiler=no
20494fi
789c5f4a 20495rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20496echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20497echo "${ECHO_T}$ac_header_compiler" >&6
20498
20499# Is the header present?
20500echo "$as_me:$LINENO: checking windows.h presence" >&5
20501echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
20502cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20503#line $LINENO "configure"
e6cc62c6
VS
20504/* confdefs.h. */
20505_ACEOF
20506cat confdefs.h >>conftest.$ac_ext
20507cat >>conftest.$ac_ext <<_ACEOF
20508/* end confdefs.h. */
20509#include <windows.h>
20510_ACEOF
20511if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20513 ac_status=$?
20514 grep -v '^ *+' conftest.er1 >conftest.err
20515 rm -f conftest.er1
20516 cat conftest.err >&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } >/dev/null; then
20519 if test -s conftest.err; then
20520 ac_cpp_err=$ac_c_preproc_warn_flag
20521 else
20522 ac_cpp_err=
20523 fi
20524else
20525 ac_cpp_err=yes
20526fi
20527if test -z "$ac_cpp_err"; then
20528 ac_header_preproc=yes
20529else
20530 echo "$as_me: failed program was:" >&5
20531sed 's/^/| /' conftest.$ac_ext >&5
20532
20533 ac_header_preproc=no
20534fi
20535rm -f conftest.err conftest.$ac_ext
20536echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20537echo "${ECHO_T}$ac_header_preproc" >&6
20538
20539# So? What about this header?
789c5f4a
VZ
20540case $ac_header_compiler:$ac_header_preproc in
20541 yes:no )
e6cc62c6
VS
20542 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
20543echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
20544 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
20545echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
20546 (
20547 cat <<\_ASBOX
20548## ------------------------------------ ##
20549## Report this to bug-autoconf@gnu.org. ##
20550## ------------------------------------ ##
20551_ASBOX
20552 ) |
20553 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 20554 ;;
789c5f4a 20555 no:yes )
e6cc62c6
VS
20556 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
20557echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
20558 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
20559echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
20560 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
20561echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
20562 (
20563 cat <<\_ASBOX
789c5f4a
VZ
20564## ------------------------------------ ##
20565## Report this to bug-autoconf@gnu.org. ##
20566## ------------------------------------ ##
e6cc62c6
VS
20567_ASBOX
20568 ) |
20569 sed "s/^/$as_me: WARNING: /" >&2
20570 ;;
20571esac
20572echo "$as_me:$LINENO: checking for windows.h" >&5
20573echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
20574if test "${ac_cv_header_windows_h+set}" = set; then
20575 echo $ECHO_N "(cached) $ECHO_C" >&6
20576else
20577 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 20578fi
e6cc62c6
VS
20579echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20580echo "${ECHO_T}$ac_cv_header_windows_h" >&6
20581
90dd450c 20582fi
e6cc62c6 20583if test $ac_cv_header_windows_h = yes; then
21d1c967 20584 :
90dd450c 20585else
21d1c967 20586
e6cc62c6
VS
20587 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
20588echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
20589 { (exit 1); exit 1; }; }
20590
5c6fa7d2 20591fi
7b4a847f 20592
5c6fa7d2 20593
e6cc62c6 20594
b3dfbbc9 20595 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 20596
7bb2947d
MB
20597 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
20598 LIBS="$LIBS -loleacc"
20599 fi
20600
21d1c967
GD
20601 case "${host}" in
20602 *-*-cygwin* )
b3dfbbc9 20603 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 20604 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 20605 esac
f79bd02d 20606
8647bec6
RG
20607 if test "$wxUSE_ODBC" = "sys" ; then
20608 wxUSE_ODBC = "yes"
21d1c967 20609 fi
8647bec6
RG
20610 if test "$wxUSE_ODBC" = "yes" ; then
20611 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 20612 cat >>confdefs.h <<\_ACEOF
8647bec6 20613#define wxUSE_ODBC 1
e6cc62c6 20614_ACEOF
f79bd02d 20615
8647bec6 20616 fi
e6cc62c6 20617
21d1c967
GD
20618 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
20619 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
20620
20621 WIN32INSTALL=win32install
f79bd02d 20622fi
f79bd02d 20623
21d1c967
GD
20624if test "$wxUSE_GUI" = "yes"; then
20625 USE_GUI=1
f79bd02d 20626
21d1c967 20627 GUI_TK_LIBRARY=
f79bd02d 20628
21d1c967
GD
20629 WXGTK12=
20630 WXGTK127=
20631 WXGTK20=
f79bd02d 20632
21d1c967
GD
20633 if test "$wxUSE_MSW" = 1 ; then
20634 TOOLKIT=MSW
20635 GUIDIST=MSW_DIST
ffef10f6
VS
20636
20637 case "${host}" in
20638 *-*-mingw32* )
20639 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
20640 esac
f79bd02d
JS
20641 fi
20642
21d1c967 20643 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
20644 echo "$as_me:$LINENO: checking for GTK+ version" >&5
20645echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
20646
20647 gtk_version_cached=1
e6cc62c6
VS
20648 if test "${wx_cv_lib_gtk+set}" = set; then
20649 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 20650else
e6cc62c6 20651
21d1c967 20652 gtk_version_cached=0
e6cc62c6
VS
20653 echo "$as_me:$LINENO: result: " >&5
20654echo "${ECHO_T}" >&6
f79bd02d 20655
21d1c967
GD
20656 GTK_MODULES=
20657 if test "$wxUSE_THREADS" = "yes"; then
20658 GTK_MODULES=gthread
20659 fi
f79bd02d 20660
2b5f62a0 20661 wx_cv_lib_gtk=
21d1c967
GD
20662 if test "x$wxUSE_GTK2" = "xyes"; then
20663 # Check whether --enable-gtktest or --disable-gtktest was given.
20664if test "${enable_gtktest+set}" = set; then
20665 enableval="$enable_gtktest"
e6cc62c6 20666
f79bd02d 20667else
21d1c967 20668 enable_gtktest=yes
e6cc62c6 20669fi;
f79bd02d 20670
21d1c967
GD
20671 pkg_config_args=gtk+-2.0
20672 for module in . $GTK_MODULES
20673 do
20674 case "$module" in
e6cc62c6 20675 gthread)
21d1c967
GD
20676 pkg_config_args="$pkg_config_args gthread-2.0"
20677 ;;
20678 esac
20679 done
20680
20681 no_gtk=""
f79bd02d 20682
21d1c967
GD
20683 # Extract the first word of "pkg-config", so it can be a program name with args.
20684set dummy pkg-config; ac_word=$2
e6cc62c6
VS
20685echo "$as_me:$LINENO: checking for $ac_word" >&5
20686echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
20687if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20688 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 20689else
e6cc62c6
VS
20690 case $PKG_CONFIG in
20691 [\\/]* | ?:[\\/]*)
21d1c967
GD
20692 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20693 ;;
21d1c967 20694 *)
e6cc62c6
VS
20695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20696for as_dir in $PATH
20697do
20698 IFS=$as_save_IFS
20699 test -z "$as_dir" && as_dir=.
20700 for ac_exec_ext in '' $ac_executable_extensions; do
20701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20702 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20704 break 2
20705 fi
20706done
20707done
20708
21d1c967
GD
20709 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20710 ;;
20711esac
f79bd02d 20712fi
e6cc62c6
VS
20713PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20714
21d1c967 20715if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
20716 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20717echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 20718else
e6cc62c6
VS
20719 echo "$as_me:$LINENO: result: no" >&5
20720echo "${ECHO_T}no" >&6
f79bd02d
JS
20721fi
20722
8284b0c5 20723
21d1c967
GD
20724 if test x$PKG_CONFIG != xno ; then
20725 if pkg-config --atleast-pkgconfig-version 0.7 ; then
20726 :
20727 else
20728 echo *** pkg-config too old; version 0.7 or better required.
20729 no_gtk=yes
20730 PKG_CONFIG=no
20731 fi
20732 else
20733 no_gtk=yes
20734 fi
f79bd02d 20735
21d1c967 20736 min_gtk_version=2.0.0
e6cc62c6
VS
20737 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
20738echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 20739
21d1c967
GD
20740 if test x$PKG_CONFIG != xno ; then
20741 ## don't try to run the test against uninstalled libtool libs
20742 if $PKG_CONFIG --uninstalled $pkg_config_args; then
20743 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
20744 enable_gtktest=no
20745 fi
f79bd02d 20746
21d1c967
GD
20747 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
20748 :
20749 else
20750 no_gtk=yes
20751 fi
20752 fi
f79bd02d 20753
21d1c967
GD
20754 if test x"$no_gtk" = x ; then
20755 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
20756 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
20757 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20758 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
20759 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20760 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
20761 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
20762 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
20763 if test "x$enable_gtktest" = "xyes" ; then
20764 ac_save_CFLAGS="$CFLAGS"
20765 ac_save_LIBS="$LIBS"
20766 CFLAGS="$CFLAGS $GTK_CFLAGS"
20767 LIBS="$GTK_LIBS $LIBS"
20768 rm -f conf.gtktest
20769 if test "$cross_compiling" = yes; then
20770 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 20771else
e6cc62c6 20772 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20773#line $LINENO "configure"
e6cc62c6
VS
20774/* confdefs.h. */
20775_ACEOF
20776cat confdefs.h >>conftest.$ac_ext
20777cat >>conftest.$ac_ext <<_ACEOF
20778/* end confdefs.h. */
f79bd02d 20779
21d1c967
GD
20780#include <gtk/gtk.h>
20781#include <stdio.h>
20782#include <stdlib.h>
f79bd02d 20783
e6cc62c6 20784int
21d1c967
GD
20785main ()
20786{
20787 int major, minor, micro;
20788 char *tmp_version;
f79bd02d 20789
21d1c967 20790 system ("touch conf.gtktest");
f79bd02d 20791
21d1c967
GD
20792 /* HP/UX 9 (%@#!) writes to sscanf strings */
20793 tmp_version = g_strdup("$min_gtk_version");
20794 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
20795 printf("%s, bad version string\n", "$min_gtk_version");
20796 exit(1);
20797 }
f79bd02d 20798
21d1c967
GD
20799 if ((gtk_major_version != $gtk_config_major_version) ||
20800 (gtk_minor_version != $gtk_config_minor_version) ||
20801 (gtk_micro_version != $gtk_config_micro_version))
20802 {
e6cc62c6 20803 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
20804 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
20805 gtk_major_version, gtk_minor_version, gtk_micro_version);
20806 printf ("*** was found! If pkg-config was correct, then it is best\n");
20807 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
20808 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
20809 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
20810 printf("*** required on your system.\n");
20811 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
20812 printf("*** to point to the correct configuration files\n");
e6cc62c6 20813 }
21d1c967
GD
20814 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
20815 (gtk_minor_version != GTK_MINOR_VERSION) ||
20816 (gtk_micro_version != GTK_MICRO_VERSION))
20817 {
20818 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
20819 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
20820 printf("*** library (version %d.%d.%d)\n",
20821 gtk_major_version, gtk_minor_version, gtk_micro_version);
20822 }
20823 else
20824 {
20825 if ((gtk_major_version > major) ||
20826 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
20827 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
20828 {
20829 return 0;
20830 }
20831 else
20832 {
20833 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
20834 gtk_major_version, gtk_minor_version, gtk_micro_version);
20835 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
20836 major, minor, micro);
20837 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
20838 printf("***\n");
20839 printf("*** If you have already installed a sufficiently new version, this error\n");
20840 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
20841 printf("*** being found. The easiest way to fix this is to remove the old version\n");
20842 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
20843 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
20844 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
20845 printf("*** so that the correct libraries are found at run-time))\n");
20846 }
20847 }
20848 return 1;
20849}
f79bd02d 20850
e6cc62c6
VS
20851_ACEOF
20852rm -f conftest$ac_exeext
20853if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20854 (eval $ac_link) 2>&5
20855 ac_status=$?
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20859 (eval $ac_try) 2>&5
20860 ac_status=$?
20861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20862 (exit $ac_status); }; }; then
21d1c967 20863 :
f79bd02d 20864else
e6cc62c6
VS
20865 echo "$as_me: program exited with status $ac_status" >&5
20866echo "$as_me: failed program was:" >&5
20867sed 's/^/| /' conftest.$ac_ext >&5
20868
20869( exit $ac_status )
20870no_gtk=yes
f79bd02d 20871fi
789c5f4a 20872rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 20873fi
21d1c967
GD
20874 CFLAGS="$ac_save_CFLAGS"
20875 LIBS="$ac_save_LIBS"
20876 fi
20877 fi
20878 if test "x$no_gtk" = x ; then
e6cc62c6
VS
20879 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
20880echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
20881 wx_cv_lib_gtk=2.0
21d1c967 20882 else
e6cc62c6
VS
20883 echo "$as_me:$LINENO: result: no" >&5
20884echo "${ECHO_T}no" >&6
21d1c967
GD
20885 if test "$PKG_CONFIG" = "no" ; then
20886 echo "*** A new enough version of pkg-config was not found."
20887 echo "*** See http://pkgconfig.sourceforge.net"
20888 else
20889 if test -f conf.gtktest ; then
20890 :
20891 else
20892 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
20893 ac_save_CFLAGS="$CFLAGS"
20894 ac_save_LIBS="$LIBS"
21d1c967
GD
20895 CFLAGS="$CFLAGS $GTK_CFLAGS"
20896 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 20897 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 20898#line $LINENO "configure"
e6cc62c6
VS
20899/* confdefs.h. */
20900_ACEOF
20901cat confdefs.h >>conftest.$ac_ext
20902cat >>conftest.$ac_ext <<_ACEOF
20903/* end confdefs.h. */
21d1c967
GD
20904
20905#include <gtk/gtk.h>
20906#include <stdio.h>
f79bd02d 20907
e6cc62c6
VS
20908int
20909main ()
20910{
20911 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
20912 ;
20913 return 0;
20914}
20915_ACEOF
20916rm -f conftest.$ac_objext conftest$ac_exeext
20917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 20918 (eval $ac_link) 2>&5
e6cc62c6
VS
20919 ac_status=$?
20920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921 (exit $ac_status); } &&
789c5f4a 20922 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924 (eval $ac_try) 2>&5
20925 ac_status=$?
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; }; then
21d1c967
GD
20928 echo "*** The test program compiled, but did not run. This usually means"
20929 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
20930 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
20931 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
20932 echo "*** to the installed location Also, make sure you have run ldconfig if that"
20933 echo "*** is required on your system"
20934 echo "***"
20935 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 20936 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 20937else
e6cc62c6
VS
20938 echo "$as_me: failed program was:" >&5
20939sed 's/^/| /' conftest.$ac_ext >&5
20940
20941 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 20942 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 20943fi
789c5f4a 20944rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
20945 CFLAGS="$ac_save_CFLAGS"
20946 LIBS="$ac_save_LIBS"
20947 fi
20948 fi
20949 GTK_CFLAGS=""
20950 GTK_LIBS=""
20951 :
20952 fi
e6cc62c6
VS
20953
20954
21d1c967 20955 rm -f conf.gtktest
f79bd02d 20956
2b5f62a0 20957 else
e6cc62c6
VS
20958
20959# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
20960if test "${with_gtk_prefix+set}" = set; then
20961 withval="$with_gtk_prefix"
20962 gtk_config_prefix="$withval"
20963else
20964 gtk_config_prefix=""
e6cc62c6 20965fi;
f79bd02d 20966
21d1c967
GD
20967# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
20968if test "${with_gtk_exec_prefix+set}" = set; then
20969 withval="$with_gtk_exec_prefix"
20970 gtk_config_exec_prefix="$withval"
20971else
20972 gtk_config_exec_prefix=""
e6cc62c6 20973fi;
21d1c967
GD
20974# Check whether --enable-gtktest or --disable-gtktest was given.
20975if test "${enable_gtktest+set}" = set; then
20976 enableval="$enable_gtktest"
e6cc62c6 20977
21d1c967
GD
20978else
20979 enable_gtktest=yes
e6cc62c6 20980fi;
21d1c967
GD
20981
20982 for module in . $GTK_MODULES
20983 do
20984 case "$module" in
e6cc62c6 20985 gthread)
21d1c967
GD
20986 gtk_config_args="$gtk_config_args gthread"
20987 ;;
20988 esac
20989 done
20990
20991 if test x$gtk_config_exec_prefix != x ; then
20992 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
20993 if test x${GTK_CONFIG+set} != xset ; then
20994 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
20995 fi
20996 fi
20997 if test x$gtk_config_prefix != x ; then
20998 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
20999 if test x${GTK_CONFIG+set} != xset ; then
21000 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
21001 fi
21002 fi
21003
21004 # Extract the first word of "gtk-config", so it can be a program name with args.
21005set dummy gtk-config; ac_word=$2
e6cc62c6
VS
21006echo "$as_me:$LINENO: checking for $ac_word" >&5
21007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21008if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
21009 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 21010else
e6cc62c6
VS
21011 case $GTK_CONFIG in
21012 [\\/]* | ?:[\\/]*)
21d1c967
GD
21013 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
21014 ;;
21d1c967 21015 *)
e6cc62c6
VS
21016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21017for as_dir in $PATH
21018do
21019 IFS=$as_save_IFS
21020 test -z "$as_dir" && as_dir=.
21021 for ac_exec_ext in '' $ac_executable_extensions; do
21022 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21023 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21025 break 2
21026 fi
21027done
21028done
21029
21d1c967
GD
21030 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21031 ;;
21032esac
21033fi
e6cc62c6
VS
21034GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21035
21d1c967 21036if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
21037 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21038echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 21039else
e6cc62c6
VS
21040 echo "$as_me:$LINENO: result: no" >&5
21041echo "${ECHO_T}no" >&6
21d1c967
GD
21042fi
21043
21044 min_gtk_version=1.2.7
e6cc62c6
VS
21045 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21046echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
21047 no_gtk=""
21048 if test "$GTK_CONFIG" = "no" ; then
21049 no_gtk=yes
21050 else
21051 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21052 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21053 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21054 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21055 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21056 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21057 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21058 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21059 if test "x$enable_gtktest" = "xyes" ; then
21060 ac_save_CFLAGS="$CFLAGS"
21061 ac_save_LIBS="$LIBS"
21062 CFLAGS="$CFLAGS $GTK_CFLAGS"
21063 LIBS="$GTK_LIBS $LIBS"
21064 rm -f conf.gtktest
21065 if test "$cross_compiling" = yes; then
21066 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 21067else
e6cc62c6 21068 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 21069#line $LINENO "configure"
e6cc62c6
VS
21070/* confdefs.h. */
21071_ACEOF
21072cat confdefs.h >>conftest.$ac_ext
21073cat >>conftest.$ac_ext <<_ACEOF
21074/* end confdefs.h. */
f79bd02d 21075
21d1c967
GD
21076#include <gtk/gtk.h>
21077#include <stdio.h>
21078#include <stdlib.h>
f79bd02d 21079
e6cc62c6 21080int
21d1c967
GD
21081main ()
21082{
21083 int major, minor, micro;
21084 char *tmp_version;
21085
21086 system ("touch conf.gtktest");
21087
21088 /* HP/UX 9 (%@#!) writes to sscanf strings */
21089 tmp_version = g_strdup("$min_gtk_version");
21090 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21091 printf("%s, bad version string\n", "$min_gtk_version");
21092 exit(1);
21093 }
90dd450c 21094
21d1c967
GD
21095 if ((gtk_major_version != $gtk_config_major_version) ||
21096 (gtk_minor_version != $gtk_config_minor_version) ||
21097 (gtk_micro_version != $gtk_config_micro_version))
21098 {
e6cc62c6 21099 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
21100 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21101 gtk_major_version, gtk_minor_version, gtk_micro_version);
21102 printf ("*** was found! If gtk-config was correct, then it is best\n");
21103 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21104 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21105 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21106 printf("*** required on your system.\n");
21107 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21108 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21109 printf("*** before re-running configure\n");
e6cc62c6 21110 }
21d1c967
GD
21111#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21112 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21113 (gtk_minor_version != GTK_MINOR_VERSION) ||
21114 (gtk_micro_version != GTK_MICRO_VERSION))
21115 {
21116 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21117 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21118 printf("*** library (version %d.%d.%d)\n",
21119 gtk_major_version, gtk_minor_version, gtk_micro_version);
21120 }
21121#endif /* defined (GTK_MAJOR_VERSION) ... */
21122 else
21123 {
21124 if ((gtk_major_version > major) ||
21125 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21126 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21127 {
21128 return 0;
21129 }
21130 else
21131 {
21132 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21133 gtk_major_version, gtk_minor_version, gtk_micro_version);
21134 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21135 major, minor, micro);
21136 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21137 printf("***\n");
21138 printf("*** If you have already installed a sufficiently new version, this error\n");
21139 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21140 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21141 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21142 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21143 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21144 printf("*** so that the correct libraries are found at run-time))\n");
21145 }
21146 }
21147 return 1;
21148}
21149
e6cc62c6
VS
21150_ACEOF
21151rm -f conftest$ac_exeext
21152if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21153 (eval $ac_link) 2>&5
21154 ac_status=$?
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21158 (eval $ac_try) 2>&5
21159 ac_status=$?
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); }; }; then
21d1c967
GD
21162 :
21163else
e6cc62c6
VS
21164 echo "$as_me: program exited with status $ac_status" >&5
21165echo "$as_me: failed program was:" >&5
21166sed 's/^/| /' conftest.$ac_ext >&5
21167
21168( exit $ac_status )
21169no_gtk=yes
21d1c967 21170fi
789c5f4a 21171rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 21172fi
21d1c967
GD
21173 CFLAGS="$ac_save_CFLAGS"
21174 LIBS="$ac_save_LIBS"
21175 fi
21176 fi
21177 if test "x$no_gtk" = x ; then
e6cc62c6
VS
21178 echo "$as_me:$LINENO: result: yes" >&5
21179echo "${ECHO_T}yes" >&6
21180 wx_cv_lib_gtk=1.2.7
21d1c967 21181 else
e6cc62c6
VS
21182 echo "$as_me:$LINENO: result: no" >&5
21183echo "${ECHO_T}no" >&6
21d1c967
GD
21184 if test "$GTK_CONFIG" = "no" ; then
21185 echo "*** The gtk-config script installed by GTK could not be found"
21186 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21187 echo "*** your path, or set the GTK_CONFIG environment variable to the"
21188 echo "*** full path to gtk-config."
21189 else
21190 if test -f conf.gtktest ; then
21191 :
21192 else
21193 echo "*** Could not run GTK test program, checking why..."
21194 CFLAGS="$CFLAGS $GTK_CFLAGS"
21195 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 21196 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 21197#line $LINENO "configure"
e6cc62c6
VS
21198/* confdefs.h. */
21199_ACEOF
21200cat confdefs.h >>conftest.$ac_ext
21201cat >>conftest.$ac_ext <<_ACEOF
21202/* end confdefs.h. */
21d1c967
GD
21203
21204#include <gtk/gtk.h>
21205#include <stdio.h>
21206
e6cc62c6
VS
21207int
21208main ()
21209{
21210 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21211 ;
21212 return 0;
21213}
21214_ACEOF
21215rm -f conftest.$ac_objext conftest$ac_exeext
21216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 21217 (eval $ac_link) 2>&5
e6cc62c6
VS
21218 ac_status=$?
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); } &&
789c5f4a 21221 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21223 (eval $ac_try) 2>&5
21224 ac_status=$?
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); }; }; then
21d1c967
GD
21227 echo "*** The test program compiled, but did not run. This usually means"
21228 echo "*** that the run-time linker is not finding GTK or finding the wrong"
21229 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
21230 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21231 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21232 echo "*** is required on your system"
21233 echo "***"
21234 echo "*** If you have an old version installed, it is best to remove it, although"
21235 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21236 echo "***"
21237 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
21238 echo "*** came with the system with the command"
21239 echo "***"
e6cc62c6 21240 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 21241else
e6cc62c6
VS
21242 echo "$as_me: failed program was:" >&5
21243sed 's/^/| /' conftest.$ac_ext >&5
21244
21245 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
21246 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
21247 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 21248 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 21249fi
789c5f4a 21250rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
21251 CFLAGS="$ac_save_CFLAGS"
21252 LIBS="$ac_save_LIBS"
21253 fi
21254 fi
21255 GTK_CFLAGS=""
21256 GTK_LIBS=""
21257 :
21258 fi
e6cc62c6
VS
21259
21260
21d1c967
GD
21261 rm -f conf.gtktest
21262
21d1c967 21263
2b5f62a0 21264 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
21265
21266# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
21267if test "${with_gtk_prefix+set}" = set; then
21268 withval="$with_gtk_prefix"
21269 gtk_config_prefix="$withval"
21270else
21271 gtk_config_prefix=""
e6cc62c6 21272fi;
f79bd02d 21273
21d1c967
GD
21274# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21275if test "${with_gtk_exec_prefix+set}" = set; then
21276 withval="$with_gtk_exec_prefix"
21277 gtk_config_exec_prefix="$withval"
21278else
21279 gtk_config_exec_prefix=""
e6cc62c6 21280fi;
21d1c967
GD
21281# Check whether --enable-gtktest or --disable-gtktest was given.
21282if test "${enable_gtktest+set}" = set; then
21283 enableval="$enable_gtktest"
e6cc62c6 21284
90dd450c 21285else
21d1c967 21286 enable_gtktest=yes
e6cc62c6 21287fi;
21d1c967
GD
21288
21289 for module in . $GTK_MODULES
21290 do
21291 case "$module" in
e6cc62c6 21292 gthread)
21d1c967
GD
21293 gtk_config_args="$gtk_config_args gthread"
21294 ;;
21295 esac
21296 done
21297
21298 if test x$gtk_config_exec_prefix != x ; then
21299 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
21300 if test x${GTK_CONFIG+set} != xset ; then
21301 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
21302 fi
21303 fi
21304 if test x$gtk_config_prefix != x ; then
21305 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
21306 if test x${GTK_CONFIG+set} != xset ; then
21307 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
21308 fi
21309 fi
21310
21311 # Extract the first word of "gtk-config", so it can be a program name with args.
21312set dummy gtk-config; ac_word=$2
e6cc62c6
VS
21313echo "$as_me:$LINENO: checking for $ac_word" >&5
21314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21315if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
21316 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21317else
e6cc62c6
VS
21318 case $GTK_CONFIG in
21319 [\\/]* | ?:[\\/]*)
21d1c967
GD
21320 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
21321 ;;
21d1c967 21322 *)
e6cc62c6
VS
21323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21324for as_dir in $PATH
21325do
21326 IFS=$as_save_IFS
21327 test -z "$as_dir" && as_dir=.
21328 for ac_exec_ext in '' $ac_executable_extensions; do
21329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21330 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21332 break 2
21333 fi
21334done
21335done
21336
21d1c967
GD
21337 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21338 ;;
21339esac
21340fi
e6cc62c6
VS
21341GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21342
21d1c967 21343if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
21344 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21345echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 21346else
e6cc62c6
VS
21347 echo "$as_me:$LINENO: result: no" >&5
21348echo "${ECHO_T}no" >&6
21d1c967
GD
21349fi
21350
21351 min_gtk_version=1.2.3
e6cc62c6
VS
21352 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21353echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
21354 no_gtk=""
21355 if test "$GTK_CONFIG" = "no" ; then
21356 no_gtk=yes
21357 else
21358 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21359 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21360 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21361 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21362 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21363 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21364 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21365 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21366 if test "x$enable_gtktest" = "xyes" ; then
21367 ac_save_CFLAGS="$CFLAGS"
21368 ac_save_LIBS="$LIBS"
21369 CFLAGS="$CFLAGS $GTK_CFLAGS"
21370 LIBS="$GTK_LIBS $LIBS"
21371 rm -f conf.gtktest
21372 if test "$cross_compiling" = yes; then
21373 echo $ac_n "cross compiling; assumed OK... $ac_c"
21374else
e6cc62c6 21375 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 21376#line $LINENO "configure"
e6cc62c6
VS
21377/* confdefs.h. */
21378_ACEOF
21379cat confdefs.h >>conftest.$ac_ext
21380cat >>conftest.$ac_ext <<_ACEOF
21381/* end confdefs.h. */
21d1c967
GD
21382
21383#include <gtk/gtk.h>
21384#include <stdio.h>
21385#include <stdlib.h>
21386
e6cc62c6 21387int
21d1c967
GD
21388main ()
21389{
21390 int major, minor, micro;
21391 char *tmp_version;
21392
21393 system ("touch conf.gtktest");
21394
21395 /* HP/UX 9 (%@#!) writes to sscanf strings */
21396 tmp_version = g_strdup("$min_gtk_version");
21397 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21398 printf("%s, bad version string\n", "$min_gtk_version");
21399 exit(1);
21400 }
21401
21402 if ((gtk_major_version != $gtk_config_major_version) ||
21403 (gtk_minor_version != $gtk_config_minor_version) ||
21404 (gtk_micro_version != $gtk_config_micro_version))
21405 {
e6cc62c6 21406 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
21407 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21408 gtk_major_version, gtk_minor_version, gtk_micro_version);
21409 printf ("*** was found! If gtk-config was correct, then it is best\n");
21410 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21411 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21412 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21413 printf("*** required on your system.\n");
21414 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21415 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21416 printf("*** before re-running configure\n");
e6cc62c6 21417 }
21d1c967
GD
21418#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21419 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21420 (gtk_minor_version != GTK_MINOR_VERSION) ||
21421 (gtk_micro_version != GTK_MICRO_VERSION))
21422 {
21423 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21424 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21425 printf("*** library (version %d.%d.%d)\n",
21426 gtk_major_version, gtk_minor_version, gtk_micro_version);
21427 }
21428#endif /* defined (GTK_MAJOR_VERSION) ... */
21429 else
21430 {
21431 if ((gtk_major_version > major) ||
21432 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21433 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21434 {
21435 return 0;
21436 }
21437 else
21438 {
21439 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21440 gtk_major_version, gtk_minor_version, gtk_micro_version);
21441 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21442 major, minor, micro);
21443 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21444 printf("***\n");
21445 printf("*** If you have already installed a sufficiently new version, this error\n");
21446 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21447 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21448 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21449 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21450 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21451 printf("*** so that the correct libraries are found at run-time))\n");
21452 }
21453 }
21454 return 1;
21455}
21456
e6cc62c6
VS
21457_ACEOF
21458rm -f conftest$ac_exeext
21459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21460 (eval $ac_link) 2>&5
21461 ac_status=$?
21462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21463 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465 (eval $ac_try) 2>&5
21466 ac_status=$?
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; }; then
21d1c967
GD
21469 :
21470else
e6cc62c6
VS
21471 echo "$as_me: program exited with status $ac_status" >&5
21472echo "$as_me: failed program was:" >&5
21473sed 's/^/| /' conftest.$ac_ext >&5
21474
21475( exit $ac_status )
21476no_gtk=yes
21d1c967 21477fi
789c5f4a 21478rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 21479fi
21d1c967
GD
21480 CFLAGS="$ac_save_CFLAGS"
21481 LIBS="$ac_save_LIBS"
21482 fi
21483 fi
21484 if test "x$no_gtk" = x ; then
e6cc62c6
VS
21485 echo "$as_me:$LINENO: result: yes" >&5
21486echo "${ECHO_T}yes" >&6
21487 wx_cv_lib_gtk=1.2.3
21d1c967 21488 else
e6cc62c6
VS
21489 echo "$as_me:$LINENO: result: no" >&5
21490echo "${ECHO_T}no" >&6
21d1c967
GD
21491 if test "$GTK_CONFIG" = "no" ; then
21492 echo "*** The gtk-config script installed by GTK could not be found"
21493 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21494 echo "*** your path, or set the GTK_CONFIG environment variable to the"
21495 echo "*** full path to gtk-config."
21496 else
21497 if test -f conf.gtktest ; then
21498 :
21499 else
21500 echo "*** Could not run GTK test program, checking why..."
21501 CFLAGS="$CFLAGS $GTK_CFLAGS"
21502 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 21503 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 21504#line $LINENO "configure"
e6cc62c6
VS
21505/* confdefs.h. */
21506_ACEOF
21507cat confdefs.h >>conftest.$ac_ext
21508cat >>conftest.$ac_ext <<_ACEOF
21509/* end confdefs.h. */
21d1c967
GD
21510
21511#include <gtk/gtk.h>
21512#include <stdio.h>
f79bd02d 21513
e6cc62c6
VS
21514int
21515main ()
21516{
21517 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21518 ;
21519 return 0;
21520}
21521_ACEOF
21522rm -f conftest.$ac_objext conftest$ac_exeext
21523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 21524 (eval $ac_link) 2>&5
e6cc62c6
VS
21525 ac_status=$?
21526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527 (exit $ac_status); } &&
789c5f4a 21528 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21530 (eval $ac_try) 2>&5
21531 ac_status=$?
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); }; }; then
21d1c967
GD
21534 echo "*** The test program compiled, but did not run. This usually means"
21535 echo "*** that the run-time linker is not finding GTK or finding the wrong"
21536 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
21537 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21538 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21539 echo "*** is required on your system"
21540 echo "***"
21541 echo "*** If you have an old version installed, it is best to remove it, although"
21542 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21543 echo "***"
21544 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
21545 echo "*** came with the system with the command"
21546 echo "***"
e6cc62c6 21547 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 21548else
e6cc62c6
VS
21549 echo "$as_me: failed program was:" >&5
21550sed 's/^/| /' conftest.$ac_ext >&5
21551
21552 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
21553 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
21554 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 21555 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 21556fi
789c5f4a 21557rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
21558 CFLAGS="$ac_save_CFLAGS"
21559 LIBS="$ac_save_LIBS"
21560 fi
21561 fi
21562 GTK_CFLAGS=""
21563 GTK_LIBS=""
21564 :
21565 fi
e6cc62c6
VS
21566
21567
21d1c967 21568 rm -f conf.gtktest
f79bd02d 21569
2b5f62a0 21570 fi
21d1c967
GD
21571 fi
21572
21573 if test -z "$wx_cv_lib_gtk"; then
21574 wx_cv_lib_gtk=none
21575 else
21576 wx_cv_cflags_gtk=$GTK_CFLAGS
21577 wx_cv_libs_gtk=$GTK_LIBS
21578 fi
e6cc62c6
VS
21579
21580
5c6fa7d2 21581fi
52127426 21582
8284b0c5 21583
21d1c967 21584 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
21585 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
21586echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
21587 fi
21588
21589 case "$wx_cv_lib_gtk" in
21590 2.0) WXGTK20=1
2b5f62a0 21591 TOOLKIT_VERSION=2
21d1c967
GD
21592 ;;
21593 1.2.7) WXGTK127=1
21594 WXGTK12=1
21595 ;;
21596 1.2.3) WXGTK12=1
21597 ;;
e6cc62c6
VS
21598 *) { { echo "$as_me:$LINENO: error:
21599Please check that gtk-config is in path, the directory
21600where GTK+ libraries are installed (returned by
21601'gtk-config --libs' command) is in LD_LIBRARY_PATH or
21602equivalent variable and GTK+ is version 1.2.3 or above.
21603 " >&5
21604echo "$as_me: error:
247f5006
VZ
21605Please check that gtk-config is in path, the directory
21606where GTK+ libraries are installed (returned by
21607'gtk-config --libs' command) is in LD_LIBRARY_PATH or
21608equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
21609 " >&2;}
21610 { (exit 1); exit 1; }; }
21d1c967
GD
21611 ;;
21612 esac
21613
b13cd66e
VZ
21614 if test "$WXGTK20" = 1; then
21615 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 21616
f09359cf
VS
21617 succeeded=no
21618
21619 if test -z "$PKG_CONFIG"; then
21620 # Extract the first word of "pkg-config", so it can be a program name with args.
21621set dummy pkg-config; ac_word=$2
e6cc62c6
VS
21622echo "$as_me:$LINENO: checking for $ac_word" >&5
21623echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21624if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21625 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 21626else
e6cc62c6
VS
21627 case $PKG_CONFIG in
21628 [\\/]* | ?:[\\/]*)
f09359cf
VS
21629 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21630 ;;
f09359cf 21631 *)
e6cc62c6
VS
21632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21633for as_dir in $PATH
21634do
21635 IFS=$as_save_IFS
21636 test -z "$as_dir" && as_dir=.
21637 for ac_exec_ext in '' $ac_executable_extensions; do
21638 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21639 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21641 break 2
21642 fi
21643done
21644done
21645
f09359cf
VS
21646 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21647 ;;
21648esac
21649fi
e6cc62c6
VS
21650PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21651
f09359cf 21652if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
21653 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21654echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 21655else
e6cc62c6
VS
21656 echo "$as_me:$LINENO: result: no" >&5
21657echo "${ECHO_T}no" >&6
f09359cf
VS
21658fi
21659
21660 fi
21661
21662 if test "$PKG_CONFIG" = "no" ; then
21663 echo "*** The pkg-config script could not be found. Make sure it is"
21664 echo "*** in your path, or set the PKG_CONFIG environment variable"
21665 echo "*** to the full path to pkg-config."
21666 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21667 else
21668 PKG_CONFIG_MIN_VERSION=0.9.0
21669 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
21670 echo "$as_me:$LINENO: checking for pangoft2" >&5
21671echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
21672
21673 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
21674 echo "$as_me:$LINENO: result: yes" >&5
21675echo "${ECHO_T}yes" >&6
f09359cf
VS
21676 succeeded=yes
21677
e6cc62c6
VS
21678 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
21679echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 21680 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
21681 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
21682echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 21683
e6cc62c6
VS
21684 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
21685echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 21686 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
21687 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
21688echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
21689 else
21690 PANGOFT2_CFLAGS=""
21691 PANGOFT2_LIBS=""
e6cc62c6 21692 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
21693 ## do set a variable so people can do so.
21694 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 21695
f09359cf
VS
21696 fi
21697
e6cc62c6
VS
21698
21699
f09359cf
VS
21700 else
21701 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21702 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21703 fi
21704 fi
21705
21706 if test $succeeded = yes; then
e6cc62c6 21707
b13cd66e 21708 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 21709 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 21710
f09359cf 21711 else
e6cc62c6
VS
21712
21713 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
21714echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 21715 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
21716
21717
f09359cf
VS
21718 fi
21719
b13cd66e 21720 fi
2b5f62a0
VZ
21721 else
21722 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
21723 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
21724echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
21725 wxUSE_UNICODE=no
21726 fi
21727 fi
21728
21729 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
21730
21731for ac_func in poll
2b5f62a0 21732do
e6cc62c6
VS
21733as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21734echo "$as_me:$LINENO: checking for $ac_func" >&5
21735echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21736if eval "test \"\${$as_ac_var+set}\" = set"; then
21737 echo $ECHO_N "(cached) $ECHO_C" >&6
21738else
21739 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 21740#line $LINENO "configure"
e6cc62c6
VS
21741/* confdefs.h. */
21742_ACEOF
21743cat confdefs.h >>conftest.$ac_ext
21744cat >>conftest.$ac_ext <<_ACEOF
21745/* end confdefs.h. */
2b5f62a0 21746/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
21747 which can conflict with char $ac_func (); below.
21748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21749 <limits.h> exists even on freestanding compilers. */
21750#ifdef __STDC__
21751# include <limits.h>
21752#else
21753# include <assert.h>
21754#endif
2b5f62a0 21755/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21756#ifdef __cplusplus
21757extern "C"
21758{
21759#endif
2b5f62a0 21760/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21761 builtin and then its argument prototype would still apply. */
21762char $ac_func ();
2b5f62a0
VZ
21763/* The GNU C library defines this for functions which it implements
21764 to always fail with ENOSYS. Some functions are actually named
21765 something starting with __ and the normal name is an alias. */
21766#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21767choke me
21768#else
e6cc62c6
VS
21769char (*f) () = $ac_func;
21770#endif
21771#ifdef __cplusplus
21772}
2b5f62a0
VZ
21773#endif
21774
e6cc62c6
VS
21775int
21776main ()
21777{
21778return f != $ac_func;
21779 ;
21780 return 0;
21781}
21782_ACEOF
21783rm -f conftest.$ac_objext conftest$ac_exeext
21784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 21785 (eval $ac_link) 2>&5
e6cc62c6
VS
21786 ac_status=$?
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); } &&
789c5f4a 21789 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21791 (eval $ac_try) 2>&5
21792 ac_status=$?
21793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21794 (exit $ac_status); }; }; then
21795 eval "$as_ac_var=yes"
21796else
21797 echo "$as_me: failed program was:" >&5
21798sed 's/^/| /' conftest.$ac_ext >&5
21799
21800eval "$as_ac_var=no"
21801fi
789c5f4a 21802rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
21803fi
21804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21805echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21806if test `eval echo '${'$as_ac_var'}'` = yes; then
21807 cat >>confdefs.h <<_ACEOF
21808#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21809_ACEOF
2b5f62a0 21810
2b5f62a0
VZ
21811fi
21812done
21813
f09359cf
VS
21814 fi
21815
21d1c967 21816 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 21817 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
21818
21819 AFMINSTALL=afminstall
21820 TOOLKIT=GTK
21821 GUIDIST=GTK_DIST
21822
e6cc62c6
VS
21823 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
21824echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
21825if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
21826 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21827else
e6cc62c6 21828 ac_check_lib_save_LIBS=$LIBS
21d1c967 21829LIBS="-lgdk $LIBS"
e6cc62c6 21830cat >conftest.$ac_ext <<_ACEOF
789c5f4a 21831#line $LINENO "configure"
e6cc62c6
VS
21832/* confdefs.h. */
21833_ACEOF
21834cat confdefs.h >>conftest.$ac_ext
21835cat >>conftest.$ac_ext <<_ACEOF
21836/* end confdefs.h. */
21837
5c6fa7d2 21838/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
21839#ifdef __cplusplus
21840extern "C"
21841#endif
5c6fa7d2 21842/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
21843 builtin and then its argument prototype would still apply. */
21844char gdk_im_open ();
21845int
21846main ()
21847{
21848gdk_im_open ();
21849 ;
21850 return 0;
21851}
21852_ACEOF
21853rm -f conftest.$ac_objext conftest$ac_exeext
21854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 21855 (eval $ac_link) 2>&5
e6cc62c6
VS
21856 ac_status=$?
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); } &&
789c5f4a 21859 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21861 (eval $ac_try) 2>&5
21862 ac_status=$?
21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); }; }; then
21865 ac_cv_lib_gdk_gdk_im_open=yes
21866else
21867 echo "$as_me: failed program was:" >&5
21868sed 's/^/| /' conftest.$ac_ext >&5
21869
21870ac_cv_lib_gdk_gdk_im_open=no
21871fi
789c5f4a 21872rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
21873LIBS=$ac_check_lib_save_LIBS
21874fi
21875echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
21876echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
21877if test $ac_cv_lib_gdk_gdk_im_open = yes; then
21878 cat >>confdefs.h <<\_ACEOF
21d1c967 21879#define HAVE_XIM 1
e6cc62c6 21880_ACEOF
21d1c967 21881
90dd450c 21882fi
1e6feb95 21883
21d1c967 21884 fi
1e6feb95 21885
21d1c967 21886 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
21887 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
21888echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 21889 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
21890 echo "$as_me:$LINENO: result: not found" >&5
21891echo "${ECHO_T}not found" >&6
21892 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
21893echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
21894 { (exit 1); exit 1; }; }
21d1c967 21895 else
e6cc62c6
VS
21896 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
21897echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
21898 fi
21899
e6cc62c6
VS
21900 echo "$as_me:$LINENO: checking for libmgl location" >&5
21901echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
e46d2a18 21902 case "${host}" in
21d1c967 21903 *-*-linux* )
e46d2a18
VS
21904 if test "x$wxUSE_SHARED" = xyes ; then
21905 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
63a76696 21906 else
e46d2a18 21907 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
63a76696 21908 fi
21d1c967
GD
21909 ;;
21910 *-pc-msdosdjgpp )
63a76696 21911 mgl_os_candidates="dos32/dj2"
21d1c967
GD
21912 ;;
21913 *)
e6cc62c6
VS
21914 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
21915echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
21916 { (exit 1); exit 1; }; }
21d1c967 21917 esac
1e6feb95 21918
21d1c967 21919 mgl_lib_type=""
63a76696
VS
21920 mgl_os=""
21921
21922 for mgl_os_i in $mgl_os_candidates ; do
21923 if test "x$mgl_os" = x ; then
21924 if test "$wxUSE_DEBUG_FLAG" = yes ; then
21925 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
21926 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
21927 mgl_lib_type=debug
21928 mgl_os=$mgl_os_i
21929 fi
21930 fi
21931 if test "x$mgl_lib_type" = x ; then
21932 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
21933 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
21934 mgl_lib_type=release
21935 mgl_os=$mgl_os_i
21936 fi
21937 fi
21d1c967 21938 fi
63a76696 21939 done
2224580a 21940
63a76696 21941 if test "x$mgl_os" = x ; then
e6cc62c6
VS
21942 echo "$as_me:$LINENO: result: not found" >&5
21943echo "${ECHO_T}not found" >&6
21944 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
21945echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
21946 { (exit 1); exit 1; }; }
63a76696 21947 fi
e6cc62c6
VS
21948 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
21949echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 21950
1d1b75ac
VZ
21951 wxUSE_UNIVERSAL="yes"
21952
21d1c967
GD
21953 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
21954 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
21955
90dd450c 21956 AFMINSTALL=afminstall
21d1c967
GD
21957 TOOLKIT=MGL
21958 GUIDIST=MGL_DIST
21959 fi
dad6c0ea 21960
21d1c967 21961 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
21962 echo "$as_me:$LINENO: checking for MicroWindows" >&5
21963echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 21964 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
21965 echo "$as_me:$LINENO: result: not found" >&5
21966echo "${ECHO_T}not found" >&6
21967 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
21968echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
21969 { (exit 1); exit 1; }; }
21d1c967 21970 else
e6cc62c6
VS
21971 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
21972echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 21973 fi
f6bcfd97 21974
21d1c967 21975 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
21976 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
21977echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 21978 else
e6cc62c6
VS
21979 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
21980echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
21981 { (exit 1); exit 1; }; }
90dd450c 21982 fi
0b2effe9 21983
21d1c967
GD
21984 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
21985 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
21986
1d1b75ac
VZ
21987 wxUSE_UNIVERSAL="yes"
21988
21d1c967
GD
21989 AFMINSTALL=afminstall
21990 TOOLKIT=MICROWIN
21991 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
21992
21993 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 21994 fi
f6bcfd97 21995
21d1c967 21996 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
21997 echo "$as_me:$LINENO: checking for X" >&5
21998echo $ECHO_N "checking for X... $ECHO_C" >&6
21999
d8356fa3 22000
21d1c967
GD
22001# Check whether --with-x or --without-x was given.
22002if test "${with_x+set}" = set; then
22003 withval="$with_x"
2224580a 22004
e6cc62c6 22005fi;
21d1c967
GD
22006# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22007if test "x$with_x" = xno; then
22008 # The user explicitly disabled X.
22009 have_x=disabled
22010else
22011 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22012 # Both variables are already set.
22013 have_x=yes
22014 else
e6cc62c6
VS
22015 if test "${ac_cv_have_x+set}" = set; then
22016 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
22017else
22018 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
22019ac_x_includes=no ac_x_libraries=no
22020rm -fr conftest.dir
22021if mkdir conftest.dir; then
22022 cd conftest.dir
21d1c967 22023 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 22024 cat >Imakefile <<'_ACEOF'
21d1c967
GD
22025acfindx:
22026 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 22027_ACEOF
21d1c967
GD
22028 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
22029 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22030 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22031 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22032 for ac_extension in a so sl; do
22033 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
789c5f4a
VZ
22034 test -f $ac_im_libdir/libX11.$ac_extension; then
22035 ac_im_usrlibdir=$ac_im_libdir; break
21d1c967
GD
22036 fi
22037 done
22038 # Screen out bogus values from the imake configuration. They are
22039 # bogus both because they are the default anyway, and because
22040 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 22041 case $ac_im_incroot in
21d1c967 22042 /usr/include) ;;
e6cc62c6 22043 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 22044 esac
e6cc62c6 22045 case $ac_im_usrlibdir in
21d1c967 22046 /usr/lib | /lib) ;;
e6cc62c6 22047 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
22048 esac
22049 fi
22050 cd ..
e6cc62c6 22051 rm -fr conftest.dir
21d1c967 22052fi
10f2d63a 22053
e6cc62c6
VS
22054# Standard set of common directories for X headers.
22055# Check X11 before X11Rn because it is often a symlink to the current release.
22056ac_x_header_dirs='
22057/usr/X11/include
22058/usr/X11R6/include
22059/usr/X11R5/include
22060/usr/X11R4/include
22061
22062/usr/include/X11
22063/usr/include/X11R6
22064/usr/include/X11R5
22065/usr/include/X11R4
22066
22067/usr/local/X11/include
22068/usr/local/X11R6/include
22069/usr/local/X11R5/include
22070/usr/local/X11R4/include
22071
22072/usr/local/include/X11
22073/usr/local/include/X11R6
22074/usr/local/include/X11R5
22075/usr/local/include/X11R4
22076
22077/usr/X386/include
22078/usr/x386/include
22079/usr/XFree86/include/X11
22080
22081/usr/include
22082/usr/local/include
22083/usr/unsupported/include
22084/usr/athena/include
22085/usr/local/x11r5/include
22086/usr/lpp/Xamples/include
22087
22088/usr/openwin/include
22089/usr/openwin/share/include'
22090
22091if test "$ac_x_includes" = no; then
22092 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 22093 # First, try using that file with no special directory specified.
e6cc62c6 22094 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22095#line $LINENO "configure"
e6cc62c6
VS
22096/* confdefs.h. */
22097_ACEOF
22098cat confdefs.h >>conftest.$ac_ext
22099cat >>conftest.$ac_ext <<_ACEOF
22100/* end confdefs.h. */
22101#include <X11/Intrinsic.h>
22102_ACEOF
22103if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22104 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22105 ac_status=$?
22106 grep -v '^ *+' conftest.er1 >conftest.err
22107 rm -f conftest.er1
22108 cat conftest.err >&5
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); } >/dev/null; then
22111 if test -s conftest.err; then
22112 ac_cpp_err=$ac_c_preproc_warn_flag
22113 else
22114 ac_cpp_err=
22115 fi
22116else
22117 ac_cpp_err=yes
22118fi
22119if test -z "$ac_cpp_err"; then
21d1c967
GD
22120 # We can compile using X headers with no special include directory.
22121ac_x_includes=
90dd450c 22122else
e6cc62c6
VS
22123 echo "$as_me: failed program was:" >&5
22124sed 's/^/| /' conftest.$ac_ext >&5
22125
22126 for ac_dir in $ac_x_header_dirs; do
22127 if test -r "$ac_dir/X11/Intrinsic.h"; then
22128 ac_x_includes=$ac_dir
22129 break
22130 fi
22131done
3a922bb4 22132fi
e6cc62c6
VS
22133rm -f conftest.err conftest.$ac_ext
22134fi # $ac_x_includes = no
10f2d63a 22135
e6cc62c6 22136if test "$ac_x_libraries" = no; then
21d1c967 22137 # Check for the libraries.
21d1c967
GD
22138 # See if we find them without any special options.
22139 # Don't add to $LIBS permanently.
e6cc62c6
VS
22140 ac_save_LIBS=$LIBS
22141 LIBS="-lXt $LIBS"
22142 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22143#line $LINENO "configure"
e6cc62c6
VS
22144/* confdefs.h. */
22145_ACEOF
22146cat confdefs.h >>conftest.$ac_ext
22147cat >>conftest.$ac_ext <<_ACEOF
22148/* end confdefs.h. */
22149#include <X11/Intrinsic.h>
22150int
22151main ()
22152{
22153XtMalloc (0)
22154 ;
22155 return 0;
22156}
22157_ACEOF
22158rm -f conftest.$ac_objext conftest$ac_exeext
22159if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22160 (eval $ac_link) 2>&5
e6cc62c6
VS
22161 ac_status=$?
22162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22163 (exit $ac_status); } &&
789c5f4a 22164 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22166 (eval $ac_try) 2>&5
22167 ac_status=$?
22168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22169 (exit $ac_status); }; }; then
22170 LIBS=$ac_save_LIBS
21d1c967
GD
22171# We can link X programs with no special library path.
22172ac_x_libraries=
3a922bb4 22173else
e6cc62c6
VS
22174 echo "$as_me: failed program was:" >&5
22175sed 's/^/| /' conftest.$ac_ext >&5
22176
22177LIBS=$ac_save_LIBS
22178for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 22179do
e6cc62c6 22180 # Don't even attempt the hair of trying to link an X program!
21d1c967 22181 for ac_extension in a so sl; do
e6cc62c6 22182 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
22183 ac_x_libraries=$ac_dir
22184 break 2
22185 fi
22186 done
22187done
3a922bb4 22188fi
789c5f4a 22189rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6 22190fi # $ac_x_libraries = no
90dd450c 22191
e6cc62c6 22192if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
22193 # Didn't find X anywhere. Cache the known absence of X.
22194 ac_cv_have_x="have_x=no"
22195else
22196 # Record where we found X for the cache.
22197 ac_cv_have_x="have_x=yes \
789c5f4a 22198 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 22199fi
21d1c967 22200fi
e6cc62c6 22201
21d1c967
GD
22202 fi
22203 eval "$ac_cv_have_x"
22204fi # $with_x != no
90dd450c 22205
21d1c967 22206if test "$have_x" != yes; then
e6cc62c6
VS
22207 echo "$as_me:$LINENO: result: $have_x" >&5
22208echo "${ECHO_T}$have_x" >&6
21d1c967
GD
22209 no_x=yes
22210else
22211 # If each of the values was on the command line, it overrides each guess.
22212 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22213 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22214 # Update the cache value to reflect the command line values.
22215 ac_cv_have_x="have_x=yes \
22216 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
22217 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22218echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 22219fi
90dd450c 22220
21d1c967 22221if test "$no_x" = yes; then
90dd450c 22222 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
22223
22224cat >>confdefs.h <<\_ACEOF
90dd450c 22225#define X_DISPLAY_MISSING 1
e6cc62c6 22226_ACEOF
90dd450c
VZ
22227
22228 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22229else
22230 if test -n "$x_includes"; then
22231 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 22232 fi
3a922bb4 22233
90dd450c
VZ
22234 # It would also be nice to do this for all -L options, not just this one.
22235 if test -n "$x_libraries"; then
22236 X_LIBS="$X_LIBS -L$x_libraries"
22237 # For Solaris; some versions of Sun CC require a space after -R and
22238 # others require no space. Words are not sufficient . . . .
e6cc62c6 22239 case `(uname -sr) 2>/dev/null` in
90dd450c 22240 "SunOS 5"*)
e6cc62c6
VS
22241 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22242echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22243 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22244 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22245#line $LINENO "configure"
e6cc62c6
VS
22246/* confdefs.h. */
22247_ACEOF
22248cat confdefs.h >>conftest.$ac_ext
22249cat >>conftest.$ac_ext <<_ACEOF
22250/* end confdefs.h. */
22251
22252int
22253main ()
22254{
90dd450c 22255
e6cc62c6
VS
22256 ;
22257 return 0;
22258}
22259_ACEOF
22260rm -f conftest.$ac_objext conftest$ac_exeext
22261if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22262 (eval $ac_link) 2>&5
e6cc62c6
VS
22263 ac_status=$?
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); } &&
789c5f4a 22266 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22268 (eval $ac_try) 2>&5
22269 ac_status=$?
22270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22271 (exit $ac_status); }; }; then
90dd450c 22272 ac_R_nospace=yes
3a922bb4 22273else
e6cc62c6
VS
22274 echo "$as_me: failed program was:" >&5
22275sed 's/^/| /' conftest.$ac_ext >&5
22276
22277ac_R_nospace=no
3a922bb4 22278fi
789c5f4a 22279rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 22280 if test $ac_R_nospace = yes; then
e6cc62c6
VS
22281 echo "$as_me:$LINENO: result: no" >&5
22282echo "${ECHO_T}no" >&6
90dd450c
VZ
22283 X_LIBS="$X_LIBS -R$x_libraries"
22284 else
22285 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 22286 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22287#line $LINENO "configure"
e6cc62c6
VS
22288/* confdefs.h. */
22289_ACEOF
22290cat confdefs.h >>conftest.$ac_ext
22291cat >>conftest.$ac_ext <<_ACEOF
22292/* end confdefs.h. */
22293
22294int
22295main ()
22296{
6f754473 22297
e6cc62c6
VS
22298 ;
22299 return 0;
22300}
22301_ACEOF
22302rm -f conftest.$ac_objext conftest$ac_exeext
22303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22304 (eval $ac_link) 2>&5
e6cc62c6
VS
22305 ac_status=$?
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); } &&
789c5f4a 22308 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22310 (eval $ac_try) 2>&5
22311 ac_status=$?
22312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22313 (exit $ac_status); }; }; then
90dd450c
VZ
22314 ac_R_space=yes
22315else
e6cc62c6
VS
22316 echo "$as_me: failed program was:" >&5
22317sed 's/^/| /' conftest.$ac_ext >&5
22318
22319ac_R_space=no
90dd450c 22320fi
789c5f4a 22321rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
90dd450c 22322 if test $ac_R_space = yes; then
e6cc62c6
VS
22323 echo "$as_me:$LINENO: result: yes" >&5
22324echo "${ECHO_T}yes" >&6
90dd450c
VZ
22325 X_LIBS="$X_LIBS -R $x_libraries"
22326 else
e6cc62c6
VS
22327 echo "$as_me:$LINENO: result: neither works" >&5
22328echo "${ECHO_T}neither works" >&6
90dd450c
VZ
22329 fi
22330 fi
e6cc62c6 22331 LIBS=$ac_xsave_LIBS
90dd450c
VZ
22332 esac
22333 fi
22334
22335 # Check for system-dependent libraries X programs must link with.
22336 # Do this before checking for the system-independent R6 libraries
22337 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 22338
90dd450c
VZ
22339 if test "$ISC" = yes; then
22340 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22341 else
e6cc62c6
VS
22342 # Martyn Johnson says this is needed for Ultrix, if the X
22343 # libraries were built with DECnet support. And Karl Berry says
90dd450c 22344 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
22345 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22346 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22347#line $LINENO "configure"
e6cc62c6
VS
22348/* confdefs.h. */
22349_ACEOF
22350cat confdefs.h >>conftest.$ac_ext
22351cat >>conftest.$ac_ext <<_ACEOF
22352/* end confdefs.h. */
22353
247f5006 22354/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22355#ifdef __cplusplus
22356extern "C"
22357#endif
247f5006 22358/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22359 builtin and then its argument prototype would still apply. */
22360char XOpenDisplay ();
22361int
22362main ()
22363{
22364XOpenDisplay ();
22365 ;
22366 return 0;
22367}
22368_ACEOF
22369rm -f conftest.$ac_objext conftest$ac_exeext
22370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22371 (eval $ac_link) 2>&5
e6cc62c6
VS
22372 ac_status=$?
22373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); } &&
789c5f4a 22375 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22377 (eval $ac_try) 2>&5
22378 ac_status=$?
22379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380 (exit $ac_status); }; }; then
22381 :
22382else
22383 echo "$as_me: failed program was:" >&5
22384sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 22385
e6cc62c6
VS
22386echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22387echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22388if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22389 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22390else
e6cc62c6
VS
22391 ac_check_lib_save_LIBS=$LIBS
22392LIBS="-ldnet $LIBS"
22393cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22394#line $LINENO "configure"
e6cc62c6
VS
22395/* confdefs.h. */
22396_ACEOF
22397cat confdefs.h >>conftest.$ac_ext
22398cat >>conftest.$ac_ext <<_ACEOF
22399/* end confdefs.h. */
a0b9e27f 22400
e6cc62c6
VS
22401/* Override any gcc2 internal prototype to avoid an error. */
22402#ifdef __cplusplus
22403extern "C"
22404#endif
22405/* We use char because int might match the return type of a gcc2
22406 builtin and then its argument prototype would still apply. */
22407char dnet_ntoa ();
22408int
22409main ()
22410{
22411dnet_ntoa ();
22412 ;
22413 return 0;
22414}
22415_ACEOF
22416rm -f conftest.$ac_objext conftest$ac_exeext
22417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22418 (eval $ac_link) 2>&5
e6cc62c6
VS
22419 ac_status=$?
22420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22421 (exit $ac_status); } &&
789c5f4a 22422 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22424 (eval $ac_try) 2>&5
22425 ac_status=$?
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); }; }; then
22428 ac_cv_lib_dnet_dnet_ntoa=yes
22429else
22430 echo "$as_me: failed program was:" >&5
22431sed 's/^/| /' conftest.$ac_ext >&5
22432
22433ac_cv_lib_dnet_dnet_ntoa=no
22434fi
789c5f4a 22435rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22436LIBS=$ac_check_lib_save_LIBS
22437fi
22438echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22439echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
22440if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 22441 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
22442fi
22443
90dd450c 22444 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
22445 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
22446echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
22447if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
22448 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22449else
e6cc62c6 22450 ac_check_lib_save_LIBS=$LIBS
90dd450c 22451LIBS="-ldnet_stub $LIBS"
e6cc62c6 22452cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22453#line $LINENO "configure"
e6cc62c6
VS
22454/* confdefs.h. */
22455_ACEOF
22456cat confdefs.h >>conftest.$ac_ext
22457cat >>conftest.$ac_ext <<_ACEOF
22458/* end confdefs.h. */
22459
90dd450c 22460/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22461#ifdef __cplusplus
22462extern "C"
22463#endif
90dd450c 22464/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22465 builtin and then its argument prototype would still apply. */
22466char dnet_ntoa ();
22467int
22468main ()
22469{
22470dnet_ntoa ();
22471 ;
22472 return 0;
22473}
22474_ACEOF
22475rm -f conftest.$ac_objext conftest$ac_exeext
22476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22477 (eval $ac_link) 2>&5
e6cc62c6
VS
22478 ac_status=$?
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); } &&
789c5f4a 22481 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22483 (eval $ac_try) 2>&5
22484 ac_status=$?
22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); }; }; then
22487 ac_cv_lib_dnet_stub_dnet_ntoa=yes
22488else
22489 echo "$as_me: failed program was:" >&5
22490sed 's/^/| /' conftest.$ac_ext >&5
22491
22492ac_cv_lib_dnet_stub_dnet_ntoa=no
22493fi
789c5f4a 22494rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22495LIBS=$ac_check_lib_save_LIBS
22496fi
22497echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
22498echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
22499if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 22500 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
22501fi
22502
90dd450c 22503 fi
e6cc62c6 22504fi
789c5f4a 22505rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6 22506 LIBS="$ac_xsave_LIBS"
978f1259 22507
90dd450c
VZ
22508 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
22509 # to get the SysV transport functions.
e6cc62c6 22510 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
22511 # needs -lnsl.
22512 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
22513 # on Irix 5.2, according to T.E. Dickey.
22514 # The functions gethostbyname, getservbyname, and inet_addr are
22515 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
22516 echo "$as_me:$LINENO: checking for gethostbyname" >&5
22517echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
22518if test "${ac_cv_func_gethostbyname+set}" = set; then
22519 echo $ECHO_N "(cached) $ECHO_C" >&6
22520else
22521 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22522#line $LINENO "configure"
e6cc62c6
VS
22523/* confdefs.h. */
22524_ACEOF
22525cat confdefs.h >>conftest.$ac_ext
22526cat >>conftest.$ac_ext <<_ACEOF
22527/* end confdefs.h. */
90dd450c 22528/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22529 which can conflict with char gethostbyname (); below.
22530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22531 <limits.h> exists even on freestanding compilers. */
22532#ifdef __STDC__
22533# include <limits.h>
22534#else
22535# include <assert.h>
22536#endif
90dd450c 22537/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22538#ifdef __cplusplus
22539extern "C"
22540{
22541#endif
90dd450c 22542/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22543 builtin and then its argument prototype would still apply. */
22544char gethostbyname ();
90dd450c
VZ
22545/* The GNU C library defines this for functions which it implements
22546 to always fail with ENOSYS. Some functions are actually named
22547 something starting with __ and the normal name is an alias. */
22548#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
22549choke me
22550#else
e6cc62c6
VS
22551char (*f) () = gethostbyname;
22552#endif
22553#ifdef __cplusplus
22554}
90dd450c 22555#endif
978f1259 22556
e6cc62c6
VS
22557int
22558main ()
22559{
22560return f != gethostbyname;
22561 ;
22562 return 0;
22563}
22564_ACEOF
22565rm -f conftest.$ac_objext conftest$ac_exeext
22566if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22567 (eval $ac_link) 2>&5
e6cc62c6
VS
22568 ac_status=$?
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); } &&
789c5f4a 22571 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22573 (eval $ac_try) 2>&5
22574 ac_status=$?
22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); }; }; then
22577 ac_cv_func_gethostbyname=yes
22578else
22579 echo "$as_me: failed program was:" >&5
22580sed 's/^/| /' conftest.$ac_ext >&5
22581
22582ac_cv_func_gethostbyname=no
22583fi
789c5f4a 22584rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22585fi
22586echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
22587echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 22588
90dd450c 22589 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
22590 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
22591echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
22592if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
22593 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22594else
e6cc62c6 22595 ac_check_lib_save_LIBS=$LIBS
90dd450c 22596LIBS="-lnsl $LIBS"
e6cc62c6 22597cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22598#line $LINENO "configure"
e6cc62c6
VS
22599/* confdefs.h. */
22600_ACEOF
22601cat confdefs.h >>conftest.$ac_ext
22602cat >>conftest.$ac_ext <<_ACEOF
22603/* end confdefs.h. */
22604
90dd450c 22605/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22606#ifdef __cplusplus
22607extern "C"
22608#endif
90dd450c 22609/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22610 builtin and then its argument prototype would still apply. */
22611char gethostbyname ();
22612int
22613main ()
22614{
22615gethostbyname ();
22616 ;
22617 return 0;
22618}
22619_ACEOF
22620rm -f conftest.$ac_objext conftest$ac_exeext
22621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22622 (eval $ac_link) 2>&5
e6cc62c6
VS
22623 ac_status=$?
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); } &&
789c5f4a 22626 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22628 (eval $ac_try) 2>&5
22629 ac_status=$?
22630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22631 (exit $ac_status); }; }; then
22632 ac_cv_lib_nsl_gethostbyname=yes
22633else
22634 echo "$as_me: failed program was:" >&5
22635sed 's/^/| /' conftest.$ac_ext >&5
22636
22637ac_cv_lib_nsl_gethostbyname=no
22638fi
789c5f4a 22639rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22640LIBS=$ac_check_lib_save_LIBS
22641fi
22642echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
22643echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
22644if test $ac_cv_lib_nsl_gethostbyname = yes; then
22645 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 22646fi
247f5006 22647
e6cc62c6 22648 if test $ac_cv_lib_nsl_gethostbyname = no; then
789c5f4a 22649 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
22650echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
22651if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
22652 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22653else
e6cc62c6
VS
22654 ac_check_lib_save_LIBS=$LIBS
22655LIBS="-lbsd $LIBS"
22656cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22657#line $LINENO "configure"
e6cc62c6
VS
22658/* confdefs.h. */
22659_ACEOF
22660cat confdefs.h >>conftest.$ac_ext
22661cat >>conftest.$ac_ext <<_ACEOF
22662/* end confdefs.h. */
22663
22664/* Override any gcc2 internal prototype to avoid an error. */
22665#ifdef __cplusplus
22666extern "C"
22667#endif
22668/* We use char because int might match the return type of a gcc2
22669 builtin and then its argument prototype would still apply. */
22670char gethostbyname ();
22671int
22672main ()
22673{
22674gethostbyname ();
22675 ;
22676 return 0;
22677}
22678_ACEOF
22679rm -f conftest.$ac_objext conftest$ac_exeext
22680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22681 (eval $ac_link) 2>&5
e6cc62c6
VS
22682 ac_status=$?
22683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22684 (exit $ac_status); } &&
789c5f4a 22685 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22687 (eval $ac_try) 2>&5
22688 ac_status=$?
22689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690 (exit $ac_status); }; }; then
22691 ac_cv_lib_bsd_gethostbyname=yes
22692else
22693 echo "$as_me: failed program was:" >&5
22694sed 's/^/| /' conftest.$ac_ext >&5
22695
22696ac_cv_lib_bsd_gethostbyname=no
22697fi
789c5f4a 22698rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22699LIBS=$ac_check_lib_save_LIBS
22700fi
22701echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
22702echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
22703if test $ac_cv_lib_bsd_gethostbyname = yes; then
22704 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 22705fi
b12915c1 22706
e6cc62c6 22707 fi
90dd450c
VZ
22708 fi
22709
22710 # lieder@skyler.mavd.honeywell.com says without -lsocket,
22711 # socket/setsockopt and other routines are undefined under SCO ODT
22712 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
22713 # on later versions), says Simon Leinen: it contains gethostby*
22714 # variants that don't use the name server (or something). -lsocket
22715 # must be given before -lnsl if both are needed. We assume that
22716 # if connect needs -lnsl, so does gethostbyname.
22717 echo "$as_me:$LINENO: checking for connect" >&5
22718echo $ECHO_N "checking for connect... $ECHO_C" >&6
22719if test "${ac_cv_func_connect+set}" = set; then
22720 echo $ECHO_N "(cached) $ECHO_C" >&6
22721else
22722 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22723#line $LINENO "configure"
e6cc62c6
VS
22724/* confdefs.h. */
22725_ACEOF
22726cat confdefs.h >>conftest.$ac_ext
22727cat >>conftest.$ac_ext <<_ACEOF
22728/* end confdefs.h. */
90dd450c 22729/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22730 which can conflict with char connect (); below.
22731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22732 <limits.h> exists even on freestanding compilers. */
22733#ifdef __STDC__
22734# include <limits.h>
22735#else
22736# include <assert.h>
22737#endif
90dd450c 22738/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22739#ifdef __cplusplus
22740extern "C"
22741{
22742#endif
90dd450c 22743/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22744 builtin and then its argument prototype would still apply. */
22745char connect ();
90dd450c
VZ
22746/* The GNU C library defines this for functions which it implements
22747 to always fail with ENOSYS. Some functions are actually named
22748 something starting with __ and the normal name is an alias. */
22749#if defined (__stub_connect) || defined (__stub___connect)
22750choke me
22751#else
e6cc62c6
VS
22752char (*f) () = connect;
22753#endif
22754#ifdef __cplusplus
22755}
90dd450c
VZ
22756#endif
22757
e6cc62c6
VS
22758int
22759main ()
22760{
22761return f != connect;
22762 ;
22763 return 0;
22764}
22765_ACEOF
22766rm -f conftest.$ac_objext conftest$ac_exeext
22767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22768 (eval $ac_link) 2>&5
e6cc62c6
VS
22769 ac_status=$?
22770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771 (exit $ac_status); } &&
789c5f4a 22772 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22774 (eval $ac_try) 2>&5
22775 ac_status=$?
22776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); }; }; then
22778 ac_cv_func_connect=yes
22779else
22780 echo "$as_me: failed program was:" >&5
22781sed 's/^/| /' conftest.$ac_ext >&5
22782
22783ac_cv_func_connect=no
22784fi
789c5f4a 22785rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22786fi
22787echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
22788echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 22789
90dd450c 22790 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
22791 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
22792echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
22793if test "${ac_cv_lib_socket_connect+set}" = set; then
22794 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22795else
e6cc62c6 22796 ac_check_lib_save_LIBS=$LIBS
90dd450c 22797LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 22798cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22799#line $LINENO "configure"
e6cc62c6
VS
22800/* confdefs.h. */
22801_ACEOF
22802cat confdefs.h >>conftest.$ac_ext
22803cat >>conftest.$ac_ext <<_ACEOF
22804/* end confdefs.h. */
22805
90dd450c 22806/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22807#ifdef __cplusplus
22808extern "C"
22809#endif
90dd450c 22810/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22811 builtin and then its argument prototype would still apply. */
22812char connect ();
22813int
22814main ()
22815{
22816connect ();
22817 ;
22818 return 0;
22819}
22820_ACEOF
22821rm -f conftest.$ac_objext conftest$ac_exeext
22822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22823 (eval $ac_link) 2>&5
e6cc62c6
VS
22824 ac_status=$?
22825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826 (exit $ac_status); } &&
789c5f4a 22827 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22829 (eval $ac_try) 2>&5
22830 ac_status=$?
22831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22832 (exit $ac_status); }; }; then
22833 ac_cv_lib_socket_connect=yes
22834else
22835 echo "$as_me: failed program was:" >&5
22836sed 's/^/| /' conftest.$ac_ext >&5
22837
22838ac_cv_lib_socket_connect=no
22839fi
789c5f4a 22840rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22841LIBS=$ac_check_lib_save_LIBS
22842fi
22843echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
22844echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
22845if test $ac_cv_lib_socket_connect = yes; then
90dd450c 22846 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 22847fi
77e13408 22848
90dd450c 22849 fi
25d0687a 22850
e6cc62c6
VS
22851 # Guillermo Gomez says -lposix is necessary on A/UX.
22852 echo "$as_me:$LINENO: checking for remove" >&5
22853echo $ECHO_N "checking for remove... $ECHO_C" >&6
22854if test "${ac_cv_func_remove+set}" = set; then
22855 echo $ECHO_N "(cached) $ECHO_C" >&6
22856else
22857 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22858#line $LINENO "configure"
e6cc62c6
VS
22859/* confdefs.h. */
22860_ACEOF
22861cat confdefs.h >>conftest.$ac_ext
22862cat >>conftest.$ac_ext <<_ACEOF
22863/* end confdefs.h. */
90dd450c 22864/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22865 which can conflict with char remove (); below.
22866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22867 <limits.h> exists even on freestanding compilers. */
22868#ifdef __STDC__
22869# include <limits.h>
22870#else
22871# include <assert.h>
22872#endif
90dd450c 22873/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22874#ifdef __cplusplus
22875extern "C"
22876{
22877#endif
90dd450c 22878/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22879 builtin and then its argument prototype would still apply. */
22880char remove ();
90dd450c
VZ
22881/* The GNU C library defines this for functions which it implements
22882 to always fail with ENOSYS. Some functions are actually named
22883 something starting with __ and the normal name is an alias. */
22884#if defined (__stub_remove) || defined (__stub___remove)
22885choke me
22886#else
e6cc62c6
VS
22887char (*f) () = remove;
22888#endif
22889#ifdef __cplusplus
22890}
90dd450c 22891#endif
55e80573 22892
e6cc62c6
VS
22893int
22894main ()
22895{
22896return f != remove;
22897 ;
22898 return 0;
22899}
22900_ACEOF
22901rm -f conftest.$ac_objext conftest$ac_exeext
22902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22903 (eval $ac_link) 2>&5
e6cc62c6
VS
22904 ac_status=$?
22905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906 (exit $ac_status); } &&
789c5f4a 22907 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909 (eval $ac_try) 2>&5
22910 ac_status=$?
22911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912 (exit $ac_status); }; }; then
22913 ac_cv_func_remove=yes
22914else
22915 echo "$as_me: failed program was:" >&5
22916sed 's/^/| /' conftest.$ac_ext >&5
22917
22918ac_cv_func_remove=no
22919fi
789c5f4a 22920rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22921fi
22922echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
22923echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 22924
90dd450c 22925 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
22926 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
22927echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
22928if test "${ac_cv_lib_posix_remove+set}" = set; then
22929 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22930else
e6cc62c6 22931 ac_check_lib_save_LIBS=$LIBS
90dd450c 22932LIBS="-lposix $LIBS"
e6cc62c6 22933cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22934#line $LINENO "configure"
e6cc62c6
VS
22935/* confdefs.h. */
22936_ACEOF
22937cat confdefs.h >>conftest.$ac_ext
22938cat >>conftest.$ac_ext <<_ACEOF
22939/* end confdefs.h. */
22940
90dd450c 22941/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22942#ifdef __cplusplus
22943extern "C"
22944#endif
90dd450c 22945/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22946 builtin and then its argument prototype would still apply. */
22947char remove ();
22948int
22949main ()
22950{
22951remove ();
22952 ;
22953 return 0;
22954}
22955_ACEOF
22956rm -f conftest.$ac_objext conftest$ac_exeext
22957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 22958 (eval $ac_link) 2>&5
e6cc62c6
VS
22959 ac_status=$?
22960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961 (exit $ac_status); } &&
789c5f4a 22962 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22964 (eval $ac_try) 2>&5
22965 ac_status=$?
22966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967 (exit $ac_status); }; }; then
22968 ac_cv_lib_posix_remove=yes
22969else
22970 echo "$as_me: failed program was:" >&5
22971sed 's/^/| /' conftest.$ac_ext >&5
22972
22973ac_cv_lib_posix_remove=no
22974fi
789c5f4a 22975rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22976LIBS=$ac_check_lib_save_LIBS
22977fi
22978echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
22979echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
22980if test $ac_cv_lib_posix_remove = yes; then
90dd450c 22981 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 22982fi
f6bcfd97 22983
6fa882bd
RR
22984 fi
22985
90dd450c 22986 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
22987 echo "$as_me:$LINENO: checking for shmat" >&5
22988echo $ECHO_N "checking for shmat... $ECHO_C" >&6
22989if test "${ac_cv_func_shmat+set}" = set; then
22990 echo $ECHO_N "(cached) $ECHO_C" >&6
22991else
22992 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 22993#line $LINENO "configure"
e6cc62c6
VS
22994/* confdefs.h. */
22995_ACEOF
22996cat confdefs.h >>conftest.$ac_ext
22997cat >>conftest.$ac_ext <<_ACEOF
22998/* end confdefs.h. */
90dd450c 22999/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23000 which can conflict with char shmat (); below.
23001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23002 <limits.h> exists even on freestanding compilers. */
23003#ifdef __STDC__
23004# include <limits.h>
23005#else
23006# include <assert.h>
23007#endif
90dd450c 23008/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23009#ifdef __cplusplus
23010extern "C"
23011{
23012#endif
90dd450c 23013/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23014 builtin and then its argument prototype would still apply. */
23015char shmat ();
90dd450c
VZ
23016/* The GNU C library defines this for functions which it implements
23017 to always fail with ENOSYS. Some functions are actually named
23018 something starting with __ and the normal name is an alias. */
23019#if defined (__stub_shmat) || defined (__stub___shmat)
23020choke me
23021#else
e6cc62c6
VS
23022char (*f) () = shmat;
23023#endif
23024#ifdef __cplusplus
23025}
90dd450c 23026#endif
10f2d63a 23027
e6cc62c6
VS
23028int
23029main ()
23030{
23031return f != shmat;
23032 ;
23033 return 0;
23034}
23035_ACEOF
23036rm -f conftest.$ac_objext conftest$ac_exeext
23037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23038 (eval $ac_link) 2>&5
e6cc62c6
VS
23039 ac_status=$?
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); } &&
789c5f4a 23042 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23044 (eval $ac_try) 2>&5
23045 ac_status=$?
23046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047 (exit $ac_status); }; }; then
23048 ac_cv_func_shmat=yes
23049else
23050 echo "$as_me: failed program was:" >&5
23051sed 's/^/| /' conftest.$ac_ext >&5
23052
23053ac_cv_func_shmat=no
23054fi
789c5f4a 23055rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23056fi
23057echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23058echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 23059
90dd450c 23060 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23061 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23062echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23063if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23064 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 23065else
e6cc62c6 23066 ac_check_lib_save_LIBS=$LIBS
90dd450c 23067LIBS="-lipc $LIBS"
e6cc62c6 23068cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23069#line $LINENO "configure"
e6cc62c6
VS
23070/* confdefs.h. */
23071_ACEOF
23072cat confdefs.h >>conftest.$ac_ext
23073cat >>conftest.$ac_ext <<_ACEOF
23074/* end confdefs.h. */
23075
8284b0c5 23076/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23077#ifdef __cplusplus
23078extern "C"
23079#endif
90dd450c 23080/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23081 builtin and then its argument prototype would still apply. */
23082char shmat ();
23083int
23084main ()
23085{
23086shmat ();
23087 ;
23088 return 0;
23089}
23090_ACEOF
23091rm -f conftest.$ac_objext conftest$ac_exeext
23092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23093 (eval $ac_link) 2>&5
e6cc62c6
VS
23094 ac_status=$?
23095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096 (exit $ac_status); } &&
789c5f4a 23097 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23099 (eval $ac_try) 2>&5
23100 ac_status=$?
23101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23102 (exit $ac_status); }; }; then
23103 ac_cv_lib_ipc_shmat=yes
23104else
23105 echo "$as_me: failed program was:" >&5
23106sed 's/^/| /' conftest.$ac_ext >&5
23107
23108ac_cv_lib_ipc_shmat=no
23109fi
789c5f4a 23110rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23111LIBS=$ac_check_lib_save_LIBS
23112fi
23113echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23114echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23115if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 23116 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
23117fi
23118
d558c907 23119 fi
90dd450c 23120 fi
3a922bb4 23121
90dd450c 23122 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23123 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
23124 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23125 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23126 # check for ICE first), but we must link in the order -lSM -lICE or
23127 # we get undefined symbols. So assume we have SM if we have ICE.
23128 # These have to be linked with before -lX11, unlike the other
23129 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23130 # John Interrante, Karl Berry
23131 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23132echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23133if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23134 echo $ECHO_N "(cached) $ECHO_C" >&6
23135else
23136 ac_check_lib_save_LIBS=$LIBS
f09359cf 23137LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 23138cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23139#line $LINENO "configure"
e6cc62c6
VS
23140/* confdefs.h. */
23141_ACEOF
23142cat confdefs.h >>conftest.$ac_ext
23143cat >>conftest.$ac_ext <<_ACEOF
23144/* end confdefs.h. */
23145
90dd450c 23146/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23147#ifdef __cplusplus
23148extern "C"
23149#endif
90dd450c 23150/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23151 builtin and then its argument prototype would still apply. */
23152char IceConnectionNumber ();
23153int
23154main ()
23155{
23156IceConnectionNumber ();
23157 ;
23158 return 0;
23159}
23160_ACEOF
23161rm -f conftest.$ac_objext conftest$ac_exeext
23162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23163 (eval $ac_link) 2>&5
e6cc62c6
VS
23164 ac_status=$?
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); } &&
789c5f4a 23167 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23169 (eval $ac_try) 2>&5
23170 ac_status=$?
23171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172 (exit $ac_status); }; }; then
23173 ac_cv_lib_ICE_IceConnectionNumber=yes
23174else
23175 echo "$as_me: failed program was:" >&5
23176sed 's/^/| /' conftest.$ac_ext >&5
23177
23178ac_cv_lib_ICE_IceConnectionNumber=no
23179fi
789c5f4a 23180rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23181LIBS=$ac_check_lib_save_LIBS
23182fi
23183echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23184echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23185if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 23186 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 23187fi
10f2d63a 23188
e6cc62c6 23189 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
23190
23191fi
23192
8284b0c5 23193
90dd450c 23194 if test "$no_x" = "yes"; then
e6cc62c6
VS
23195 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23196echo "$as_me: error: X11 not found" >&2;}
23197 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
23198 fi
23199
23200 GUI_TK_LIBRARY="$X_LIBS"
23201 TOOLKIT_INCLUDE="$X_CFLAGS"
23202 AFMINSTALL=afminstall
23203 COMPILED_X_PROGRAM=0
23204
21d1c967 23205 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
23206 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
23207echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 23208 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
23209 echo "$as_me:$LINENO: result: not found" >&5
23210echo "${ECHO_T}not found" >&6
23211 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
23212echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
23213 { (exit 1); exit 1; }; }
90dd450c 23214 else
e6cc62c6
VS
23215 echo "$as_me:$LINENO: result: $MICROWIN" >&5
23216echo "${ECHO_T}$MICROWIN" >&6
23217 cat >>confdefs.h <<\_ACEOF
21d1c967 23218#define wxUSE_NANOX 1
e6cc62c6 23219_ACEOF
21d1c967 23220
90dd450c
VZ
23221 fi
23222 fi
23223
2b5f62a0 23224 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 23225
2b5f62a0 23226 succeeded=no
90dd450c 23227
2b5f62a0
VZ
23228 if test -z "$PKG_CONFIG"; then
23229 # Extract the first word of "pkg-config", so it can be a program name with args.
23230set dummy pkg-config; ac_word=$2
e6cc62c6
VS
23231echo "$as_me:$LINENO: checking for $ac_word" >&5
23232echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23233if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23234 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23235else
e6cc62c6
VS
23236 case $PKG_CONFIG in
23237 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
23238 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23239 ;;
2b5f62a0 23240 *)
e6cc62c6
VS
23241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23242for as_dir in $PATH
23243do
23244 IFS=$as_save_IFS
23245 test -z "$as_dir" && as_dir=.
23246 for ac_exec_ext in '' $ac_executable_extensions; do
23247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23248 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23250 break 2
23251 fi
23252done
23253done
23254
2b5f62a0
VZ
23255 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23256 ;;
23257esac
23258fi
e6cc62c6
VS
23259PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23260
2b5f62a0 23261if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
23262 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23263echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 23264else
e6cc62c6
VS
23265 echo "$as_me:$LINENO: result: no" >&5
23266echo "${ECHO_T}no" >&6
2b5f62a0
VZ
23267fi
23268
23269 fi
23270
23271 if test "$PKG_CONFIG" = "no" ; then
23272 echo "*** The pkg-config script could not be found. Make sure it is"
23273 echo "*** in your path, or set the PKG_CONFIG environment variable"
23274 echo "*** to the full path to pkg-config."
23275 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23276 else
23277 PKG_CONFIG_MIN_VERSION=0.9.0
23278 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
23279 echo "$as_me:$LINENO: checking for pangox" >&5
23280echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
23281
23282 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
23283 echo "$as_me:$LINENO: result: yes" >&5
23284echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
23285 succeeded=yes
23286
e6cc62c6
VS
23287 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
23288echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 23289 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
23290 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
23291echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 23292
e6cc62c6
VS
23293 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
23294echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 23295 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
23296 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
23297echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
23298 else
23299 PANGOX_CFLAGS=""
23300 PANGOX_LIBS=""
e6cc62c6 23301 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
23302 ## do set a variable so people can do so.
23303 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 23304
2b5f62a0
VZ
23305 fi
23306
e6cc62c6
VS
23307
23308
2b5f62a0
VZ
23309 else
23310 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23311 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23312 fi
23313 fi
23314
23315 if test $succeeded = yes; then
e6cc62c6 23316
2b5f62a0 23317 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 23318 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 23319
2b5f62a0 23320 else
e6cc62c6
VS
23321
23322 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
23323echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
23324 { (exit 1); exit 1; }; }
23325
23326
2b5f62a0
VZ
23327 fi
23328
e6cc62c6 23329
2b5f62a0
VZ
23330 succeeded=no
23331
23332 if test -z "$PKG_CONFIG"; then
23333 # Extract the first word of "pkg-config", so it can be a program name with args.
23334set dummy pkg-config; ac_word=$2
e6cc62c6
VS
23335echo "$as_me:$LINENO: checking for $ac_word" >&5
23336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23337if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23338 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 23339else
e6cc62c6
VS
23340 case $PKG_CONFIG in
23341 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
23342 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23343 ;;
2b5f62a0 23344 *)
e6cc62c6
VS
23345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23346for as_dir in $PATH
23347do
23348 IFS=$as_save_IFS
23349 test -z "$as_dir" && as_dir=.
23350 for ac_exec_ext in '' $ac_executable_extensions; do
23351 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23352 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23354 break 2
23355 fi
23356done
23357done
23358
2b5f62a0
VZ
23359 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23360 ;;
23361esac
23362fi
e6cc62c6
VS
23363PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23364
2b5f62a0 23365if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
23366 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23367echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 23368else
e6cc62c6
VS
23369 echo "$as_me:$LINENO: result: no" >&5
23370echo "${ECHO_T}no" >&6
2b5f62a0
VZ
23371fi
23372
23373 fi
23374
23375 if test "$PKG_CONFIG" = "no" ; then
23376 echo "*** The pkg-config script could not be found. Make sure it is"
23377 echo "*** in your path, or set the PKG_CONFIG environment variable"
23378 echo "*** to the full path to pkg-config."
23379 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23380 else
23381 PKG_CONFIG_MIN_VERSION=0.9.0
23382 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
23383 echo "$as_me:$LINENO: checking for pangoft2" >&5
23384echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
23385
23386 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
23387 echo "$as_me:$LINENO: result: yes" >&5
23388echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
23389 succeeded=yes
23390
e6cc62c6
VS
23391 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
23392echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 23393 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
23394 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
23395echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 23396
e6cc62c6
VS
23397 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
23398echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 23399 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
23400 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
23401echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
23402 else
23403 PANGOFT2_CFLAGS=""
23404 PANGOFT2_LIBS=""
e6cc62c6 23405 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
23406 ## do set a variable so people can do so.
23407 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 23408
2b5f62a0
VZ
23409 fi
23410
e6cc62c6
VS
23411
23412
2b5f62a0
VZ
23413 else
23414 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23415 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23416 fi
23417 fi
23418
23419 if test $succeeded = yes; then
e6cc62c6 23420
2b5f62a0 23421 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 23422 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 23423
2b5f62a0 23424 else
e6cc62c6
VS
23425
23426 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
23427echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 23428 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
23429
23430
2b5f62a0
VZ
23431 fi
23432
e6cc62c6 23433
2b5f62a0
VZ
23434 succeeded=no
23435
23436 if test -z "$PKG_CONFIG"; then
23437 # Extract the first word of "pkg-config", so it can be a program name with args.
23438set dummy pkg-config; ac_word=$2
e6cc62c6
VS
23439echo "$as_me:$LINENO: checking for $ac_word" >&5
23440echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23441if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23442 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 23443else
e6cc62c6
VS
23444 case $PKG_CONFIG in
23445 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
23446 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23447 ;;
2b5f62a0 23448 *)
e6cc62c6
VS
23449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23450for as_dir in $PATH
23451do
23452 IFS=$as_save_IFS
23453 test -z "$as_dir" && as_dir=.
23454 for ac_exec_ext in '' $ac_executable_extensions; do
23455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23456 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23458 break 2
23459 fi
23460done
23461done
23462
2b5f62a0
VZ
23463 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23464 ;;
23465esac
23466fi
e6cc62c6
VS
23467PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23468
2b5f62a0 23469if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
23470 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23471echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 23472else
e6cc62c6
VS
23473 echo "$as_me:$LINENO: result: no" >&5
23474echo "${ECHO_T}no" >&6
2b5f62a0
VZ
23475fi
23476
23477 fi
23478
23479 if test "$PKG_CONFIG" = "no" ; then
23480 echo "*** The pkg-config script could not be found. Make sure it is"
23481 echo "*** in your path, or set the PKG_CONFIG environment variable"
23482 echo "*** to the full path to pkg-config."
23483 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23484 else
23485 PKG_CONFIG_MIN_VERSION=0.9.0
23486 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
23487 echo "$as_me:$LINENO: checking for pangoxft" >&5
23488echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
23489
23490 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
23491 echo "$as_me:$LINENO: result: yes" >&5
23492echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
23493 succeeded=yes
23494
e6cc62c6
VS
23495 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
23496echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 23497 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
23498 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
23499echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 23500
e6cc62c6
VS
23501 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
23502echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 23503 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
23504 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
23505echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
23506 else
23507 PANGOXFT_CFLAGS=""
23508 PANGOXFT_LIBS=""
e6cc62c6 23509 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
23510 ## do set a variable so people can do so.
23511 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 23512
2b5f62a0
VZ
23513 fi
23514
e6cc62c6
VS
23515
23516
2b5f62a0
VZ
23517 else
23518 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23519 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23520 fi
23521 fi
23522
23523 if test $succeeded = yes; then
e6cc62c6 23524
2b5f62a0 23525 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 23526 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 23527
2b5f62a0 23528 else
e6cc62c6
VS
23529
23530 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
23531echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
23532
23533
2b5f62a0
VZ
23534 fi
23535
23536 fi
23537
23538 wxUSE_UNIVERSAL="yes"
23539
23540 if test "$wxUSE_NANOX" = "yes"; then
23541 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 23542 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
23543 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
23544 else
93a543aa 23545 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
2b5f62a0
VZ
23546 fi
23547
23548 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
23549 TOOLKIT=X11
23550 GUIDIST=X11_DIST
23551 fi
23552
21d1c967
GD
23553 if test "$wxUSE_MOTIF" = 1; then
23554 if test "$no_x" = yes; then
23555 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
23556
23557cat >>confdefs.h <<\_ACEOF
21d1c967 23558#define X_DISPLAY_MISSING 1
e6cc62c6 23559_ACEOF
21d1c967
GD
23560
23561 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23562else
23563 if test -n "$x_includes"; then
23564 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
23565 fi
23566
21d1c967
GD
23567 # It would also be nice to do this for all -L options, not just this one.
23568 if test -n "$x_libraries"; then
23569 X_LIBS="$X_LIBS -L$x_libraries"
23570 # For Solaris; some versions of Sun CC require a space after -R and
23571 # others require no space. Words are not sufficient . . . .
e6cc62c6 23572 case `(uname -sr) 2>/dev/null` in
21d1c967 23573 "SunOS 5"*)
e6cc62c6
VS
23574 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
23575echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
23576 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23577 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23578#line $LINENO "configure"
e6cc62c6
VS
23579/* confdefs.h. */
23580_ACEOF
23581cat confdefs.h >>conftest.$ac_ext
23582cat >>conftest.$ac_ext <<_ACEOF
23583/* end confdefs.h. */
23584
23585int
23586main ()
23587{
21d1c967 23588
e6cc62c6
VS
23589 ;
23590 return 0;
23591}
23592_ACEOF
23593rm -f conftest.$ac_objext conftest$ac_exeext
23594if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23595 (eval $ac_link) 2>&5
e6cc62c6
VS
23596 ac_status=$?
23597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23598 (exit $ac_status); } &&
789c5f4a 23599 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23601 (eval $ac_try) 2>&5
23602 ac_status=$?
23603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); }; }; then
21d1c967 23605 ac_R_nospace=yes
698dcdb6 23606else
e6cc62c6
VS
23607 echo "$as_me: failed program was:" >&5
23608sed 's/^/| /' conftest.$ac_ext >&5
23609
23610ac_R_nospace=no
10f2d63a 23611fi
789c5f4a 23612rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 23613 if test $ac_R_nospace = yes; then
e6cc62c6
VS
23614 echo "$as_me:$LINENO: result: no" >&5
23615echo "${ECHO_T}no" >&6
21d1c967
GD
23616 X_LIBS="$X_LIBS -R$x_libraries"
23617 else
23618 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 23619 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23620#line $LINENO "configure"
e6cc62c6
VS
23621/* confdefs.h. */
23622_ACEOF
23623cat confdefs.h >>conftest.$ac_ext
23624cat >>conftest.$ac_ext <<_ACEOF
23625/* end confdefs.h. */
23626
23627int
23628main ()
23629{
f0c87536 23630
e6cc62c6
VS
23631 ;
23632 return 0;
23633}
23634_ACEOF
23635rm -f conftest.$ac_objext conftest$ac_exeext
23636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23637 (eval $ac_link) 2>&5
e6cc62c6
VS
23638 ac_status=$?
23639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23640 (exit $ac_status); } &&
789c5f4a 23641 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23643 (eval $ac_try) 2>&5
23644 ac_status=$?
23645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23646 (exit $ac_status); }; }; then
21d1c967
GD
23647 ac_R_space=yes
23648else
e6cc62c6
VS
23649 echo "$as_me: failed program was:" >&5
23650sed 's/^/| /' conftest.$ac_ext >&5
23651
23652ac_R_space=no
21d1c967 23653fi
789c5f4a 23654rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21d1c967 23655 if test $ac_R_space = yes; then
e6cc62c6
VS
23656 echo "$as_me:$LINENO: result: yes" >&5
23657echo "${ECHO_T}yes" >&6
21d1c967
GD
23658 X_LIBS="$X_LIBS -R $x_libraries"
23659 else
e6cc62c6
VS
23660 echo "$as_me:$LINENO: result: neither works" >&5
23661echo "${ECHO_T}neither works" >&6
21d1c967
GD
23662 fi
23663 fi
e6cc62c6 23664 LIBS=$ac_xsave_LIBS
21d1c967
GD
23665 esac
23666 fi
90dd450c 23667
21d1c967
GD
23668 # Check for system-dependent libraries X programs must link with.
23669 # Do this before checking for the system-independent R6 libraries
23670 # (-lICE), since we may need -lsocket or whatever for X linking.
23671
23672 if test "$ISC" = yes; then
23673 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23674 else
e6cc62c6
VS
23675 # Martyn Johnson says this is needed for Ultrix, if the X
23676 # libraries were built with DECnet support. And Karl Berry says
21d1c967 23677 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
23678 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23679 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23680#line $LINENO "configure"
e6cc62c6
VS
23681/* confdefs.h. */
23682_ACEOF
23683cat confdefs.h >>conftest.$ac_ext
23684cat >>conftest.$ac_ext <<_ACEOF
23685/* end confdefs.h. */
23686
247f5006 23687/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23688#ifdef __cplusplus
23689extern "C"
23690#endif
247f5006 23691/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23692 builtin and then its argument prototype would still apply. */
23693char XOpenDisplay ();
23694int
23695main ()
23696{
23697XOpenDisplay ();
23698 ;
23699 return 0;
23700}
23701_ACEOF
23702rm -f conftest.$ac_objext conftest$ac_exeext
23703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23704 (eval $ac_link) 2>&5
e6cc62c6
VS
23705 ac_status=$?
23706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707 (exit $ac_status); } &&
789c5f4a 23708 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23710 (eval $ac_try) 2>&5
23711 ac_status=$?
23712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23713 (exit $ac_status); }; }; then
23714 :
23715else
23716 echo "$as_me: failed program was:" >&5
23717sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 23718
e6cc62c6
VS
23719echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23720echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
23721if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23722 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23723else
e6cc62c6
VS
23724 ac_check_lib_save_LIBS=$LIBS
23725LIBS="-ldnet $LIBS"
23726cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23727#line $LINENO "configure"
e6cc62c6
VS
23728/* confdefs.h. */
23729_ACEOF
23730cat confdefs.h >>conftest.$ac_ext
23731cat >>conftest.$ac_ext <<_ACEOF
23732/* end confdefs.h. */
a0b9e27f 23733
e6cc62c6
VS
23734/* Override any gcc2 internal prototype to avoid an error. */
23735#ifdef __cplusplus
23736extern "C"
23737#endif
23738/* We use char because int might match the return type of a gcc2
23739 builtin and then its argument prototype would still apply. */
23740char dnet_ntoa ();
23741int
23742main ()
23743{
23744dnet_ntoa ();
23745 ;
23746 return 0;
23747}
23748_ACEOF
23749rm -f conftest.$ac_objext conftest$ac_exeext
23750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23751 (eval $ac_link) 2>&5
e6cc62c6
VS
23752 ac_status=$?
23753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23754 (exit $ac_status); } &&
789c5f4a 23755 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23757 (eval $ac_try) 2>&5
23758 ac_status=$?
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); }; }; then
23761 ac_cv_lib_dnet_dnet_ntoa=yes
23762else
23763 echo "$as_me: failed program was:" >&5
23764sed 's/^/| /' conftest.$ac_ext >&5
23765
23766ac_cv_lib_dnet_dnet_ntoa=no
23767fi
789c5f4a 23768rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23769LIBS=$ac_check_lib_save_LIBS
23770fi
23771echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23772echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23773if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 23774 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 23775fi
0fb0dd83 23776
21d1c967 23777 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
23778 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23779echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23780if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23781 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23782else
e6cc62c6 23783 ac_check_lib_save_LIBS=$LIBS
21d1c967 23784LIBS="-ldnet_stub $LIBS"
e6cc62c6 23785cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23786#line $LINENO "configure"
e6cc62c6
VS
23787/* confdefs.h. */
23788_ACEOF
23789cat confdefs.h >>conftest.$ac_ext
23790cat >>conftest.$ac_ext <<_ACEOF
23791/* end confdefs.h. */
23792
21d1c967 23793/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23794#ifdef __cplusplus
23795extern "C"
23796#endif
21d1c967 23797/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23798 builtin and then its argument prototype would still apply. */
23799char dnet_ntoa ();
23800int
23801main ()
23802{
23803dnet_ntoa ();
23804 ;
23805 return 0;
23806}
23807_ACEOF
23808rm -f conftest.$ac_objext conftest$ac_exeext
23809if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23810 (eval $ac_link) 2>&5
e6cc62c6
VS
23811 ac_status=$?
23812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813 (exit $ac_status); } &&
789c5f4a 23814 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23816 (eval $ac_try) 2>&5
23817 ac_status=$?
23818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819 (exit $ac_status); }; }; then
23820 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23821else
23822 echo "$as_me: failed program was:" >&5
23823sed 's/^/| /' conftest.$ac_ext >&5
23824
23825ac_cv_lib_dnet_stub_dnet_ntoa=no
23826fi
789c5f4a 23827rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23828LIBS=$ac_check_lib_save_LIBS
23829fi
23830echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23831echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23832if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 23833 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
23834fi
23835
21d1c967 23836 fi
e6cc62c6 23837fi
789c5f4a 23838rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6 23839 LIBS="$ac_xsave_LIBS"
90dd450c 23840
21d1c967
GD
23841 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23842 # to get the SysV transport functions.
e6cc62c6 23843 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
23844 # needs -lnsl.
23845 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23846 # on Irix 5.2, according to T.E. Dickey.
23847 # The functions gethostbyname, getservbyname, and inet_addr are
23848 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23849 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23850echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23851if test "${ac_cv_func_gethostbyname+set}" = set; then
23852 echo $ECHO_N "(cached) $ECHO_C" >&6
23853else
23854 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23855#line $LINENO "configure"
e6cc62c6
VS
23856/* confdefs.h. */
23857_ACEOF
23858cat confdefs.h >>conftest.$ac_ext
23859cat >>conftest.$ac_ext <<_ACEOF
23860/* end confdefs.h. */
21d1c967 23861/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23862 which can conflict with char gethostbyname (); below.
23863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23864 <limits.h> exists even on freestanding compilers. */
23865#ifdef __STDC__
23866# include <limits.h>
23867#else
23868# include <assert.h>
23869#endif
21d1c967 23870/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23871#ifdef __cplusplus
23872extern "C"
23873{
23874#endif
21d1c967 23875/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23876 builtin and then its argument prototype would still apply. */
23877char gethostbyname ();
21d1c967
GD
23878/* The GNU C library defines this for functions which it implements
23879 to always fail with ENOSYS. Some functions are actually named
23880 something starting with __ and the normal name is an alias. */
23881#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23882choke me
23883#else
e6cc62c6
VS
23884char (*f) () = gethostbyname;
23885#endif
23886#ifdef __cplusplus
23887}
21d1c967 23888#endif
90dd450c 23889
e6cc62c6
VS
23890int
23891main ()
23892{
23893return f != gethostbyname;
23894 ;
23895 return 0;
23896}
23897_ACEOF
23898rm -f conftest.$ac_objext conftest$ac_exeext
23899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23900 (eval $ac_link) 2>&5
e6cc62c6
VS
23901 ac_status=$?
23902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23903 (exit $ac_status); } &&
789c5f4a 23904 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23906 (eval $ac_try) 2>&5
23907 ac_status=$?
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); }; }; then
23910 ac_cv_func_gethostbyname=yes
23911else
23912 echo "$as_me: failed program was:" >&5
23913sed 's/^/| /' conftest.$ac_ext >&5
23914
23915ac_cv_func_gethostbyname=no
23916fi
789c5f4a 23917rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23918fi
23919echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23920echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 23921
21d1c967 23922 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23923 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23924echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23925if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23926 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 23927else
e6cc62c6 23928 ac_check_lib_save_LIBS=$LIBS
21d1c967 23929LIBS="-lnsl $LIBS"
e6cc62c6 23930cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23931#line $LINENO "configure"
e6cc62c6
VS
23932/* confdefs.h. */
23933_ACEOF
23934cat confdefs.h >>conftest.$ac_ext
23935cat >>conftest.$ac_ext <<_ACEOF
23936/* end confdefs.h. */
23937
21d1c967 23938/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23939#ifdef __cplusplus
23940extern "C"
23941#endif
21d1c967 23942/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23943 builtin and then its argument prototype would still apply. */
23944char gethostbyname ();
23945int
23946main ()
23947{
23948gethostbyname ();
23949 ;
23950 return 0;
23951}
23952_ACEOF
23953rm -f conftest.$ac_objext conftest$ac_exeext
23954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 23955 (eval $ac_link) 2>&5
e6cc62c6
VS
23956 ac_status=$?
23957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23958 (exit $ac_status); } &&
789c5f4a 23959 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23961 (eval $ac_try) 2>&5
23962 ac_status=$?
23963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23964 (exit $ac_status); }; }; then
23965 ac_cv_lib_nsl_gethostbyname=yes
23966else
23967 echo "$as_me: failed program was:" >&5
23968sed 's/^/| /' conftest.$ac_ext >&5
23969
23970ac_cv_lib_nsl_gethostbyname=no
23971fi
789c5f4a 23972rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23973LIBS=$ac_check_lib_save_LIBS
23974fi
23975echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23976echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23977if test $ac_cv_lib_nsl_gethostbyname = yes; then
23978 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23979fi
247f5006 23980
e6cc62c6 23981 if test $ac_cv_lib_nsl_gethostbyname = no; then
789c5f4a 23982 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
23983echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23984if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23985 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23986else
e6cc62c6
VS
23987 ac_check_lib_save_LIBS=$LIBS
23988LIBS="-lbsd $LIBS"
23989cat >conftest.$ac_ext <<_ACEOF
789c5f4a 23990#line $LINENO "configure"
e6cc62c6
VS
23991/* confdefs.h. */
23992_ACEOF
23993cat confdefs.h >>conftest.$ac_ext
23994cat >>conftest.$ac_ext <<_ACEOF
23995/* end confdefs.h. */
23996
23997/* Override any gcc2 internal prototype to avoid an error. */
23998#ifdef __cplusplus
23999extern "C"
24000#endif
24001/* We use char because int might match the return type of a gcc2
24002 builtin and then its argument prototype would still apply. */
24003char gethostbyname ();
24004int
24005main ()
24006{
24007gethostbyname ();
24008 ;
24009 return 0;
24010}
24011_ACEOF
24012rm -f conftest.$ac_objext conftest$ac_exeext
24013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 24014 (eval $ac_link) 2>&5
e6cc62c6
VS
24015 ac_status=$?
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); } &&
789c5f4a 24018 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24020 (eval $ac_try) 2>&5
24021 ac_status=$?
24022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023 (exit $ac_status); }; }; then
24024 ac_cv_lib_bsd_gethostbyname=yes
24025else
24026 echo "$as_me: failed program was:" >&5
24027sed 's/^/| /' conftest.$ac_ext >&5
24028
24029ac_cv_lib_bsd_gethostbyname=no
24030fi
789c5f4a 24031rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24032LIBS=$ac_check_lib_save_LIBS
24033fi
24034echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24035echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24036if test $ac_cv_lib_bsd_gethostbyname = yes; then
24037 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 24038fi
90dd450c 24039
e6cc62c6 24040 fi
90dd450c
VZ
24041 fi
24042
21d1c967
GD
24043 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24044 # socket/setsockopt and other routines are undefined under SCO ODT
24045 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
24046 # on later versions), says Simon Leinen: it contains gethostby*
24047 # variants that don't use the name server (or something). -lsocket
24048 # must be given before -lnsl if both are needed. We assume that
24049 # if connect needs -lnsl, so does gethostbyname.
24050 echo "$as_me:$LINENO: checking for connect" >&5
24051echo $ECHO_N "checking for connect... $ECHO_C" >&6
24052if test "${ac_cv_func_connect+set}" = set; then
24053 echo $ECHO_N "(cached) $ECHO_C" >&6
24054else
24055 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24056#line $LINENO "configure"
e6cc62c6
VS
24057/* confdefs.h. */
24058_ACEOF
24059cat confdefs.h >>conftest.$ac_ext
24060cat >>conftest.$ac_ext <<_ACEOF
24061/* end confdefs.h. */
21d1c967 24062/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24063 which can conflict with char connect (); below.
24064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24065 <limits.h> exists even on freestanding compilers. */
24066#ifdef __STDC__
24067# include <limits.h>
24068#else
24069# include <assert.h>
24070#endif
21d1c967 24071/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24072#ifdef __cplusplus
24073extern "C"
24074{
24075#endif
21d1c967 24076/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24077 builtin and then its argument prototype would still apply. */
24078char connect ();
21d1c967
GD
24079/* The GNU C library defines this for functions which it implements
24080 to always fail with ENOSYS. Some functions are actually named
24081 something starting with __ and the normal name is an alias. */
24082#if defined (__stub_connect) || defined (__stub___connect)
24083choke me
24084#else
e6cc62c6
VS
24085char (*f) () = connect;
24086#endif
24087#ifdef __cplusplus
24088}
21d1c967 24089#endif
90dd450c 24090
e6cc62c6
VS
24091int
24092main ()
24093{
24094return f != connect;
24095 ;
24096 return 0;
24097}
24098_ACEOF
24099rm -f conftest.$ac_objext conftest$ac_exeext
24100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 24101 (eval $ac_link) 2>&5
e6cc62c6
VS
24102 ac_status=$?
24103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24104 (exit $ac_status); } &&
789c5f4a 24105 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24107 (eval $ac_try) 2>&5
24108 ac_status=$?
24109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110 (exit $ac_status); }; }; then
24111 ac_cv_func_connect=yes
24112else
24113 echo "$as_me: failed program was:" >&5
24114sed 's/^/| /' conftest.$ac_ext >&5
24115
24116ac_cv_func_connect=no
24117fi
789c5f4a 24118rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24119fi
24120echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24121echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 24122
21d1c967 24123 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
24124 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24125echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24126if test "${ac_cv_lib_socket_connect+set}" = set; then
24127 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 24128else
e6cc62c6 24129 ac_check_lib_save_LIBS=$LIBS
21d1c967 24130LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 24131cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24132#line $LINENO "configure"
e6cc62c6
VS
24133/* confdefs.h. */
24134_ACEOF
24135cat confdefs.h >>conftest.$ac_ext
24136cat >>conftest.$ac_ext <<_ACEOF
24137/* end confdefs.h. */
24138
21d1c967 24139/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24140#ifdef __cplusplus
24141extern "C"
24142#endif
21d1c967 24143/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24144 builtin and then its argument prototype would still apply. */
24145char connect ();
24146int
24147main ()
24148{
24149connect ();
24150 ;
24151 return 0;
24152}
24153_ACEOF
24154rm -f conftest.$ac_objext conftest$ac_exeext
24155if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 24156 (eval $ac_link) 2>&5
e6cc62c6
VS
24157 ac_status=$?
24158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24159 (exit $ac_status); } &&
789c5f4a 24160 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24162 (eval $ac_try) 2>&5
24163 ac_status=$?
24164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24165 (exit $ac_status); }; }; then
24166 ac_cv_lib_socket_connect=yes
24167else
24168 echo "$as_me: failed program was:" >&5
24169sed 's/^/| /' conftest.$ac_ext >&5
24170
24171ac_cv_lib_socket_connect=no
24172fi
789c5f4a 24173rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24174LIBS=$ac_check_lib_save_LIBS
24175fi
24176echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24177echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24178if test $ac_cv_lib_socket_connect = yes; then
21d1c967 24179 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 24180fi
90dd450c 24181
21d1c967 24182 fi
90dd450c 24183
e6cc62c6
VS
24184 # Guillermo Gomez says -lposix is necessary on A/UX.
24185 echo "$as_me:$LINENO: checking for remove" >&5
24186echo $ECHO_N "checking for remove... $ECHO_C" >&6
24187if test "${ac_cv_func_remove+set}" = set; then
24188 echo $ECHO_N "(cached) $ECHO_C" >&6
24189else
24190 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24191#line $LINENO "configure"
e6cc62c6
VS
24192/* confdefs.h. */
24193_ACEOF
24194cat confdefs.h >>conftest.$ac_ext
24195cat >>conftest.$ac_ext <<_ACEOF
24196/* end confdefs.h. */
21d1c967 24197/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24198 which can conflict with char remove (); below.
24199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24200 <limits.h> exists even on freestanding compilers. */
24201#ifdef __STDC__
24202# include <limits.h>
24203#else
24204# include <assert.h>
24205#endif
21d1c967 24206/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24207#ifdef __cplusplus
24208extern "C"
24209{
24210#endif
21d1c967 24211/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24212 builtin and then its argument prototype would still apply. */
24213char remove ();
21d1c967
GD
24214/* The GNU C library defines this for functions which it implements
24215 to always fail with ENOSYS. Some functions are actually named
24216 something starting with __ and the normal name is an alias. */
24217#if defined (__stub_remove) || defined (__stub___remove)
24218choke me
24219#else
e6cc62c6
VS
24220char (*f) () = remove;
24221#endif
24222#ifdef __cplusplus
24223}
21d1c967 24224#endif
90dd450c 24225
e6cc62c6
VS
24226int
24227main ()
24228{
24229return f != remove;
24230 ;
24231 return 0;
24232}
24233_ACEOF
24234rm -f conftest.$ac_objext conftest$ac_exeext
24235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 24236 (eval $ac_link) 2>&5
e6cc62c6
VS
24237 ac_status=$?
24238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24239 (exit $ac_status); } &&
789c5f4a 24240 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24242 (eval $ac_try) 2>&5
24243 ac_status=$?
24244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24245 (exit $ac_status); }; }; then
24246 ac_cv_func_remove=yes
24247else
24248 echo "$as_me: failed program was:" >&5
24249sed 's/^/| /' conftest.$ac_ext >&5
24250
24251ac_cv_func_remove=no
24252fi
789c5f4a 24253rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24254fi
24255echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24256echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 24257
21d1c967 24258 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
24259 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24260echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
24261if test "${ac_cv_lib_posix_remove+set}" = set; then
24262 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 24263else
e6cc62c6 24264 ac_check_lib_save_LIBS=$LIBS
21d1c967 24265LIBS="-lposix $LIBS"
e6cc62c6 24266cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24267#line $LINENO "configure"
e6cc62c6
VS
24268/* confdefs.h. */
24269_ACEOF
24270cat confdefs.h >>conftest.$ac_ext
24271cat >>conftest.$ac_ext <<_ACEOF
24272/* end confdefs.h. */
24273
21d1c967 24274/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24275#ifdef __cplusplus
24276extern "C"
24277#endif
21d1c967 24278/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24279 builtin and then its argument prototype would still apply. */
24280char remove ();
24281int
24282main ()
24283{
24284remove ();
24285 ;
24286 return 0;
24287}
24288_ACEOF
24289rm -f conftest.$ac_objext conftest$ac_exeext
24290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 24291 (eval $ac_link) 2>&5
e6cc62c6
VS
24292 ac_status=$?
24293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24294 (exit $ac_status); } &&
789c5f4a 24295 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24297 (eval $ac_try) 2>&5
24298 ac_status=$?
24299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24300 (exit $ac_status); }; }; then
24301 ac_cv_lib_posix_remove=yes
24302else
24303 echo "$as_me: failed program was:" >&5
24304sed 's/^/| /' conftest.$ac_ext >&5
24305
24306ac_cv_lib_posix_remove=no
24307fi
789c5f4a 24308rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24309LIBS=$ac_check_lib_save_LIBS
24310fi
24311echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24312echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
24313if test $ac_cv_lib_posix_remove = yes; then
21d1c967 24314 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 24315fi
19bc6aad 24316
90dd450c 24317 fi
19bc6aad 24318
21d1c967 24319 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
24320 echo "$as_me:$LINENO: checking for shmat" >&5
24321echo $ECHO_N "checking for shmat... $ECHO_C" >&6
24322if test "${ac_cv_func_shmat+set}" = set; then
24323 echo $ECHO_N "(cached) $ECHO_C" >&6
24324else
24325 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24326#line $LINENO "configure"
e6cc62c6
VS
24327/* confdefs.h. */
24328_ACEOF
24329cat confdefs.h >>conftest.$ac_ext
24330cat >>conftest.$ac_ext <<_ACEOF
24331/* end confdefs.h. */
21d1c967 24332/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24333 which can conflict with char shmat (); below.
24334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24335 <limits.h> exists even on freestanding compilers. */
24336#ifdef __STDC__
24337# include <limits.h>
24338#else
24339# include <assert.h>
24340#endif
21d1c967 24341/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24342#ifdef __cplusplus
24343extern "C"
24344{
24345#endif
21d1c967 24346/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24347 builtin and then its argument prototype would still apply. */
24348char shmat ();
21d1c967
GD
24349/* The GNU C library defines this for functions which it implements
24350 to always fail with ENOSYS. Some functions are actually named
24351 something starting with __ and the normal name is an alias. */
24352#if defined (__stub_shmat) || defined (__stub___shmat)
24353choke me
24354#else
e6cc62c6
VS
24355char (*f) () = shmat;
24356#endif
24357#ifdef __cplusplus
24358}
21d1c967 24359#endif
90dd450c 24360
e6cc62c6
VS
24361int
24362main ()
24363{
24364return f != shmat;
24365 ;
24366 return 0;
24367}
24368_ACEOF
24369rm -f conftest.$ac_objext conftest$ac_exeext
24370if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 24371 (eval $ac_link) 2>&5
e6cc62c6
VS
24372 ac_status=$?
24373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374 (exit $ac_status); } &&
789c5f4a 24375 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24377 (eval $ac_try) 2>&5
24378 ac_status=$?
24379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24380 (exit $ac_status); }; }; then
24381 ac_cv_func_shmat=yes
24382else
24383 echo "$as_me: failed program was:" >&5
24384sed 's/^/| /' conftest.$ac_ext >&5
24385
24386ac_cv_func_shmat=no
24387fi
789c5f4a 24388rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24389fi
24390echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24391echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 24392
21d1c967 24393 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
24394 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24395echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
24396if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24397 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 24398else
e6cc62c6 24399 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 24400LIBS="-lipc $LIBS"
e6cc62c6 24401cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24402#line $LINENO "configure"
e6cc62c6
VS
24403/* confdefs.h. */
24404_ACEOF
24405cat confdefs.h >>conftest.$ac_ext
24406cat >>conftest.$ac_ext <<_ACEOF
24407/* end confdefs.h. */
24408
5c6fa7d2 24409/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24410#ifdef __cplusplus
24411extern "C"
24412#endif
5c6fa7d2 24413/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24414 builtin and then its argument prototype would still apply. */
24415char shmat ();
24416int
24417main ()
24418{
24419shmat ();
24420 ;
24421 return 0;
24422}
24423_ACEOF
24424rm -f conftest.$ac_objext conftest$ac_exeext
24425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 24426 (eval $ac_link) 2>&5
e6cc62c6
VS
24427 ac_status=$?
24428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429 (exit $ac_status); } &&
789c5f4a 24430 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24432 (eval $ac_try) 2>&5
24433 ac_status=$?
24434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24435 (exit $ac_status); }; }; then
24436 ac_cv_lib_ipc_shmat=yes
24437else
24438 echo "$as_me: failed program was:" >&5
24439sed 's/^/| /' conftest.$ac_ext >&5
24440
24441ac_cv_lib_ipc_shmat=no
24442fi
789c5f4a 24443rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24444LIBS=$ac_check_lib_save_LIBS
24445fi
24446echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24447echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
24448if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 24449 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 24450fi
90dd450c 24451
90dd450c 24452 fi
21d1c967 24453 fi
10f2d63a 24454
21d1c967 24455 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 24456 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
24457 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24458 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24459 # check for ICE first), but we must link in the order -lSM -lICE or
24460 # we get undefined symbols. So assume we have SM if we have ICE.
24461 # These have to be linked with before -lX11, unlike the other
24462 # libraries we check for below, so use a different variable.
e6cc62c6
VS
24463 # John Interrante, Karl Berry
24464 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
24465echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
24466if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
24467 echo $ECHO_N "(cached) $ECHO_C" >&6
24468else
24469 ac_check_lib_save_LIBS=$LIBS
f09359cf 24470LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 24471cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24472#line $LINENO "configure"
e6cc62c6
VS
24473/* confdefs.h. */
24474_ACEOF
24475cat confdefs.h >>conftest.$ac_ext
24476cat >>conftest.$ac_ext <<_ACEOF
24477/* end confdefs.h. */
24478
21d1c967 24479/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24480#ifdef __cplusplus
24481extern "C"
24482#endif
21d1c967 24483/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24484 builtin and then its argument prototype would still apply. */
24485char IceConnectionNumber ();
24486int
24487main ()
24488{
24489IceConnectionNumber ();
24490 ;
24491 return 0;
24492}
24493_ACEOF
24494rm -f conftest.$ac_objext conftest$ac_exeext
24495if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 24496 (eval $ac_link) 2>&5
e6cc62c6
VS
24497 ac_status=$?
24498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24499 (exit $ac_status); } &&
789c5f4a 24500 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24502 (eval $ac_try) 2>&5
24503 ac_status=$?
24504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24505 (exit $ac_status); }; }; then
24506 ac_cv_lib_ICE_IceConnectionNumber=yes
24507else
24508 echo "$as_me: failed program was:" >&5
24509sed 's/^/| /' conftest.$ac_ext >&5
24510
24511ac_cv_lib_ICE_IceConnectionNumber=no
24512fi
789c5f4a 24513rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24514LIBS=$ac_check_lib_save_LIBS
24515fi
24516echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24517echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
24518if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 24519 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 24520fi
21d1c967 24521
e6cc62c6 24522 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 24523
10f2d63a
VZ
24524fi
24525
8284b0c5 24526
21d1c967 24527 if test "$no_x" = "yes"; then
e6cc62c6
VS
24528 { { echo "$as_me:$LINENO: error: X11 not found" >&5
24529echo "$as_me: error: X11 not found" >&2;}
24530 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
24531 fi
24532
2b5f62a0
VZ
24533 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
24534 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
24535 AFMINSTALL=afminstall
24536 COMPILED_X_PROGRAM=0
24537
e6cc62c6
VS
24538 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
24539echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
24540
21d1c967 24541ac_find_includes=
2b5f62a0 24542for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
24543 do
24544 if test -f "$ac_dir/Xm/Xm.h"; then
24545 ac_find_includes=$ac_dir
24546 break
24547 fi
24548 done
24549
24550 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
24551 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
24552echo "${ECHO_T}found in $ac_find_includes" >&6
24553
2b5f62a0 24554 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
24555 ac_path_to_include=""
24556 else
2b5f62a0
VZ
24557 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
24558 result=$?
24559 if test $result = 0; then
24560 ac_path_to_include=""
24561 else
24562 ac_path_to_include=" -I$ac_find_includes"
24563 fi
dd0e4a90
VZ
24564 fi
24565
24566 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 24567 else
e6cc62c6 24568 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24569#line $LINENO "configure"
e6cc62c6
VS
24570/* confdefs.h. */
24571_ACEOF
24572cat confdefs.h >>conftest.$ac_ext
24573cat >>conftest.$ac_ext <<_ACEOF
24574/* end confdefs.h. */
21d1c967
GD
24575
24576 #include <Xm/Xm.h>
e6cc62c6
VS
24577
24578int
24579main ()
24580{
21d1c967
GD
24581
24582 int version;
24583 version = xmUseVersion;
e6cc62c6
VS
24584
24585 ;
24586 return 0;
24587}
24588_ACEOF
24589rm -f conftest.$ac_objext
24590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 24591 (eval $ac_compile) 2>&5
e6cc62c6
VS
24592 ac_status=$?
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); } &&
789c5f4a 24595 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
24596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24597 (eval $ac_try) 2>&5
24598 ac_status=$?
24599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600 (exit $ac_status); }; }; then
24601
24602 echo "$as_me:$LINENO: result: found in default search path" >&5
24603echo "${ECHO_T}found in default search path" >&6
21d1c967 24604 COMPILED_X_PROGRAM=1
e6cc62c6 24605
10f2d63a 24606else
e6cc62c6
VS
24607 echo "$as_me: failed program was:" >&5
24608sed 's/^/| /' conftest.$ac_ext >&5
24609
24610
24611 echo "$as_me:$LINENO: result: no" >&5
24612echo "${ECHO_T}no" >&6
24613 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
24614echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
24615 { (exit 1); exit 1; }; }
24616
24617
10f2d63a 24618fi
789c5f4a 24619rm -f conftest.$ac_objext conftest.$ac_ext
21d1c967 24620 fi
10f2d63a 24621
21d1c967 24622 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
24623 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
24624echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
24625
21d1c967 24626ac_find_libraries=
2b5f62a0 24627for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
24628 do
24629 for ac_extension in a so sl dylib; do
24630 if test -f "$ac_dir/libXm.$ac_extension"; then
24631 ac_find_libraries=$ac_dir
24632 break 2
24633 fi
24634 done
24635 done
24636
24637 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
24638 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24639echo "${ECHO_T}found at $ac_find_libraries" >&6
24640
21d1c967 24641
21d1c967
GD
24642 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24643 result=$?
24644 if test $result = 0; then
24645 ac_path_to_link=""
24646 else
24647 ac_path_to_link=" -L$ac_find_libraries"
24648 fi
24649
21d1c967 24650 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 24651 else
dd0e4a90
VZ
24652 save_CFLAGS=$CFLAGS
24653 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24654
e6cc62c6 24655 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24656#line $LINENO "configure"
e6cc62c6
VS
24657/* confdefs.h. */
24658_ACEOF
24659cat confdefs.h >>conftest.$ac_ext
24660cat >>conftest.$ac_ext <<_ACEOF
24661/* end confdefs.h. */
21d1c967
GD
24662
24663 #include <Xm/Xm.h>
e6cc62c6
VS
24664
24665int
24666main ()
24667{
21d1c967
GD
24668
24669 int version;
24670 version = xmUseVersion;
e6cc62c6
VS
24671
24672 ;
24673 return 0;
24674}
24675_ACEOF
24676rm -f conftest.$ac_objext
24677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 24678 (eval $ac_compile) 2>&5
e6cc62c6
VS
24679 ac_status=$?
24680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681 (exit $ac_status); } &&
789c5f4a 24682 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
24683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24684 (eval $ac_try) 2>&5
24685 ac_status=$?
24686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24687 (exit $ac_status); }; }; then
24688
24689 echo "$as_me:$LINENO: result: found in default search path" >&5
24690echo "${ECHO_T}found in default search path" >&6
21d1c967 24691 COMPILED_X_PROGRAM=1
e6cc62c6 24692
d836ee96 24693else
e6cc62c6
VS
24694 echo "$as_me: failed program was:" >&5
24695sed 's/^/| /' conftest.$ac_ext >&5
24696
24697
24698 echo "$as_me:$LINENO: result: no" >&5
24699echo "${ECHO_T}no" >&6
24700 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
24701echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
24702 { (exit 1); exit 1; }; }
24703
24704
d836ee96 24705fi
789c5f4a 24706rm -f conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
24707
24708 CFLAGS=$save_CFLAGS
21d1c967
GD
24709 fi
24710 fi
24711
e6cc62c6
VS
24712 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
24713echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
24714 libp_link=""
24715 libsm_ice_link=""
24716 libs_found=0
24717 for libp in "" " -lXp"; do
24718 if test "$libs_found" = "0"; then
7015ef3a 24719 for libsm_ice in "" " -lSM -lICE"; do
e26c13cf 24720 if test "$libs_found" = "0"; then
6a30f1c8 24721 save_LIBS="$LIBS"
93a543aa 24722 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
24723 save_CFLAGS=$CFLAGS
24724 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24725
e6cc62c6 24726 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24727#line $LINENO "configure"
e6cc62c6
VS
24728/* confdefs.h. */
24729_ACEOF
24730cat confdefs.h >>conftest.$ac_ext
24731cat >>conftest.$ac_ext <<_ACEOF
24732/* end confdefs.h. */
17234b26 24733
6a30f1c8
MB
24734 #include <Xm/Xm.h>
24735 #include <Xm/List.h>
e6cc62c6
VS
24736
24737int
24738main ()
24739{
6a30f1c8
MB
24740
24741 XmString string = NULL;
24742 Widget w = NULL;
24743 int position = 0;
24744 XmListAddItem(w, string, position);
e6cc62c6
VS
24745
24746 ;
24747 return 0;
24748}
24749_ACEOF
24750rm -f conftest.$ac_objext conftest$ac_exeext
24751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 24752 (eval $ac_link) 2>&5
e6cc62c6
VS
24753 ac_status=$?
24754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755 (exit $ac_status); } &&
789c5f4a 24756 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24758 (eval $ac_try) 2>&5
24759 ac_status=$?
24760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761 (exit $ac_status); }; }; then
24762
6a30f1c8
MB
24763 libp_link="$libp"
24764 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
24765 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
24766echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 24767 libs_found=1
e6cc62c6 24768
6a30f1c8 24769else
e6cc62c6
VS
24770 echo "$as_me: failed program was:" >&5
24771sed 's/^/| /' conftest.$ac_ext >&5
24772
24773
24774
6a30f1c8 24775fi
789c5f4a 24776rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
dd0e4a90 24777
6a30f1c8 24778 LIBS="$save_LIBS"
dd0e4a90 24779 CFLAGS=$save_CFLAGS
6a30f1c8
MB
24780 fi
24781 done
24782 fi
24783 done
24784
24785 if test "$libs_found" = "0"; then
e6cc62c6
VS
24786 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
24787echo "${ECHO_T}can't find the right libraries" >&6
24788 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
24789echo "$as_me: error: can't link a simple motif program" >&2;}
24790 { (exit 1); exit 1; }; }
6a30f1c8
MB
24791 fi
24792
da494b40
MB
24793 save_CFLAGS=$CFLAGS
24794 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
24795 echo "$as_me:$LINENO: checking for Motif 2" >&5
24796echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
24797 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24798#line $LINENO "configure"
e6cc62c6
VS
24799/* confdefs.h. */
24800_ACEOF
24801cat confdefs.h >>conftest.$ac_ext
24802cat >>conftest.$ac_ext <<_ACEOF
24803/* end confdefs.h. */
da494b40
MB
24804
24805 #include <Xm/Xm.h>
e6cc62c6
VS
24806
24807int
24808main ()
24809{
da494b40
MB
24810
24811 #if XmVersion < 2000
24812 #error "Not Motif 2"
24813 #endif
e6cc62c6
VS
24814
24815 ;
24816 return 0;
24817}
24818_ACEOF
24819rm -f conftest.$ac_objext
24820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 24821 (eval $ac_compile) 2>&5
e6cc62c6
VS
24822 ac_status=$?
24823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824 (exit $ac_status); } &&
789c5f4a 24825 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
24826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24827 (eval $ac_try) 2>&5
24828 ac_status=$?
24829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830 (exit $ac_status); }; }; then
24831
24832 cat >>confdefs.h <<\_ACEOF
da494b40 24833#define __WXMOTIF20__ 1
e6cc62c6
VS
24834_ACEOF
24835
24836 echo "$as_me:$LINENO: result: found" >&5
24837echo "${ECHO_T}found" >&6
da494b40 24838
da494b40 24839else
e6cc62c6
VS
24840 echo "$as_me: failed program was:" >&5
24841sed 's/^/| /' conftest.$ac_ext >&5
24842
24843
24844 cat >>confdefs.h <<\_ACEOF
da494b40 24845#define __WXMOTIF20__ 0
e6cc62c6
VS
24846_ACEOF
24847
24848 echo "$as_me:$LINENO: result: not found" >&5
24849echo "${ECHO_T}not found" >&6
da494b40 24850
da494b40 24851fi
789c5f4a 24852rm -f conftest.$ac_objext conftest.$ac_ext
da494b40
MB
24853 CFLAGS=$save_CFLAGS
24854
93a543aa 24855 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 24856 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
24857 TOOLKIT=MOTIF
24858 GUIDIST=MOTIF_DIST
f7f78039
MB
24859 fi
24860
89fe663f
VZ
24861 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
24862 if test "$wxUSE_LIBXPM" = "sys"; then
24863 echo "$as_me:$LINENO: checking for Xpm library" >&5
24864echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
24865
24866ac_find_libraries=
24867for ac_dir in $SEARCH_LIB /usr/lib;
24868 do
24869 for ac_extension in a so sl dylib; do
24870 if test -f "$ac_dir/libXpm.$ac_extension"; then
24871 ac_find_libraries=$ac_dir
24872 break 2
24873 fi
24874 done
24875 done
24876
24877 if test "$ac_find_libraries" != "" ; then
24878
24879 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
24880 result=$?
24881 if test $result = 0; then
24882 ac_path_to_link=""
24883 else
24884 ac_path_to_link=" -L$ac_find_libraries"
24885 fi
24886
24887 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
24888 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
24889echo "${ECHO_T}found at $ac_find_libraries" >&6
24890
24891 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
24892echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
24893if test "${wx_cv_x11_xpm_h+set}" = set; then
24894 echo $ECHO_N "(cached) $ECHO_C" >&6
24895else
24896
24897 save_CFLAGS=$CFLAGS
24898 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
24899
24900 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24901#line $LINENO "configure"
89fe663f
VZ
24902/* confdefs.h. */
24903_ACEOF
24904cat confdefs.h >>conftest.$ac_ext
24905cat >>conftest.$ac_ext <<_ACEOF
24906/* end confdefs.h. */
24907
24908 #include <X11/xpm.h>
24909
24910int
24911main ()
24912{
24913
24914 int version;
24915 version = XpmLibraryVersion();
24916
24917 ;
24918 return 0;
24919}
24920_ACEOF
24921rm -f conftest.$ac_objext
24922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 24923 (eval $ac_compile) 2>&5
89fe663f
VZ
24924 ac_status=$?
24925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); } &&
789c5f4a 24927 { ac_try='test -s conftest.$ac_objext'
89fe663f
VZ
24928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24929 (eval $ac_try) 2>&5
24930 ac_status=$?
24931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24932 (exit $ac_status); }; }; then
24933 wx_cv_x11_xpm_h=yes
24934else
24935 echo "$as_me: failed program was:" >&5
24936sed 's/^/| /' conftest.$ac_ext >&5
24937
24938wx_cv_x11_xpm_h=no
24939
24940fi
789c5f4a 24941rm -f conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
24942
24943 CFLAGS=$save_CFLAGS
24944
24945
24946fi
24947echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
24948echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
24949
24950 if test $wx_cv_x11_xpm_h = "yes"; then
93a543aa 24951 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
89fe663f
VZ
24952 cat >>confdefs.h <<\_ACEOF
24953#define wxHAVE_LIB_XPM 1
24954_ACEOF
24955
24956 else
24957 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
24958echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
24959 fi
24960 fi
24961
24962 fi
f7f78039 24963
89fe663f
VZ
24964 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
24965echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
24966if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
24967 echo $ECHO_N "(cached) $ECHO_C" >&6
24968else
24969 ac_check_lib_save_LIBS=$LIBS
24970LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
24971cat >conftest.$ac_ext <<_ACEOF
789c5f4a 24972#line $LINENO "configure"
89fe663f
VZ
24973/* confdefs.h. */
24974_ACEOF
24975cat confdefs.h >>conftest.$ac_ext
24976cat >>conftest.$ac_ext <<_ACEOF
24977/* end confdefs.h. */
24978
24979/* Override any gcc2 internal prototype to avoid an error. */
24980#ifdef __cplusplus
24981extern "C"
24982#endif
24983/* We use char because int might match the return type of a gcc2
24984 builtin and then its argument prototype would still apply. */
24985char XShapeQueryExtension ();
24986int
24987main ()
24988{
24989XShapeQueryExtension ();
24990 ;
24991 return 0;
24992}
24993_ACEOF
24994rm -f conftest.$ac_objext conftest$ac_exeext
24995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 24996 (eval $ac_link) 2>&5
89fe663f
VZ
24997 ac_status=$?
24998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999 (exit $ac_status); } &&
789c5f4a 25000 { ac_try='test -s conftest$ac_exeext'
89fe663f
VZ
25001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25002 (eval $ac_try) 2>&5
25003 ac_status=$?
25004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); }; }; then
25006 ac_cv_lib_Xext_XShapeQueryExtension=yes
25007else
25008 echo "$as_me: failed program was:" >&5
25009sed 's/^/| /' conftest.$ac_ext >&5
25010
25011ac_cv_lib_Xext_XShapeQueryExtension=no
25012fi
789c5f4a 25013rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
89fe663f
VZ
25014LIBS=$ac_check_lib_save_LIBS
25015fi
25016echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
25017echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
25018if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
25019
25020 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
25021 wxHAVE_XEXT_LIB=1
25022
25023fi
25024
25025
25026 if test "$wxHAVE_XEXT_LIB" = 1; then
25027 save_CFLAGS="$CFLAGS"
25028 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25029
25030 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
e6cc62c6 25031echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
89fe663f 25032 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25033#line $LINENO "configure"
e6cc62c6
VS
25034/* confdefs.h. */
25035_ACEOF
25036cat confdefs.h >>conftest.$ac_ext
25037cat >>conftest.$ac_ext <<_ACEOF
25038/* end confdefs.h. */
25039
89fe663f
VZ
25040 #include <X11/Xlib.h>
25041 #include <X11/extensions/shape.h>
e6cc62c6
VS
25042
25043int
25044main ()
25045{
f7f78039 25046
89fe663f
VZ
25047 int dummy1, dummy2;
25048 XShapeQueryExtension((Display*)NULL,
25049 (int*)NULL, (int*)NULL);
e6cc62c6
VS
25050
25051 ;
25052 return 0;
25053}
25054_ACEOF
25055rm -f conftest.$ac_objext
25056if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 25057 (eval $ac_compile) 2>&5
e6cc62c6
VS
25058 ac_status=$?
25059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25060 (exit $ac_status); } &&
789c5f4a 25061 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25063 (eval $ac_try) 2>&5
25064 ac_status=$?
25065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25066 (exit $ac_status); }; }; then
25067
89fe663f 25068 cat >>confdefs.h <<\_ACEOF
f7f78039 25069#define HAVE_XSHAPE 1
e6cc62c6
VS
25070_ACEOF
25071
89fe663f 25072 echo "$as_me:$LINENO: result: found" >&5
e6cc62c6 25073echo "${ECHO_T}found" >&6
f7f78039 25074
f7f78039 25075else
e6cc62c6
VS
25076 echo "$as_me: failed program was:" >&5
25077sed 's/^/| /' conftest.$ac_ext >&5
25078
25079
89fe663f 25080 echo "$as_me:$LINENO: result: not found" >&5
e6cc62c6
VS
25081echo "${ECHO_T}not found" >&6
25082
f7f78039 25083fi
789c5f4a 25084rm -f conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
25085 CFLAGS="$save_CFLAGS"
25086
25087 fi
21d1c967
GD
25088 fi
25089
25090 if test "$wxUSE_MAC" = 1; then
8e91c6f3
VZ
25091 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
25092echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
25093 if test "$GCC" = yes; then
25094 echo "$as_me:$LINENO: result: gcc" >&5
25095echo "${ECHO_T}gcc" >&6
25096 CPPFLAGS_PASCAL="-fpascal-strings"
25097 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
25098 echo "$as_me:$LINENO: result: xlc" >&5
25099echo "${ECHO_T}xlc" >&6
25100 CPPFLAGS_PASCAL="-qmacpstr"
25101 else
25102 echo "$as_me:$LINENO: result: none" >&5
25103echo "${ECHO_T}none" >&6
25104 fi
25105
25106 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 25107
0c98a14e 25108 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
25109 TOOLKIT=MAC
25110 GUIDIST=MACX_DIST
cf615ebb 25111 WXBASEPORT="_carbon"
21d1c967
GD
25112 fi
25113
ac0c4cc3
DE
25114 if test "$wxUSE_COCOA" = 1; then
25115 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
25116 TOOLKIT=COCOA
25117 GUIDIST=COCOA_DIST
25118 fi
25119
21d1c967
GD
25120 if test "$wxUSE_PM" = 1; then
25121 TOOLKIT=PM
25122 GUIDIST=GTK_DIST
25123 fi
25124
25125 if test "$TOOLKIT" = "PM" ; then
25126 TOOLKIT_DIR="os2"
25127 else
25128 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
25129 fi
25130
25131 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
25132
25133 if test "$wxUSE_UNIVERSAL" = "yes"; then
25134 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
25135
25136 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
25137 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
25138
25139 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
25140 if test "$wxUSE_X11" = 1; then
25141 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
25142 else
25143 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
25144 fi
25145 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
25146 WIDGET_SET=univ
25147 else
25148 ALL_OBJECTS="\$(GUIOBJS)"
25149 ALL_SOURCES="\$(ALL_SOURCES)"
25150 ALL_HEADERS="\$(ALL_HEADERS)"
25151 fi
25152
25153 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
25154
25155 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
25156 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
25157 fi
25158
25159 if test "$wxUSE_HTML" = "yes"; then
25160 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
25161 fi
25162
25163 if test "$wxUSE_LIBJPEG" = "builtin" ; then
25164 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
25165 fi
25166 if test "$wxUSE_LIBTIFF" = "builtin" ; then
25167 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
25168 fi
25169 if test "$wxUSE_LIBPNG" = "builtin" ; then
25170 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
25171 fi
25172
25173 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
25174 DISTDIR="wx\$(TOOLKIT)"
90dd450c 25175else
21d1c967
GD
25176 USE_GUI=0
25177
25178 TOOLKIT_DIR="base"
25179
25180 if test "$USE_WIN32" = 1 ; then
25181 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
25182 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
25183
25184 TOOLKIT="MSW"
25185 else
25186 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
25187 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
25188 fi
25189
25190 ALL_SOURCES="\$(ALL_SOURCES)"
25191 ALL_HEADERS="\$(ALL_HEADERS)"
25192
25193 PORT_FILES="\${top_srcdir}/src/files.lst"
25194
25195 GUIDIST="BASE_DIST"
25196 DISTDIR="wxBase"
d836ee96
VZ
25197fi
25198
8284b0c5 25199
8647bec6
RG
25200
25201
25202IODBC_C_SRC=""
25203
25204
25205if test "$TOOLKIT" != "MSW" ; then
25206
bb41dcbe 25207 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
8647bec6 25208
bb41dcbe 25209 if test "${ac_cv_header_sql_h+set}" = set; then
e6cc62c6
VS
25210 echo "$as_me:$LINENO: checking for sql.h" >&5
25211echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
25212if test "${ac_cv_header_sql_h+set}" = set; then
25213 echo $ECHO_N "(cached) $ECHO_C" >&6
25214fi
25215echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
25216echo "${ECHO_T}$ac_cv_header_sql_h" >&6
25217else
25218 # Is the header compilable?
25219echo "$as_me:$LINENO: checking sql.h usability" >&5
25220echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
25221cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25222#line $LINENO "configure"
e6cc62c6
VS
25223/* confdefs.h. */
25224_ACEOF
25225cat confdefs.h >>conftest.$ac_ext
25226cat >>conftest.$ac_ext <<_ACEOF
25227/* end confdefs.h. */
25228$ac_includes_default
8647bec6 25229#include <sql.h>
e6cc62c6
VS
25230_ACEOF
25231rm -f conftest.$ac_objext
25232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 25233 (eval $ac_compile) 2>&5
e6cc62c6
VS
25234 ac_status=$?
25235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236 (exit $ac_status); } &&
789c5f4a 25237 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25239 (eval $ac_try) 2>&5
25240 ac_status=$?
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); }; }; then
25243 ac_header_compiler=yes
25244else
25245 echo "$as_me: failed program was:" >&5
25246sed 's/^/| /' conftest.$ac_ext >&5
25247
25248ac_header_compiler=no
25249fi
789c5f4a 25250rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
25251echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25252echo "${ECHO_T}$ac_header_compiler" >&6
25253
25254# Is the header present?
25255echo "$as_me:$LINENO: checking sql.h presence" >&5
25256echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
25257cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25258#line $LINENO "configure"
e6cc62c6
VS
25259/* confdefs.h. */
25260_ACEOF
25261cat confdefs.h >>conftest.$ac_ext
25262cat >>conftest.$ac_ext <<_ACEOF
25263/* end confdefs.h. */
25264#include <sql.h>
25265_ACEOF
25266if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25267 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25268 ac_status=$?
25269 grep -v '^ *+' conftest.er1 >conftest.err
25270 rm -f conftest.er1
25271 cat conftest.err >&5
25272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273 (exit $ac_status); } >/dev/null; then
25274 if test -s conftest.err; then
25275 ac_cpp_err=$ac_c_preproc_warn_flag
25276 else
25277 ac_cpp_err=
25278 fi
25279else
25280 ac_cpp_err=yes
25281fi
25282if test -z "$ac_cpp_err"; then
25283 ac_header_preproc=yes
25284else
25285 echo "$as_me: failed program was:" >&5
25286sed 's/^/| /' conftest.$ac_ext >&5
25287
25288 ac_header_preproc=no
25289fi
25290rm -f conftest.err conftest.$ac_ext
25291echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25292echo "${ECHO_T}$ac_header_preproc" >&6
25293
25294# So? What about this header?
789c5f4a
VZ
25295case $ac_header_compiler:$ac_header_preproc in
25296 yes:no )
e6cc62c6
VS
25297 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
25298echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
25299 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
25300echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
25301 (
25302 cat <<\_ASBOX
25303## ------------------------------------ ##
25304## Report this to bug-autoconf@gnu.org. ##
25305## ------------------------------------ ##
25306_ASBOX
25307 ) |
25308 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 25309 ;;
789c5f4a 25310 no:yes )
e6cc62c6
VS
25311 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
25312echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
25313 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
25314echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
25315 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
25316echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
25317 (
25318 cat <<\_ASBOX
789c5f4a
VZ
25319## ------------------------------------ ##
25320## Report this to bug-autoconf@gnu.org. ##
25321## ------------------------------------ ##
e6cc62c6
VS
25322_ASBOX
25323 ) |
25324 sed "s/^/$as_me: WARNING: /" >&2
25325 ;;
25326esac
25327echo "$as_me:$LINENO: checking for sql.h" >&5
25328echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
25329if test "${ac_cv_header_sql_h+set}" = set; then
25330 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 25331else
e6cc62c6
VS
25332 ac_cv_header_sql_h=$ac_header_preproc
25333fi
25334echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
25335echo "${ECHO_T}$ac_cv_header_sql_h" >&6
25336
bb41dcbe
VS
25337fi
25338if test $ac_cv_header_sql_h = yes; then
25339 found_sql_h=1
8647bec6
RG
25340fi
25341
e6cc62c6 25342
bb41dcbe 25343 if test "x$found_sql_h" = "x1" ; then
e46d2a18
VS
25344 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
25345echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
25346if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
e6cc62c6 25347 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 25348else
bb41dcbe 25349 ac_check_lib_save_LIBS=$LIBS
e46d2a18 25350LIBS="-liodbc $LIBS"
e6cc62c6 25351cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25352#line $LINENO "configure"
e6cc62c6
VS
25353/* confdefs.h. */
25354_ACEOF
25355cat confdefs.h >>conftest.$ac_ext
25356cat >>conftest.$ac_ext <<_ACEOF
25357/* end confdefs.h. */
25358
8647bec6 25359/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25360#ifdef __cplusplus
25361extern "C"
25362#endif
8647bec6 25363/* We use char because int might match the return type of a gcc2
e6cc62c6 25364 builtin and then its argument prototype would still apply. */
e46d2a18 25365char SQLAllocEnv ();
e6cc62c6
VS
25366int
25367main ()
25368{
e46d2a18 25369SQLAllocEnv ();
e6cc62c6
VS
25370 ;
25371 return 0;
25372}
25373_ACEOF
25374rm -f conftest.$ac_objext conftest$ac_exeext
25375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 25376 (eval $ac_link) 2>&5
e6cc62c6
VS
25377 ac_status=$?
25378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379 (exit $ac_status); } &&
789c5f4a 25380 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25382 (eval $ac_try) 2>&5
25383 ac_status=$?
25384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385 (exit $ac_status); }; }; then
e46d2a18 25386 ac_cv_lib_iodbc_SQLAllocEnv=yes
8647bec6 25387else
e6cc62c6
VS
25388 echo "$as_me: failed program was:" >&5
25389sed 's/^/| /' conftest.$ac_ext >&5
25390
e46d2a18 25391ac_cv_lib_iodbc_SQLAllocEnv=no
8647bec6 25392fi
789c5f4a 25393rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
25394LIBS=$ac_check_lib_save_LIBS
25395fi
e46d2a18
VS
25396echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
25397echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
25398if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
25399 ODBC_LINK=" -liodbc"
25400else
25401
e46d2a18
VS
25402 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
25403echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
25404if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
25405 echo $ECHO_N "(cached) $ECHO_C" >&6
25406else
25407 ac_check_lib_save_LIBS=$LIBS
e46d2a18 25408LIBS="-lunixodbc $LIBS"
bb41dcbe 25409cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25410#line $LINENO "configure"
e6cc62c6
VS
25411/* confdefs.h. */
25412_ACEOF
25413cat confdefs.h >>conftest.$ac_ext
25414cat >>conftest.$ac_ext <<_ACEOF
25415/* end confdefs.h. */
25416
8647bec6 25417/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25418#ifdef __cplusplus
25419extern "C"
25420#endif
8647bec6 25421/* We use char because int might match the return type of a gcc2
e6cc62c6 25422 builtin and then its argument prototype would still apply. */
e46d2a18 25423char SQLAllocEnv ();
e6cc62c6
VS
25424int
25425main ()
25426{
e46d2a18 25427SQLAllocEnv ();
e6cc62c6
VS
25428 ;
25429 return 0;
25430}
25431_ACEOF
25432rm -f conftest.$ac_objext conftest$ac_exeext
25433if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 25434 (eval $ac_link) 2>&5
e6cc62c6
VS
25435 ac_status=$?
25436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25437 (exit $ac_status); } &&
789c5f4a 25438 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25440 (eval $ac_try) 2>&5
25441 ac_status=$?
25442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25443 (exit $ac_status); }; }; then
e46d2a18 25444 ac_cv_lib_unixodbc_SQLAllocEnv=yes
8647bec6 25445else
e6cc62c6
VS
25446 echo "$as_me: failed program was:" >&5
25447sed 's/^/| /' conftest.$ac_ext >&5
25448
e46d2a18 25449ac_cv_lib_unixodbc_SQLAllocEnv=no
8647bec6 25450fi
789c5f4a 25451rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe 25452LIBS=$ac_check_lib_save_LIBS
e6cc62c6 25453fi
e46d2a18
VS
25454echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
25455echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
25456if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
25457 ODBC_LINK=" -lunixodbc"
25458else
25459
e46d2a18
VS
25460 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
25461echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
25462if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
25463 echo $ECHO_N "(cached) $ECHO_C" >&6
25464else
25465 ac_check_lib_save_LIBS=$LIBS
e46d2a18 25466LIBS="-lodbc $LIBS"
bb41dcbe 25467cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25468#line $LINENO "configure"
bb41dcbe
VS
25469/* confdefs.h. */
25470_ACEOF
25471cat confdefs.h >>conftest.$ac_ext
25472cat >>conftest.$ac_ext <<_ACEOF
25473/* end confdefs.h. */
e6cc62c6 25474
bb41dcbe
VS
25475/* Override any gcc2 internal prototype to avoid an error. */
25476#ifdef __cplusplus
25477extern "C"
25478#endif
25479/* We use char because int might match the return type of a gcc2
25480 builtin and then its argument prototype would still apply. */
e46d2a18 25481char SQLAllocEnv ();
bb41dcbe
VS
25482int
25483main ()
25484{
e46d2a18 25485SQLAllocEnv ();
bb41dcbe
VS
25486 ;
25487 return 0;
25488}
25489_ACEOF
25490rm -f conftest.$ac_objext conftest$ac_exeext
25491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 25492 (eval $ac_link) 2>&5
bb41dcbe
VS
25493 ac_status=$?
25494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495 (exit $ac_status); } &&
789c5f4a 25496 { ac_try='test -s conftest$ac_exeext'
bb41dcbe
VS
25497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25498 (eval $ac_try) 2>&5
25499 ac_status=$?
25500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501 (exit $ac_status); }; }; then
e46d2a18 25502 ac_cv_lib_odbc_SQLAllocEnv=yes
e6cc62c6 25503else
bb41dcbe
VS
25504 echo "$as_me: failed program was:" >&5
25505sed 's/^/| /' conftest.$ac_ext >&5
25506
e46d2a18 25507ac_cv_lib_odbc_SQLAllocEnv=no
bb41dcbe 25508fi
789c5f4a 25509rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
25510LIBS=$ac_check_lib_save_LIBS
25511fi
e46d2a18
VS
25512echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
25513echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
25514if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
bb41dcbe
VS
25515 ODBC_LINK=" -lodbc"
25516fi
25517
25518
25519fi
e6cc62c6 25520
e6cc62c6 25521
8647bec6 25522fi
e6cc62c6 25523
fd3d7534 25524 fi
bb41dcbe
VS
25525 if test "x$ODBC_LINK" = "x" ; then
25526 if test "$wxUSE_ODBC" = "sys" ; then
25527 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
25528echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
25529 { (exit 1); exit 1; }; }
25530 else
25531 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
25532echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
25533 wxUSE_ODBC=builtin
25534 fi
25535 else
25536 wxUSE_ODBC=sys
8647bec6 25537 fi
8647bec6 25538 fi
bb41dcbe
VS
25539 if test "$wxUSE_ODBC" != "no" ; then
25540 cat >>confdefs.h <<\_ACEOF
25541#define wxUSE_ODBC 1
25542_ACEOF
e6cc62c6 25543
0bdb08e7
VS
25544 if test "$wxUSE_ODBC" = "builtin" ; then
25545 cat >>confdefs.h <<\_ACEOF
25546#define wxUSE_BUILTIN_IODBC 1
25547_ACEOF
25548
25549 fi
bb41dcbe
VS
25550 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
25551
25552 WXODBCFLAG="-D_IODBC_"
25553 fi
6232543b 25554fi
21d1c967
GD
25555
25556if test "$wxUSE_REGEX" = "builtin" ; then
25557 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 25558fi
21d1c967
GD
25559if test "$wxUSE_ZLIB" = "builtin" ; then
25560 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
25561fi
25562
74500461
VS
25563if test "$wxUSE_DISPLAY" = "yes"; then
25564 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
25565 echo "$as_me:$LINENO: checking for Xinerama" >&5
25566echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
25567
25568ac_find_libraries=
25569for ac_dir in $SEARCH_LIB /usr/lib;
25570 do
25571 for ac_extension in a so sl dylib; do
25572 if test -f "$ac_dir/libXinerama.$ac_extension"; then
25573 ac_find_libraries=$ac_dir
25574 break 2
25575 fi
25576 done
25577 done
25578
25579 if test "$ac_find_libraries" != "" ; then
25580
25581 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25582 result=$?
25583 if test $result = 0; then
25584 ac_path_to_link=""
25585 else
25586 ac_path_to_link=" -L$ac_find_libraries"
25587 fi
25588
25589 if test "$ac_path_to_link" != " -L/usr/lib" ; then
25590 LDFLAGS="$LDFLAGS $ac_path_to_link"
25591 fi
25592 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
25593 echo "$as_me:$LINENO: result: yes" >&5
25594echo "${ECHO_T}yes" >&6
505c8ccd
VS
25595
25596 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
25597echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
25598
25599ac_find_libraries=
25600for ac_dir in $SEARCH_LIB /usr/lib;
25601 do
25602 for ac_extension in a so sl dylib; do
25603 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
25604 ac_find_libraries=$ac_dir
25605 break 2
25606 fi
25607 done
25608 done
25609
25610 if test "$ac_find_libraries" != "" ; then
25611 echo "$as_me:$LINENO: result: yes" >&5
25612echo "${ECHO_T}yes" >&6
25613
25614for ac_header in X11/extensions/xf86vmode.h
25615do
25616as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25617echo "$as_me:$LINENO: checking for $ac_header" >&5
25618echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25619if eval "test \"\${$as_ac_Header+set}\" = set"; then
25620 echo $ECHO_N "(cached) $ECHO_C" >&6
25621else
25622 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25623#line $LINENO "configure"
505c8ccd
VS
25624/* confdefs.h. */
25625_ACEOF
25626cat confdefs.h >>conftest.$ac_ext
25627cat >>conftest.$ac_ext <<_ACEOF
25628/* end confdefs.h. */
25629
25630 #if HAVE_X11_XLIB_H
25631 #include <X11/Xlib.h>
25632 #endif
25633
25634
25635#include <$ac_header>
25636_ACEOF
25637rm -f conftest.$ac_objext
25638if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 25639 (eval $ac_compile) 2>&5
505c8ccd 25640 ac_status=$?
505c8ccd
VS
25641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642 (exit $ac_status); } &&
789c5f4a 25643 { ac_try='test -s conftest.$ac_objext'
505c8ccd
VS
25644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25645 (eval $ac_try) 2>&5
25646 ac_status=$?
25647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25648 (exit $ac_status); }; }; then
25649 eval "$as_ac_Header=yes"
25650else
25651 echo "$as_me: failed program was:" >&5
25652sed 's/^/| /' conftest.$ac_ext >&5
25653
25654eval "$as_ac_Header=no"
25655fi
789c5f4a 25656rm -f conftest.$ac_objext conftest.$ac_ext
505c8ccd
VS
25657fi
25658echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25659echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25660if test `eval echo '${'$as_ac_Header'}'` = yes; then
25661 cat >>confdefs.h <<_ACEOF
25662#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25663_ACEOF
25664
25665 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
25666
25667fi
25668
25669done
25670
25671 else
25672 echo "$as_me:$LINENO: result: no" >&5
25673echo "${ECHO_T}no" >&6
25674 fi
25675
74500461
VS
25676 else
25677 echo "$as_me:$LINENO: result: no" >&5
25678echo "${ECHO_T}no" >&6
25679 { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5
25680echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;}
25681 wxUSE_DISPLAY="no"
25682 fi
25683 fi
25684fi
25685
8284b0c5 25686
4d264332 25687USE_OPENGL=0
21d1c967 25688if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 25689 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
25690 OPENGL_LIBS="-framework OpenGL -framework AGL"
25691 elif test "$wxUSE_MSW" = 1; then
25692 OPENGL_LIBS="-lopengl32 -lglu32"
25693 else
01aa5863
VS
25694
25695
25696ac_find_includes=
25697for ac_dir in $SEARCH_INCLUDE /usr/include;
25698 do
25699 if test -f "$ac_dir/GL/gl.h"; then
25700 ac_find_includes=$ac_dir
25701 break
25702 fi
25703 done
25704
25705 if test "$ac_find_includes" != "" ; then
25706 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25707echo "${ECHO_T}found in $ac_find_includes" >&6
01aa5863
VS
25708
25709 if test "x$ac_find_includes" = "x/usr/include"; then
25710 ac_path_to_include=""
25711 else
25712 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
25713 result=$?
25714 if test $result = 0; then
25715 ac_path_to_include=""
25716 else
25717 ac_path_to_include=" -I$ac_find_includes"
25718 fi
25719 fi
25720
25721 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
01aa5863
VS
25722 fi
25723
e6cc62c6
VS
25724 if test "${ac_cv_header_GL_gl_h+set}" = set; then
25725 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
25726echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
25727if test "${ac_cv_header_GL_gl_h+set}" = set; then
25728 echo $ECHO_N "(cached) $ECHO_C" >&6
25729fi
25730echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
25731echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
25732else
25733 # Is the header compilable?
25734echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
25735echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
25736cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25737#line $LINENO "configure"
e6cc62c6
VS
25738/* confdefs.h. */
25739_ACEOF
25740cat confdefs.h >>conftest.$ac_ext
25741cat >>conftest.$ac_ext <<_ACEOF
25742/* end confdefs.h. */
25743$ac_includes_default
21d1c967 25744#include <GL/gl.h>
e6cc62c6
VS
25745_ACEOF
25746rm -f conftest.$ac_objext
25747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 25748 (eval $ac_compile) 2>&5
e6cc62c6
VS
25749 ac_status=$?
25750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); } &&
789c5f4a 25752 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25754 (eval $ac_try) 2>&5
25755 ac_status=$?
25756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25757 (exit $ac_status); }; }; then
25758 ac_header_compiler=yes
25759else
25760 echo "$as_me: failed program was:" >&5
25761sed 's/^/| /' conftest.$ac_ext >&5
25762
25763ac_header_compiler=no
25764fi
789c5f4a 25765rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
25766echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25767echo "${ECHO_T}$ac_header_compiler" >&6
25768
25769# Is the header present?
25770echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
25771echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
25772cat >conftest.$ac_ext <<_ACEOF
789c5f4a 25773#line $LINENO "configure"
e6cc62c6
VS
25774/* confdefs.h. */
25775_ACEOF
25776cat confdefs.h >>conftest.$ac_ext
25777cat >>conftest.$ac_ext <<_ACEOF
25778/* end confdefs.h. */
25779#include <GL/gl.h>
25780_ACEOF
25781if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25782 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25783 ac_status=$?
25784 grep -v '^ *+' conftest.er1 >conftest.err
25785 rm -f conftest.er1
25786 cat conftest.err >&5
25787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788 (exit $ac_status); } >/dev/null; then
25789 if test -s conftest.err; then
25790 ac_cpp_err=$ac_c_preproc_warn_flag
25791 else
25792 ac_cpp_err=
25793 fi
25794else
25795 ac_cpp_err=yes
25796fi
25797if test -z "$ac_cpp_err"; then
25798 ac_header_preproc=yes
25799else
25800 echo "$as_me: failed program was:" >&5
25801sed 's/^/| /' conftest.$ac_ext >&5
25802
25803 ac_header_preproc=no
25804fi
25805rm -f conftest.err conftest.$ac_ext
25806echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25807echo "${ECHO_T}$ac_header_preproc" >&6
25808
25809# So? What about this header?
789c5f4a
VZ
25810case $ac_header_compiler:$ac_header_preproc in
25811 yes:no )
e6cc62c6
VS
25812 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
25813echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
25814 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25815echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25816 (
25817 cat <<\_ASBOX
25818## ------------------------------------ ##
25819## Report this to bug-autoconf@gnu.org. ##
25820## ------------------------------------ ##
25821_ASBOX
25822 ) |
25823 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 25824 ;;
789c5f4a 25825 no:yes )
e6cc62c6
VS
25826 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
25827echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
789c5f4a
VZ
25828 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
25829echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
25830 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
25831echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
25832 (
25833 cat <<\_ASBOX
789c5f4a
VZ
25834## ------------------------------------ ##
25835## Report this to bug-autoconf@gnu.org. ##
25836## ------------------------------------ ##
e6cc62c6
VS
25837_ASBOX
25838 ) |
25839 sed "s/^/$as_me: WARNING: /" >&2
25840 ;;
25841esac
25842echo "$as_me:$LINENO: checking for GL/gl.h" >&5
25843echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
25844if test "${ac_cv_header_GL_gl_h+set}" = set; then
25845 echo $ECHO_N "(cached) $ECHO_C" >&6
25846else
25847 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 25848fi
e6cc62c6
VS
25849echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
25850echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
25851
698dcdb6 25852fi
e6cc62c6
VS
25853if test $ac_cv_header_GL_gl_h = yes; then
25854
89e3b3e4
VZ
25855 found_gl=0
25856
e6cc62c6
VS
25857 echo "$as_me:$LINENO: checking for -lGL" >&5
25858echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
25859
21d1c967 25860ac_find_libraries=
2b5f62a0 25861for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25862 do
25863 for ac_extension in a so sl dylib; do
25864 if test -f "$ac_dir/libGL.$ac_extension"; then
25865 ac_find_libraries=$ac_dir
25866 break 2
25867 fi
25868 done
25869 done
25870
25871 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25872
21d1c967
GD
25873 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25874 result=$?
25875 if test $result = 0; then
25876 ac_path_to_link=""
25877 else
25878 ac_path_to_link=" -L$ac_find_libraries"
25879 fi
25880
89e3b3e4
VZ
25881 if test "$ac_path_to_link" != " -L/usr/lib" ; then
25882 LDFLAGS_GL="$ac_path_to_link"
21d1c967 25883 fi
89e3b3e4 25884
e6cc62c6 25885
89e3b3e4
VZ
25886ac_find_libraries=
25887for ac_dir in $SEARCH_LIB /usr/lib;
25888 do
25889 for ac_extension in a so sl dylib; do
25890 if test -f "$ac_dir/libGLU.$ac_extension"; then
25891 ac_find_libraries=$ac_dir
25892 break 2
25893 fi
25894 done
25895 done
25896
25897 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25898
89e3b3e4
VZ
25899 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25900 result=$?
25901 if test $result = 0; then
25902 ac_path_to_link=""
25903 else
25904 ac_path_to_link=" -L$ac_find_libraries"
25905 fi
25906
25907 if test "$ac_path_to_link" != " -L/usr/lib" -a \
25908 "$ac_path_to_link" != "$LDFLAGS_GL"; then
25909 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
25910 fi
25911
25912 found_gl=1
25913 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
25914 echo "$as_me:$LINENO: result: yes" >&5
25915echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
25916 fi
25917 fi
25918
bb41dcbe 25919 if test "$found_gl" != 1; then
e6cc62c6
VS
25920 echo "$as_me:$LINENO: result: no" >&5
25921echo "${ECHO_T}no" >&6
25922 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
25923echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
25924
21d1c967 25925ac_find_libraries=
2b5f62a0 25926for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25927 do
25928 for ac_extension in a so sl dylib; do
25929 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
25930 ac_find_libraries=$ac_dir
25931 break 2
25932 fi
25933 done
25934 done
25935
25936 if test "$ac_find_libraries" != "" ; then
e6cc62c6 25937
21d1c967
GD
25938 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
25939 result=$?
25940 if test $result = 0; then
25941 ac_path_to_link=""
25942 else
25943 ac_path_to_link=" -L$ac_find_libraries"
25944 fi
25945
25946 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
25947 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
25948 echo "$as_me:$LINENO: result: yes" >&5
25949echo "${ECHO_T}yes" >&6
21d1c967 25950 else
e6cc62c6
VS
25951 echo "$as_me:$LINENO: result: no" >&5
25952echo "${ECHO_T}no" >&6
21d1c967
GD
25953 fi
25954 fi
e6cc62c6 25955
5c6fa7d2 25956fi
52127426 25957
8284b0c5 25958
e6cc62c6 25959
21d1c967 25960 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
25961 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
25962echo "$as_me: error: OpenGL libraries not available" >&2;}
25963 { (exit 1); exit 1; }; }
21d1c967
GD
25964 fi
25965 fi
90dd450c 25966
21d1c967 25967 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 25968 USE_OPENGL=1
e6cc62c6 25969 cat >>confdefs.h <<\_ACEOF
21d1c967 25970#define wxUSE_OPENGL 1
e6cc62c6 25971_ACEOF
21d1c967 25972
e6cc62c6 25973 cat >>confdefs.h <<\_ACEOF
21d1c967 25974#define wxUSE_GLCANVAS 1
e6cc62c6 25975_ACEOF
21d1c967 25976
520755bb 25977 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
21d1c967 25978 fi
10f2d63a 25979fi
21d1c967
GD
25980
25981if test -z "$TOOLKIT_VPATH" ; then
25982 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 25983fi
21d1c967
GD
25984
25985if test -n "$TOOLKIT" ; then
25986 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
25987fi
25988
fe0895cf 25989UNICODE=0
21d1c967
GD
25990lib_unicode_suffix=
25991if test "$wxUSE_UNICODE" = "yes"; then
25992 lib_unicode_suffix=u
fe0895cf 25993 UNICODE=1
90dd450c 25994fi
698dcdb6 25995
21d1c967 25996lib_debug_suffix=
6c67131a 25997DEBUG_FLAG=0
21d1c967
GD
25998if test "$wxUSE_DEBUG_FLAG" = "yes"; then
25999 lib_debug_suffix=d
6c67131a
VS
26000 DEBUG_FLAG=1
26001fi
26002
26003DEBUG_INFO=0
26004if test "$wxUSE_DEBUG_INFO" = "yes"; then
26005 DEBUG_INFO=1
21d1c967 26006fi
698dcdb6 26007
1cbb95a2 26008WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
2b5f62a0
VZ
26009
26010TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
26011TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
26012
26013if test "$cross_compiling" = "yes"; then
26014 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
26015 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 26016 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
26017fi
26018
26019WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
26020WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
cf615ebb
VS
26021WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
26022WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
26023
26024WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
26025WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
26026
26027WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
26028WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
26029WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
26030WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
26031
26032case "${host}" in
26033 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
26034 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
26035 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
26036 ;;
26037
26038 *-*-darwin* )
e6cc62c6 26039
05159a27
GD
26040 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
26041 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
26042
26043 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
26044 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
26045 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
26046 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
26047
09d3439c
VZ
26048 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
26049 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
f346733b 26050 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
26051 fi
26052 ;;
26053esac
26054
26055WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
26056WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
26057
26058WXCONFIG_LIBS="-l${WX_LIBRARY}"
26059WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
26060
26061if test "$wxUSE_OPENGL" = "yes"; then
26062 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
26063 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
26064fi
26065
8284b0c5
MB
26066
26067
21d1c967
GD
26068if test "$wxUSE_SHARED" = "yes"; then
26069 case "${host}" in
26070 *-pc-os2_emx | *-pc-os2-emx | \
26071 *-pc-msdosdjgpp )
26072 wxUSE_SHARED=no
e6cc62c6
VS
26073 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
26074echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
26075 ;;
26076 esac
26077fi
26078
fe0895cf 26079SHARED=0
2b5f62a0 26080if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 26081 SHARED=1
2b5f62a0 26082
e6cc62c6 26083
2b5f62a0
VZ
26084 found_versioning=no
26085
e6cc62c6 26086
2b5f62a0 26087 if test $found_versioning = no ; then
e6cc62c6
VS
26088 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
26089echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
26090if test "${wx_cv_version_script+set}" = set; then
26091 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 26092else
e6cc62c6 26093
2b5f62a0
VZ
26094 echo "VER_1 { *; };" >conftest.sym
26095 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 26096
2b5f62a0
VZ
26097 if { ac_try='
26098 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
26099 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
26100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26101 (eval $ac_try) 2>&5
26102 ac_status=$?
26103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26104 (exit $ac_status); }; } ; then
2b5f62a0
VZ
26105 if test -s conftest.stderr ; then
26106 wx_cv_version_script=no
26107 else
26108 wx_cv_version_script=yes
26109 fi
26110 else
26111 wx_cv_version_script=no
26112 fi
26113 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 26114
e6cc62c6
VS
26115fi
26116echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
26117echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 26118 if test $wx_cv_version_script = yes ; then
e6cc62c6 26119 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
26120 fi
26121 fi
21d1c967 26122
21d1c967 26123
21d1c967 26124 case "${host}" in
fe0895cf 26125 *-*-linux* | *-*-gnu* )
e6cc62c6 26126 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
345b8952 26127 ;;
21d1c967
GD
26128
26129 *-*-solaris2* )
26130 if test "$GCC" = yes ; then
26131 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
26132
26133 saveLdflags="$LDFLAGS"
26134 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
26135 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
26136echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
26137 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26138#line $LINENO "configure"
e6cc62c6
VS
26139/* confdefs.h. */
26140_ACEOF
26141cat confdefs.h >>conftest.$ac_ext
26142cat >>conftest.$ac_ext <<_ACEOF
26143/* end confdefs.h. */
26144
26145int
26146main ()
26147{
fe0895cf 26148
e6cc62c6
VS
26149 ;
26150 return 0;
26151}
26152_ACEOF
26153rm -f conftest.$ac_objext conftest$ac_exeext
26154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 26155 (eval $ac_link) 2>&5
e6cc62c6
VS
26156 ac_status=$?
26157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26158 (exit $ac_status); } &&
789c5f4a 26159 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26161 (eval $ac_try) 2>&5
26162 ac_status=$?
26163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26164 (exit $ac_status); }; }; then
26165
26166 echo "$as_me:$LINENO: result: yes" >&5
26167echo "${ECHO_T}yes" >&6
26168 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
26169
26170else
26171 echo "$as_me: failed program was:" >&5
26172sed 's/^/| /' conftest.$ac_ext >&5
26173
26174
26175 echo "$as_me:$LINENO: result: no" >&5
26176echo "${ECHO_T}no" >&6
26177 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
26178echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 26179 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6 26180 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26181#line $LINENO "configure"
e6cc62c6
VS
26182/* confdefs.h. */
26183_ACEOF
26184cat confdefs.h >>conftest.$ac_ext
26185cat >>conftest.$ac_ext <<_ACEOF
26186/* end confdefs.h. */
26187
26188int
26189main ()
26190{
26191
26192 ;
26193 return 0;
26194}
26195_ACEOF
26196rm -f conftest.$ac_objext conftest$ac_exeext
26197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 26198 (eval $ac_link) 2>&5
e6cc62c6
VS
26199 ac_status=$?
26200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26201 (exit $ac_status); } &&
789c5f4a 26202 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26204 (eval $ac_try) 2>&5
26205 ac_status=$?
26206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26207 (exit $ac_status); }; }; then
26208
26209 echo "$as_me:$LINENO: result: yes" >&5
26210echo "${ECHO_T}yes" >&6
26211 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
26212else
26213 echo "$as_me: failed program was:" >&5
26214sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 26215
fe0895cf 26216
e6cc62c6
VS
26217 echo "$as_me:$LINENO: result: no" >&5
26218echo "${ECHO_T}no" >&6
26219
fe0895cf 26220fi
789c5f4a 26221rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
26222
26223fi
789c5f4a 26224rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
fe0895cf 26225 LDFLAGS="$saveLdflags"
21d1c967
GD
26226 else
26227 SHARED_LD="${CXX} -G -o"
26228 PIC_FLAG="-KPIC"
e6cc62c6 26229 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
26230 fi
26231 ;;
0f1bc9c2
VS
26232
26233 powerpc-*-darwin* )
ef0add05
VS
26234 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
26235 cat <<EOF >change-install-names
26236#!/bin/sh
26237libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
26238inst_cmd="install_name_tool "
26239for i in \${libnames} ; do
26240 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
26241done
26242\${inst_cmd} \${3}
26243EOF
26244 chmod +x change-install-names
0f1bc9c2
VS
26245 ;;
26246
21d1c967
GD
26247 esac
26248
26249 if test "x$WX_TARGET_LIBRARY" = "x"; then
26250 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
26251 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
26252 fi
26253
26254 WX_TARGET_LIBRARY_TYPE="so"
26255 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 26256fi
10f2d63a 26257
21d1c967
GD
26258if test "$wxUSE_SHARED" = "no"; then
26259
26260 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
26261 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
26262 fi
26263
ac0c4cc3 26264 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
26265 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
26266 fi
26267
26268 if test "$wxUSE_OPENGL" = "yes"; then
26269 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
26270 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
26271 else
26272 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
26273 fi
26274
26275 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
26276 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
26277
26278 WX_TARGET_LIBRARY_TYPE="a"
26279 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
26280
26281 STATIC_FLAG="yes"
26282else
26283 STATIC_FLAG="no"
90dd450c 26284fi
1e487827 26285
09d3439c 26286if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
e6cc62c6 26287 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
26288 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
26289 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
09d3439c 26290
21d1c967
GD
26291 # Extract the first word of "Rez", so it can be a program name with args.
26292set dummy Rez; ac_word=$2
e6cc62c6
VS
26293echo "$as_me:$LINENO: checking for $ac_word" >&5
26294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26295if test "${ac_cv_prog_RESCOMP+set}" = set; then
26296 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 26297else
21d1c967
GD
26298 if test -n "$RESCOMP"; then
26299 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 26300else
e6cc62c6
VS
26301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26302for as_dir in $PATH
26303do
26304 IFS=$as_save_IFS
26305 test -z "$as_dir" && as_dir=.
26306 for ac_exec_ext in '' $ac_executable_extensions; do
26307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26308 ac_cv_prog_RESCOMP="Rez"
26309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26310 break 2
26311 fi
26312done
26313done
26314
21d1c967 26315 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 26316fi
b93d0d08 26317fi
e6cc62c6 26318RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 26319if test -n "$RESCOMP"; then
e6cc62c6
VS
26320 echo "$as_me:$LINENO: result: $RESCOMP" >&5
26321echo "${ECHO_T}$RESCOMP" >&6
90dd450c 26322else
e6cc62c6
VS
26323 echo "$as_me:$LINENO: result: no" >&5
26324echo "${ECHO_T}no" >&6
90dd450c 26325fi
b93d0d08 26326
21d1c967
GD
26327 # Extract the first word of "DeRez", so it can be a program name with args.
26328set dummy DeRez; ac_word=$2
e6cc62c6
VS
26329echo "$as_me:$LINENO: checking for $ac_word" >&5
26330echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26331if test "${ac_cv_prog_DEREZ+set}" = set; then
26332 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 26333else
21d1c967
GD
26334 if test -n "$DEREZ"; then
26335 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 26336else
e6cc62c6
VS
26337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26338for as_dir in $PATH
26339do
26340 IFS=$as_save_IFS
26341 test -z "$as_dir" && as_dir=.
26342 for ac_exec_ext in '' $ac_executable_extensions; do
26343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26344 ac_cv_prog_DEREZ="DeRez"
26345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26346 break 2
26347 fi
26348done
26349done
26350
21d1c967 26351 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 26352fi
90dd450c 26353fi
e6cc62c6 26354DEREZ=$ac_cv_prog_DEREZ
21d1c967 26355if test -n "$DEREZ"; then
e6cc62c6
VS
26356 echo "$as_me:$LINENO: result: $DEREZ" >&5
26357echo "${ECHO_T}$DEREZ" >&6
90dd450c 26358else
e6cc62c6
VS
26359 echo "$as_me:$LINENO: result: no" >&5
26360echo "${ECHO_T}no" >&6
3a922bb4 26361fi
698dcdb6 26362
36825681
GD
26363 # Extract the first word of "SetFile", so it can be a program name with args.
26364set dummy SetFile; ac_word=$2
e6cc62c6
VS
26365echo "$as_me:$LINENO: checking for $ac_word" >&5
26366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26367if test "${ac_cv_prog_SETFILE+set}" = set; then
26368 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
26369else
26370 if test -n "$SETFILE"; then
26371 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
26372else
e6cc62c6
VS
26373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26374for as_dir in $PATH
26375do
26376 IFS=$as_save_IFS
26377 test -z "$as_dir" && as_dir=.
26378 for ac_exec_ext in '' $ac_executable_extensions; do
26379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26380 ac_cv_prog_SETFILE="SetFile"
26381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26382 break 2
26383 fi
26384done
26385done
26386
36825681
GD
26387 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
26388fi
26389fi
e6cc62c6 26390SETFILE=$ac_cv_prog_SETFILE
36825681 26391if test -n "$SETFILE"; then
e6cc62c6
VS
26392 echo "$as_me:$LINENO: result: $SETFILE" >&5
26393echo "${ECHO_T}$SETFILE" >&6
36825681 26394else
e6cc62c6
VS
26395 echo "$as_me:$LINENO: result: no" >&5
26396echo "${ECHO_T}no" >&6
36825681
GD
26397fi
26398
e6cc62c6 26399
09d3439c 26400 MACSETFILE="\$(SETFILE)"
64440d77 26401
09d3439c
VZ
26402 if test "$wxUSE_MAC" = 1; then
26403 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
e6cc62c6 26404
09d3439c
VZ
26405 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
26406 else
26407 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
26408 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
26409 fi
64440d77 26410else
09d3439c
VZ
26411 MACSETFILE="@#"
26412 MACRESWXCONFIG="#"
64440d77 26413
09d3439c 26414 if test "$wxUSE_PM" = 1; then
36825681 26415 MACRESCOMP="emxbind -ep"
09d3439c
VZ
26416 else
26417 MACRESCOMP="@#"
90dd450c 26418 fi
4f14bcd8 26419fi
10f2d63a 26420
8284b0c5 26421
f93ca9fd 26422
e6cc62c6
VS
26423echo "$as_me:$LINENO: checking for mode_t" >&5
26424echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
26425if test "${ac_cv_type_mode_t+set}" = set; then
26426 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 26427else
e6cc62c6 26428 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26429#line $LINENO "configure"
e6cc62c6
VS
26430/* confdefs.h. */
26431_ACEOF
26432cat confdefs.h >>conftest.$ac_ext
26433cat >>conftest.$ac_ext <<_ACEOF
26434/* end confdefs.h. */
26435$ac_includes_default
26436int
26437main ()
26438{
26439if ((mode_t *) 0)
26440 return 0;
26441if (sizeof (mode_t))
26442 return 0;
26443 ;
26444 return 0;
26445}
26446_ACEOF
26447rm -f conftest.$ac_objext
26448if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 26449 (eval $ac_compile) 2>&5
e6cc62c6
VS
26450 ac_status=$?
26451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452 (exit $ac_status); } &&
789c5f4a 26453 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26455 (eval $ac_try) 2>&5
26456 ac_status=$?
26457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); }; }; then
26459 ac_cv_type_mode_t=yes
a0b9e27f 26460else
e6cc62c6
VS
26461 echo "$as_me: failed program was:" >&5
26462sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 26463
e6cc62c6 26464ac_cv_type_mode_t=no
a0b9e27f 26465fi
789c5f4a 26466rm -f conftest.$ac_objext conftest.$ac_ext
52127426 26467fi
e6cc62c6
VS
26468echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
26469echo "${ECHO_T}$ac_cv_type_mode_t" >&6
26470if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
26471 :
26472else
a0b9e27f 26473
e6cc62c6
VS
26474cat >>confdefs.h <<_ACEOF
26475#define mode_t int
26476_ACEOF
8284b0c5
MB
26477
26478fi
26479
e6cc62c6
VS
26480echo "$as_me:$LINENO: checking for off_t" >&5
26481echo $ECHO_N "checking for off_t... $ECHO_C" >&6
26482if test "${ac_cv_type_off_t+set}" = set; then
26483 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26484else
e6cc62c6 26485 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26486#line $LINENO "configure"
e6cc62c6
VS
26487/* confdefs.h. */
26488_ACEOF
26489cat confdefs.h >>conftest.$ac_ext
26490cat >>conftest.$ac_ext <<_ACEOF
26491/* end confdefs.h. */
26492$ac_includes_default
26493int
26494main ()
26495{
26496if ((off_t *) 0)
26497 return 0;
26498if (sizeof (off_t))
26499 return 0;
26500 ;
26501 return 0;
26502}
26503_ACEOF
26504rm -f conftest.$ac_objext
26505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 26506 (eval $ac_compile) 2>&5
e6cc62c6
VS
26507 ac_status=$?
26508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); } &&
789c5f4a 26510 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26512 (eval $ac_try) 2>&5
26513 ac_status=$?
26514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26515 (exit $ac_status); }; }; then
26516 ac_cv_type_off_t=yes
5c6fa7d2 26517else
e6cc62c6
VS
26518 echo "$as_me: failed program was:" >&5
26519sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 26520
e6cc62c6 26521ac_cv_type_off_t=no
8284b0c5 26522fi
789c5f4a 26523rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 26524fi
e6cc62c6
VS
26525echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
26526echo "${ECHO_T}$ac_cv_type_off_t" >&6
26527if test $ac_cv_type_off_t = yes; then
26528 :
247f5006
VZ
26529else
26530
e6cc62c6 26531cat >>confdefs.h <<_ACEOF
90dd450c 26532#define off_t long
e6cc62c6 26533_ACEOF
10f2d63a 26534
90dd450c 26535fi
10f2d63a 26536
e6cc62c6
VS
26537echo "$as_me:$LINENO: checking for pid_t" >&5
26538echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26539if test "${ac_cv_type_pid_t+set}" = set; then
26540 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 26541else
e6cc62c6 26542 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26543#line $LINENO "configure"
e6cc62c6
VS
26544/* confdefs.h. */
26545_ACEOF
26546cat confdefs.h >>conftest.$ac_ext
26547cat >>conftest.$ac_ext <<_ACEOF
26548/* end confdefs.h. */
26549$ac_includes_default
26550int
26551main ()
26552{
26553if ((pid_t *) 0)
26554 return 0;
26555if (sizeof (pid_t))
26556 return 0;
26557 ;
26558 return 0;
26559}
26560_ACEOF
26561rm -f conftest.$ac_objext
26562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 26563 (eval $ac_compile) 2>&5
e6cc62c6
VS
26564 ac_status=$?
26565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26566 (exit $ac_status); } &&
789c5f4a 26567 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26569 (eval $ac_try) 2>&5
26570 ac_status=$?
26571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572 (exit $ac_status); }; }; then
90dd450c 26573 ac_cv_type_pid_t=yes
698dcdb6 26574else
e6cc62c6
VS
26575 echo "$as_me: failed program was:" >&5
26576sed 's/^/| /' conftest.$ac_ext >&5
247f5006 26577
e6cc62c6
VS
26578ac_cv_type_pid_t=no
26579fi
789c5f4a 26580rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26581fi
e6cc62c6
VS
26582echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26583echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26584if test $ac_cv_type_pid_t = yes; then
26585 :
26586else
26587
26588cat >>confdefs.h <<_ACEOF
90dd450c 26589#define pid_t int
e6cc62c6 26590_ACEOF
10f2d63a 26591
7b4a847f
RR
26592fi
26593
e6cc62c6
VS
26594echo "$as_me:$LINENO: checking for size_t" >&5
26595echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26596if test "${ac_cv_type_size_t+set}" = set; then
26597 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 26598else
e6cc62c6 26599 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26600#line $LINENO "configure"
e6cc62c6
VS
26601/* confdefs.h. */
26602_ACEOF
26603cat confdefs.h >>conftest.$ac_ext
26604cat >>conftest.$ac_ext <<_ACEOF
26605/* end confdefs.h. */
26606$ac_includes_default
26607int
26608main ()
26609{
26610if ((size_t *) 0)
26611 return 0;
26612if (sizeof (size_t))
26613 return 0;
26614 ;
26615 return 0;
26616}
26617_ACEOF
26618rm -f conftest.$ac_objext
26619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 26620 (eval $ac_compile) 2>&5
e6cc62c6
VS
26621 ac_status=$?
26622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623 (exit $ac_status); } &&
789c5f4a 26624 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26626 (eval $ac_try) 2>&5
26627 ac_status=$?
26628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26629 (exit $ac_status); }; }; then
90dd450c 26630 ac_cv_type_size_t=yes
18dbb1f6 26631else
e6cc62c6
VS
26632 echo "$as_me: failed program was:" >&5
26633sed 's/^/| /' conftest.$ac_ext >&5
247f5006 26634
e6cc62c6 26635ac_cv_type_size_t=no
a0b9e27f 26636fi
789c5f4a 26637rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
26638fi
26639echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26640echo "${ECHO_T}$ac_cv_type_size_t" >&6
26641if test $ac_cv_type_size_t = yes; then
26642 :
26643else
26644
26645cat >>confdefs.h <<_ACEOF
90dd450c 26646#define size_t unsigned
e6cc62c6 26647_ACEOF
90dd450c
VZ
26648
26649fi
26650
e6cc62c6
VS
26651echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
26652echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
26653if test "${ac_cv_type_uid_t+set}" = set; then
26654 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 26655else
e6cc62c6 26656 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26657#line $LINENO "configure"
e6cc62c6
VS
26658/* confdefs.h. */
26659_ACEOF
26660cat confdefs.h >>conftest.$ac_ext
26661cat >>conftest.$ac_ext <<_ACEOF
26662/* end confdefs.h. */
90dd450c 26663#include <sys/types.h>
e6cc62c6
VS
26664
26665_ACEOF
90dd450c 26666if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 26667 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 26668 ac_cv_type_uid_t=yes
b3e8d00a 26669else
90dd450c 26670 ac_cv_type_uid_t=no
b3e8d00a 26671fi
90dd450c 26672rm -f conftest*
b3e8d00a 26673
4f14bcd8 26674fi
e6cc62c6
VS
26675echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
26676echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 26677if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
26678
26679cat >>confdefs.h <<\_ACEOF
90dd450c 26680#define uid_t int
e6cc62c6 26681_ACEOF
247f5006 26682
e6cc62c6
VS
26683
26684cat >>confdefs.h <<\_ACEOF
90dd450c 26685#define gid_t int
e6cc62c6 26686_ACEOF
4f14bcd8 26687
b3e8d00a 26688fi
b3e8d00a 26689
8284b0c5
MB
26690
26691
e6cc62c6
VS
26692
26693ac_ext=cc
4f14bcd8 26694ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
26695ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26696ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26697ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26698
26699echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
26700echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
26701if test "${wx_cv_size_t_is_uint+set}" = set; then
26702 echo $ECHO_N "(cached) $ECHO_C" >&6
26703else
26704
26705 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26706#line $LINENO "configure"
e6cc62c6
VS
26707/* confdefs.h. */
26708_ACEOF
26709cat confdefs.h >>conftest.$ac_ext
26710cat >>conftest.$ac_ext <<_ACEOF
26711/* end confdefs.h. */
90dd450c 26712#include <stddef.h>
e6cc62c6
VS
26713int
26714main ()
26715{
90dd450c
VZ
26716
26717 return 0; }
26718
26719 struct Foo { void foo(size_t); void foo(unsigned int); };
26720
26721 int bar() {
e6cc62c6
VS
26722
26723 ;
26724 return 0;
26725}
26726_ACEOF
26727rm -f conftest.$ac_objext
26728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 26729 (eval $ac_compile) 2>&5
e6cc62c6
VS
26730 ac_status=$?
26731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26732 (exit $ac_status); } &&
789c5f4a 26733 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26735 (eval $ac_try) 2>&5
26736 ac_status=$?
26737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26738 (exit $ac_status); }; }; then
90dd450c 26739 wx_cv_size_t_is_uint=no
698dcdb6 26740else
e6cc62c6
VS
26741 echo "$as_me: failed program was:" >&5
26742sed 's/^/| /' conftest.$ac_ext >&5
26743
26744wx_cv_size_t_is_uint=yes
8284b0c5 26745
247f5006 26746fi
789c5f4a 26747rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 26748
a0b9e27f 26749
e6cc62c6
VS
26750fi
26751echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
26752echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 26753
90dd450c 26754if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 26755 cat >>confdefs.h <<\_ACEOF
90dd450c 26756#define wxSIZE_T_IS_UINT 1
e6cc62c6 26757_ACEOF
698dcdb6 26758
90dd450c 26759else
e6cc62c6
VS
26760 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
26761echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
26762if test "${wx_cv_size_t_is_ulong+set}" = set; then
26763 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 26764else
e6cc62c6 26765 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26766#line $LINENO "configure"
e6cc62c6
VS
26767/* confdefs.h. */
26768_ACEOF
26769cat confdefs.h >>conftest.$ac_ext
26770cat >>conftest.$ac_ext <<_ACEOF
26771/* end confdefs.h. */
90dd450c 26772#include <stddef.h>
e6cc62c6
VS
26773int
26774main ()
26775{
90dd450c
VZ
26776
26777 return 0; }
26778
26779 struct Foo { void foo(size_t); void foo(unsigned long); };
26780
26781 int bar() {
e6cc62c6
VS
26782
26783 ;
26784 return 0;
26785}
26786_ACEOF
26787rm -f conftest.$ac_objext
26788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 26789 (eval $ac_compile) 2>&5
e6cc62c6
VS
26790 ac_status=$?
26791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792 (exit $ac_status); } &&
789c5f4a 26793 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26795 (eval $ac_try) 2>&5
26796 ac_status=$?
26797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798 (exit $ac_status); }; }; then
90dd450c 26799 wx_cv_size_t_is_ulong=no
698dcdb6 26800else
e6cc62c6
VS
26801 echo "$as_me: failed program was:" >&5
26802sed 's/^/| /' conftest.$ac_ext >&5
26803
26804wx_cv_size_t_is_ulong=yes
26805
247f5006 26806fi
789c5f4a 26807rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26808
e6cc62c6
VS
26809fi
26810echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
26811echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 26812
90dd450c 26813 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 26814 cat >>confdefs.h <<\_ACEOF
90dd450c 26815#define wxSIZE_T_IS_ULONG 1
e6cc62c6 26816_ACEOF
4f14bcd8
GD
26817
26818 fi
90dd450c 26819fi
1e487827 26820
90dd450c 26821ac_ext=c
4f14bcd8 26822ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
26823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26825ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 26826
5c6fa7d2 26827
8284b0c5 26828
e6cc62c6
VS
26829echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
26830echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
26831if test "${wx_cv_struct_pw_gecos+set}" = set; then
26832 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 26833else
e6cc62c6
VS
26834
26835 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26836#line $LINENO "configure"
e6cc62c6
VS
26837/* confdefs.h. */
26838_ACEOF
26839cat confdefs.h >>conftest.$ac_ext
26840cat >>conftest.$ac_ext <<_ACEOF
26841/* end confdefs.h. */
90dd450c 26842#include <pwd.h>
e6cc62c6
VS
26843int
26844main ()
26845{
f6bcfd97 26846
90dd450c
VZ
26847 char *p;
26848 struct passwd *pw;
26849 p = pw->pw_gecos;
e6cc62c6
VS
26850
26851 ;
26852 return 0;
26853}
26854_ACEOF
26855rm -f conftest.$ac_objext
26856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 26857 (eval $ac_compile) 2>&5
e6cc62c6
VS
26858 ac_status=$?
26859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26860 (exit $ac_status); } &&
789c5f4a 26861 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26863 (eval $ac_try) 2>&5
26864 ac_status=$?
26865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26866 (exit $ac_status); }; }; then
26867
90dd450c 26868 wx_cv_struct_pw_gecos=yes
e6cc62c6 26869
10f2d63a 26870else
e6cc62c6
VS
26871 echo "$as_me: failed program was:" >&5
26872sed 's/^/| /' conftest.$ac_ext >&5
26873
26874
90dd450c 26875 wx_cv_struct_pw_gecos=no
e6cc62c6 26876
247f5006
VZ
26877
26878fi
789c5f4a 26879rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 26880
e6cc62c6
VS
26881
26882fi
26883echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
26884echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 26885
90dd450c 26886if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 26887 cat >>confdefs.h <<\_ACEOF
90dd450c 26888#define HAVE_PW_GECOS 1
e6cc62c6 26889_ACEOF
c521c494 26890
90dd450c 26891fi
4f14bcd8 26892
8284b0c5 26893
d29b553b 26894if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 26895 cat >>confdefs.h <<\_ACEOF
d74f4b5a 26896#define wxUSE_WCHAR_T 1
e6cc62c6 26897_ACEOF
d74f4b5a 26898
8284b0c5 26899
d74f4b5a
VZ
26900 WCSLEN_FOUND=0
26901 WCHAR_LINK=
e6cc62c6
VS
26902
26903for ac_func in wcslen
7a30264c 26904do
e6cc62c6
VS
26905as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26906echo "$as_me:$LINENO: checking for $ac_func" >&5
26907echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26908if eval "test \"\${$as_ac_var+set}\" = set"; then
26909 echo $ECHO_N "(cached) $ECHO_C" >&6
26910else
26911 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26912#line $LINENO "configure"
e6cc62c6
VS
26913/* confdefs.h. */
26914_ACEOF
26915cat confdefs.h >>conftest.$ac_ext
26916cat >>conftest.$ac_ext <<_ACEOF
26917/* end confdefs.h. */
7a30264c 26918/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
26919 which can conflict with char $ac_func (); below.
26920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26921 <limits.h> exists even on freestanding compilers. */
26922#ifdef __STDC__
26923# include <limits.h>
26924#else
26925# include <assert.h>
26926#endif
4f14bcd8 26927/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26928#ifdef __cplusplus
26929extern "C"
26930{
26931#endif
4f14bcd8 26932/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
26933 builtin and then its argument prototype would still apply. */
26934char $ac_func ();
7a30264c
VZ
26935/* The GNU C library defines this for functions which it implements
26936 to always fail with ENOSYS. Some functions are actually named
26937 something starting with __ and the normal name is an alias. */
26938#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26939choke me
26940#else
e6cc62c6
VS
26941char (*f) () = $ac_func;
26942#endif
26943#ifdef __cplusplus
26944}
7a30264c
VZ
26945#endif
26946
e6cc62c6
VS
26947int
26948main ()
26949{
26950return f != $ac_func;
26951 ;
26952 return 0;
26953}
26954_ACEOF
26955rm -f conftest.$ac_objext conftest$ac_exeext
26956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 26957 (eval $ac_link) 2>&5
e6cc62c6
VS
26958 ac_status=$?
26959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26960 (exit $ac_status); } &&
789c5f4a 26961 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26963 (eval $ac_try) 2>&5
26964 ac_status=$?
26965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26966 (exit $ac_status); }; }; then
26967 eval "$as_ac_var=yes"
26968else
26969 echo "$as_me: failed program was:" >&5
26970sed 's/^/| /' conftest.$ac_ext >&5
26971
26972eval "$as_ac_var=no"
26973fi
789c5f4a 26974rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
26975fi
26976echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26977echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26978if test `eval echo '${'$as_ac_var'}'` = yes; then
26979 cat >>confdefs.h <<_ACEOF
26980#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26981_ACEOF
d74f4b5a 26982 WCSLEN_FOUND=1
7a30264c
VZ
26983fi
26984done
9d8deca0 26985
8284b0c5 26986
d74f4b5a 26987 if test "$WCSLEN_FOUND" = 0; then
7a30264c 26988 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
26989 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
26990echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
26991if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
26992 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 26993else
e6cc62c6 26994 ac_check_lib_save_LIBS=$LIBS
7a30264c 26995LIBS="-lmsvcrt $LIBS"
e6cc62c6 26996cat >conftest.$ac_ext <<_ACEOF
789c5f4a 26997#line $LINENO "configure"
e6cc62c6
VS
26998/* confdefs.h. */
26999_ACEOF
27000cat confdefs.h >>conftest.$ac_ext
27001cat >>conftest.$ac_ext <<_ACEOF
27002/* end confdefs.h. */
27003
4f14bcd8 27004/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27005#ifdef __cplusplus
27006extern "C"
27007#endif
4f14bcd8 27008/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27009 builtin and then its argument prototype would still apply. */
27010char wcslen ();
27011int
27012main ()
27013{
27014wcslen ();
27015 ;
27016 return 0;
27017}
27018_ACEOF
27019rm -f conftest.$ac_objext conftest$ac_exeext
27020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 27021 (eval $ac_link) 2>&5
e6cc62c6
VS
27022 ac_status=$?
27023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27024 (exit $ac_status); } &&
789c5f4a 27025 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27027 (eval $ac_try) 2>&5
27028 ac_status=$?
27029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); }; }; then
27031 ac_cv_lib_msvcrt_wcslen=yes
27032else
27033 echo "$as_me: failed program was:" >&5
27034sed 's/^/| /' conftest.$ac_ext >&5
27035
27036ac_cv_lib_msvcrt_wcslen=no
27037fi
789c5f4a 27038rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27039LIBS=$ac_check_lib_save_LIBS
27040fi
27041echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
27042echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
27043if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 27044 WCHAR_OK=1
d29b553b 27045fi
698dcdb6 27046
7a30264c 27047 else
e6cc62c6
VS
27048 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
27049echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
27050if test "${ac_cv_lib_w_wcslen+set}" = set; then
27051 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 27052else
e6cc62c6 27053 ac_check_lib_save_LIBS=$LIBS
7a30264c 27054LIBS="-lw $LIBS"
e6cc62c6 27055cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27056#line $LINENO "configure"
e6cc62c6
VS
27057/* confdefs.h. */
27058_ACEOF
27059cat confdefs.h >>conftest.$ac_ext
27060cat >>conftest.$ac_ext <<_ACEOF
27061/* end confdefs.h. */
27062
4f14bcd8 27063/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27064#ifdef __cplusplus
27065extern "C"
27066#endif
4f14bcd8 27067/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27068 builtin and then its argument prototype would still apply. */
27069char wcslen ();
27070int
27071main ()
27072{
27073wcslen ();
27074 ;
27075 return 0;
27076}
27077_ACEOF
27078rm -f conftest.$ac_objext conftest$ac_exeext
27079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 27080 (eval $ac_link) 2>&5
e6cc62c6
VS
27081 ac_status=$?
27082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27083 (exit $ac_status); } &&
789c5f4a 27084 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27086 (eval $ac_try) 2>&5
27087 ac_status=$?
27088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27089 (exit $ac_status); }; }; then
27090 ac_cv_lib_w_wcslen=yes
27091else
27092 echo "$as_me: failed program was:" >&5
27093sed 's/^/| /' conftest.$ac_ext >&5
27094
27095ac_cv_lib_w_wcslen=no
27096fi
789c5f4a 27097rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27098LIBS=$ac_check_lib_save_LIBS
27099fi
27100echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
27101echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
27102if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 27103
7a30264c 27104 WCHAR_LINK=" -lw"
d74f4b5a 27105 WCSLEN_FOUND=1
e6cc62c6 27106
4f14bcd8 27107fi
10f2d63a 27108
7a30264c 27109 fi
d29b553b 27110 fi
95c8801c 27111
d74f4b5a 27112 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 27113 cat >>confdefs.h <<\_ACEOF
d74f4b5a 27114#define HAVE_WCSLEN 1
e6cc62c6 27115_ACEOF
10f2d63a 27116
d74f4b5a 27117 fi
52127426 27118
e6cc62c6
VS
27119
27120for ac_func in wcsrtombs
eb4efbdc 27121do
e6cc62c6
VS
27122as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27123echo "$as_me:$LINENO: checking for $ac_func" >&5
27124echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27125if eval "test \"\${$as_ac_var+set}\" = set"; then
27126 echo $ECHO_N "(cached) $ECHO_C" >&6
27127else
27128 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27129#line $LINENO "configure"
e6cc62c6
VS
27130/* confdefs.h. */
27131_ACEOF
27132cat confdefs.h >>conftest.$ac_ext
27133cat >>conftest.$ac_ext <<_ACEOF
27134/* end confdefs.h. */
eb4efbdc 27135/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27136 which can conflict with char $ac_func (); below.
27137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27138 <limits.h> exists even on freestanding compilers. */
27139#ifdef __STDC__
27140# include <limits.h>
27141#else
27142# include <assert.h>
27143#endif
eb4efbdc 27144/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27145#ifdef __cplusplus
27146extern "C"
27147{
27148#endif
4f14bcd8 27149/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27150 builtin and then its argument prototype would still apply. */
27151char $ac_func ();
10f2d63a
VZ
27152/* The GNU C library defines this for functions which it implements
27153 to always fail with ENOSYS. Some functions are actually named
27154 something starting with __ and the normal name is an alias. */
247f5006 27155#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
27156choke me
27157#else
e6cc62c6
VS
27158char (*f) () = $ac_func;
27159#endif
27160#ifdef __cplusplus
27161}
10f2d63a
VZ
27162#endif
27163
e6cc62c6
VS
27164int
27165main ()
27166{
27167return f != $ac_func;
27168 ;
27169 return 0;
27170}
27171_ACEOF
27172rm -f conftest.$ac_objext conftest$ac_exeext
27173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 27174 (eval $ac_link) 2>&5
e6cc62c6
VS
27175 ac_status=$?
27176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); } &&
789c5f4a 27178 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27180 (eval $ac_try) 2>&5
27181 ac_status=$?
27182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183 (exit $ac_status); }; }; then
27184 eval "$as_ac_var=yes"
27185else
27186 echo "$as_me: failed program was:" >&5
27187sed 's/^/| /' conftest.$ac_ext >&5
27188
27189eval "$as_ac_var=no"
27190fi
789c5f4a 27191rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27192fi
27193echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27194echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27195if test `eval echo '${'$as_ac_var'}'` = yes; then
27196 cat >>confdefs.h <<_ACEOF
27197#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27198_ACEOF
270a909e 27199
4f14bcd8 27200fi
247f5006 27201done
1e487827 27202
af15babd 27203else
e6cc62c6
VS
27204 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
27205echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 27206fi
52127426 27207
8284b0c5 27208
e6cc62c6
VS
27209
27210ac_ext=cc
247f5006 27211ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27212ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27213ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27214ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27215
af15babd 27216
247f5006
VZ
27217
27218for ac_func in vsnprintf
27219do
e6cc62c6
VS
27220as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27221echo "$as_me:$LINENO: checking for $ac_func" >&5
27222echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27223if eval "test \"\${$as_ac_var+set}\" = set"; then
27224 echo $ECHO_N "(cached) $ECHO_C" >&6
27225else
27226 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27227#line $LINENO "configure"
e6cc62c6
VS
27228/* confdefs.h. */
27229_ACEOF
27230cat confdefs.h >>conftest.$ac_ext
27231cat >>conftest.$ac_ext <<_ACEOF
27232/* end confdefs.h. */
247f5006 27233/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27234 which can conflict with char $ac_func (); below.
27235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27236 <limits.h> exists even on freestanding compilers. */
27237#ifdef __STDC__
27238# include <limits.h>
27239#else
27240# include <assert.h>
27241#endif
247f5006
VZ
27242/* Override any gcc2 internal prototype to avoid an error. */
27243#ifdef __cplusplus
27244extern "C"
e6cc62c6 27245{
247f5006
VZ
27246#endif
27247/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27248 builtin and then its argument prototype would still apply. */
27249char $ac_func ();
247f5006
VZ
27250/* The GNU C library defines this for functions which it implements
27251 to always fail with ENOSYS. Some functions are actually named
27252 something starting with __ and the normal name is an alias. */
27253#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27254choke me
27255#else
e6cc62c6
VS
27256char (*f) () = $ac_func;
27257#endif
27258#ifdef __cplusplus
27259}
247f5006 27260#endif
af15babd 27261
e6cc62c6
VS
27262int
27263main ()
27264{
27265return f != $ac_func;
27266 ;
27267 return 0;
27268}
27269_ACEOF
27270rm -f conftest.$ac_objext conftest$ac_exeext
27271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 27272 (eval $ac_link) 2>&5
e6cc62c6
VS
27273 ac_status=$?
27274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27275 (exit $ac_status); } &&
789c5f4a 27276 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27278 (eval $ac_try) 2>&5
27279 ac_status=$?
27280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27281 (exit $ac_status); }; }; then
27282 eval "$as_ac_var=yes"
27283else
27284 echo "$as_me: failed program was:" >&5
27285sed 's/^/| /' conftest.$ac_ext >&5
27286
27287eval "$as_ac_var=no"
27288fi
789c5f4a 27289rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27290fi
27291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27292echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27293if test `eval echo '${'$as_ac_var'}'` = yes; then
27294 cat >>confdefs.h <<_ACEOF
27295#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27296_ACEOF
52127426 27297
5c6fa7d2 27298fi
247f5006 27299done
8284b0c5 27300
4f14bcd8 27301
8d90d2f2 27302if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
27303 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
27304echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
27305if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
27306 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 27307else
e6cc62c6
VS
27308
27309 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27310#line $LINENO "configure"
e6cc62c6
VS
27311/* confdefs.h. */
27312_ACEOF
27313cat confdefs.h >>conftest.$ac_ext
27314cat >>conftest.$ac_ext <<_ACEOF
27315/* end confdefs.h. */
8d90d2f2
VZ
27316
27317 #include <stdio.h>
27318 #include <stdarg.h>
e6cc62c6
VS
27319
27320int
27321main ()
27322{
8d90d2f2
VZ
27323
27324 char *buf;
27325 va_list ap;
27326 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
27327
27328 ;
27329 return 0;
27330}
27331_ACEOF
27332rm -f conftest.$ac_objext
27333if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 27334 (eval $ac_compile) 2>&5
e6cc62c6
VS
27335 ac_status=$?
27336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27337 (exit $ac_status); } &&
789c5f4a 27338 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27340 (eval $ac_try) 2>&5
27341 ac_status=$?
27342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27343 (exit $ac_status); }; }; then
8d90d2f2
VZ
27344 wx_cv_func_vsnprintf_decl=yes
27345else
e6cc62c6
VS
27346 echo "$as_me: failed program was:" >&5
27347sed 's/^/| /' conftest.$ac_ext >&5
27348
27349wx_cv_func_vsnprintf_decl=no
27350
8d90d2f2 27351fi
789c5f4a 27352rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 27353
8d90d2f2 27354
e6cc62c6
VS
27355fi
27356echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
27357echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
27358
27359 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 27360 cat >>confdefs.h <<\_ACEOF
8d90d2f2 27361#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 27362_ACEOF
8d90d2f2
VZ
27363
27364 fi
27365fi
27366
247f5006 27367if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
27368
27369
27370
27371for ac_func in fputwc wprintf vswprintf
d74f4b5a 27372do
e6cc62c6
VS
27373as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27374echo "$as_me:$LINENO: checking for $ac_func" >&5
27375echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27376if eval "test \"\${$as_ac_var+set}\" = set"; then
27377 echo $ECHO_N "(cached) $ECHO_C" >&6
27378else
27379 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27380#line $LINENO "configure"
e6cc62c6
VS
27381/* confdefs.h. */
27382_ACEOF
27383cat confdefs.h >>conftest.$ac_ext
27384cat >>conftest.$ac_ext <<_ACEOF
27385/* end confdefs.h. */
d74f4b5a 27386/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27387 which can conflict with char $ac_func (); below.
27388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27389 <limits.h> exists even on freestanding compilers. */
27390#ifdef __STDC__
27391# include <limits.h>
27392#else
27393# include <assert.h>
27394#endif
d74f4b5a 27395/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
27396#ifdef __cplusplus
27397extern "C"
e6cc62c6 27398{
247f5006 27399#endif
d74f4b5a 27400/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27401 builtin and then its argument prototype would still apply. */
27402char $ac_func ();
d74f4b5a
VZ
27403/* The GNU C library defines this for functions which it implements
27404 to always fail with ENOSYS. Some functions are actually named
27405 something starting with __ and the normal name is an alias. */
27406#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27407choke me
27408#else
e6cc62c6
VS
27409char (*f) () = $ac_func;
27410#endif
27411#ifdef __cplusplus
27412}
d74f4b5a
VZ
27413#endif
27414
e6cc62c6
VS
27415int
27416main ()
27417{
27418return f != $ac_func;
27419 ;
27420 return 0;
27421}
27422_ACEOF
27423rm -f conftest.$ac_objext conftest$ac_exeext
27424if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 27425 (eval $ac_link) 2>&5
e6cc62c6
VS
27426 ac_status=$?
27427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27428 (exit $ac_status); } &&
789c5f4a 27429 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27431 (eval $ac_try) 2>&5
27432 ac_status=$?
27433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27434 (exit $ac_status); }; }; then
27435 eval "$as_ac_var=yes"
27436else
27437 echo "$as_me: failed program was:" >&5
27438sed 's/^/| /' conftest.$ac_ext >&5
27439
27440eval "$as_ac_var=no"
27441fi
789c5f4a 27442rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27443fi
27444echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27445echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27446if test `eval echo '${'$as_ac_var'}'` = yes; then
27447 cat >>confdefs.h <<_ACEOF
27448#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27449_ACEOF
d74f4b5a 27450
d74f4b5a
VZ
27451fi
27452done
27453
8d90d2f2 27454
e6cc62c6
VS
27455 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
27456echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
27457 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27458#line $LINENO "configure"
e6cc62c6
VS
27459/* confdefs.h. */
27460_ACEOF
27461cat confdefs.h >>conftest.$ac_ext
27462cat >>conftest.$ac_ext <<_ACEOF
27463/* end confdefs.h. */
79668cae 27464#include <wchar.h>
e6cc62c6
VS
27465int
27466main ()
27467{
79668cae 27468&_vsnwprintf;
e6cc62c6
VS
27469 ;
27470 return 0;
27471}
27472_ACEOF
27473rm -f conftest.$ac_objext
27474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 27475 (eval $ac_compile) 2>&5
e6cc62c6
VS
27476 ac_status=$?
27477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27478 (exit $ac_status); } &&
789c5f4a 27479 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27481 (eval $ac_try) 2>&5
27482 ac_status=$?
27483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27484 (exit $ac_status); }; }; then
27485 echo "$as_me:$LINENO: result: yes" >&5
27486echo "${ECHO_T}yes" >&6
27487 cat >>confdefs.h <<\_ACEOF
79668cae 27488#define HAVE__VSNWPRINTF 1
e6cc62c6 27489_ACEOF
79668cae
MB
27490
27491else
e6cc62c6
VS
27492 echo "$as_me: failed program was:" >&5
27493sed 's/^/| /' conftest.$ac_ext >&5
27494
27495echo "$as_me:$LINENO: result: no" >&5
27496echo "${ECHO_T}no" >&6
79668cae 27497fi
789c5f4a 27498rm -f conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
27499fi
27500
247f5006
VZ
27501ac_ext=c
27502ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27505ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
27506
27507
27508
27509
4f14bcd8 27510if test "$TOOLKIT" != "MSW"; then
af15babd 27511
8284b0c5
MB
27512
27513
e6cc62c6
VS
27514
27515ac_ext=cc
4f14bcd8 27516ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27517ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27518ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27519ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 27520
52127426 27521
e6cc62c6
VS
27522
27523
27524# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
27525if test "${with_libiconv_prefix+set}" = set; then
27526 withval="$with_libiconv_prefix"
e6cc62c6 27527
b040e242
VS
27528 for dir in `echo "$withval" | tr : ' '`; do
27529 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
27530 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
27531 done
b040e242 27532
e6cc62c6 27533fi;
b040e242 27534
e6cc62c6
VS
27535 echo "$as_me:$LINENO: checking for iconv" >&5
27536echo $ECHO_N "checking for iconv... $ECHO_C" >&6
27537if test "${am_cv_func_iconv+set}" = set; then
27538 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 27539else
e6cc62c6 27540
b040e242
VS
27541 am_cv_func_iconv="no, consider installing GNU libiconv"
27542 am_cv_lib_iconv=no
e6cc62c6 27543 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27544#line $LINENO "configure"
e6cc62c6
VS
27545/* confdefs.h. */
27546_ACEOF
27547cat confdefs.h >>conftest.$ac_ext
27548cat >>conftest.$ac_ext <<_ACEOF
27549/* end confdefs.h. */
b040e242 27550#include <stdlib.h>
4f14bcd8 27551#include <iconv.h>
e6cc62c6
VS
27552int
27553main ()
27554{
b040e242
VS
27555iconv_t cd = iconv_open("","");
27556 iconv(cd,NULL,NULL,NULL,NULL);
27557 iconv_close(cd);
e6cc62c6
VS
27558 ;
27559 return 0;
27560}
27561_ACEOF
27562rm -f conftest.$ac_objext conftest$ac_exeext
27563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 27564 (eval $ac_link) 2>&5
e6cc62c6
VS
27565 ac_status=$?
27566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27567 (exit $ac_status); } &&
789c5f4a 27568 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27570 (eval $ac_try) 2>&5
27571 ac_status=$?
27572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27573 (exit $ac_status); }; }; then
b040e242 27574 am_cv_func_iconv=yes
af15babd 27575else
e6cc62c6
VS
27576 echo "$as_me: failed program was:" >&5
27577sed 's/^/| /' conftest.$ac_ext >&5
27578
b040e242 27579fi
789c5f4a 27580rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
27581 if test "$am_cv_func_iconv" != yes; then
27582 am_save_LIBS="$LIBS"
27583 LIBS="$LIBS -liconv"
e6cc62c6 27584 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27585#line $LINENO "configure"
e6cc62c6
VS
27586/* confdefs.h. */
27587_ACEOF
27588cat confdefs.h >>conftest.$ac_ext
27589cat >>conftest.$ac_ext <<_ACEOF
27590/* end confdefs.h. */
b040e242
VS
27591#include <stdlib.h>
27592#include <iconv.h>
e6cc62c6
VS
27593int
27594main ()
27595{
b040e242
VS
27596iconv_t cd = iconv_open("","");
27597 iconv(cd,NULL,NULL,NULL,NULL);
27598 iconv_close(cd);
e6cc62c6
VS
27599 ;
27600 return 0;
27601}
27602_ACEOF
27603rm -f conftest.$ac_objext conftest$ac_exeext
27604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 27605 (eval $ac_link) 2>&5
e6cc62c6
VS
27606 ac_status=$?
27607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27608 (exit $ac_status); } &&
789c5f4a 27609 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27611 (eval $ac_try) 2>&5
27612 ac_status=$?
27613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27614 (exit $ac_status); }; }; then
b040e242
VS
27615 am_cv_lib_iconv=yes
27616 am_cv_func_iconv=yes
27617else
e6cc62c6
VS
27618 echo "$as_me: failed program was:" >&5
27619sed 's/^/| /' conftest.$ac_ext >&5
27620
af15babd 27621fi
789c5f4a 27622rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
b040e242
VS
27623 LIBS="$am_save_LIBS"
27624 fi
247f5006 27625
e6cc62c6
VS
27626fi
27627echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
27628echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 27629 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
27630
27631cat >>confdefs.h <<\_ACEOF
b040e242 27632#define HAVE_ICONV 1
e6cc62c6 27633_ACEOF
b040e242 27634
e6cc62c6
VS
27635 echo "$as_me:$LINENO: checking if iconv needs const" >&5
27636echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
27637if test "${wx_cv_func_iconv_const+set}" = set; then
27638 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 27639else
e6cc62c6 27640 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27641#line $LINENO "configure"
e6cc62c6
VS
27642/* confdefs.h. */
27643_ACEOF
27644cat confdefs.h >>conftest.$ac_ext
27645cat >>conftest.$ac_ext <<_ACEOF
27646/* end confdefs.h. */
b040e242
VS
27647
27648#include <stdlib.h>
27649#include <iconv.h>
27650extern
27651#ifdef __cplusplus
27652"C"
27653#endif
27654#if defined(__STDC__) || defined(__cplusplus)
27655size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
27656#else
27657size_t iconv();
27658#endif
af15babd 27659
e6cc62c6
VS
27660int
27661main ()
27662{
27663
27664 ;
27665 return 0;
27666}
27667_ACEOF
27668rm -f conftest.$ac_objext
27669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 27670 (eval $ac_compile) 2>&5
e6cc62c6
VS
27671 ac_status=$?
27672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27673 (exit $ac_status); } &&
789c5f4a 27674 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27676 (eval $ac_try) 2>&5
27677 ac_status=$?
27678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679 (exit $ac_status); }; }; then
b7043674 27680 wx_cv_func_iconv_const="no"
b040e242 27681else
e6cc62c6
VS
27682 echo "$as_me: failed program was:" >&5
27683sed 's/^/| /' conftest.$ac_ext >&5
27684
27685wx_cv_func_iconv_const="yes"
27686
247f5006 27687fi
789c5f4a 27688rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27689
e6cc62c6
VS
27690fi
27691echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
27692echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
27693
27694 iconv_const=
1c405bb5 27695 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
27696 iconv_const="const"
27697 fi
27698
e6cc62c6
VS
27699
27700cat >>confdefs.h <<_ACEOF
f09359cf 27701#define ICONV_CONST $iconv_const
e6cc62c6 27702_ACEOF
b040e242
VS
27703
27704 fi
27705 LIBICONV=
27706 if test "$am_cv_lib_iconv" = yes; then
27707 LIBICONV="-liconv"
27708 fi
e6cc62c6 27709
b040e242
VS
27710
27711LIBS="$LIBICONV $LIBS"
4f14bcd8 27712ac_ext=c
4f14bcd8 27713ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27716ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 27717
5c6fa7d2 27718
8284b0c5 27719if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
27720
27721for ac_func in sigaction
af15babd 27722do
e6cc62c6
VS
27723as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27724echo "$as_me:$LINENO: checking for $ac_func" >&5
27725echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27726if eval "test \"\${$as_ac_var+set}\" = set"; then
27727 echo $ECHO_N "(cached) $ECHO_C" >&6
27728else
27729 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27730#line $LINENO "configure"
e6cc62c6
VS
27731/* confdefs.h. */
27732_ACEOF
27733cat confdefs.h >>conftest.$ac_ext
27734cat >>conftest.$ac_ext <<_ACEOF
27735/* end confdefs.h. */
af15babd 27736/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27737 which can conflict with char $ac_func (); below.
27738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27739 <limits.h> exists even on freestanding compilers. */
27740#ifdef __STDC__
27741# include <limits.h>
27742#else
27743# include <assert.h>
27744#endif
af15babd 27745/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27746#ifdef __cplusplus
27747extern "C"
27748{
27749#endif
af15babd 27750/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27751 builtin and then its argument prototype would still apply. */
27752char $ac_func ();
af15babd
VZ
27753/* The GNU C library defines this for functions which it implements
27754 to always fail with ENOSYS. Some functions are actually named
27755 something starting with __ and the normal name is an alias. */
27756#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27757choke me
27758#else
e6cc62c6
VS
27759char (*f) () = $ac_func;
27760#endif
27761#ifdef __cplusplus
27762}
af15babd
VZ
27763#endif
27764
e6cc62c6
VS
27765int
27766main ()
27767{
27768return f != $ac_func;
27769 ;
27770 return 0;
27771}
27772_ACEOF
27773rm -f conftest.$ac_objext conftest$ac_exeext
27774if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 27775 (eval $ac_link) 2>&5
e6cc62c6
VS
27776 ac_status=$?
27777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27778 (exit $ac_status); } &&
789c5f4a 27779 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27781 (eval $ac_try) 2>&5
27782 ac_status=$?
27783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27784 (exit $ac_status); }; }; then
27785 eval "$as_ac_var=yes"
27786else
27787 echo "$as_me: failed program was:" >&5
27788sed 's/^/| /' conftest.$ac_ext >&5
27789
27790eval "$as_ac_var=no"
27791fi
789c5f4a 27792rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27793fi
27794echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27795echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27796if test `eval echo '${'$as_ac_var'}'` = yes; then
27797 cat >>confdefs.h <<_ACEOF
27798#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27799_ACEOF
7b4a847f 27800
4f14bcd8
GD
27801fi
27802done
27803
8284b0c5 27804
4f14bcd8 27805 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
27806 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
27807echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
27808 wxUSE_ON_FATAL_EXCEPTION=no
27809 fi
27810
27811 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
27812
27813
27814 ac_ext=cc
5c6fa7d2 27815ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27816ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27817ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27818ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 27819
5c6fa7d2 27820
e6cc62c6
VS
27821 echo "$as_me:$LINENO: checking for sa_handler type" >&5
27822echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
27823if test "${wx_cv_type_sa_handler+set}" = set; then
27824 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 27825else
e6cc62c6
VS
27826
27827 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27828#line $LINENO "configure"
e6cc62c6
VS
27829/* confdefs.h. */
27830_ACEOF
27831cat confdefs.h >>conftest.$ac_ext
27832cat >>conftest.$ac_ext <<_ACEOF
27833/* end confdefs.h. */
4f14bcd8 27834#include <signal.h>
e6cc62c6
VS
27835int
27836main ()
27837{
4f14bcd8
GD
27838
27839 extern void testSigHandler(int);
27840
27841 struct sigaction sa;
27842 sa.sa_handler = testSigHandler;
e6cc62c6
VS
27843
27844 ;
27845 return 0;
27846}
27847_ACEOF
27848rm -f conftest.$ac_objext
27849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 27850 (eval $ac_compile) 2>&5
e6cc62c6
VS
27851 ac_status=$?
27852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853 (exit $ac_status); } &&
789c5f4a 27854 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27856 (eval $ac_try) 2>&5
27857 ac_status=$?
27858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27859 (exit $ac_status); }; }; then
27860
4f14bcd8 27861 wx_cv_type_sa_handler=int
e6cc62c6 27862
af15babd 27863else
e6cc62c6
VS
27864 echo "$as_me: failed program was:" >&5
27865sed 's/^/| /' conftest.$ac_ext >&5
27866
27867
4f14bcd8 27868 wx_cv_type_sa_handler=void
e6cc62c6 27869
247f5006 27870fi
789c5f4a 27871rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27872
e6cc62c6
VS
27873fi
27874echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
27875echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
27876
27877 ac_ext=c
4f14bcd8 27878ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27879ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27880ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27881ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 27882
8284b0c5 27883
e6cc62c6 27884 cat >>confdefs.h <<_ACEOF
4f14bcd8 27885#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 27886_ACEOF
af15babd 27887
4f14bcd8
GD
27888 fi
27889fi
af15babd 27890
e6cc62c6
VS
27891
27892
a1d22ad7 27893for ac_func in mkstemp mktemp
af15babd 27894do
e6cc62c6
VS
27895as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27896echo "$as_me:$LINENO: checking for $ac_func" >&5
27897echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27898if eval "test \"\${$as_ac_var+set}\" = set"; then
27899 echo $ECHO_N "(cached) $ECHO_C" >&6
27900else
27901 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27902#line $LINENO "configure"
e6cc62c6
VS
27903/* confdefs.h. */
27904_ACEOF
27905cat confdefs.h >>conftest.$ac_ext
27906cat >>conftest.$ac_ext <<_ACEOF
27907/* end confdefs.h. */
af15babd 27908/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
27909 which can conflict with char $ac_func (); below.
27910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27911 <limits.h> exists even on freestanding compilers. */
27912#ifdef __STDC__
27913# include <limits.h>
27914#else
27915# include <assert.h>
27916#endif
af15babd 27917/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
27918#ifdef __cplusplus
27919extern "C"
27920{
27921#endif
af15babd 27922/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
27923 builtin and then its argument prototype would still apply. */
27924char $ac_func ();
af15babd
VZ
27925/* The GNU C library defines this for functions which it implements
27926 to always fail with ENOSYS. Some functions are actually named
27927 something starting with __ and the normal name is an alias. */
27928#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27929choke me
27930#else
e6cc62c6
VS
27931char (*f) () = $ac_func;
27932#endif
27933#ifdef __cplusplus
27934}
af15babd
VZ
27935#endif
27936
e6cc62c6
VS
27937int
27938main ()
27939{
27940return f != $ac_func;
27941 ;
27942 return 0;
27943}
27944_ACEOF
27945rm -f conftest.$ac_objext conftest$ac_exeext
27946if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 27947 (eval $ac_link) 2>&5
e6cc62c6
VS
27948 ac_status=$?
27949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950 (exit $ac_status); } &&
789c5f4a 27951 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27953 (eval $ac_try) 2>&5
27954 ac_status=$?
27955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27956 (exit $ac_status); }; }; then
27957 eval "$as_ac_var=yes"
27958else
27959 echo "$as_me: failed program was:" >&5
27960sed 's/^/| /' conftest.$ac_ext >&5
27961
27962eval "$as_ac_var=no"
27963fi
789c5f4a 27964rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27965fi
27966echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27967echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27968if test `eval echo '${'$as_ac_var'}'` = yes; then
27969 cat >>confdefs.h <<_ACEOF
27970#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27971_ACEOF
ade35f11 27972 break
ade35f11
VZ
27973fi
27974done
27975
8284b0c5 27976
e6cc62c6
VS
27977echo "$as_me:$LINENO: checking for statfs" >&5
27978echo $ECHO_N "checking for statfs... $ECHO_C" >&6
27979if test "${wx_cv_func_statfs+set}" = set; then
27980 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 27981else
e6cc62c6 27982 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 27983#line $LINENO "configure"
e6cc62c6
VS
27984/* confdefs.h. */
27985_ACEOF
27986cat confdefs.h >>conftest.$ac_ext
27987cat >>conftest.$ac_ext <<_ACEOF
27988/* end confdefs.h. */
4f14bcd8
GD
27989
27990 #if defined(__BSD__)
27991 #include <sys/param.h>
27992 #include <sys/mount.h>
27993 #else
27994 #include <sys/vfs.h>
27995 #endif
e6cc62c6
VS
27996
27997int
27998main ()
27999{
4f14bcd8
GD
28000
28001 long l;
28002 struct statfs fs;
28003 statfs("/", &fs);
28004 l = fs.f_bsize;
28005 l += fs.f_blocks;
28006 l += fs.f_bavail;
e6cc62c6
VS
28007
28008 ;
28009 return 0;
28010}
28011_ACEOF
28012rm -f conftest.$ac_objext
28013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 28014 (eval $ac_compile) 2>&5
e6cc62c6
VS
28015 ac_status=$?
28016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28017 (exit $ac_status); } &&
789c5f4a 28018 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28020 (eval $ac_try) 2>&5
28021 ac_status=$?
28022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023 (exit $ac_status); }; }; then
28024
4f14bcd8 28025 wx_cv_func_statfs=yes
e6cc62c6 28026
4f14bcd8 28027else
e6cc62c6
VS
28028 echo "$as_me: failed program was:" >&5
28029sed 's/^/| /' conftest.$ac_ext >&5
28030
28031
4f14bcd8 28032 wx_cv_func_statfs=no
e6cc62c6 28033
8284b0c5 28034
247f5006 28035fi
789c5f4a 28036rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 28037
e6cc62c6
VS
28038fi
28039echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
28040echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
28041
28042if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 28043 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 28044 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28045#define HAVE_STATFS 1
e6cc62c6 28046_ACEOF
4f14bcd8
GD
28047
28048else
e6cc62c6
VS
28049 echo "$as_me:$LINENO: checking for statvfs" >&5
28050echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
28051if test "${wx_cv_func_statvfs+set}" = set; then
28052 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 28053else
e6cc62c6 28054 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28055#line $LINENO "configure"
e6cc62c6
VS
28056/* confdefs.h. */
28057_ACEOF
28058cat confdefs.h >>conftest.$ac_ext
28059cat >>conftest.$ac_ext <<_ACEOF
28060/* end confdefs.h. */
af15babd 28061
54ab82b3
VZ
28062 #include <stddef.h>
28063 #include <sys/statvfs.h>
e6cc62c6
VS
28064
28065int
28066main ()
28067{
af15babd 28068
54ab82b3 28069 statvfs("/", NULL);
e6cc62c6
VS
28070
28071 ;
28072 return 0;
28073}
28074_ACEOF
28075rm -f conftest.$ac_objext
28076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 28077 (eval $ac_compile) 2>&5
e6cc62c6
VS
28078 ac_status=$?
28079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28080 (exit $ac_status); } &&
789c5f4a 28081 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28083 (eval $ac_try) 2>&5
28084 ac_status=$?
28085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28086 (exit $ac_status); }; }; then
54ab82b3 28087 wx_cv_func_statvfs=yes
af15babd 28088else
e6cc62c6
VS
28089 echo "$as_me: failed program was:" >&5
28090sed 's/^/| /' conftest.$ac_ext >&5
28091
28092wx_cv_func_statvfs=no
28093
247f5006 28094fi
789c5f4a 28095rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 28096
e6cc62c6
VS
28097fi
28098echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
28099echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 28100
4f14bcd8 28101 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
28102
28103
28104 ac_ext=cc
54ab82b3 28105ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28106ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28107ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28108ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
28109
28110
e6cc62c6
VS
28111 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
28112echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
28113if test "${wx_cv_type_statvfs_t+set}" = set; then
28114 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 28115else
e6cc62c6 28116 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28117#line $LINENO "configure"
e6cc62c6
VS
28118/* confdefs.h. */
28119_ACEOF
28120cat confdefs.h >>conftest.$ac_ext
28121cat >>conftest.$ac_ext <<_ACEOF
28122/* end confdefs.h. */
54ab82b3
VZ
28123
28124 #include <sys/statvfs.h>
e6cc62c6
VS
28125
28126int
28127main ()
28128{
54ab82b3
VZ
28129
28130 long l;
28131 statvfs_t fs;
28132 statvfs("/", &fs);
28133 l = fs.f_bsize;
28134 l += fs.f_blocks;
28135 l += fs.f_bavail;
e6cc62c6
VS
28136
28137 ;
28138 return 0;
28139}
28140_ACEOF
28141rm -f conftest.$ac_objext
28142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 28143 (eval $ac_compile) 2>&5
e6cc62c6
VS
28144 ac_status=$?
28145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28146 (exit $ac_status); } &&
789c5f4a 28147 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28149 (eval $ac_try) 2>&5
28150 ac_status=$?
28151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28152 (exit $ac_status); }; }; then
54ab82b3
VZ
28153 wx_cv_type_statvfs_t=statvfs_t
28154else
e6cc62c6
VS
28155 echo "$as_me: failed program was:" >&5
28156sed 's/^/| /' conftest.$ac_ext >&5
28157
28158
28159 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28160#line $LINENO "configure"
e6cc62c6
VS
28161/* confdefs.h. */
28162_ACEOF
28163cat confdefs.h >>conftest.$ac_ext
28164cat >>conftest.$ac_ext <<_ACEOF
28165/* end confdefs.h. */
54ab82b3
VZ
28166
28167 #include <sys/statvfs.h>
e6cc62c6
VS
28168
28169int
28170main ()
28171{
54ab82b3
VZ
28172
28173 long l;
65d8ef1e 28174 struct statvfs fs;
54ab82b3
VZ
28175 statvfs("/", &fs);
28176 l = fs.f_bsize;
28177 l += fs.f_blocks;
28178 l += fs.f_bavail;
e6cc62c6
VS
28179
28180 ;
28181 return 0;
28182}
28183_ACEOF
28184rm -f conftest.$ac_objext
28185if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 28186 (eval $ac_compile) 2>&5
e6cc62c6
VS
28187 ac_status=$?
28188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28189 (exit $ac_status); } &&
789c5f4a 28190 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28192 (eval $ac_try) 2>&5
28193 ac_status=$?
28194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28195 (exit $ac_status); }; }; then
54ab82b3
VZ
28196 wx_cv_type_statvfs_t="struct statvfs"
28197else
e6cc62c6
VS
28198 echo "$as_me: failed program was:" >&5
28199sed 's/^/| /' conftest.$ac_ext >&5
28200
28201wx_cv_type_statvfs_t="unknown"
28202
54ab82b3 28203fi
789c5f4a 28204rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
28205
28206
54ab82b3 28207fi
789c5f4a 28208rm -f conftest.$ac_objext conftest.$ac_ext
54ab82b3 28209
e6cc62c6
VS
28210fi
28211echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
28212echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
28213
28214 ac_ext=c
54ab82b3 28215ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28218ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
28219
28220
28221 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 28222 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28223#define HAVE_STATVFS 1
e6cc62c6 28224_ACEOF
af15babd 28225
54ab82b3 28226 fi
4f14bcd8 28227 else
54ab82b3 28228 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
28229 fi
28230fi
af15babd 28231
54ab82b3 28232if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 28233 cat >>confdefs.h <<_ACEOF
54ab82b3 28234#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 28235_ACEOF
54ab82b3
VZ
28236
28237else
e6cc62c6
VS
28238 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
28239echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
28240fi
28241
4f14bcd8 28242if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
28243
28244
28245for ac_func in fcntl flock
af15babd 28246do
e6cc62c6
VS
28247as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28248echo "$as_me:$LINENO: checking for $ac_func" >&5
28249echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28250if eval "test \"\${$as_ac_var+set}\" = set"; then
28251 echo $ECHO_N "(cached) $ECHO_C" >&6
28252else
28253 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28254#line $LINENO "configure"
e6cc62c6
VS
28255/* confdefs.h. */
28256_ACEOF
28257cat confdefs.h >>conftest.$ac_ext
28258cat >>conftest.$ac_ext <<_ACEOF
28259/* end confdefs.h. */
af15babd 28260/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28261 which can conflict with char $ac_func (); below.
28262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28263 <limits.h> exists even on freestanding compilers. */
28264#ifdef __STDC__
28265# include <limits.h>
28266#else
28267# include <assert.h>
28268#endif
af15babd 28269/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28270#ifdef __cplusplus
28271extern "C"
28272{
28273#endif
af15babd 28274/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28275 builtin and then its argument prototype would still apply. */
28276char $ac_func ();
af15babd
VZ
28277/* The GNU C library defines this for functions which it implements
28278 to always fail with ENOSYS. Some functions are actually named
28279 something starting with __ and the normal name is an alias. */
28280#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28281choke me
28282#else
e6cc62c6
VS
28283char (*f) () = $ac_func;
28284#endif
28285#ifdef __cplusplus
28286}
af15babd
VZ
28287#endif
28288
e6cc62c6
VS
28289int
28290main ()
28291{
28292return f != $ac_func;
28293 ;
28294 return 0;
28295}
28296_ACEOF
28297rm -f conftest.$ac_objext conftest$ac_exeext
28298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28299 (eval $ac_link) 2>&5
e6cc62c6
VS
28300 ac_status=$?
28301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); } &&
789c5f4a 28303 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28305 (eval $ac_try) 2>&5
28306 ac_status=$?
28307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28308 (exit $ac_status); }; }; then
28309 eval "$as_ac_var=yes"
28310else
28311 echo "$as_me: failed program was:" >&5
28312sed 's/^/| /' conftest.$ac_ext >&5
28313
28314eval "$as_ac_var=no"
28315fi
789c5f4a 28316rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28317fi
28318echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28319echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28320if test `eval echo '${'$as_ac_var'}'` = yes; then
28321 cat >>confdefs.h <<_ACEOF
28322#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28323_ACEOF
4f14bcd8 28324 break
af15babd
VZ
28325fi
28326done
28327
8284b0c5 28328
4f14bcd8 28329 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
28330 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
28331echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
28332 wxUSE_SNGLINST_CHECKER=no
28333 fi
28334fi
af15babd 28335
e6cc62c6 28336
4f14bcd8 28337for ac_func in timegm
af15babd 28338do
e6cc62c6
VS
28339as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28340echo "$as_me:$LINENO: checking for $ac_func" >&5
28341echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28342if eval "test \"\${$as_ac_var+set}\" = set"; then
28343 echo $ECHO_N "(cached) $ECHO_C" >&6
28344else
28345 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28346#line $LINENO "configure"
e6cc62c6
VS
28347/* confdefs.h. */
28348_ACEOF
28349cat confdefs.h >>conftest.$ac_ext
28350cat >>conftest.$ac_ext <<_ACEOF
28351/* end confdefs.h. */
af15babd 28352/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28353 which can conflict with char $ac_func (); below.
28354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28355 <limits.h> exists even on freestanding compilers. */
28356#ifdef __STDC__
28357# include <limits.h>
28358#else
28359# include <assert.h>
28360#endif
af15babd 28361/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28362#ifdef __cplusplus
28363extern "C"
28364{
28365#endif
af15babd 28366/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28367 builtin and then its argument prototype would still apply. */
28368char $ac_func ();
af15babd
VZ
28369/* The GNU C library defines this for functions which it implements
28370 to always fail with ENOSYS. Some functions are actually named
28371 something starting with __ and the normal name is an alias. */
247f5006
VZ
28372#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28373choke me
28374#else
e6cc62c6
VS
28375char (*f) () = $ac_func;
28376#endif
28377#ifdef __cplusplus
28378}
247f5006
VZ
28379#endif
28380
e6cc62c6
VS
28381int
28382main ()
28383{
28384return f != $ac_func;
28385 ;
28386 return 0;
28387}
28388_ACEOF
28389rm -f conftest.$ac_objext conftest$ac_exeext
28390if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28391 (eval $ac_link) 2>&5
e6cc62c6
VS
28392 ac_status=$?
28393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394 (exit $ac_status); } &&
789c5f4a 28395 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28397 (eval $ac_try) 2>&5
28398 ac_status=$?
28399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28400 (exit $ac_status); }; }; then
28401 eval "$as_ac_var=yes"
28402else
28403 echo "$as_me: failed program was:" >&5
28404sed 's/^/| /' conftest.$ac_ext >&5
28405
28406eval "$as_ac_var=no"
28407fi
789c5f4a 28408rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28409fi
28410echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28411echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28412if test `eval echo '${'$as_ac_var'}'` = yes; then
28413 cat >>confdefs.h <<_ACEOF
28414#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28415_ACEOF
703e0a69 28416
af15babd
VZ
28417fi
28418done
28419
8284b0c5 28420
e6cc62c6
VS
28421
28422
4f14bcd8 28423for ac_func in putenv setenv
10f2d63a 28424do
e6cc62c6
VS
28425as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28426echo "$as_me:$LINENO: checking for $ac_func" >&5
28427echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28428if eval "test \"\${$as_ac_var+set}\" = set"; then
28429 echo $ECHO_N "(cached) $ECHO_C" >&6
28430else
28431 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28432#line $LINENO "configure"
e6cc62c6
VS
28433/* confdefs.h. */
28434_ACEOF
28435cat confdefs.h >>conftest.$ac_ext
28436cat >>conftest.$ac_ext <<_ACEOF
28437/* end confdefs.h. */
af15babd 28438/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28439 which can conflict with char $ac_func (); below.
28440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28441 <limits.h> exists even on freestanding compilers. */
28442#ifdef __STDC__
28443# include <limits.h>
28444#else
28445# include <assert.h>
28446#endif
af15babd 28447/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28448#ifdef __cplusplus
28449extern "C"
28450{
28451#endif
af15babd 28452/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28453 builtin and then its argument prototype would still apply. */
28454char $ac_func ();
af15babd
VZ
28455/* The GNU C library defines this for functions which it implements
28456 to always fail with ENOSYS. Some functions are actually named
28457 something starting with __ and the normal name is an alias. */
28458#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28459choke me
28460#else
e6cc62c6
VS
28461char (*f) () = $ac_func;
28462#endif
28463#ifdef __cplusplus
28464}
af15babd
VZ
28465#endif
28466
e6cc62c6
VS
28467int
28468main ()
28469{
28470return f != $ac_func;
28471 ;
28472 return 0;
28473}
28474_ACEOF
28475rm -f conftest.$ac_objext conftest$ac_exeext
28476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28477 (eval $ac_link) 2>&5
e6cc62c6
VS
28478 ac_status=$?
28479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28480 (exit $ac_status); } &&
789c5f4a 28481 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28483 (eval $ac_try) 2>&5
28484 ac_status=$?
28485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28486 (exit $ac_status); }; }; then
28487 eval "$as_ac_var=yes"
28488else
28489 echo "$as_me: failed program was:" >&5
28490sed 's/^/| /' conftest.$ac_ext >&5
28491
28492eval "$as_ac_var=no"
28493fi
789c5f4a 28494rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28495fi
28496echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28497echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28498if test `eval echo '${'$as_ac_var'}'` = yes; then
28499 cat >>confdefs.h <<_ACEOF
28500#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28501_ACEOF
4f14bcd8 28502 break
af15babd 28503fi
af15babd
VZ
28504done
28505
8284b0c5 28506
4f14bcd8
GD
28507HAVE_SOME_SLEEP_FUNC=0
28508if test "$USE_BEOS" = 1; then
e6cc62c6 28509 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28510#define HAVE_SLEEP 1
e6cc62c6 28511_ACEOF
af15babd 28512
4f14bcd8 28513 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
28514fi
28515
4f14bcd8 28516if test "$USE_DARWIN" = 1; then
e6cc62c6 28517 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28518#define HAVE_USLEEP 1
e6cc62c6 28519_ACEOF
10f2d63a 28520
4f14bcd8 28521 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
28522fi
28523
4f14bcd8
GD
28524if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
28525 POSIX4_LINK=
e6cc62c6
VS
28526
28527for ac_func in nanosleep
4f14bcd8 28528do
e6cc62c6
VS
28529as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28530echo "$as_me:$LINENO: checking for $ac_func" >&5
28531echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28532if eval "test \"\${$as_ac_var+set}\" = set"; then
28533 echo $ECHO_N "(cached) $ECHO_C" >&6
28534else
28535 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28536#line $LINENO "configure"
e6cc62c6
VS
28537/* confdefs.h. */
28538_ACEOF
28539cat confdefs.h >>conftest.$ac_ext
28540cat >>conftest.$ac_ext <<_ACEOF
28541/* end confdefs.h. */
4f14bcd8 28542/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28543 which can conflict with char $ac_func (); below.
28544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28545 <limits.h> exists even on freestanding compilers. */
28546#ifdef __STDC__
28547# include <limits.h>
28548#else
28549# include <assert.h>
28550#endif
10f2d63a 28551/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28552#ifdef __cplusplus
28553extern "C"
28554{
28555#endif
10f2d63a 28556/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28557 builtin and then its argument prototype would still apply. */
28558char $ac_func ();
4f14bcd8
GD
28559/* The GNU C library defines this for functions which it implements
28560 to always fail with ENOSYS. Some functions are actually named
28561 something starting with __ and the normal name is an alias. */
28562#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28563choke me
28564#else
e6cc62c6
VS
28565char (*f) () = $ac_func;
28566#endif
28567#ifdef __cplusplus
28568}
4f14bcd8
GD
28569#endif
28570
e6cc62c6
VS
28571int
28572main ()
28573{
28574return f != $ac_func;
28575 ;
28576 return 0;
28577}
28578_ACEOF
28579rm -f conftest.$ac_objext conftest$ac_exeext
28580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28581 (eval $ac_link) 2>&5
e6cc62c6
VS
28582 ac_status=$?
28583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584 (exit $ac_status); } &&
789c5f4a 28585 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28587 (eval $ac_try) 2>&5
28588 ac_status=$?
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); }; }; then
28591 eval "$as_ac_var=yes"
28592else
28593 echo "$as_me: failed program was:" >&5
28594sed 's/^/| /' conftest.$ac_ext >&5
28595
28596eval "$as_ac_var=no"
28597fi
789c5f4a 28598rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28599fi
28600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28601echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28602if test `eval echo '${'$as_ac_var'}'` = yes; then
28603 cat >>confdefs.h <<_ACEOF
28604#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28605_ACEOF
28606 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28607#define HAVE_NANOSLEEP 1
e6cc62c6 28608_ACEOF
4f14bcd8 28609
10f2d63a 28610else
e6cc62c6
VS
28611
28612 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
28613echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
28614if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
28615 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28616else
e6cc62c6 28617 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 28618LIBS="-lposix4 $LIBS"
e6cc62c6 28619cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28620#line $LINENO "configure"
e6cc62c6
VS
28621/* confdefs.h. */
28622_ACEOF
28623cat confdefs.h >>conftest.$ac_ext
28624cat >>conftest.$ac_ext <<_ACEOF
28625/* end confdefs.h. */
28626
10f2d63a 28627/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28628#ifdef __cplusplus
28629extern "C"
28630#endif
10f2d63a 28631/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28632 builtin and then its argument prototype would still apply. */
28633char nanosleep ();
28634int
28635main ()
28636{
28637nanosleep ();
28638 ;
28639 return 0;
28640}
28641_ACEOF
28642rm -f conftest.$ac_objext conftest$ac_exeext
28643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28644 (eval $ac_link) 2>&5
e6cc62c6
VS
28645 ac_status=$?
28646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647 (exit $ac_status); } &&
789c5f4a 28648 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28650 (eval $ac_try) 2>&5
28651 ac_status=$?
28652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653 (exit $ac_status); }; }; then
28654 ac_cv_lib_posix4_nanosleep=yes
28655else
28656 echo "$as_me: failed program was:" >&5
28657sed 's/^/| /' conftest.$ac_ext >&5
28658
28659ac_cv_lib_posix4_nanosleep=no
28660fi
789c5f4a 28661rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28662LIBS=$ac_check_lib_save_LIBS
28663fi
28664echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
28665echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
28666if test $ac_cv_lib_posix4_nanosleep = yes; then
28667
28668 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28669#define HAVE_NANOSLEEP 1
e6cc62c6 28670_ACEOF
4f14bcd8 28671
3d63bc3a 28672 POSIX4_LINK=" -lposix4"
e6cc62c6 28673
10f2d63a 28674else
10f2d63a 28675
e6cc62c6
VS
28676
28677for ac_func in usleep
4f14bcd8 28678do
e6cc62c6
VS
28679as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28680echo "$as_me:$LINENO: checking for $ac_func" >&5
28681echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28682if eval "test \"\${$as_ac_var+set}\" = set"; then
28683 echo $ECHO_N "(cached) $ECHO_C" >&6
28684else
28685 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28686#line $LINENO "configure"
e6cc62c6
VS
28687/* confdefs.h. */
28688_ACEOF
28689cat confdefs.h >>conftest.$ac_ext
28690cat >>conftest.$ac_ext <<_ACEOF
28691/* end confdefs.h. */
4f14bcd8 28692/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28693 which can conflict with char $ac_func (); below.
28694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28695 <limits.h> exists even on freestanding compilers. */
28696#ifdef __STDC__
28697# include <limits.h>
28698#else
28699# include <assert.h>
28700#endif
4f14bcd8 28701/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28702#ifdef __cplusplus
28703extern "C"
28704{
28705#endif
4f14bcd8 28706/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28707 builtin and then its argument prototype would still apply. */
28708char $ac_func ();
4f14bcd8
GD
28709/* The GNU C library defines this for functions which it implements
28710 to always fail with ENOSYS. Some functions are actually named
28711 something starting with __ and the normal name is an alias. */
28712#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28713choke me
28714#else
e6cc62c6
VS
28715char (*f) () = $ac_func;
28716#endif
28717#ifdef __cplusplus
28718}
4f14bcd8
GD
28719#endif
28720
e6cc62c6
VS
28721int
28722main ()
28723{
28724return f != $ac_func;
28725 ;
28726 return 0;
28727}
28728_ACEOF
28729rm -f conftest.$ac_objext conftest$ac_exeext
28730if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28731 (eval $ac_link) 2>&5
e6cc62c6
VS
28732 ac_status=$?
28733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28734 (exit $ac_status); } &&
789c5f4a 28735 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28737 (eval $ac_try) 2>&5
28738 ac_status=$?
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); }; }; then
28741 eval "$as_ac_var=yes"
28742else
28743 echo "$as_me: failed program was:" >&5
28744sed 's/^/| /' conftest.$ac_ext >&5
28745
28746eval "$as_ac_var=no"
28747fi
789c5f4a 28748rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28749fi
28750echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28751echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28752if test `eval echo '${'$as_ac_var'}'` = yes; then
28753 cat >>confdefs.h <<_ACEOF
28754#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28755_ACEOF
28756 cat >>confdefs.h <<\_ACEOF
4f14bcd8 28757#define HAVE_USLEEP 1
e6cc62c6 28758_ACEOF
4f14bcd8 28759
698dcdb6 28760else
e6cc62c6
VS
28761 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
28762echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
28763
10f2d63a 28764fi
4f14bcd8 28765done
10f2d63a 28766
e6cc62c6
VS
28767
28768
6232543b 28769fi
10f2d63a 28770
e6cc62c6
VS
28771
28772
1e487827 28773fi
4f14bcd8 28774done
703e0a69 28775
10f2d63a
VZ
28776fi
28777
e6cc62c6
VS
28778
28779
4f14bcd8 28780for ac_func in uname gethostname
70846f0a 28781do
e6cc62c6
VS
28782as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28783echo "$as_me:$LINENO: checking for $ac_func" >&5
28784echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28785if eval "test \"\${$as_ac_var+set}\" = set"; then
28786 echo $ECHO_N "(cached) $ECHO_C" >&6
28787else
28788 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28789#line $LINENO "configure"
e6cc62c6
VS
28790/* confdefs.h. */
28791_ACEOF
28792cat confdefs.h >>conftest.$ac_ext
28793cat >>conftest.$ac_ext <<_ACEOF
28794/* end confdefs.h. */
70846f0a 28795/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28796 which can conflict with char $ac_func (); below.
28797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28798 <limits.h> exists even on freestanding compilers. */
28799#ifdef __STDC__
28800# include <limits.h>
28801#else
28802# include <assert.h>
28803#endif
70846f0a 28804/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28805#ifdef __cplusplus
28806extern "C"
28807{
28808#endif
70846f0a 28809/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28810 builtin and then its argument prototype would still apply. */
28811char $ac_func ();
70846f0a
VZ
28812/* The GNU C library defines this for functions which it implements
28813 to always fail with ENOSYS. Some functions are actually named
28814 something starting with __ and the normal name is an alias. */
28815#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28816choke me
28817#else
e6cc62c6
VS
28818char (*f) () = $ac_func;
28819#endif
28820#ifdef __cplusplus
28821}
70846f0a
VZ
28822#endif
28823
e6cc62c6
VS
28824int
28825main ()
28826{
28827return f != $ac_func;
28828 ;
28829 return 0;
28830}
28831_ACEOF
28832rm -f conftest.$ac_objext conftest$ac_exeext
28833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28834 (eval $ac_link) 2>&5
e6cc62c6
VS
28835 ac_status=$?
28836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28837 (exit $ac_status); } &&
789c5f4a 28838 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28840 (eval $ac_try) 2>&5
28841 ac_status=$?
28842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28843 (exit $ac_status); }; }; then
28844 eval "$as_ac_var=yes"
28845else
28846 echo "$as_me: failed program was:" >&5
28847sed 's/^/| /' conftest.$ac_ext >&5
28848
28849eval "$as_ac_var=no"
28850fi
789c5f4a 28851rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28852fi
28853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28854echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28855if test `eval echo '${'$as_ac_var'}'` = yes; then
28856 cat >>confdefs.h <<_ACEOF
28857#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28858_ACEOF
4f14bcd8 28859 break
70846f0a
VZ
28860fi
28861done
28862
8284b0c5
MB
28863
28864
e6cc62c6
VS
28865
28866ac_ext=cc
4f14bcd8 28867ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28868ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28869ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28870ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28871
8284b0c5 28872
4f14bcd8
GD
28873
28874for ac_func in strtok_r
10f2d63a 28875do
e6cc62c6
VS
28876as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28877echo "$as_me:$LINENO: checking for $ac_func" >&5
28878echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28879if eval "test \"\${$as_ac_var+set}\" = set"; then
28880 echo $ECHO_N "(cached) $ECHO_C" >&6
28881else
28882 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28883#line $LINENO "configure"
e6cc62c6
VS
28884/* confdefs.h. */
28885_ACEOF
28886cat confdefs.h >>conftest.$ac_ext
28887cat >>conftest.$ac_ext <<_ACEOF
28888/* end confdefs.h. */
4f14bcd8 28889/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28890 which can conflict with char $ac_func (); below.
28891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28892 <limits.h> exists even on freestanding compilers. */
28893#ifdef __STDC__
28894# include <limits.h>
28895#else
28896# include <assert.h>
28897#endif
4f14bcd8
GD
28898/* Override any gcc2 internal prototype to avoid an error. */
28899#ifdef __cplusplus
28900extern "C"
e6cc62c6 28901{
4f14bcd8
GD
28902#endif
28903/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28904 builtin and then its argument prototype would still apply. */
28905char $ac_func ();
4f14bcd8
GD
28906/* The GNU C library defines this for functions which it implements
28907 to always fail with ENOSYS. Some functions are actually named
28908 something starting with __ and the normal name is an alias. */
28909#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28910choke me
28911#else
e6cc62c6
VS
28912char (*f) () = $ac_func;
28913#endif
28914#ifdef __cplusplus
28915}
4f14bcd8
GD
28916#endif
28917
e6cc62c6
VS
28918int
28919main ()
28920{
28921return f != $ac_func;
28922 ;
28923 return 0;
28924}
28925_ACEOF
28926rm -f conftest.$ac_objext conftest$ac_exeext
28927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 28928 (eval $ac_link) 2>&5
e6cc62c6
VS
28929 ac_status=$?
28930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28931 (exit $ac_status); } &&
789c5f4a 28932 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28934 (eval $ac_try) 2>&5
28935 ac_status=$?
28936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937 (exit $ac_status); }; }; then
28938 eval "$as_ac_var=yes"
28939else
28940 echo "$as_me: failed program was:" >&5
28941sed 's/^/| /' conftest.$ac_ext >&5
28942
28943eval "$as_ac_var=no"
28944fi
789c5f4a 28945rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28946fi
28947echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28948echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28949if test `eval echo '${'$as_ac_var'}'` = yes; then
28950 cat >>confdefs.h <<_ACEOF
28951#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28952_ACEOF
4f14bcd8 28953
10f2d63a
VZ
28954fi
28955done
28956
8284b0c5 28957
4f14bcd8 28958ac_ext=c
4f14bcd8 28959ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28962ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 28963
5c6fa7d2 28964
8284b0c5 28965INET_LINK=
e6cc62c6 28966
4f14bcd8
GD
28967for ac_func in inet_addr
28968do
e6cc62c6
VS
28969as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28970echo "$as_me:$LINENO: checking for $ac_func" >&5
28971echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28972if eval "test \"\${$as_ac_var+set}\" = set"; then
28973 echo $ECHO_N "(cached) $ECHO_C" >&6
28974else
28975 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 28976#line $LINENO "configure"
e6cc62c6
VS
28977/* confdefs.h. */
28978_ACEOF
28979cat confdefs.h >>conftest.$ac_ext
28980cat >>conftest.$ac_ext <<_ACEOF
28981/* end confdefs.h. */
4f14bcd8 28982/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28983 which can conflict with char $ac_func (); below.
28984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28985 <limits.h> exists even on freestanding compilers. */
28986#ifdef __STDC__
28987# include <limits.h>
28988#else
28989# include <assert.h>
28990#endif
10f2d63a 28991/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28992#ifdef __cplusplus
28993extern "C"
28994{
28995#endif
10f2d63a 28996/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28997 builtin and then its argument prototype would still apply. */
28998char $ac_func ();
4f14bcd8
GD
28999/* The GNU C library defines this for functions which it implements
29000 to always fail with ENOSYS. Some functions are actually named
29001 something starting with __ and the normal name is an alias. */
29002#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29003choke me
29004#else
e6cc62c6
VS
29005char (*f) () = $ac_func;
29006#endif
29007#ifdef __cplusplus
29008}
4f14bcd8
GD
29009#endif
29010
e6cc62c6
VS
29011int
29012main ()
29013{
29014return f != $ac_func;
29015 ;
29016 return 0;
29017}
29018_ACEOF
29019rm -f conftest.$ac_objext conftest$ac_exeext
29020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 29021 (eval $ac_link) 2>&5
e6cc62c6
VS
29022 ac_status=$?
29023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024 (exit $ac_status); } &&
789c5f4a 29025 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29027 (eval $ac_try) 2>&5
29028 ac_status=$?
29029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030 (exit $ac_status); }; }; then
29031 eval "$as_ac_var=yes"
29032else
29033 echo "$as_me: failed program was:" >&5
29034sed 's/^/| /' conftest.$ac_ext >&5
29035
29036eval "$as_ac_var=no"
29037fi
789c5f4a 29038rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29039fi
29040echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29041echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29042if test `eval echo '${'$as_ac_var'}'` = yes; then
29043 cat >>confdefs.h <<_ACEOF
29044#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29045_ACEOF
29046 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29047#define HAVE_INET_ADDR 1
e6cc62c6 29048_ACEOF
10f2d63a
VZ
29049
29050else
e6cc62c6
VS
29051
29052 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
29053echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
29054if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
29055 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 29056else
e6cc62c6 29057 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29058LIBS="-lnsl $LIBS"
e6cc62c6 29059cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29060#line $LINENO "configure"
e6cc62c6
VS
29061/* confdefs.h. */
29062_ACEOF
29063cat confdefs.h >>conftest.$ac_ext
29064cat >>conftest.$ac_ext <<_ACEOF
29065/* end confdefs.h. */
29066
10f2d63a 29067/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29068#ifdef __cplusplus
29069extern "C"
29070#endif
10f2d63a 29071/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29072 builtin and then its argument prototype would still apply. */
29073char inet_addr ();
29074int
29075main ()
29076{
29077inet_addr ();
29078 ;
29079 return 0;
29080}
29081_ACEOF
29082rm -f conftest.$ac_objext conftest$ac_exeext
29083if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 29084 (eval $ac_link) 2>&5
e6cc62c6
VS
29085 ac_status=$?
29086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29087 (exit $ac_status); } &&
789c5f4a 29088 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29090 (eval $ac_try) 2>&5
29091 ac_status=$?
29092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); }; }; then
29094 ac_cv_lib_nsl_inet_addr=yes
29095else
29096 echo "$as_me: failed program was:" >&5
29097sed 's/^/| /' conftest.$ac_ext >&5
29098
29099ac_cv_lib_nsl_inet_addr=no
29100fi
789c5f4a 29101rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29102LIBS=$ac_check_lib_save_LIBS
29103fi
29104echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
29105echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
29106if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 29107 INET_LINK="nsl"
10f2d63a 29108else
0e012a93
VZ
29109
29110 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
e6cc62c6
VS
29111echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
29112if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
29113 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 29114else
e6cc62c6 29115 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 29116LIBS="-lresolv $LIBS"
e6cc62c6 29117cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29118#line $LINENO "configure"
e6cc62c6
VS
29119/* confdefs.h. */
29120_ACEOF
29121cat confdefs.h >>conftest.$ac_ext
29122cat >>conftest.$ac_ext <<_ACEOF
29123/* end confdefs.h. */
29124
5c6fa7d2 29125/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29126#ifdef __cplusplus
29127extern "C"
29128#endif
5c6fa7d2 29129/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29130 builtin and then its argument prototype would still apply. */
29131char inet_addr ();
29132int
29133main ()
29134{
29135inet_addr ();
29136 ;
29137 return 0;
29138}
29139_ACEOF
29140rm -f conftest.$ac_objext conftest$ac_exeext
29141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 29142 (eval $ac_link) 2>&5
e6cc62c6
VS
29143 ac_status=$?
29144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29145 (exit $ac_status); } &&
789c5f4a 29146 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29148 (eval $ac_try) 2>&5
29149 ac_status=$?
29150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151 (exit $ac_status); }; }; then
29152 ac_cv_lib_resolv_inet_addr=yes
29153else
29154 echo "$as_me: failed program was:" >&5
29155sed 's/^/| /' conftest.$ac_ext >&5
29156
29157ac_cv_lib_resolv_inet_addr=no
29158fi
789c5f4a 29159rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29160LIBS=$ac_check_lib_save_LIBS
29161fi
29162echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
29163echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
29164if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 29165 INET_LINK="resolv"
698dcdb6 29166else
0e012a93
VZ
29167
29168 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
e6cc62c6
VS
29169echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
29170if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
29171 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 29172else
e6cc62c6 29173 ac_check_lib_save_LIBS=$LIBS
3c011993 29174LIBS="-lsocket $LIBS"
e6cc62c6 29175cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29176#line $LINENO "configure"
e6cc62c6
VS
29177/* confdefs.h. */
29178_ACEOF
29179cat confdefs.h >>conftest.$ac_ext
29180cat >>conftest.$ac_ext <<_ACEOF
29181/* end confdefs.h. */
29182
3c011993 29183/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29184#ifdef __cplusplus
29185extern "C"
29186#endif
3c011993 29187/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29188 builtin and then its argument prototype would still apply. */
29189char inet_addr ();
29190int
29191main ()
29192{
29193inet_addr ();
29194 ;
29195 return 0;
29196}
29197_ACEOF
29198rm -f conftest.$ac_objext conftest$ac_exeext
29199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 29200 (eval $ac_link) 2>&5
e6cc62c6
VS
29201 ac_status=$?
29202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203 (exit $ac_status); } &&
789c5f4a 29204 { ac_try='test -s conftest$ac_exeext'
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 ac_cv_lib_socket_inet_addr=yes
29211else
29212 echo "$as_me: failed program was:" >&5
29213sed 's/^/| /' conftest.$ac_ext >&5
29214
29215ac_cv_lib_socket_inet_addr=no
29216fi
789c5f4a 29217rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29218LIBS=$ac_check_lib_save_LIBS
29219fi
29220echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
29221echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
29222if test $ac_cv_lib_socket_inet_addr = yes; then
29223 INET_LINK="socket"
4f14bcd8 29224
8284b0c5 29225fi
e6cc62c6 29226
698dcdb6 29227
0e012a93 29228
7b4a847f 29229fi
e6cc62c6
VS
29230
29231
0e012a93 29232
a0b9e27f 29233fi
579d8138 29234
e6cc62c6
VS
29235
29236
5c6fa7d2 29237fi
e6cc62c6
VS
29238done
29239
29240
29241
29242for ac_func in inet_aton
29243do
29244as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29245echo "$as_me:$LINENO: checking for $ac_func" >&5
29246echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29247if eval "test \"\${$as_ac_var+set}\" = set"; then
29248 echo $ECHO_N "(cached) $ECHO_C" >&6
29249else
29250 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29251#line $LINENO "configure"
e6cc62c6
VS
29252/* confdefs.h. */
29253_ACEOF
29254cat confdefs.h >>conftest.$ac_ext
29255cat >>conftest.$ac_ext <<_ACEOF
29256/* end confdefs.h. */
29257/* System header to define __stub macros and hopefully few prototypes,
29258 which can conflict with char $ac_func (); below.
29259 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29260 <limits.h> exists even on freestanding compilers. */
29261#ifdef __STDC__
29262# include <limits.h>
29263#else
29264# include <assert.h>
29265#endif
29266/* Override any gcc2 internal prototype to avoid an error. */
29267#ifdef __cplusplus
29268extern "C"
29269{
29270#endif
29271/* We use char because int might match the return type of a gcc2
29272 builtin and then its argument prototype would still apply. */
29273char $ac_func ();
29274/* The GNU C library defines this for functions which it implements
29275 to always fail with ENOSYS. Some functions are actually named
29276 something starting with __ and the normal name is an alias. */
29277#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29278choke me
29279#else
29280char (*f) () = $ac_func;
29281#endif
29282#ifdef __cplusplus
29283}
29284#endif
29285
29286int
29287main ()
29288{
29289return f != $ac_func;
29290 ;
29291 return 0;
29292}
29293_ACEOF
29294rm -f conftest.$ac_objext conftest$ac_exeext
29295if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 29296 (eval $ac_link) 2>&5
e6cc62c6
VS
29297 ac_status=$?
29298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29299 (exit $ac_status); } &&
789c5f4a 29300 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29302 (eval $ac_try) 2>&5
29303 ac_status=$?
29304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29305 (exit $ac_status); }; }; then
29306 eval "$as_ac_var=yes"
29307else
29308 echo "$as_me: failed program was:" >&5
29309sed 's/^/| /' conftest.$ac_ext >&5
29310
29311eval "$as_ac_var=no"
29312fi
789c5f4a 29313rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29314fi
29315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29316echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29317if test `eval echo '${'$as_ac_var'}'` = yes; then
29318 cat >>confdefs.h <<_ACEOF
29319#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29320_ACEOF
29321 cat >>confdefs.h <<\_ACEOF
29322#define HAVE_INET_ATON 1
29323_ACEOF
29324
29325else
29326
29327 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
29328echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
29329echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
29330if eval "test \"\${$as_ac_Lib+set}\" = set"; then
29331 echo $ECHO_N "(cached) $ECHO_C" >&6
29332else
29333 ac_check_lib_save_LIBS=$LIBS
29334LIBS="-l$INET_LINK $LIBS"
29335cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29336#line $LINENO "configure"
e6cc62c6
VS
29337/* confdefs.h. */
29338_ACEOF
29339cat confdefs.h >>conftest.$ac_ext
29340cat >>conftest.$ac_ext <<_ACEOF
29341/* end confdefs.h. */
29342
29343/* Override any gcc2 internal prototype to avoid an error. */
29344#ifdef __cplusplus
29345extern "C"
29346#endif
29347/* We use char because int might match the return type of a gcc2
29348 builtin and then its argument prototype would still apply. */
29349char inet_aton ();
29350int
29351main ()
29352{
29353inet_aton ();
29354 ;
29355 return 0;
29356}
29357_ACEOF
29358rm -f conftest.$ac_objext conftest$ac_exeext
29359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 29360 (eval $ac_link) 2>&5
e6cc62c6
VS
29361 ac_status=$?
29362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29363 (exit $ac_status); } &&
789c5f4a 29364 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29366 (eval $ac_try) 2>&5
29367 ac_status=$?
29368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29369 (exit $ac_status); }; }; then
29370 eval "$as_ac_Lib=yes"
29371else
29372 echo "$as_me: failed program was:" >&5
29373sed 's/^/| /' conftest.$ac_ext >&5
29374
29375eval "$as_ac_Lib=no"
29376fi
789c5f4a 29377rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29378LIBS=$ac_check_lib_save_LIBS
29379fi
29380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
29381echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
29382if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29383 cat >>confdefs.h <<\_ACEOF
29384#define HAVE_INET_ATON 1
29385_ACEOF
52127426 29386
a0b9e27f 29387fi
247f5006 29388
8284b0c5 29389
698dcdb6 29390fi
4f14bcd8
GD
29391done
29392
8284b0c5 29393
e6cc62c6
VS
29394if test "x$INET_LINK" != "x"; then
29395 cat >>confdefs.h <<\_ACEOF
29396#define HAVE_INET_ADDR 1
29397_ACEOF
29398
29399 INET_LINK=" -l$INET_LINK"
29400fi
29401
29402fi
a0b9e27f 29403
a0b9e27f 29404
4f14bcd8 29405
edd891e2
VS
29406EXTRALIBS_ESD=
29407echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
29408echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
29409if test "${ac_cv_lib_esd_esd_close+set}" = set; then
29410 echo $ECHO_N "(cached) $ECHO_C" >&6
29411else
29412 ac_check_lib_save_LIBS=$LIBS
29413LIBS="-lesd $LIBS"
29414cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29415#line $LINENO "configure"
edd891e2
VS
29416/* confdefs.h. */
29417_ACEOF
29418cat confdefs.h >>conftest.$ac_ext
29419cat >>conftest.$ac_ext <<_ACEOF
29420/* end confdefs.h. */
29421
29422/* Override any gcc2 internal prototype to avoid an error. */
29423#ifdef __cplusplus
29424extern "C"
29425#endif
29426/* We use char because int might match the return type of a gcc2
29427 builtin and then its argument prototype would still apply. */
29428char esd_close ();
29429int
29430main ()
29431{
29432esd_close ();
29433 ;
29434 return 0;
29435}
29436_ACEOF
29437rm -f conftest.$ac_objext conftest$ac_exeext
29438if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 29439 (eval $ac_link) 2>&5
edd891e2
VS
29440 ac_status=$?
29441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29442 (exit $ac_status); } &&
789c5f4a 29443 { ac_try='test -s conftest$ac_exeext'
edd891e2
VS
29444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29445 (eval $ac_try) 2>&5
29446 ac_status=$?
29447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448 (exit $ac_status); }; }; then
29449 ac_cv_lib_esd_esd_close=yes
29450else
29451 echo "$as_me: failed program was:" >&5
29452sed 's/^/| /' conftest.$ac_ext >&5
29453
29454ac_cv_lib_esd_esd_close=no
29455fi
789c5f4a 29456rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
edd891e2
VS
29457LIBS=$ac_check_lib_save_LIBS
29458fi
29459echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
29460echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
29461if test $ac_cv_lib_esd_esd_close = yes; then
29462
29463
29464for ac_header in esd.h
29465do
29466as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29467if eval "test \"\${$as_ac_Header+set}\" = set"; then
29468 echo "$as_me:$LINENO: checking for $ac_header" >&5
29469echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29470if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
29471 echo $ECHO_N "(cached) $ECHO_C" >&6
29472fi
edd891e2
VS
29473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29474echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
e6cc62c6
VS
29475else
29476 # Is the header compilable?
edd891e2
VS
29477echo "$as_me:$LINENO: checking $ac_header usability" >&5
29478echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6 29479cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29480#line $LINENO "configure"
e6cc62c6
VS
29481/* confdefs.h. */
29482_ACEOF
29483cat confdefs.h >>conftest.$ac_ext
29484cat >>conftest.$ac_ext <<_ACEOF
29485/* end confdefs.h. */
29486$ac_includes_default
edd891e2 29487#include <$ac_header>
e6cc62c6
VS
29488_ACEOF
29489rm -f conftest.$ac_objext
29490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 29491 (eval $ac_compile) 2>&5
e6cc62c6
VS
29492 ac_status=$?
29493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29494 (exit $ac_status); } &&
789c5f4a 29495 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29497 (eval $ac_try) 2>&5
29498 ac_status=$?
29499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500 (exit $ac_status); }; }; then
29501 ac_header_compiler=yes
29502else
29503 echo "$as_me: failed program was:" >&5
29504sed 's/^/| /' conftest.$ac_ext >&5
29505
29506ac_header_compiler=no
29507fi
789c5f4a 29508rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
29509echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29510echo "${ECHO_T}$ac_header_compiler" >&6
29511
29512# Is the header present?
edd891e2
VS
29513echo "$as_me:$LINENO: checking $ac_header presence" >&5
29514echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
e6cc62c6 29515cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29516#line $LINENO "configure"
e6cc62c6
VS
29517/* confdefs.h. */
29518_ACEOF
29519cat confdefs.h >>conftest.$ac_ext
29520cat >>conftest.$ac_ext <<_ACEOF
29521/* end confdefs.h. */
edd891e2 29522#include <$ac_header>
e6cc62c6
VS
29523_ACEOF
29524if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29525 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29526 ac_status=$?
29527 grep -v '^ *+' conftest.er1 >conftest.err
29528 rm -f conftest.er1
29529 cat conftest.err >&5
29530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29531 (exit $ac_status); } >/dev/null; then
29532 if test -s conftest.err; then
29533 ac_cpp_err=$ac_c_preproc_warn_flag
29534 else
29535 ac_cpp_err=
29536 fi
a0b9e27f 29537else
e6cc62c6
VS
29538 ac_cpp_err=yes
29539fi
29540if test -z "$ac_cpp_err"; then
29541 ac_header_preproc=yes
29542else
29543 echo "$as_me: failed program was:" >&5
29544sed 's/^/| /' conftest.$ac_ext >&5
29545
29546 ac_header_preproc=no
29547fi
29548rm -f conftest.err conftest.$ac_ext
29549echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29550echo "${ECHO_T}$ac_header_preproc" >&6
29551
29552# So? What about this header?
789c5f4a
VZ
29553case $ac_header_compiler:$ac_header_preproc in
29554 yes:no )
edd891e2
VS
29555 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29556echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
29557 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29558echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29559 (
29560 cat <<\_ASBOX
29561## ------------------------------------ ##
29562## Report this to bug-autoconf@gnu.org. ##
29563## ------------------------------------ ##
29564_ASBOX
29565 ) |
29566 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 29567 ;;
789c5f4a 29568 no:yes )
edd891e2
VS
29569 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29570echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
29571 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29572echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
edd891e2
VS
29573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29574echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
e6cc62c6
VS
29575 (
29576 cat <<\_ASBOX
789c5f4a
VZ
29577## ------------------------------------ ##
29578## Report this to bug-autoconf@gnu.org. ##
29579## ------------------------------------ ##
e6cc62c6
VS
29580_ASBOX
29581 ) |
29582 sed "s/^/$as_me: WARNING: /" >&2
29583 ;;
29584esac
edd891e2
VS
29585echo "$as_me:$LINENO: checking for $ac_header" >&5
29586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29587if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
29588 echo $ECHO_N "(cached) $ECHO_C" >&6
29589else
789c5f4a 29590 eval "$as_ac_Header=$ac_header_preproc"
a0b9e27f 29591fi
edd891e2
VS
29592echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29593echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a0b9e27f 29594
e6cc62c6 29595fi
edd891e2
VS
29596if test `eval echo '${'$as_ac_Header'}'` = yes; then
29597 cat >>confdefs.h <<_ACEOF
29598#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e6cc62c6 29599_ACEOF
e6cc62c6 29600
edd891e2 29601 EXTRALIBS_ESD="-lesd"
4f14bcd8 29602
a0b9e27f 29603fi
247f5006 29604
edd891e2 29605done
8284b0c5 29606
4f14bcd8 29607
6232543b 29608fi
10f2d63a 29609
703e0a69 29610
8284b0c5 29611
d19d1899
MB
29612echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
29613echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
29614cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29615#line $LINENO "configure"
d19d1899
MB
29616/* confdefs.h. */
29617_ACEOF
29618cat confdefs.h >>conftest.$ac_ext
29619cat >>conftest.$ac_ext <<_ACEOF
29620/* end confdefs.h. */
29621#ifdef __linux__
29622 #include <linux/cdrom.h>
29623 #else
29624 /* For Solaris */
29625 #include <sys/cdio.h>
29626 #endif
29627
29628int
29629main ()
29630{
29631struct cdrom_tocentry entry, old_entry;
29632 ;
29633 return 0;
29634}
29635_ACEOF
29636rm -f conftest.$ac_objext
29637if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 29638 (eval $ac_compile) 2>&5
d19d1899
MB
29639 ac_status=$?
29640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29641 (exit $ac_status); } &&
789c5f4a 29642 { ac_try='test -s conftest.$ac_objext'
d19d1899
MB
29643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29644 (eval $ac_try) 2>&5
29645 ac_status=$?
29646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29647 (exit $ac_status); }; }; then
29648 echo "$as_me:$LINENO: result: yes" >&5
29649echo "${ECHO_T}yes" >&6
29650 cat >>confdefs.h <<\_ACEOF
29651#define HAVE_KNOWN_CDROM_INTERFACE 1
29652_ACEOF
29653
29654else
29655 echo "$as_me: failed program was:" >&5
29656sed 's/^/| /' conftest.$ac_ext >&5
29657
29658echo "$as_me:$LINENO: result: no" >&5
29659echo "${ECHO_T}no" >&6
29660fi
789c5f4a 29661rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
29662
29663
29664cat >confcache <<\_ACEOF
4f14bcd8
GD
29665# This file is a shell script that caches the results of configure
29666# tests run on this system so they can be shared between configure
e6cc62c6
VS
29667# scripts and configure runs, see configure's option --config-cache.
29668# It is not useful on other systems. If it contains results you don't
29669# want to keep, you may remove or edit it.
4f14bcd8 29670#
e6cc62c6
VS
29671# config.status only pays attention to the cache file if you give it
29672# the --recheck option to rerun configure.
4f14bcd8 29673#
e6cc62c6
VS
29674# `ac_cv_env_foo' variables (set or unset) will be overridden when
29675# loading this file, other *unset* `ac_cv_foo' will be assigned the
29676# following values.
29677
29678_ACEOF
29679
4f14bcd8
GD
29680# The following way of writing the cache mishandles newlines in values,
29681# but we know of no workaround that is simple, portable, and efficient.
29682# So, don't put newlines in cache variables' values.
29683# Ultrix sh set writes to stderr and can't be redirected directly,
29684# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
29685{
29686 (set) 2>&1 |
29687 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29688 *ac_space=\ *)
29689 # `set' does not quote correctly, so add quotes (double-quote
29690 # substitution turns \\\\ into \\, and sed turns \\ into \).
29691 sed -n \
789c5f4a
VZ
29692 "s/'/'\\\\''/g;
29693 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
29694 ;;
29695 *)
29696 # `set' quotes correctly as required by POSIX, so do not add quotes.
29697 sed -n \
789c5f4a 29698 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
29699 ;;
29700 esac;
29701} |
29702 sed '
29703 t clear
29704 : clear
29705 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29706 t end
29707 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29708 : end' >>confcache
29709if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 29710 if test -w $cache_file; then
e6cc62c6
VS
29711 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29712 cat confcache >$cache_file
f6bcfd97 29713 else
4f14bcd8 29714 echo "not updating unwritable cache $cache_file"
f6bcfd97 29715 fi
4f14bcd8
GD
29716fi
29717rm -f confcache
f6bcfd97 29718
8284b0c5 29719
009fead0 29720CPP_MT_FLAG=
73d617c9 29721if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
4f14bcd8 29722
e6cc62c6 29723
7274f1c7 29724 THREADS_LINK=
009fead0 29725 THREADS_CFLAGS=
7274f1c7
RL
29726
29727 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 29728 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
29729 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
29730echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
29731 wxUSE_THREADS="no"
29732 fi
4f14bcd8 29733 fi
4f14bcd8 29734
7274f1c7 29735 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
29736
29737
009fead0
VZ
29738 THREAD_OPTS="-pthread"
29739 case "${host}" in
29740 *-*-solaris2* | *-*-sunos4* )
29741 if test "x$GCC" = "xyes"; then
126be6b4 29742 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
29743 else
29744 THREAD_OPTS="-mt $THREAD_OPTS"
29745 fi
29746 ;;
29747 *-*-freebsd*)
29748 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
29749 ;;
17234b26
MB
29750 *-*-darwin* | *-*-cygwin* )
29751 THREAD_OPTS=""
4101db81 29752 ;;
8f4a9a10 29753 *-*-aix*)
009fead0
VZ
29754 THREAD_OPTS="pthreads"
29755 ;;
4f5a7f74
VZ
29756 *-hp-hpux* )
29757 if test "x$GCC" != "xyes"; then
29758 THREAD_OPTS=""
29759 fi
89e3b3e4
VZ
29760 ;;
29761
29762 *-*-irix* )
29763 if test "x$GCC" = "xyes"; then
29764 THREAD_OPTS=""
29765 fi
29766 ;;
29767
29768 *-*-*UnixWare*)
29769 if test "x$GCC" != "xyes"; then
29770 THREAD_OPTS="-Ethread"
29771 fi
29772 ;;
009fead0 29773 esac
4f14bcd8 29774
02a1dfba 29775 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 29776
009fead0
VZ
29777 THREADS_OK=no
29778 for flag in $THREAD_OPTS; do
29779 case $flag in
29780 none)
e6cc62c6
VS
29781 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
29782echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 29783 ;;
698dcdb6 29784
009fead0 29785 -*)
e6cc62c6
VS
29786 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
29787echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
29788 THREADS_CFLAGS="$flag"
29789 ;;
698dcdb6 29790
009fead0 29791 *)
e6cc62c6
VS
29792 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
29793echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
29794 THREADS_LINK="-l$flag"
29795 ;;
29796 esac
10f2d63a 29797
009fead0
VZ
29798 save_LIBS="$LIBS"
29799 save_CFLAGS="$CFLAGS"
29800 LIBS="$THREADS_LINK $LIBS"
04727afd 29801 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 29802
e6cc62c6 29803 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29804#line $LINENO "configure"
e6cc62c6
VS
29805/* confdefs.h. */
29806_ACEOF
29807cat confdefs.h >>conftest.$ac_ext
29808cat >>conftest.$ac_ext <<_ACEOF
29809/* end confdefs.h. */
009fead0 29810#include <pthread.h>
e6cc62c6
VS
29811int
29812main ()
29813{
009fead0 29814pthread_create(0,0,0,0);
e6cc62c6
VS
29815 ;
29816 return 0;
29817}
29818_ACEOF
29819rm -f conftest.$ac_objext conftest$ac_exeext
29820if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 29821 (eval $ac_link) 2>&5
e6cc62c6
VS
29822 ac_status=$?
29823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29824 (exit $ac_status); } &&
789c5f4a 29825 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29827 (eval $ac_try) 2>&5
29828 ac_status=$?
29829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29830 (exit $ac_status); }; }; then
009fead0 29831 THREADS_OK=yes
10f2d63a 29832else
e6cc62c6
VS
29833 echo "$as_me: failed program was:" >&5
29834sed 's/^/| /' conftest.$ac_ext >&5
29835
6232543b 29836fi
789c5f4a 29837rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
698dcdb6 29838
009fead0
VZ
29839 LIBS="$save_LIBS"
29840 CFLAGS="$save_CFLAGS"
d9b9876f 29841
e6cc62c6
VS
29842 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
29843echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
29844 if test "x$THREADS_OK" = "xyes"; then
29845 break;
29846 fi
d9b9876f 29847
009fead0
VZ
29848 THREADS_LINK=""
29849 THREADS_CFLAGS=""
29850 done
4f14bcd8 29851
009fead0
VZ
29852 if test "x$THREADS_OK" != "xyes"; then
29853 wxUSE_THREADS=no
e6cc62c6
VS
29854 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
29855echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 29856 else
db82f09e
VZ
29857 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
29858 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 29859
e6cc62c6
VS
29860 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
29861echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
29862 flag=no
29863 case "${host}" in
2b5f62a0
VZ
29864 *-aix*)
29865 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
29866 flag="-D_THREAD_SAFE"
29867 ;;
29868 *-freebsd*)
009fead0
VZ
29869 flag="-D_THREAD_SAFE"
29870 ;;
06313569
GD
29871 *-hp-hpux* )
29872 flag="-D_REENTRANT"
4f5a7f74
VZ
29873 if test "x$GCC" != "xyes"; then
29874 flag="$flag -D_RWSTD_MULTI_THREAD"
29875 fi
06313569 29876 ;;
009fead0
VZ
29877 *solaris* | alpha*-osf*)
29878 flag="-D_REENTRANT"
29879 ;;
29880 esac
e6cc62c6
VS
29881 echo "$as_me:$LINENO: result: ${flag}" >&5
29882echo "${ECHO_T}${flag}" >&6
009fead0 29883 if test "x$flag" != xno; then
04727afd 29884 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
29885 fi
29886
009fead0 29887 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 29888 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
29889 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
29890 fi
29891 fi
4f14bcd8 29892 fi
4f14bcd8 29893
7274f1c7 29894 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
29895
29896for ac_func in thr_setconcurrency
4f14bcd8 29897do
e6cc62c6
VS
29898as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29899echo "$as_me:$LINENO: checking for $ac_func" >&5
29900echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29901if eval "test \"\${$as_ac_var+set}\" = set"; then
29902 echo $ECHO_N "(cached) $ECHO_C" >&6
29903else
29904 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29905#line $LINENO "configure"
e6cc62c6
VS
29906/* confdefs.h. */
29907_ACEOF
29908cat confdefs.h >>conftest.$ac_ext
29909cat >>conftest.$ac_ext <<_ACEOF
29910/* end confdefs.h. */
4f14bcd8 29911/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29912 which can conflict with char $ac_func (); below.
29913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29914 <limits.h> exists even on freestanding compilers. */
29915#ifdef __STDC__
29916# include <limits.h>
29917#else
29918# include <assert.h>
29919#endif
4f14bcd8 29920/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29921#ifdef __cplusplus
29922extern "C"
29923{
29924#endif
4f14bcd8 29925/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29926 builtin and then its argument prototype would still apply. */
29927char $ac_func ();
4f14bcd8
GD
29928/* The GNU C library defines this for functions which it implements
29929 to always fail with ENOSYS. Some functions are actually named
29930 something starting with __ and the normal name is an alias. */
29931#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29932choke me
29933#else
e6cc62c6
VS
29934char (*f) () = $ac_func;
29935#endif
29936#ifdef __cplusplus
29937}
4f14bcd8
GD
29938#endif
29939
e6cc62c6
VS
29940int
29941main ()
29942{
29943return f != $ac_func;
29944 ;
29945 return 0;
29946}
29947_ACEOF
29948rm -f conftest.$ac_objext conftest$ac_exeext
29949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 29950 (eval $ac_link) 2>&5
e6cc62c6
VS
29951 ac_status=$?
29952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953 (exit $ac_status); } &&
789c5f4a 29954 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29956 (eval $ac_try) 2>&5
29957 ac_status=$?
29958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29959 (exit $ac_status); }; }; then
29960 eval "$as_ac_var=yes"
29961else
29962 echo "$as_me: failed program was:" >&5
29963sed 's/^/| /' conftest.$ac_ext >&5
29964
29965eval "$as_ac_var=no"
29966fi
789c5f4a 29967rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29968fi
29969echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29970echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29971if test `eval echo '${'$as_ac_var'}'` = yes; then
29972 cat >>confdefs.h <<_ACEOF
29973#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29974_ACEOF
698dcdb6 29975
10f2d63a 29976fi
4f14bcd8 29977done
10f2d63a 29978
8284b0c5 29979
e6cc62c6
VS
29980
29981for ac_header in sched.h
4f14bcd8 29982do
e6cc62c6
VS
29983as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29984if eval "test \"\${$as_ac_Header+set}\" = set"; then
29985 echo "$as_me:$LINENO: checking for $ac_header" >&5
29986echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29987if eval "test \"\${$as_ac_Header+set}\" = set"; then
29988 echo $ECHO_N "(cached) $ECHO_C" >&6
29989fi
29990echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29991echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29992else
29993 # Is the header compilable?
29994echo "$as_me:$LINENO: checking $ac_header usability" >&5
29995echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29996cat >conftest.$ac_ext <<_ACEOF
789c5f4a 29997#line $LINENO "configure"
e6cc62c6
VS
29998/* confdefs.h. */
29999_ACEOF
30000cat confdefs.h >>conftest.$ac_ext
30001cat >>conftest.$ac_ext <<_ACEOF
30002/* end confdefs.h. */
30003$ac_includes_default
30004#include <$ac_header>
30005_ACEOF
30006rm -f conftest.$ac_objext
30007if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 30008 (eval $ac_compile) 2>&5
e6cc62c6
VS
30009 ac_status=$?
30010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30011 (exit $ac_status); } &&
789c5f4a 30012 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30014 (eval $ac_try) 2>&5
30015 ac_status=$?
30016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30017 (exit $ac_status); }; }; then
30018 ac_header_compiler=yes
30019else
30020 echo "$as_me: failed program was:" >&5
30021sed 's/^/| /' conftest.$ac_ext >&5
30022
30023ac_header_compiler=no
30024fi
789c5f4a 30025rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
30026echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30027echo "${ECHO_T}$ac_header_compiler" >&6
30028
30029# Is the header present?
30030echo "$as_me:$LINENO: checking $ac_header presence" >&5
30031echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30032cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30033#line $LINENO "configure"
e6cc62c6
VS
30034/* confdefs.h. */
30035_ACEOF
30036cat confdefs.h >>conftest.$ac_ext
30037cat >>conftest.$ac_ext <<_ACEOF
30038/* end confdefs.h. */
30039#include <$ac_header>
30040_ACEOF
30041if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30043 ac_status=$?
30044 grep -v '^ *+' conftest.er1 >conftest.err
30045 rm -f conftest.er1
30046 cat conftest.err >&5
30047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048 (exit $ac_status); } >/dev/null; then
30049 if test -s conftest.err; then
30050 ac_cpp_err=$ac_c_preproc_warn_flag
30051 else
30052 ac_cpp_err=
30053 fi
30054else
30055 ac_cpp_err=yes
30056fi
30057if test -z "$ac_cpp_err"; then
30058 ac_header_preproc=yes
30059else
30060 echo "$as_me: failed program was:" >&5
30061sed 's/^/| /' conftest.$ac_ext >&5
30062
30063 ac_header_preproc=no
30064fi
30065rm -f conftest.err conftest.$ac_ext
30066echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30067echo "${ECHO_T}$ac_header_preproc" >&6
30068
30069# So? What about this header?
789c5f4a
VZ
30070case $ac_header_compiler:$ac_header_preproc in
30071 yes:no )
e6cc62c6
VS
30072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30073echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
30074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30075echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30076 (
30077 cat <<\_ASBOX
30078## ------------------------------------ ##
30079## Report this to bug-autoconf@gnu.org. ##
30080## ------------------------------------ ##
30081_ASBOX
30082 ) |
30083 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 30084 ;;
789c5f4a 30085 no:yes )
e6cc62c6
VS
30086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30087echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
30088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30089echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
30090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30091echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30092 (
30093 cat <<\_ASBOX
789c5f4a
VZ
30094## ------------------------------------ ##
30095## Report this to bug-autoconf@gnu.org. ##
30096## ------------------------------------ ##
e6cc62c6
VS
30097_ASBOX
30098 ) |
30099 sed "s/^/$as_me: WARNING: /" >&2
30100 ;;
30101esac
30102echo "$as_me:$LINENO: checking for $ac_header" >&5
30103echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30104if eval "test \"\${$as_ac_Header+set}\" = set"; then
30105 echo $ECHO_N "(cached) $ECHO_C" >&6
30106else
789c5f4a 30107 eval "$as_ac_Header=$ac_header_preproc"
13111b2a 30108fi
e6cc62c6
VS
30109echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30110echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30111
10f2d63a 30112fi
e6cc62c6
VS
30113if test `eval echo '${'$as_ac_Header'}'` = yes; then
30114 cat >>confdefs.h <<_ACEOF
30115#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30116_ACEOF
30117
f6bcfd97 30118fi
e6cc62c6 30119
4f14bcd8 30120done
f6bcfd97 30121
009fead0 30122 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
30123 echo "$as_me:$LINENO: checking for sched_yield" >&5
30124echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
30125if test "${ac_cv_func_sched_yield+set}" = set; then
30126 echo $ECHO_N "(cached) $ECHO_C" >&6
30127else
30128 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30129#line $LINENO "configure"
e6cc62c6
VS
30130/* confdefs.h. */
30131_ACEOF
30132cat confdefs.h >>conftest.$ac_ext
30133cat >>conftest.$ac_ext <<_ACEOF
30134/* end confdefs.h. */
009fead0 30135/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30136 which can conflict with char sched_yield (); below.
30137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30138 <limits.h> exists even on freestanding compilers. */
30139#ifdef __STDC__
30140# include <limits.h>
30141#else
30142# include <assert.h>
30143#endif
4f14bcd8 30144/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30145#ifdef __cplusplus
30146extern "C"
30147{
30148#endif
4f14bcd8 30149/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30150 builtin and then its argument prototype would still apply. */
30151char sched_yield ();
009fead0
VZ
30152/* The GNU C library defines this for functions which it implements
30153 to always fail with ENOSYS. Some functions are actually named
30154 something starting with __ and the normal name is an alias. */
30155#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
30156choke me
30157#else
e6cc62c6
VS
30158char (*f) () = sched_yield;
30159#endif
30160#ifdef __cplusplus
30161}
009fead0
VZ
30162#endif
30163
e6cc62c6
VS
30164int
30165main ()
30166{
30167return f != sched_yield;
30168 ;
30169 return 0;
30170}
30171_ACEOF
30172rm -f conftest.$ac_objext conftest$ac_exeext
30173if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 30174 (eval $ac_link) 2>&5
e6cc62c6
VS
30175 ac_status=$?
30176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30177 (exit $ac_status); } &&
789c5f4a 30178 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30180 (eval $ac_try) 2>&5
30181 ac_status=$?
30182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30183 (exit $ac_status); }; }; then
30184 ac_cv_func_sched_yield=yes
30185else
30186 echo "$as_me: failed program was:" >&5
30187sed 's/^/| /' conftest.$ac_ext >&5
30188
30189ac_cv_func_sched_yield=no
30190fi
789c5f4a 30191rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30192fi
30193echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
30194echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
30195if test $ac_cv_func_sched_yield = yes; then
30196 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30197#define HAVE_SCHED_YIELD 1
e6cc62c6 30198_ACEOF
10f2d63a 30199
4f14bcd8 30200else
009fead0 30201
e6cc62c6
VS
30202 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
30203echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
30204if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
30205 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 30206else
e6cc62c6 30207 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 30208LIBS="-lposix4 $LIBS"
e6cc62c6 30209cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30210#line $LINENO "configure"
e6cc62c6
VS
30211/* confdefs.h. */
30212_ACEOF
30213cat confdefs.h >>conftest.$ac_ext
30214cat >>conftest.$ac_ext <<_ACEOF
30215/* end confdefs.h. */
30216
4f14bcd8 30217/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30218#ifdef __cplusplus
30219extern "C"
30220#endif
4f14bcd8 30221/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30222 builtin and then its argument prototype would still apply. */
30223char sched_yield ();
30224int
30225main ()
30226{
30227sched_yield ();
30228 ;
30229 return 0;
30230}
30231_ACEOF
30232rm -f conftest.$ac_objext conftest$ac_exeext
30233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 30234 (eval $ac_link) 2>&5
e6cc62c6
VS
30235 ac_status=$?
30236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30237 (exit $ac_status); } &&
789c5f4a 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 ac_cv_lib_posix4_sched_yield=yes
30245else
30246 echo "$as_me: failed program was:" >&5
30247sed 's/^/| /' conftest.$ac_ext >&5
30248
30249ac_cv_lib_posix4_sched_yield=no
30250fi
789c5f4a 30251rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30252LIBS=$ac_check_lib_save_LIBS
30253fi
30254echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
30255echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
30256if test $ac_cv_lib_posix4_sched_yield = yes; then
30257 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30258#define HAVE_SCHED_YIELD 1
e6cc62c6 30259_ACEOF
3d63bc3a 30260 POSIX4_LINK=" -lposix4"
4f14bcd8 30261else
e6cc62c6
VS
30262 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
30263echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
30264
54276ccf
VZ
30265fi
30266
e6cc62c6
VS
30267
30268
4f14bcd8 30269fi
698dcdb6 30270
009fead0 30271 fi
10f2d63a 30272
7274f1c7 30273 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
30274 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
30275echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
30276if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
30277 echo $ECHO_N "(cached) $ECHO_C" >&6
30278else
30279 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30280#line $LINENO "configure"
e6cc62c6
VS
30281/* confdefs.h. */
30282_ACEOF
30283cat confdefs.h >>conftest.$ac_ext
30284cat >>conftest.$ac_ext <<_ACEOF
30285/* end confdefs.h. */
009fead0 30286/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30287 which can conflict with char pthread_attr_getschedpolicy (); below.
30288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30289 <limits.h> exists even on freestanding compilers. */
30290#ifdef __STDC__
30291# include <limits.h>
30292#else
30293# include <assert.h>
30294#endif
4f14bcd8 30295/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30296#ifdef __cplusplus
30297extern "C"
30298{
30299#endif
4f14bcd8 30300/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30301 builtin and then its argument prototype would still apply. */
30302char pthread_attr_getschedpolicy ();
009fead0
VZ
30303/* The GNU C library defines this for functions which it implements
30304 to always fail with ENOSYS. Some functions are actually named
30305 something starting with __ and the normal name is an alias. */
30306#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
30307choke me
30308#else
e6cc62c6
VS
30309char (*f) () = pthread_attr_getschedpolicy;
30310#endif
30311#ifdef __cplusplus
30312}
009fead0
VZ
30313#endif
30314
e6cc62c6
VS
30315int
30316main ()
30317{
30318return f != pthread_attr_getschedpolicy;
30319 ;
30320 return 0;
30321}
30322_ACEOF
30323rm -f conftest.$ac_objext conftest$ac_exeext
30324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 30325 (eval $ac_link) 2>&5
e6cc62c6
VS
30326 ac_status=$?
30327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30328 (exit $ac_status); } &&
789c5f4a 30329 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30331 (eval $ac_try) 2>&5
30332 ac_status=$?
30333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30334 (exit $ac_status); }; }; then
30335 ac_cv_func_pthread_attr_getschedpolicy=yes
30336else
30337 echo "$as_me: failed program was:" >&5
30338sed 's/^/| /' conftest.$ac_ext >&5
30339
30340ac_cv_func_pthread_attr_getschedpolicy=no
30341fi
789c5f4a 30342rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30343fi
30344echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
30345echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
30346if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
30347 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
30348echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
30349if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
30350 echo $ECHO_N "(cached) $ECHO_C" >&6
30351else
30352 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30353#line $LINENO "configure"
e6cc62c6
VS
30354/* confdefs.h. */
30355_ACEOF
30356cat confdefs.h >>conftest.$ac_ext
30357cat >>conftest.$ac_ext <<_ACEOF
30358/* end confdefs.h. */
a0b9e27f 30359/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30360 which can conflict with char pthread_attr_setschedparam (); below.
30361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30362 <limits.h> exists even on freestanding compilers. */
30363#ifdef __STDC__
30364# include <limits.h>
30365#else
30366# include <assert.h>
30367#endif
422107f9 30368/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30369#ifdef __cplusplus
30370extern "C"
30371{
30372#endif
422107f9 30373/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30374 builtin and then its argument prototype would still apply. */
30375char pthread_attr_setschedparam ();
009fead0
VZ
30376/* The GNU C library defines this for functions which it implements
30377 to always fail with ENOSYS. Some functions are actually named
30378 something starting with __ and the normal name is an alias. */
30379#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
30380choke me
30381#else
e6cc62c6
VS
30382char (*f) () = pthread_attr_setschedparam;
30383#endif
30384#ifdef __cplusplus
30385}
009fead0
VZ
30386#endif
30387
e6cc62c6
VS
30388int
30389main ()
30390{
30391return f != pthread_attr_setschedparam;
30392 ;
30393 return 0;
30394}
30395_ACEOF
30396rm -f conftest.$ac_objext conftest$ac_exeext
30397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 30398 (eval $ac_link) 2>&5
e6cc62c6
VS
30399 ac_status=$?
30400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30401 (exit $ac_status); } &&
789c5f4a 30402 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30404 (eval $ac_try) 2>&5
30405 ac_status=$?
30406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30407 (exit $ac_status); }; }; then
30408 ac_cv_func_pthread_attr_setschedparam=yes
30409else
30410 echo "$as_me: failed program was:" >&5
30411sed 's/^/| /' conftest.$ac_ext >&5
30412
30413ac_cv_func_pthread_attr_setschedparam=no
30414fi
789c5f4a 30415rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30416fi
30417echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
30418echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
30419if test $ac_cv_func_pthread_attr_setschedparam = yes; then
30420 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
30421echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
30422if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
30423 echo $ECHO_N "(cached) $ECHO_C" >&6
30424else
30425 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30426#line $LINENO "configure"
e6cc62c6
VS
30427/* confdefs.h. */
30428_ACEOF
30429cat confdefs.h >>conftest.$ac_ext
30430cat >>conftest.$ac_ext <<_ACEOF
30431/* end confdefs.h. */
ef33c576 30432/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30433 which can conflict with char sched_get_priority_max (); below.
30434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30435 <limits.h> exists even on freestanding compilers. */
30436#ifdef __STDC__
30437# include <limits.h>
30438#else
30439# include <assert.h>
30440#endif
4f14bcd8 30441/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30442#ifdef __cplusplus
30443extern "C"
30444{
30445#endif
4f14bcd8 30446/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30447 builtin and then its argument prototype would still apply. */
30448char sched_get_priority_max ();
009fead0
VZ
30449/* The GNU C library defines this for functions which it implements
30450 to always fail with ENOSYS. Some functions are actually named
30451 something starting with __ and the normal name is an alias. */
30452#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
30453choke me
30454#else
e6cc62c6
VS
30455char (*f) () = sched_get_priority_max;
30456#endif
30457#ifdef __cplusplus
30458}
009fead0
VZ
30459#endif
30460
e6cc62c6
VS
30461int
30462main ()
30463{
30464return f != sched_get_priority_max;
30465 ;
30466 return 0;
30467}
30468_ACEOF
30469rm -f conftest.$ac_objext conftest$ac_exeext
30470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 30471 (eval $ac_link) 2>&5
e6cc62c6
VS
30472 ac_status=$?
30473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30474 (exit $ac_status); } &&
789c5f4a 30475 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30477 (eval $ac_try) 2>&5
30478 ac_status=$?
30479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30480 (exit $ac_status); }; }; then
30481 ac_cv_func_sched_get_priority_max=yes
30482else
30483 echo "$as_me: failed program was:" >&5
30484sed 's/^/| /' conftest.$ac_ext >&5
30485
30486ac_cv_func_sched_get_priority_max=no
30487fi
789c5f4a 30488rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30489fi
30490echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
30491echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
30492if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
30493 HAVE_PRIOR_FUNCS=1
30494else
e6cc62c6
VS
30495 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
30496echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
30497if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
30498 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 30499else
e6cc62c6 30500 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 30501LIBS="-lposix4 $LIBS"
e6cc62c6 30502cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30503#line $LINENO "configure"
e6cc62c6
VS
30504/* confdefs.h. */
30505_ACEOF
30506cat confdefs.h >>conftest.$ac_ext
30507cat >>conftest.$ac_ext <<_ACEOF
30508/* end confdefs.h. */
30509
422107f9 30510/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30511#ifdef __cplusplus
30512extern "C"
30513#endif
422107f9 30514/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30515 builtin and then its argument prototype would still apply. */
30516char sched_get_priority_max ();
30517int
30518main ()
30519{
30520sched_get_priority_max ();
30521 ;
30522 return 0;
30523}
30524_ACEOF
30525rm -f conftest.$ac_objext conftest$ac_exeext
30526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 30527 (eval $ac_link) 2>&5
e6cc62c6
VS
30528 ac_status=$?
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); } &&
789c5f4a 30531 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30533 (eval $ac_try) 2>&5
30534 ac_status=$?
30535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30536 (exit $ac_status); }; }; then
30537 ac_cv_lib_posix4_sched_get_priority_max=yes
30538else
30539 echo "$as_me: failed program was:" >&5
30540sed 's/^/| /' conftest.$ac_ext >&5
30541
30542ac_cv_lib_posix4_sched_get_priority_max=no
30543fi
789c5f4a 30544rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30545LIBS=$ac_check_lib_save_LIBS
30546fi
30547echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
30548echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
30549if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 30550
7274f1c7
RL
30551 HAVE_PRIOR_FUNCS=1
30552 POSIX4_LINK=" -lposix4"
e6cc62c6 30553
4f14bcd8 30554fi
463abc64 30555
e6cc62c6 30556
328a083c 30557fi
463abc64 30558
e6cc62c6 30559
7b4a847f 30560fi
579d8138 30561
e6cc62c6 30562
5c6fa7d2 30563fi
52127426 30564
8284b0c5 30565
7274f1c7 30566 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 30567 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30568#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 30569_ACEOF
463abc64 30570
7274f1c7 30571 else
e6cc62c6
VS
30572 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
30573echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 30574 fi
463abc64 30575
e6cc62c6
VS
30576 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
30577echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
30578if test "${ac_cv_func_pthread_cancel+set}" = set; then
30579 echo $ECHO_N "(cached) $ECHO_C" >&6
30580else
30581 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30582#line $LINENO "configure"
e6cc62c6
VS
30583/* confdefs.h. */
30584_ACEOF
30585cat confdefs.h >>conftest.$ac_ext
30586cat >>conftest.$ac_ext <<_ACEOF
30587/* end confdefs.h. */
009fead0 30588/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30589 which can conflict with char pthread_cancel (); below.
30590 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30591 <limits.h> exists even on freestanding compilers. */
30592#ifdef __STDC__
30593# include <limits.h>
30594#else
30595# include <assert.h>
30596#endif
422107f9 30597/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30598#ifdef __cplusplus
30599extern "C"
30600{
30601#endif
422107f9 30602/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30603 builtin and then its argument prototype would still apply. */
30604char pthread_cancel ();
009fead0
VZ
30605/* The GNU C library defines this for functions which it implements
30606 to always fail with ENOSYS. Some functions are actually named
30607 something starting with __ and the normal name is an alias. */
30608#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
30609choke me
30610#else
e6cc62c6
VS
30611char (*f) () = pthread_cancel;
30612#endif
30613#ifdef __cplusplus
30614}
009fead0
VZ
30615#endif
30616
e6cc62c6
VS
30617int
30618main ()
30619{
30620return f != pthread_cancel;
30621 ;
30622 return 0;
30623}
30624_ACEOF
30625rm -f conftest.$ac_objext conftest$ac_exeext
30626if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 30627 (eval $ac_link) 2>&5
e6cc62c6
VS
30628 ac_status=$?
30629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30630 (exit $ac_status); } &&
789c5f4a 30631 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30633 (eval $ac_try) 2>&5
30634 ac_status=$?
30635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30636 (exit $ac_status); }; }; then
30637 ac_cv_func_pthread_cancel=yes
30638else
30639 echo "$as_me: failed program was:" >&5
30640sed 's/^/| /' conftest.$ac_ext >&5
30641
30642ac_cv_func_pthread_cancel=no
30643fi
789c5f4a 30644rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30645fi
30646echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
30647echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
30648if test $ac_cv_func_pthread_cancel = yes; then
30649 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30650#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 30651_ACEOF
4f14bcd8 30652
698dcdb6 30653else
e6cc62c6
VS
30654 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
30655echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
30656fi
30657
5c6fa7d2 30658
4f14bcd8 30659
e6cc62c6
VS
30660
30661 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
30662echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
30663if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
30664 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 30665else
e6cc62c6
VS
30666
30667 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30668#line $LINENO "configure"
e6cc62c6
VS
30669/* confdefs.h. */
30670_ACEOF
30671cat confdefs.h >>conftest.$ac_ext
30672cat >>conftest.$ac_ext <<_ACEOF
30673/* end confdefs.h. */
4f14bcd8 30674#include <pthread.h>
e6cc62c6
VS
30675int
30676main ()
30677{
4f14bcd8 30678
7274f1c7
RL
30679 pthread_mutexattr_t attr;
30680 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
30681
30682 ;
30683 return 0;
30684}
30685_ACEOF
30686rm -f conftest.$ac_objext
30687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 30688 (eval $ac_compile) 2>&5
e6cc62c6
VS
30689 ac_status=$?
30690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30691 (exit $ac_status); } &&
789c5f4a 30692 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30694 (eval $ac_try) 2>&5
30695 ac_status=$?
30696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30697 (exit $ac_status); }; }; then
30698
7274f1c7 30699 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 30700
3fed1840 30701else
e6cc62c6
VS
30702 echo "$as_me: failed program was:" >&5
30703sed 's/^/| /' conftest.$ac_ext >&5
30704
30705
7274f1c7 30706 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
30707
30708
247f5006 30709fi
789c5f4a 30710rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30711
e6cc62c6
VS
30712fi
30713echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
30714echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 30715
7274f1c7 30716 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 30717 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30718#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 30719_ACEOF
4f14bcd8 30720
7274f1c7 30721 else
e6cc62c6
VS
30722 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
30723echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
30724if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
30725 echo $ECHO_N "(cached) $ECHO_C" >&6
30726else
30727
30728 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30729#line $LINENO "configure"
e6cc62c6
VS
30730/* confdefs.h. */
30731_ACEOF
30732cat confdefs.h >>conftest.$ac_ext
30733cat >>conftest.$ac_ext <<_ACEOF
30734/* end confdefs.h. */
4f14bcd8 30735#include <pthread.h>
e6cc62c6
VS
30736int
30737main ()
30738{
4f14bcd8 30739
7274f1c7 30740 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
30741
30742 ;
30743 return 0;
30744}
30745_ACEOF
30746rm -f conftest.$ac_objext
30747if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 30748 (eval $ac_compile) 2>&5
e6cc62c6
VS
30749 ac_status=$?
30750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30751 (exit $ac_status); } &&
789c5f4a 30752 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30754 (eval $ac_try) 2>&5
30755 ac_status=$?
30756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757 (exit $ac_status); }; }; then
30758
7274f1c7 30759 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 30760
698dcdb6 30761else
e6cc62c6
VS
30762 echo "$as_me: failed program was:" >&5
30763sed 's/^/| /' conftest.$ac_ext >&5
30764
30765
7274f1c7 30766 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
30767
30768
247f5006 30769fi
789c5f4a 30770rm -f conftest.$ac_objext conftest.$ac_ext
a0b9e27f 30771
e6cc62c6
VS
30772fi
30773echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
30774echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 30775 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 30776 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30777#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 30778_ACEOF
3fed1840 30779
7274f1c7 30780 else
e6cc62c6
VS
30781 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
30782echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
30783 fi
30784 fi
7274f1c7 30785 fi
3fed1840 30786
a0b9e27f
MB
30787else
30788 if test "$wxUSE_THREADS" = "yes" ; then
30789 case "${host}" in
30790 *-*-mingw32* )
e6cc62c6
VS
30791 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
30792echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
30793if test "${wx_cv_cflags_mthread+set}" = set; then
30794 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 30795else
e6cc62c6 30796
ca8e52b3
VZ
30797 CFLAGS_OLD="$CFLAGS"
30798 CFLAGS="$CFLAGS -mthreads"
e6cc62c6 30799 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 30800#line $LINENO "configure"
e6cc62c6
VS
30801/* confdefs.h. */
30802_ACEOF
30803cat confdefs.h >>conftest.$ac_ext
30804cat >>conftest.$ac_ext <<_ACEOF
30805/* end confdefs.h. */
30806
30807int
30808main ()
30809{
ca8e52b3 30810
e6cc62c6
VS
30811 ;
30812 return 0;
30813}
30814_ACEOF
30815rm -f conftest.$ac_objext
30816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 30817 (eval $ac_compile) 2>&5
e6cc62c6
VS
30818 ac_status=$?
30819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30820 (exit $ac_status); } &&
789c5f4a 30821 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
30822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30823 (eval $ac_try) 2>&5
30824 ac_status=$?
30825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826 (exit $ac_status); }; }; then
ca8e52b3
VZ
30827 wx_cv_cflags_mthread=yes
30828else
e6cc62c6
VS
30829 echo "$as_me: failed program was:" >&5
30830sed 's/^/| /' conftest.$ac_ext >&5
30831
30832wx_cv_cflags_mthread=no
30833
ca8e52b3 30834fi
789c5f4a 30835rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 30836
ca8e52b3 30837
e6cc62c6
VS
30838fi
30839echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
30840echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
30841
30842 if test "$wx_cv_cflags_mthread" = "yes"; then
30843 CXXFLAGS="$CXXFLAGS -mthreads"
30844 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
30845 LDFLAGS="$LDFLAGS -mthreads"
30846 else
30847 CFLAGS="$CFLAGS_OLD"
30848 fi
a0b9e27f 30849 ;;
73d617c9
MB
30850 *-pc-os2*emx )
30851 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
30852 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
30853 LDFLAGS="$LDFLAGS -Zmt"
30854 ;;
a0b9e27f
MB
30855 esac
30856 fi
4f14bcd8
GD
30857fi
30858
30859if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 30860 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30861#define wxUSE_THREADS 1
e6cc62c6 30862_ACEOF
7b6058cd 30863
8284b0c5 30864
4f14bcd8 30865 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 30866else
4f14bcd8 30867 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
30868 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
30869echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
30870 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
30871 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
30872 echo "$as_me:$LINENO: result: yes" >&5
30873echo "${ECHO_T}yes" >&6
4f14bcd8 30874 else
e6cc62c6
VS
30875 echo "$as_me:$LINENO: result: no" >&5
30876echo "${ECHO_T}no" >&6
4f14bcd8
GD
30877 fi
30878 fi
30879fi
30880
30881if test "$WXGTK20" = 1 ; then
e6cc62c6 30882 cat >>confdefs.h <<_ACEOF
4f14bcd8 30883#define __WXGTK20__ $WXGTK20
e6cc62c6 30884_ACEOF
4f14bcd8
GD
30885
30886 WXGTK12=1
10f2d63a 30887fi
4f14bcd8
GD
30888
30889if test "$WXGTK12" = 1 ; then
e6cc62c6 30890 cat >>confdefs.h <<_ACEOF
4f14bcd8 30891#define __WXGTK12__ $WXGTK12
e6cc62c6 30892_ACEOF
4f14bcd8 30893
10f2d63a 30894fi
698dcdb6 30895
4f14bcd8 30896if test "$WXGTK127" = 1 ; then
e6cc62c6 30897 cat >>confdefs.h <<_ACEOF
4f14bcd8 30898#define __WXGTK127__ $WXGTK127
e6cc62c6 30899_ACEOF
4f14bcd8 30900
698dcdb6 30901fi
10f2d63a 30902
4f14bcd8
GD
30903WXDEBUG=
30904
30905if test "$wxUSE_DEBUG_INFO" = "yes" ; then
30906 WXDEBUG="-g"
30907 wxUSE_OPTIMISE=no
698dcdb6 30908fi
4f14bcd8
GD
30909
30910if test "$wxUSE_DEBUG_GDB" = "yes" ; then
30911 wxUSE_DEBUG_INFO=yes
30912 WXDEBUG="-ggdb"
10f2d63a
VZ
30913fi
30914
4f14bcd8 30915if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 30916 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30917#define WXDEBUG 1
e6cc62c6 30918_ACEOF
4f14bcd8
GD
30919
30920 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 30921else
4f14bcd8
GD
30922 if test "$wxUSE_GTK" = 1 ; then
30923 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
30924 fi
30925fi
30926
30927if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 30928 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30929#define wxUSE_MEMORY_TRACING 1
e6cc62c6 30930_ACEOF
4f14bcd8 30931
e6cc62c6 30932 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30933#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 30934_ACEOF
4f14bcd8 30935
e6cc62c6 30936 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30937#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 30938_ACEOF
4f14bcd8
GD
30939
30940 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
30941fi
30942
30943if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 30944 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
30945fi
30946
30947PROFILE=
30948if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 30949 PROFILE=" -pg"
10f2d63a
VZ
30950fi
30951
009fead0
VZ
30952CODE_GEN_FLAGS=
30953CODE_GEN_FLAGS_CXX=
88e30f2b 30954if test "$GCC" = "yes" ; then
4f14bcd8
GD
30955 if test "$wxUSE_NO_RTTI" = "yes" ; then
30956 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 30957 fi
4f14bcd8
GD
30958 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
30959 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
30960 fi
30961 if test "$wxUSE_PERMISSIVE" = "yes" ; then
30962 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
30963 fi
1d1b75ac 30964
2b5f62a0 30965 case "${host}" in
1d1b75ac
VZ
30966 powerpc*-*-aix* )
30967 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
30968 ;;
2b5f62a0
VZ
30969 *-hppa* )
30970 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
30971 ;;
1d1b75ac 30972 esac
4f14bcd8
GD
30973fi
30974
af7b5345 30975OPTIMISE=
4f14bcd8 30976if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
30977 if test "$GCC" = yes ; then
30978 OPTIMISE="-O0"
30979 fi
4f14bcd8
GD
30980else
30981 if test "$GCC" = yes ; then
30982 OPTIMISE="-O2"
af7b5345
VZ
30983
30984 case "${host}" in
4f14bcd8
GD
30985 i586-*-*|i686-*-* )
30986 OPTIMISE="${OPTIMISE} "
30987 ;;
30988 esac
30989 else
30990 OPTIMISE="-O"
30991 fi
30992fi
30993
8d90d2f2 30994
65d8ef1e 30995if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 30996 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30997#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 30998_ACEOF
4f14bcd8 30999
8d90d2f2
VZ
31000
31001 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
31002fi
31003
65d8ef1e 31004if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 31005 cat >>confdefs.h <<\_ACEOF
65d8ef1e 31006#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 31007_ACEOF
65d8ef1e
VS
31008
31009fi
31010
8284b0c5 31011
10f2d63a 31012if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 31013 cat >>confdefs.h <<\_ACEOF
10f2d63a 31014#define wxUSE_GUI 1
e6cc62c6 31015_ACEOF
10f2d63a 31016
8284b0c5 31017
10f2d63a 31018 else
e6cc62c6 31019 cat >>confdefs.h <<\_ACEOF
10f2d63a 31020#define wxUSE_NOGUI 1
e6cc62c6 31021_ACEOF
10f2d63a
VZ
31022
31023fi
31024
8284b0c5 31025
10f2d63a 31026if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 31027 cat >>confdefs.h <<\_ACEOF
10f2d63a 31028#define wxUSE_UNIX 1
e6cc62c6 31029_ACEOF
10f2d63a
VZ
31030
31031fi
31032
8284b0c5 31033
f93ca9fd 31034if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
5c6fa7d2 31035
f93ca9fd
VS
31036 HAVE_DL_FUNCS=0
31037 HAVE_SHL_FUNCS=0
31038 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
31039 if test "$USE_DARWIN" = 1; then
31040 HAVE_DL_FUNCS=1
31041 else
e6cc62c6 31042
f93ca9fd 31043for ac_func in dlopen
83307f33 31044do
e6cc62c6
VS
31045as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31046echo "$as_me:$LINENO: checking for $ac_func" >&5
31047echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31048if eval "test \"\${$as_ac_var+set}\" = set"; then
31049 echo $ECHO_N "(cached) $ECHO_C" >&6
31050else
31051 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31052#line $LINENO "configure"
e6cc62c6
VS
31053/* confdefs.h. */
31054_ACEOF
31055cat confdefs.h >>conftest.$ac_ext
31056cat >>conftest.$ac_ext <<_ACEOF
31057/* end confdefs.h. */
83307f33 31058/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31059 which can conflict with char $ac_func (); below.
31060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31061 <limits.h> exists even on freestanding compilers. */
31062#ifdef __STDC__
31063# include <limits.h>
31064#else
31065# include <assert.h>
31066#endif
83307f33 31067/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31068#ifdef __cplusplus
31069extern "C"
31070{
31071#endif
83307f33 31072/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31073 builtin and then its argument prototype would still apply. */
31074char $ac_func ();
83307f33
VZ
31075/* The GNU C library defines this for functions which it implements
31076 to always fail with ENOSYS. Some functions are actually named
31077 something starting with __ and the normal name is an alias. */
31078#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31079choke me
31080#else
e6cc62c6
VS
31081char (*f) () = $ac_func;
31082#endif
31083#ifdef __cplusplus
31084}
83307f33
VZ
31085#endif
31086
e6cc62c6
VS
31087int
31088main ()
31089{
31090return f != $ac_func;
31091 ;
31092 return 0;
31093}
31094_ACEOF
31095rm -f conftest.$ac_objext conftest$ac_exeext
31096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 31097 (eval $ac_link) 2>&5
e6cc62c6
VS
31098 ac_status=$?
31099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31100 (exit $ac_status); } &&
789c5f4a 31101 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31103 (eval $ac_try) 2>&5
31104 ac_status=$?
31105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31106 (exit $ac_status); }; }; then
31107 eval "$as_ac_var=yes"
31108else
31109 echo "$as_me: failed program was:" >&5
31110sed 's/^/| /' conftest.$ac_ext >&5
31111
31112eval "$as_ac_var=no"
31113fi
789c5f4a 31114rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31115fi
31116echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31117echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31118if test `eval echo '${'$as_ac_var'}'` = yes; then
31119 cat >>confdefs.h <<_ACEOF
31120#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31121_ACEOF
83307f33 31122
f93ca9fd
VS
31123 cat >>confdefs.h <<\_ACEOF
31124#define HAVE_DLOPEN 1
e6cc62c6 31125_ACEOF
e6cc62c6 31126
f93ca9fd 31127 HAVE_DL_FUNCS=1
e6cc62c6 31128
360d6699 31129else
e6cc62c6 31130
f93ca9fd
VS
31131 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
31132echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
31133if test "${ac_cv_lib_dl_dlopen+set}" = set; then
31134 echo $ECHO_N "(cached) $ECHO_C" >&6
5357c8e8 31135else
f93ca9fd
VS
31136 ac_check_lib_save_LIBS=$LIBS
31137LIBS="-ldl $LIBS"
31138cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31139#line $LINENO "configure"
e6cc62c6
VS
31140/* confdefs.h. */
31141_ACEOF
31142cat confdefs.h >>conftest.$ac_ext
31143cat >>conftest.$ac_ext <<_ACEOF
31144/* end confdefs.h. */
5357c8e8 31145
f93ca9fd
VS
31146/* Override any gcc2 internal prototype to avoid an error. */
31147#ifdef __cplusplus
31148extern "C"
31149#endif
31150/* We use char because int might match the return type of a gcc2
31151 builtin and then its argument prototype would still apply. */
31152char dlopen ();
e6cc62c6
VS
31153int
31154main ()
31155{
f93ca9fd 31156dlopen ();
e6cc62c6
VS
31157 ;
31158 return 0;
31159}
31160_ACEOF
f93ca9fd
VS
31161rm -f conftest.$ac_objext conftest$ac_exeext
31162if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 31163 (eval $ac_link) 2>&5
e6cc62c6
VS
31164 ac_status=$?
31165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31166 (exit $ac_status); } &&
789c5f4a 31167 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31169 (eval $ac_try) 2>&5
31170 ac_status=$?
31171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31172 (exit $ac_status); }; }; then
f93ca9fd 31173 ac_cv_lib_dl_dlopen=yes
360d6699 31174else
e6cc62c6
VS
31175 echo "$as_me: failed program was:" >&5
31176sed 's/^/| /' conftest.$ac_ext >&5
31177
f93ca9fd 31178ac_cv_lib_dl_dlopen=no
247f5006 31179fi
789c5f4a 31180rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f93ca9fd 31181LIBS=$ac_check_lib_save_LIBS
e6cc62c6 31182fi
f93ca9fd
VS
31183echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
31184echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
31185if test $ac_cv_lib_dl_dlopen = yes; then
698dcdb6 31186
f93ca9fd
VS
31187 cat >>confdefs.h <<\_ACEOF
31188#define HAVE_DLOPEN 1
e6cc62c6 31189_ACEOF
360d6699 31190
f93ca9fd
VS
31191 HAVE_DL_FUNCS=1
31192 DL_LINK=" -ldl$DL_LINK"
698dcdb6 31193
f93ca9fd 31194else
e6cc62c6 31195
f93ca9fd
VS
31196
31197for ac_func in shl_load
afc31813 31198do
e6cc62c6
VS
31199as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31200echo "$as_me:$LINENO: checking for $ac_func" >&5
31201echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31202if eval "test \"\${$as_ac_var+set}\" = set"; then
31203 echo $ECHO_N "(cached) $ECHO_C" >&6
31204else
31205 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31206#line $LINENO "configure"
e6cc62c6
VS
31207/* confdefs.h. */
31208_ACEOF
31209cat confdefs.h >>conftest.$ac_ext
31210cat >>conftest.$ac_ext <<_ACEOF
31211/* end confdefs.h. */
afc31813 31212/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31213 which can conflict with char $ac_func (); below.
31214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31215 <limits.h> exists even on freestanding compilers. */
31216#ifdef __STDC__
31217# include <limits.h>
31218#else
31219# include <assert.h>
31220#endif
afc31813 31221/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31222#ifdef __cplusplus
31223extern "C"
31224{
31225#endif
afc31813 31226/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31227 builtin and then its argument prototype would still apply. */
31228char $ac_func ();
afc31813
VZ
31229/* The GNU C library defines this for functions which it implements
31230 to always fail with ENOSYS. Some functions are actually named
31231 something starting with __ and the normal name is an alias. */
31232#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31233choke me
31234#else
e6cc62c6
VS
31235char (*f) () = $ac_func;
31236#endif
31237#ifdef __cplusplus
31238}
afc31813
VZ
31239#endif
31240
e6cc62c6
VS
31241int
31242main ()
31243{
31244return f != $ac_func;
31245 ;
31246 return 0;
31247}
31248_ACEOF
31249rm -f conftest.$ac_objext conftest$ac_exeext
31250if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 31251 (eval $ac_link) 2>&5
e6cc62c6
VS
31252 ac_status=$?
31253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31254 (exit $ac_status); } &&
789c5f4a 31255 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31257 (eval $ac_try) 2>&5
31258 ac_status=$?
31259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31260 (exit $ac_status); }; }; then
31261 eval "$as_ac_var=yes"
31262else
31263 echo "$as_me: failed program was:" >&5
31264sed 's/^/| /' conftest.$ac_ext >&5
31265
31266eval "$as_ac_var=no"
31267fi
789c5f4a 31268rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31269fi
31270echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31271echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31272if test `eval echo '${'$as_ac_var'}'` = yes; then
31273 cat >>confdefs.h <<_ACEOF
31274#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31275_ACEOF
afc31813 31276
f93ca9fd
VS
31277 cat >>confdefs.h <<\_ACEOF
31278#define HAVE_SHL_LOAD 1
31279_ACEOF
afc31813 31280
f93ca9fd 31281 HAVE_SHL_FUNCS=1
5c6fa7d2 31282
a0b9e27f 31283else
e6cc62c6 31284
f93ca9fd
VS
31285 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
31286echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
31287if test "${ac_cv_lib_shl_load_dld+set}" = set; then
31288 echo $ECHO_N "(cached) $ECHO_C" >&6
31289else
31290 ac_check_lib_save_LIBS=$LIBS
31291LIBS="-lshl_load $LIBS"
31292cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31293#line $LINENO "configure"
e6cc62c6
VS
31294/* confdefs.h. */
31295_ACEOF
31296cat confdefs.h >>conftest.$ac_ext
31297cat >>conftest.$ac_ext <<_ACEOF
31298/* end confdefs.h. */
0470b1e6 31299
f93ca9fd
VS
31300/* Override any gcc2 internal prototype to avoid an error. */
31301#ifdef __cplusplus
31302extern "C"
31303#endif
31304/* We use char because int might match the return type of a gcc2
31305 builtin and then its argument prototype would still apply. */
31306char dld ();
e6cc62c6
VS
31307int
31308main ()
31309{
f93ca9fd 31310dld ();
e6cc62c6
VS
31311 ;
31312 return 0;
31313}
31314_ACEOF
f93ca9fd
VS
31315rm -f conftest.$ac_objext conftest$ac_exeext
31316if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 31317 (eval $ac_link) 2>&5
e6cc62c6
VS
31318 ac_status=$?
31319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31320 (exit $ac_status); } &&
789c5f4a 31321 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31323 (eval $ac_try) 2>&5
31324 ac_status=$?
31325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31326 (exit $ac_status); }; }; then
f93ca9fd 31327 ac_cv_lib_shl_load_dld=yes
0470b1e6 31328else
e6cc62c6
VS
31329 echo "$as_me: failed program was:" >&5
31330sed 's/^/| /' conftest.$ac_ext >&5
31331
f93ca9fd
VS
31332ac_cv_lib_shl_load_dld=no
31333fi
789c5f4a 31334rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
31335LIBS=$ac_check_lib_save_LIBS
31336fi
31337echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
31338echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
31339if test $ac_cv_lib_shl_load_dld = yes; then
31340
31341 HAVE_SHL_FUNCS=1
31342 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 31343
247f5006 31344fi
f93ca9fd 31345
a0b9e27f 31346
e6cc62c6 31347fi
f93ca9fd 31348done
6232543b 31349
0470b1e6 31350
f93ca9fd
VS
31351fi
31352
3fcdd07b 31353
f93ca9fd
VS
31354fi
31355done
e6cc62c6
VS
31356
31357
f93ca9fd
VS
31358 if test "$HAVE_DL_FUNCS" = 1; then
31359
31360for ac_func in dlerror
3fcdd07b 31361do
e6cc62c6
VS
31362as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31363echo "$as_me:$LINENO: checking for $ac_func" >&5
31364echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31365if eval "test \"\${$as_ac_var+set}\" = set"; then
31366 echo $ECHO_N "(cached) $ECHO_C" >&6
31367else
31368 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31369#line $LINENO "configure"
e6cc62c6
VS
31370/* confdefs.h. */
31371_ACEOF
31372cat confdefs.h >>conftest.$ac_ext
31373cat >>conftest.$ac_ext <<_ACEOF
31374/* end confdefs.h. */
3fcdd07b 31375/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31376 which can conflict with char $ac_func (); below.
31377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31378 <limits.h> exists even on freestanding compilers. */
31379#ifdef __STDC__
31380# include <limits.h>
31381#else
31382# include <assert.h>
31383#endif
3fcdd07b 31384/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31385#ifdef __cplusplus
31386extern "C"
31387{
31388#endif
3fcdd07b 31389/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31390 builtin and then its argument prototype would still apply. */
31391char $ac_func ();
3fcdd07b
VZ
31392/* The GNU C library defines this for functions which it implements
31393 to always fail with ENOSYS. Some functions are actually named
31394 something starting with __ and the normal name is an alias. */
31395#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31396choke me
31397#else
e6cc62c6
VS
31398char (*f) () = $ac_func;
31399#endif
31400#ifdef __cplusplus
31401}
3fcdd07b
VZ
31402#endif
31403
e6cc62c6
VS
31404int
31405main ()
31406{
31407return f != $ac_func;
31408 ;
31409 return 0;
31410}
31411_ACEOF
31412rm -f conftest.$ac_objext conftest$ac_exeext
31413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 31414 (eval $ac_link) 2>&5
e6cc62c6
VS
31415 ac_status=$?
31416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31417 (exit $ac_status); } &&
789c5f4a 31418 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31420 (eval $ac_try) 2>&5
31421 ac_status=$?
31422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31423 (exit $ac_status); }; }; then
31424 eval "$as_ac_var=yes"
31425else
31426 echo "$as_me: failed program was:" >&5
31427sed 's/^/| /' conftest.$ac_ext >&5
31428
31429eval "$as_ac_var=no"
31430fi
789c5f4a 31431rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31432fi
31433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31434echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31435if test `eval echo '${'$as_ac_var'}'` = yes; then
31436 cat >>confdefs.h <<_ACEOF
31437#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31438_ACEOF
f93ca9fd
VS
31439 cat >>confdefs.h <<\_ACEOF
31440#define HAVE_DLERROR 1
31441_ACEOF
3fcdd07b 31442
f93ca9fd 31443else
698dcdb6 31444
f93ca9fd
VS
31445 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
31446echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
31447if test "${ac_cv_lib_dl_dlerror+set}" = set; then
e6cc62c6
VS
31448 echo $ECHO_N "(cached) $ECHO_C" >&6
31449else
f93ca9fd
VS
31450 ac_check_lib_save_LIBS=$LIBS
31451LIBS="-ldl $LIBS"
31452cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31453#line $LINENO "configure"
e6cc62c6
VS
31454/* confdefs.h. */
31455_ACEOF
31456cat confdefs.h >>conftest.$ac_ext
31457cat >>conftest.$ac_ext <<_ACEOF
31458/* end confdefs.h. */
afc31813 31459
f93ca9fd
VS
31460/* Override any gcc2 internal prototype to avoid an error. */
31461#ifdef __cplusplus
31462extern "C"
31463#endif
31464/* We use char because int might match the return type of a gcc2
31465 builtin and then its argument prototype would still apply. */
31466char dlerror ();
e6cc62c6
VS
31467int
31468main ()
31469{
f93ca9fd 31470dlerror ();
e6cc62c6
VS
31471 ;
31472 return 0;
31473}
31474_ACEOF
f93ca9fd
VS
31475rm -f conftest.$ac_objext conftest$ac_exeext
31476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 31477 (eval $ac_link) 2>&5
e6cc62c6
VS
31478 ac_status=$?
31479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31480 (exit $ac_status); } &&
789c5f4a 31481 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31483 (eval $ac_try) 2>&5
31484 ac_status=$?
31485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31486 (exit $ac_status); }; }; then
f93ca9fd 31487 ac_cv_lib_dl_dlerror=yes
10f2d63a 31488else
e6cc62c6
VS
31489 echo "$as_me: failed program was:" >&5
31490sed 's/^/| /' conftest.$ac_ext >&5
31491
f93ca9fd
VS
31492ac_cv_lib_dl_dlerror=no
31493fi
789c5f4a 31494rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
31495LIBS=$ac_check_lib_save_LIBS
31496fi
31497echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
31498echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
31499if test $ac_cv_lib_dl_dlerror = yes; then
31500 cat >>confdefs.h <<\_ACEOF
31501#define HAVE_DLERROR 1
31502_ACEOF
31503
31504fi
31505
31506
31507
31508fi
31509done
31510
31511 fi
31512 fi
31513
31514 if test "$HAVE_DL_FUNCS" = 0; then
31515 if test "$HAVE_SHL_FUNCS" = 0; then
31516 if test "$USE_UNIX" = 1; then
31517 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
31518echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
31519 wxUSE_DYNAMIC_LOADER=no
31520 wxUSE_DYNLIB_CLASS=no
31521 else
31522 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
31523echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
31524 fi
31525 fi
31526 fi
31527 fi
31528fi
31529
31530if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
31531 cat >>confdefs.h <<\_ACEOF
31532#define wxUSE_DYNAMIC_LOADER 1
31533_ACEOF
31534
31535fi
31536if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
31537 cat >>confdefs.h <<\_ACEOF
31538#define wxUSE_DYNLIB_CLASS 1
31539_ACEOF
31540
31541fi
31542
31543
31544
31545if test "$wxUSE_PLUGINS" = "yes" ; then
31546 if test "$wxUSE_SHARED" = "no" ; then
31547 { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
31548echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
31549 wxUSE_PLUGINS=no
31550 fi
31551 if test "$wxUSE_MONOLITHIC" = "yes" ; then
31552 { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
31553echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
31554 wxUSE_PLUGINS=no
31555 fi
31556 if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
31557 { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
31558echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
31559 wxUSE_PLUGINS=no
31560 fi
31561 if test "$wxUSE_PLUGINS" = "yes" ; then
31562 cat >>confdefs.h <<\_ACEOF
31563#define wxUSE_PLUGINS 1
31564_ACEOF
31565
31566 fi
31567fi
31568
31569
31570if test "$wxUSE_STL" = "yes"; then
31571 cat >>confdefs.h <<\_ACEOF
31572#define wxUSE_STL 1
31573_ACEOF
31574
31575fi
31576
31577if test "$wxUSE_APPLE_IEEE" = "yes"; then
31578 cat >>confdefs.h <<\_ACEOF
31579#define wxUSE_APPLE_IEEE 1
31580_ACEOF
31581
31582fi
31583
31584if test "$wxUSE_TIMER" = "yes"; then
31585 cat >>confdefs.h <<\_ACEOF
31586#define wxUSE_TIMER 1
31587_ACEOF
31588
31589fi
31590
31591WITH_PLUGIN_SDL=0
002ed9af 31592if test "$wxUSE_SOUND" = "yes"; then
f93ca9fd
VS
31593 if test "$USE_UNIX" = "1" ; then
31594
31595for ac_header in sys/soundcard.h
31596do
31597as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31598if eval "test \"\${$as_ac_Header+set}\" = set"; then
31599 echo "$as_me:$LINENO: checking for $ac_header" >&5
31600echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31601if eval "test \"\${$as_ac_Header+set}\" = set"; then
31602 echo $ECHO_N "(cached) $ECHO_C" >&6
31603fi
31604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31605echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31606else
31607 # Is the header compilable?
31608echo "$as_me:$LINENO: checking $ac_header usability" >&5
31609echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6 31610cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31611#line $LINENO "configure"
e6cc62c6
VS
31612/* confdefs.h. */
31613_ACEOF
31614cat confdefs.h >>conftest.$ac_ext
31615cat >>conftest.$ac_ext <<_ACEOF
31616/* end confdefs.h. */
f93ca9fd
VS
31617$ac_includes_default
31618#include <$ac_header>
e6cc62c6
VS
31619_ACEOF
31620rm -f conftest.$ac_objext
31621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 31622 (eval $ac_compile) 2>&5
e6cc62c6
VS
31623 ac_status=$?
31624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625 (exit $ac_status); } &&
789c5f4a 31626 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
31627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31628 (eval $ac_try) 2>&5
31629 ac_status=$?
31630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31631 (exit $ac_status); }; }; then
f93ca9fd 31632 ac_header_compiler=yes
10f2d63a 31633else
e6cc62c6
VS
31634 echo "$as_me: failed program was:" >&5
31635sed 's/^/| /' conftest.$ac_ext >&5
31636
f93ca9fd 31637ac_header_compiler=no
10f2d63a 31638fi
789c5f4a 31639rm -f conftest.$ac_objext conftest.$ac_ext
f93ca9fd
VS
31640echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31641echo "${ECHO_T}$ac_header_compiler" >&6
b089607b 31642
f93ca9fd
VS
31643# Is the header present?
31644echo "$as_me:$LINENO: checking $ac_header presence" >&5
31645echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31646cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31647#line $LINENO "configure"
e6cc62c6
VS
31648/* confdefs.h. */
31649_ACEOF
31650cat confdefs.h >>conftest.$ac_ext
31651cat >>conftest.$ac_ext <<_ACEOF
31652/* end confdefs.h. */
f93ca9fd 31653#include <$ac_header>
e6cc62c6 31654_ACEOF
f93ca9fd
VS
31655if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
e6cc62c6 31657 ac_status=$?
f95e4495
VS
31658 grep -v '^ *+' conftest.er1 >conftest.err
31659 rm -f conftest.er1
31660 cat conftest.err >&5
e6cc62c6 31661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f93ca9fd
VS
31662 (exit $ac_status); } >/dev/null; then
31663 if test -s conftest.err; then
31664 ac_cpp_err=$ac_c_preproc_warn_flag
f93ca9fd
VS
31665 else
31666 ac_cpp_err=
31667 fi
31668else
31669 ac_cpp_err=yes
31670fi
31671if test -z "$ac_cpp_err"; then
31672 ac_header_preproc=yes
31673else
31674 echo "$as_me: failed program was:" >&5
31675sed 's/^/| /' conftest.$ac_ext >&5
31676
31677 ac_header_preproc=no
31678fi
31679rm -f conftest.err conftest.$ac_ext
31680echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31681echo "${ECHO_T}$ac_header_preproc" >&6
31682
31683# So? What about this header?
789c5f4a
VZ
31684case $ac_header_compiler:$ac_header_preproc in
31685 yes:no )
f93ca9fd
VS
31686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31687echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
31688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31689echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31690 (
31691 cat <<\_ASBOX
31692## ------------------------------------ ##
31693## Report this to bug-autoconf@gnu.org. ##
31694## ------------------------------------ ##
31695_ASBOX
31696 ) |
31697 sed "s/^/$as_me: WARNING: /" >&2
f93ca9fd 31698 ;;
789c5f4a 31699 no:yes )
f93ca9fd
VS
31700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31701echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
31702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31703echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
f93ca9fd
VS
31704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31705echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f93ca9fd
VS
31706 (
31707 cat <<\_ASBOX
789c5f4a
VZ
31708## ------------------------------------ ##
31709## Report this to bug-autoconf@gnu.org. ##
31710## ------------------------------------ ##
f93ca9fd
VS
31711_ASBOX
31712 ) |
31713 sed "s/^/$as_me: WARNING: /" >&2
31714 ;;
31715esac
31716echo "$as_me:$LINENO: checking for $ac_header" >&5
31717echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31718if eval "test \"\${$as_ac_Header+set}\" = set"; then
31719 echo $ECHO_N "(cached) $ECHO_C" >&6
31720else
789c5f4a 31721 eval "$as_ac_Header=$ac_header_preproc"
f93ca9fd
VS
31722fi
31723echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31724echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31725
31726fi
31727if test `eval echo '${'$as_ac_Header'}'` = yes; then
31728 cat >>confdefs.h <<_ACEOF
31729#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31730_ACEOF
31731
31732fi
31733
31734done
31735
31736
31737 if test "$wxUSE_LIBSDL" != "no"; then
31738
31739# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
31740if test "${with_sdl_prefix+set}" = set; then
31741 withval="$with_sdl_prefix"
31742 sdl_prefix="$withval"
31743else
31744 sdl_prefix=""
31745fi;
31746
31747# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
31748if test "${with_sdl_exec_prefix+set}" = set; then
31749 withval="$with_sdl_exec_prefix"
31750 sdl_exec_prefix="$withval"
31751else
31752 sdl_exec_prefix=""
31753fi;
31754# Check whether --enable-sdltest or --disable-sdltest was given.
31755if test "${enable_sdltest+set}" = set; then
31756 enableval="$enable_sdltest"
31757
31758else
31759 enable_sdltest=yes
31760fi;
31761
31762 if test x$sdl_exec_prefix != x ; then
31763 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
31764 if test x${SDL_CONFIG+set} != xset ; then
31765 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
31766 fi
31767 fi
31768 if test x$sdl_prefix != x ; then
31769 sdl_args="$sdl_args --prefix=$sdl_prefix"
31770 if test x${SDL_CONFIG+set} != xset ; then
31771 SDL_CONFIG=$sdl_prefix/bin/sdl-config
31772 fi
31773 fi
31774
31775
31776 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
31777 # Extract the first word of "sdl-config", so it can be a program name with args.
31778set dummy sdl-config; ac_word=$2
31779echo "$as_me:$LINENO: checking for $ac_word" >&5
31780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
31781if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
31782 echo $ECHO_N "(cached) $ECHO_C" >&6
31783else
31784 case $SDL_CONFIG in
31785 [\\/]* | ?:[\\/]*)
31786 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
31787 ;;
31788 *)
31789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31790for as_dir in $PATH
31791do
31792 IFS=$as_save_IFS
31793 test -z "$as_dir" && as_dir=.
31794 for ac_exec_ext in '' $ac_executable_extensions; do
31795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
31796 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31798 break 2
31799 fi
31800done
31801done
31802
31803 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
31804 ;;
31805esac
31806fi
31807SDL_CONFIG=$ac_cv_path_SDL_CONFIG
31808
31809if test -n "$SDL_CONFIG"; then
31810 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
31811echo "${ECHO_T}$SDL_CONFIG" >&6
31812else
31813 echo "$as_me:$LINENO: result: no" >&5
31814echo "${ECHO_T}no" >&6
31815fi
31816
31817 min_sdl_version=1.2.0
31818 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
31819echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
31820 no_sdl=""
31821 if test "$SDL_CONFIG" = "no" ; then
31822 no_sdl=yes
31823 else
31824 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
31825 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
31826
31827 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
31828 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31829 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
31830 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31831 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
31832 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31833 if test "x$enable_sdltest" = "xyes" ; then
31834 ac_save_CFLAGS="$CFLAGS"
31835 ac_save_LIBS="$LIBS"
31836 CFLAGS="$CFLAGS $SDL_CFLAGS"
31837 LIBS="$LIBS $SDL_LIBS"
31838 rm -f conf.sdltest
31839 if test "$cross_compiling" = yes; then
31840 echo $ac_n "cross compiling; assumed OK... $ac_c"
31841else
31842 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31843#line $LINENO "configure"
f93ca9fd
VS
31844/* confdefs.h. */
31845_ACEOF
31846cat confdefs.h >>conftest.$ac_ext
31847cat >>conftest.$ac_ext <<_ACEOF
31848/* end confdefs.h. */
31849
31850#include <stdio.h>
31851#include <stdlib.h>
31852#include <string.h>
31853#include "SDL.h"
31854
31855char*
31856my_strdup (char *str)
31857{
31858 char *new_str;
31859
31860 if (str)
31861 {
31862 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
31863 strcpy (new_str, str);
31864 }
31865 else
31866 new_str = NULL;
31867
31868 return new_str;
31869}
31870
31871int main (int argc, char *argv[])
31872{
31873 int major, minor, micro;
31874 char *tmp_version;
31875
31876 /* This hangs on some systems (?)
31877 system ("touch conf.sdltest");
31878 */
31879 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
31880
31881 /* HP/UX 9 (%@#!) writes to sscanf strings */
31882 tmp_version = my_strdup("$min_sdl_version");
31883 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31884 printf("%s, bad version string\n", "$min_sdl_version");
31885 exit(1);
31886 }
31887
31888 if (($sdl_major_version > major) ||
31889 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
31890 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
31891 {
31892 return 0;
31893 }
31894 else
31895 {
31896 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
31897 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
31898 printf("*** best to upgrade to the required version.\n");
31899 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
31900 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
31901 printf("*** config.cache before re-running configure\n");
31902 return 1;
31903 }
31904}
31905
31906
31907_ACEOF
31908rm -f conftest$ac_exeext
31909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31910 (eval $ac_link) 2>&5
f95e4495
VS
31911 ac_status=$?
31912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f93ca9fd 31913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
e6cc62c6
VS
31914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31915 (eval $ac_try) 2>&5
31916 ac_status=$?
31917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918 (exit $ac_status); }; }; then
f93ca9fd 31919 :
e6cc62c6 31920else
f93ca9fd
VS
31921 echo "$as_me: program exited with status $ac_status" >&5
31922echo "$as_me: failed program was:" >&5
e6cc62c6
VS
31923sed 's/^/| /' conftest.$ac_ext >&5
31924
f93ca9fd
VS
31925( exit $ac_status )
31926no_sdl=yes
e6cc62c6 31927fi
789c5f4a 31928rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6 31929fi
f93ca9fd
VS
31930 CFLAGS="$ac_save_CFLAGS"
31931 LIBS="$ac_save_LIBS"
31932 fi
31933 fi
31934 if test "x$no_sdl" = x ; then
31935 echo "$as_me:$LINENO: result: yes" >&5
31936echo "${ECHO_T}yes" >&6
0e012a93 31937
f93ca9fd
VS
31938 EXTRALIBS_SDL="$SDL_LIBS"
31939 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
31940 cat >>confdefs.h <<\_ACEOF
31941#define wxUSE_LIBSDL 1
31942_ACEOF
31943
31944
31945 else
31946 echo "$as_me:$LINENO: result: no" >&5
31947echo "${ECHO_T}no" >&6
31948 if test "$SDL_CONFIG" = "no" ; then
31949 echo "*** The sdl-config script installed by SDL could not be found"
31950 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
31951 echo "*** your path, or set the SDL_CONFIG environment variable to the"
31952 echo "*** full path to sdl-config."
31953 else
31954 if test -f conf.sdltest ; then
31955 :
31956 else
31957 echo "*** Could not run SDL test program, checking why..."
31958 CFLAGS="$CFLAGS $SDL_CFLAGS"
31959 LIBS="$LIBS $SDL_LIBS"
31960 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 31961#line $LINENO "configure"
e6cc62c6
VS
31962/* confdefs.h. */
31963_ACEOF
31964cat confdefs.h >>conftest.$ac_ext
31965cat >>conftest.$ac_ext <<_ACEOF
31966/* end confdefs.h. */
31967
f93ca9fd
VS
31968#include <stdio.h>
31969#include "SDL.h"
31970
31971int main(int argc, char *argv[])
31972{ return 0; }
31973#undef main
31974#define main K_and_R_C_main
31975
e6cc62c6
VS
31976int
31977main ()
31978{
f93ca9fd 31979 return 0;
e6cc62c6
VS
31980 ;
31981 return 0;
31982}
31983_ACEOF
31984rm -f conftest.$ac_objext conftest$ac_exeext
31985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 31986 (eval $ac_link) 2>&5
e6cc62c6
VS
31987 ac_status=$?
31988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31989 (exit $ac_status); } &&
789c5f4a 31990 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31992 (eval $ac_try) 2>&5
31993 ac_status=$?
31994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995 (exit $ac_status); }; }; then
f93ca9fd
VS
31996 echo "*** The test program compiled, but did not run. This usually means"
31997 echo "*** that the run-time linker is not finding SDL or finding the wrong"
31998 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
31999 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
32000 echo "*** to the installed location Also, make sure you have run ldconfig if that"
32001 echo "*** is required on your system"
32002 echo "***"
32003 echo "*** If you have an old version installed, it is best to remove it, although"
32004 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
e6cc62c6
VS
32005else
32006 echo "$as_me: failed program was:" >&5
32007sed 's/^/| /' conftest.$ac_ext >&5
32008
f93ca9fd
VS
32009 echo "*** The test program failed to compile or link. See the file config.log for the"
32010 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
32011 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
32012 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
e6cc62c6 32013fi
789c5f4a 32014rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
32015 CFLAGS="$ac_save_CFLAGS"
32016 LIBS="$ac_save_LIBS"
32017 fi
32018 fi
32019 SDL_CFLAGS=""
32020 SDL_LIBS=""
32021 wxUSE_LIBSDL="no"
32022 fi
32023
32024
32025 rm -f conf.sdltest
32026
32027 if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
32028 WITH_PLUGIN_SDL=1
32029 fi
32030 fi
32031 fi
32032
32033 cat >>confdefs.h <<\_ACEOF
002ed9af 32034#define wxUSE_SOUND 1
f93ca9fd
VS
32035_ACEOF
32036
32037 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
e6cc62c6 32038fi
afc31813 32039
f93ca9fd
VS
32040if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
32041 cat >>confdefs.h <<\_ACEOF
32042#define wxUSE_CMDLINE_PARSER 1
32043_ACEOF
32044
32045fi
e6cc62c6 32046
f93ca9fd
VS
32047if test "$wxUSE_STOPWATCH" = "yes"; then
32048 cat >>confdefs.h <<\_ACEOF
32049#define wxUSE_STOPWATCH 1
32050_ACEOF
e6cc62c6 32051
6232543b 32052fi
b089607b 32053
f93ca9fd
VS
32054if test "$wxUSE_DATETIME" = "yes"; then
32055 cat >>confdefs.h <<\_ACEOF
32056#define wxUSE_DATETIME 1
32057_ACEOF
e6cc62c6 32058
f93ca9fd
VS
32059fi
32060
32061if test "$wxUSE_FILE" = "yes"; then
32062 cat >>confdefs.h <<\_ACEOF
32063#define wxUSE_FILE 1
32064_ACEOF
0e012a93 32065
1e487827 32066fi
afc31813 32067
f93ca9fd
VS
32068if test "$wxUSE_FFILE" = "yes"; then
32069 cat >>confdefs.h <<\_ACEOF
32070#define wxUSE_FFILE 1
32071_ACEOF
32072
32073fi
32074
32075if test "$wxUSE_FILESYSTEM" = "yes"; then
32076 cat >>confdefs.h <<\_ACEOF
32077#define wxUSE_FILESYSTEM 1
32078_ACEOF
32079
32080fi
32081
32082if test "$wxUSE_FS_ZIP" = "yes"; then
32083 cat >>confdefs.h <<\_ACEOF
32084#define wxUSE_FS_ZIP 1
32085_ACEOF
32086
32087fi
32088
32089if test "$wxUSE_ZIPSTREAM" = "yes"; then
32090 cat >>confdefs.h <<\_ACEOF
32091#define wxUSE_ZIPSTREAM 1
32092_ACEOF
32093
32094fi
32095
32096if test "$wxUSE_GZSTREAM" = "yes"; then
32097 cat >>confdefs.h <<\_ACEOF
32098#define wxUSE_GZSTREAM 1
32099_ACEOF
32100
32101fi
32102
32103if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
32104 cat >>confdefs.h <<\_ACEOF
32105#define wxUSE_ON_FATAL_EXCEPTION 1
32106_ACEOF
32107
32108fi
32109
32110if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
32111 cat >>confdefs.h <<\_ACEOF
32112#define wxUSE_SNGLINST_CHECKER 1
32113_ACEOF
32114
32115fi
32116
32117if test "$wxUSE_BUSYINFO" = "yes"; then
32118 cat >>confdefs.h <<\_ACEOF
32119#define wxUSE_BUSYINFO 1
32120_ACEOF
32121
32122fi
32123
32124if test "$wxUSE_STD_IOSTREAM" = "yes"; then
32125 cat >>confdefs.h <<\_ACEOF
32126#define wxUSE_STD_IOSTREAM 1
32127_ACEOF
32128
32129fi
32130
32131if test "$wxUSE_TEXTBUFFER" = "yes"; then
32132 cat >>confdefs.h <<\_ACEOF
32133#define wxUSE_TEXTBUFFER 1
32134_ACEOF
32135
32136fi
32137
32138if test "$wxUSE_TEXTFILE" = "yes"; then
32139 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
32140 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
32141echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
32142 else
32143 cat >>confdefs.h <<\_ACEOF
32144#define wxUSE_TEXTFILE 1
32145_ACEOF
32146
32147 fi
32148fi
32149
32150if test "$wxUSE_CONFIG" = "yes" ; then
32151 if test "$wxUSE_TEXTFILE" != "yes"; then
32152 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
32153echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
32154 else
32155 cat >>confdefs.h <<\_ACEOF
32156#define wxUSE_CONFIG 1
32157_ACEOF
32158
32159 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
32160 fi
32161fi
32162
32163if test "$wxUSE_INTL" = "yes" ; then
32164 if test "$wxUSE_FILE" != "yes"; then
32165 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
32166echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
32167 else
32168 cat >>confdefs.h <<\_ACEOF
32169#define wxUSE_INTL 1
32170_ACEOF
32171
32172 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
32173 GUIDIST="$GUIDIST INTL_DIST"
32174 fi
32175fi
32176
32177if test "$wxUSE_LOG" = "yes"; then
32178 cat >>confdefs.h <<\_ACEOF
32179#define wxUSE_LOG 1
32180_ACEOF
32181
32182
32183 if test "$wxUSE_LOGGUI" = "yes"; then
32184 cat >>confdefs.h <<\_ACEOF
32185#define wxUSE_LOGGUI 1
32186_ACEOF
32187
32188 fi
32189
32190 if test "$wxUSE_LOGWINDOW" = "yes"; then
32191 cat >>confdefs.h <<\_ACEOF
32192#define wxUSE_LOGWINDOW 1
32193_ACEOF
32194
32195 fi
32196
32197 if test "$wxUSE_LOGDIALOG" = "yes"; then
32198 cat >>confdefs.h <<\_ACEOF
32199#define wxUSE_LOG_DIALOG 1
32200_ACEOF
32201
3a922bb4 32202 fi
0feee163 32203fi
51a9faba 32204
f93ca9fd
VS
32205if test "$wxUSE_LONGLONG" = "yes"; then
32206 cat >>confdefs.h <<\_ACEOF
32207#define wxUSE_LONGLONG 1
32208_ACEOF
e6cc62c6 32209
f93ca9fd
VS
32210fi
32211
32212if test "$wxUSE_GEOMETRY" = "yes"; then
32213 cat >>confdefs.h <<\_ACEOF
32214#define wxUSE_GEOMETRY 1
e6cc62c6 32215_ACEOF
51a9faba 32216
f93ca9fd 32217fi
e6cc62c6 32218
f93ca9fd
VS
32219if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
32220 cat >>confdefs.h <<\_ACEOF
32221#define wxUSE_DIALUP_MANAGER 1
32222_ACEOF
51a9faba 32223
f93ca9fd
VS
32224 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
32225fi
e6cc62c6 32226
f93ca9fd
VS
32227if test "$wxUSE_STREAMS" = "yes" ; then
32228 cat >>confdefs.h <<\_ACEOF
32229#define wxUSE_STREAMS 1
e6cc62c6 32230_ACEOF
e6cc62c6 32231
f93ca9fd 32232fi
e6cc62c6 32233
9711d31e 32234
f93ca9fd
VS
32235if test "$wxUSE_DATETIME" = "yes"; then
32236
32237for ac_func in strptime
32238do
32239as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32240echo "$as_me:$LINENO: checking for $ac_func" >&5
32241echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32242if eval "test \"\${$as_ac_var+set}\" = set"; then
32243 echo $ECHO_N "(cached) $ECHO_C" >&6
32244else
32245 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32246#line $LINENO "configure"
e6cc62c6
VS
32247/* confdefs.h. */
32248_ACEOF
32249cat confdefs.h >>conftest.$ac_ext
32250cat >>conftest.$ac_ext <<_ACEOF
32251/* end confdefs.h. */
f93ca9fd
VS
32252/* System header to define __stub macros and hopefully few prototypes,
32253 which can conflict with char $ac_func (); below.
32254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32255 <limits.h> exists even on freestanding compilers. */
f93ca9fd
VS
32256#ifdef __STDC__
32257# include <limits.h>
32258#else
32259# include <assert.h>
32260#endif
f93ca9fd
VS
32261/* Override any gcc2 internal prototype to avoid an error. */
32262#ifdef __cplusplus
32263extern "C"
32264{
32265#endif
32266/* We use char because int might match the return type of a gcc2
32267 builtin and then its argument prototype would still apply. */
32268char $ac_func ();
32269/* The GNU C library defines this for functions which it implements
32270 to always fail with ENOSYS. Some functions are actually named
32271 something starting with __ and the normal name is an alias. */
32272#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32273choke me
32274#else
32275char (*f) () = $ac_func;
32276#endif
32277#ifdef __cplusplus
32278}
32279#endif
e6cc62c6
VS
32280
32281int
32282main ()
32283{
f93ca9fd 32284return f != $ac_func;
e6cc62c6
VS
32285 ;
32286 return 0;
32287}
32288_ACEOF
f93ca9fd
VS
32289rm -f conftest.$ac_objext conftest$ac_exeext
32290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 32291 (eval $ac_link) 2>&5
e6cc62c6
VS
32292 ac_status=$?
32293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294 (exit $ac_status); } &&
789c5f4a 32295 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
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); }; }; then
f93ca9fd 32301 eval "$as_ac_var=yes"
afc31813 32302else
e6cc62c6
VS
32303 echo "$as_me: failed program was:" >&5
32304sed 's/^/| /' conftest.$ac_ext >&5
32305
f93ca9fd
VS
32306eval "$as_ac_var=no"
32307fi
789c5f4a 32308rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
32309fi
32310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32311echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32312if test `eval echo '${'$as_ac_var'}'` = yes; then
32313 cat >>confdefs.h <<_ACEOF
32314#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32315_ACEOF
32316
32317fi
32318done
32319
32320
32321 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
32322echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
32323if test "${wx_cv_var_timezone+set}" = set; then
32324 echo $ECHO_N "(cached) $ECHO_C" >&6
32325else
32326
32327 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32328#line $LINENO "configure"
e6cc62c6
VS
32329/* confdefs.h. */
32330_ACEOF
32331cat confdefs.h >>conftest.$ac_ext
32332cat >>conftest.$ac_ext <<_ACEOF
32333/* end confdefs.h. */
51a9faba 32334
f93ca9fd 32335 #include <time.h>
e6cc62c6
VS
32336
32337int
32338main ()
32339{
51a9faba 32340
f93ca9fd
VS
32341 int tz;
32342 tz = timezone;
e6cc62c6
VS
32343
32344 ;
32345 return 0;
32346}
32347_ACEOF
32348rm -f conftest.$ac_objext
32349if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 32350 (eval $ac_compile) 2>&5
e6cc62c6
VS
32351 ac_status=$?
32352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32353 (exit $ac_status); } &&
789c5f4a 32354 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
32355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32356 (eval $ac_try) 2>&5
32357 ac_status=$?
32358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359 (exit $ac_status); }; }; then
8284b0c5 32360
f93ca9fd 32361 wx_cv_var_timezone=timezone
dc3d889d 32362
f93ca9fd
VS
32363else
32364 echo "$as_me: failed program was:" >&5
32365sed 's/^/| /' conftest.$ac_ext >&5
156b2523 32366
e6cc62c6 32367
f93ca9fd 32368 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32369#line $LINENO "configure"
e6cc62c6
VS
32370/* confdefs.h. */
32371_ACEOF
32372cat confdefs.h >>conftest.$ac_ext
32373cat >>conftest.$ac_ext <<_ACEOF
32374/* end confdefs.h. */
f93ca9fd
VS
32375
32376 #include <time.h>
32377
32378int
32379main ()
32380{
32381
32382 int tz;
32383 tz = _timezone;
32384
32385 ;
32386 return 0;
32387}
e6cc62c6
VS
32388_ACEOF
32389rm -f conftest.$ac_objext
32390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 32391 (eval $ac_compile) 2>&5
e6cc62c6
VS
32392 ac_status=$?
32393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32394 (exit $ac_status); } &&
789c5f4a 32395 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32397 (eval $ac_try) 2>&5
32398 ac_status=$?
32399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32400 (exit $ac_status); }; }; then
f93ca9fd
VS
32401
32402 wx_cv_var_timezone=_timezone
32403
e6cc62c6
VS
32404else
32405 echo "$as_me: failed program was:" >&5
32406sed 's/^/| /' conftest.$ac_ext >&5
32407
e6cc62c6 32408
f93ca9fd 32409 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32410#line $LINENO "configure"
e6cc62c6
VS
32411/* confdefs.h. */
32412_ACEOF
32413cat confdefs.h >>conftest.$ac_ext
32414cat >>conftest.$ac_ext <<_ACEOF
32415/* end confdefs.h. */
f93ca9fd
VS
32416
32417 #include <time.h>
32418
32419int
32420main ()
32421{
32422
32423 int tz;
32424 tz = __timezone;
32425
32426 ;
32427 return 0;
32428}
e6cc62c6 32429_ACEOF
f93ca9fd
VS
32430rm -f conftest.$ac_objext
32431if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 32432 (eval $ac_compile) 2>&5
e6cc62c6 32433 ac_status=$?
e6cc62c6 32434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
f93ca9fd 32435 (exit $ac_status); } &&
789c5f4a 32436 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
32437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32438 (eval $ac_try) 2>&5
32439 ac_status=$?
32440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32441 (exit $ac_status); }; }; then
32442
32443 wx_cv_var_timezone=__timezone
32444
e6cc62c6
VS
32445else
32446 echo "$as_me: failed program was:" >&5
32447sed 's/^/| /' conftest.$ac_ext >&5
32448
e6cc62c6 32449
f93ca9fd
VS
32450 if test "$USE_DOS" = 0 ; then
32451 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
32452echo "$as_me: WARNING: no timezone variable" >&2;}
32453 fi
32454
e6cc62c6 32455
10f2d63a 32456fi
789c5f4a 32457rm -f conftest.$ac_objext conftest.$ac_ext
f93ca9fd 32458
e6cc62c6 32459
247f5006 32460fi
789c5f4a 32461rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 32462
10f2d63a 32463
f93ca9fd 32464fi
789c5f4a 32465rm -f conftest.$ac_objext conftest.$ac_ext
b089607b 32466
10f2d63a 32467
dc3d889d 32468fi
f93ca9fd
VS
32469echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
32470echo "${ECHO_T}$wx_cv_var_timezone" >&6
dc3d889d 32471
f93ca9fd
VS
32472 if test "x$wx_cv_var_timezone" != x ; then
32473 cat >>confdefs.h <<_ACEOF
32474#define WX_TIMEZONE $wx_cv_var_timezone
32475_ACEOF
8284b0c5 32476
f93ca9fd 32477 fi
b089607b 32478
e6cc62c6 32479
f93ca9fd 32480for ac_func in localtime
10f2d63a 32481do
e6cc62c6
VS
32482as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32483echo "$as_me:$LINENO: checking for $ac_func" >&5
32484echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32485if eval "test \"\${$as_ac_var+set}\" = set"; then
32486 echo $ECHO_N "(cached) $ECHO_C" >&6
32487else
32488 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32489#line $LINENO "configure"
e6cc62c6
VS
32490/* confdefs.h. */
32491_ACEOF
32492cat confdefs.h >>conftest.$ac_ext
32493cat >>conftest.$ac_ext <<_ACEOF
32494/* end confdefs.h. */
10f2d63a 32495/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32496 which can conflict with char $ac_func (); below.
32497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32498 <limits.h> exists even on freestanding compilers. */
32499#ifdef __STDC__
32500# include <limits.h>
32501#else
32502# include <assert.h>
32503#endif
10f2d63a 32504/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32505#ifdef __cplusplus
32506extern "C"
32507{
32508#endif
10f2d63a 32509/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32510 builtin and then its argument prototype would still apply. */
32511char $ac_func ();
10f2d63a
VZ
32512/* The GNU C library defines this for functions which it implements
32513 to always fail with ENOSYS. Some functions are actually named
32514 something starting with __ and the normal name is an alias. */
32515#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32516choke me
32517#else
e6cc62c6
VS
32518char (*f) () = $ac_func;
32519#endif
32520#ifdef __cplusplus
32521}
10f2d63a
VZ
32522#endif
32523
e6cc62c6
VS
32524int
32525main ()
32526{
32527return f != $ac_func;
32528 ;
32529 return 0;
32530}
32531_ACEOF
32532rm -f conftest.$ac_objext conftest$ac_exeext
32533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 32534 (eval $ac_link) 2>&5
e6cc62c6
VS
32535 ac_status=$?
32536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32537 (exit $ac_status); } &&
789c5f4a 32538 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32540 (eval $ac_try) 2>&5
32541 ac_status=$?
32542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543 (exit $ac_status); }; }; then
32544 eval "$as_ac_var=yes"
32545else
32546 echo "$as_me: failed program was:" >&5
32547sed 's/^/| /' conftest.$ac_ext >&5
32548
32549eval "$as_ac_var=no"
32550fi
789c5f4a 32551rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32552fi
32553echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32554echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32555if test `eval echo '${'$as_ac_var'}'` = yes; then
32556 cat >>confdefs.h <<_ACEOF
32557#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32558_ACEOF
32559
f93ca9fd
VS
32560fi
32561done
e6cc62c6 32562
e6cc62c6 32563
f93ca9fd
VS
32564 if test "$ac_cv_func_localtime" = "yes"; then
32565 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
32566echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
32567if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
e6cc62c6 32568 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 32569else
f93ca9fd
VS
32570
32571 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32572#line $LINENO "configure"
e6cc62c6
VS
32573/* confdefs.h. */
32574_ACEOF
32575cat confdefs.h >>conftest.$ac_ext
32576cat >>conftest.$ac_ext <<_ACEOF
32577/* end confdefs.h. */
32578
f93ca9fd
VS
32579 #include <time.h>
32580
e6cc62c6
VS
32581int
32582main ()
32583{
f93ca9fd
VS
32584
32585 struct tm tm;
32586 tm.tm_gmtoff++;
32587
e6cc62c6
VS
32588 ;
32589 return 0;
32590}
32591_ACEOF
f93ca9fd
VS
32592rm -f conftest.$ac_objext
32593if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 32594 (eval $ac_compile) 2>&5
e6cc62c6
VS
32595 ac_status=$?
32596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32597 (exit $ac_status); } &&
789c5f4a 32598 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32600 (eval $ac_try) 2>&5
32601 ac_status=$?
32602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32603 (exit $ac_status); }; }; then
f93ca9fd
VS
32604
32605 wx_cv_struct_tm_has_gmtoff=yes
32606
e6cc62c6
VS
32607else
32608 echo "$as_me: failed program was:" >&5
32609sed 's/^/| /' conftest.$ac_ext >&5
32610
f93ca9fd
VS
32611wx_cv_struct_tm_has_gmtoff=no
32612
e6cc62c6 32613fi
789c5f4a 32614rm -f conftest.$ac_objext conftest.$ac_ext
f93ca9fd 32615
e6cc62c6 32616fi
f93ca9fd
VS
32617echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
32618echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
32619 fi
e6cc62c6 32620
f93ca9fd
VS
32621 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
32622 cat >>confdefs.h <<\_ACEOF
32623#define WX_GMTOFF_IN_TM 1
e6cc62c6 32624_ACEOF
10f2d63a 32625
f93ca9fd 32626 fi
e6cc62c6 32627
10f2d63a 32628
e6cc62c6 32629
f93ca9fd 32630for ac_func in gettimeofday ftime
10f2d63a 32631do
e6cc62c6
VS
32632as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32633echo "$as_me:$LINENO: checking for $ac_func" >&5
32634echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32635if eval "test \"\${$as_ac_var+set}\" = set"; then
32636 echo $ECHO_N "(cached) $ECHO_C" >&6
32637else
32638 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32639#line $LINENO "configure"
e6cc62c6
VS
32640/* confdefs.h. */
32641_ACEOF
32642cat confdefs.h >>conftest.$ac_ext
32643cat >>conftest.$ac_ext <<_ACEOF
32644/* end confdefs.h. */
10f2d63a 32645/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32646 which can conflict with char $ac_func (); below.
32647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32648 <limits.h> exists even on freestanding compilers. */
32649#ifdef __STDC__
32650# include <limits.h>
32651#else
32652# include <assert.h>
32653#endif
10f2d63a 32654/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32655#ifdef __cplusplus
32656extern "C"
32657{
32658#endif
10f2d63a 32659/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32660 builtin and then its argument prototype would still apply. */
32661char $ac_func ();
10f2d63a
VZ
32662/* The GNU C library defines this for functions which it implements
32663 to always fail with ENOSYS. Some functions are actually named
32664 something starting with __ and the normal name is an alias. */
32665#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
32666choke me
32667#else
e6cc62c6
VS
32668char (*f) () = $ac_func;
32669#endif
32670#ifdef __cplusplus
32671}
10f2d63a
VZ
32672#endif
32673
e6cc62c6
VS
32674int
32675main ()
32676{
32677return f != $ac_func;
32678 ;
32679 return 0;
32680}
32681_ACEOF
32682rm -f conftest.$ac_objext conftest$ac_exeext
32683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 32684 (eval $ac_link) 2>&5
e6cc62c6
VS
32685 ac_status=$?
32686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32687 (exit $ac_status); } &&
789c5f4a 32688 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32690 (eval $ac_try) 2>&5
32691 ac_status=$?
32692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693 (exit $ac_status); }; }; then
32694 eval "$as_ac_var=yes"
32695else
32696 echo "$as_me: failed program was:" >&5
32697sed 's/^/| /' conftest.$ac_ext >&5
32698
32699eval "$as_ac_var=no"
32700fi
789c5f4a 32701rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32702fi
32703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
32704echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
32705if test `eval echo '${'$as_ac_var'}'` = yes; then
32706 cat >>confdefs.h <<_ACEOF
32707#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32708_ACEOF
f93ca9fd
VS
32709 break
32710fi
32711done
e6cc62c6 32712
f93ca9fd
VS
32713
32714 if test "$ac_cv_func_gettimeofday" = "yes"; then
32715 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
32716echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
32717if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
32718 echo $ECHO_N "(cached) $ECHO_C" >&6
32719else
32720
32721
32722
32723 ac_ext=cc
32724ac_cpp='$CXXCPP $CPPFLAGS'
32725ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32726ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32727ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32728
32729
32730 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32731#line $LINENO "configure"
f93ca9fd 32732/* confdefs.h. */
e6cc62c6 32733_ACEOF
f93ca9fd
VS
32734cat confdefs.h >>conftest.$ac_ext
32735cat >>conftest.$ac_ext <<_ACEOF
32736/* end confdefs.h. */
10f2d63a 32737
f93ca9fd
VS
32738 #include <sys/time.h>
32739 #include <unistd.h>
e6cc62c6 32740
f93ca9fd
VS
32741int
32742main ()
32743{
e6cc62c6 32744
f93ca9fd
VS
32745 struct timeval tv;
32746 gettimeofday(&tv, NULL);
32747
32748 ;
32749 return 0;
32750}
32751_ACEOF
32752rm -f conftest.$ac_objext
32753if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 32754 (eval $ac_compile) 2>&5
f93ca9fd 32755 ac_status=$?
f93ca9fd
VS
32756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32757 (exit $ac_status); } &&
789c5f4a 32758 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
32759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32760 (eval $ac_try) 2>&5
32761 ac_status=$?
32762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32763 (exit $ac_status); }; }; then
32764 wx_cv_func_gettimeofday_has_2_args=yes
f6bcfd97 32765else
f93ca9fd
VS
32766 echo "$as_me: failed program was:" >&5
32767sed 's/^/| /' conftest.$ac_ext >&5
32768
e6cc62c6 32769cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32770#line $LINENO "configure"
e6cc62c6
VS
32771/* confdefs.h. */
32772_ACEOF
32773cat confdefs.h >>conftest.$ac_ext
32774cat >>conftest.$ac_ext <<_ACEOF
32775/* end confdefs.h. */
32776
f93ca9fd
VS
32777 #include <sys/time.h>
32778 #include <unistd.h>
32779
e6cc62c6
VS
32780int
32781main ()
32782{
f93ca9fd
VS
32783
32784 struct timeval tv;
32785 gettimeofday(&tv);
32786
e6cc62c6
VS
32787 ;
32788 return 0;
32789}
32790_ACEOF
f93ca9fd
VS
32791rm -f conftest.$ac_objext
32792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 32793 (eval $ac_compile) 2>&5
e6cc62c6
VS
32794 ac_status=$?
32795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32796 (exit $ac_status); } &&
789c5f4a 32797 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32799 (eval $ac_try) 2>&5
32800 ac_status=$?
32801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32802 (exit $ac_status); }; }; then
f93ca9fd 32803 wx_cv_func_gettimeofday_has_2_args=no
e6cc62c6
VS
32804else
32805 echo "$as_me: failed program was:" >&5
32806sed 's/^/| /' conftest.$ac_ext >&5
32807
f6bcfd97 32808
f93ca9fd
VS
32809 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
32810echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
32811 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6 32812
f6bcfd97 32813
f93ca9fd 32814fi
789c5f4a 32815rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6 32816
10f2d63a 32817fi
789c5f4a 32818rm -f conftest.$ac_objext conftest.$ac_ext
f93ca9fd
VS
32819 ac_ext=c
32820ac_cpp='$CPP $CPPFLAGS'
32821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32823ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a 32824
e6cc62c6 32825
10f2d63a 32826fi
f93ca9fd
VS
32827echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
32828echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
32829
32830 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
32831 cat >>confdefs.h <<\_ACEOF
32832#define WX_GETTIMEOFDAY_NO_TZ 1
32833_ACEOF
10f2d63a 32834
f93ca9fd
VS
32835 fi
32836 fi
e6cc62c6 32837
f93ca9fd 32838 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
10f2d63a 32839fi
10f2d63a 32840
5c6fa7d2 32841
f93ca9fd
VS
32842if test "$wxUSE_SOCKETS" = "yes"; then
32843 if test "$wxUSE_MGL" = "1"; then
32844 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
32845echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
32846 wxUSE_SOCKETS="no"
32847 fi
32848fi
e6cc62c6 32849
f93ca9fd
VS
32850if test "$wxUSE_SOCKETS" = "yes"; then
32851 if test "$TOOLKIT" != "MSW"; then
32852 echo "$as_me:$LINENO: checking for socket" >&5
32853echo $ECHO_N "checking for socket... $ECHO_C" >&6
32854if test "${ac_cv_func_socket+set}" = set; then
e6cc62c6
VS
32855 echo $ECHO_N "(cached) $ECHO_C" >&6
32856else
32857 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32858#line $LINENO "configure"
e6cc62c6
VS
32859/* confdefs.h. */
32860_ACEOF
32861cat confdefs.h >>conftest.$ac_ext
32862cat >>conftest.$ac_ext <<_ACEOF
32863/* end confdefs.h. */
f6bcfd97 32864/* System header to define __stub macros and hopefully few prototypes,
f93ca9fd 32865 which can conflict with char socket (); below.
e6cc62c6
VS
32866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32867 <limits.h> exists even on freestanding compilers. */
32868#ifdef __STDC__
32869# include <limits.h>
32870#else
32871# include <assert.h>
32872#endif
f6bcfd97 32873/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32874#ifdef __cplusplus
32875extern "C"
32876{
32877#endif
f6bcfd97 32878/* We use char because int might match the return type of a gcc2
e6cc62c6 32879 builtin and then its argument prototype would still apply. */
f93ca9fd 32880char socket ();
f6bcfd97
BP
32881/* The GNU C library defines this for functions which it implements
32882 to always fail with ENOSYS. Some functions are actually named
32883 something starting with __ and the normal name is an alias. */
f93ca9fd 32884#if defined (__stub_socket) || defined (__stub___socket)
f6bcfd97
BP
32885choke me
32886#else
f93ca9fd 32887char (*f) () = socket;
e6cc62c6
VS
32888#endif
32889#ifdef __cplusplus
32890}
f6bcfd97
BP
32891#endif
32892
e6cc62c6
VS
32893int
32894main ()
32895{
f93ca9fd
VS
32896return f != socket;
32897 ;
32898 return 0;
32899}
32900_ACEOF
32901rm -f conftest.$ac_objext conftest$ac_exeext
32902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 32903 (eval $ac_link) 2>&5
f93ca9fd 32904 ac_status=$?
f93ca9fd
VS
32905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32906 (exit $ac_status); } &&
789c5f4a 32907 { ac_try='test -s conftest$ac_exeext'
f93ca9fd
VS
32908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32909 (eval $ac_try) 2>&5
32910 ac_status=$?
32911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32912 (exit $ac_status); }; }; then
32913 ac_cv_func_socket=yes
32914else
32915 echo "$as_me: failed program was:" >&5
32916sed 's/^/| /' conftest.$ac_ext >&5
32917
32918ac_cv_func_socket=no
32919fi
789c5f4a 32920rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f93ca9fd
VS
32921fi
32922echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
32923echo "${ECHO_T}$ac_cv_func_socket" >&6
32924if test $ac_cv_func_socket = yes; then
32925 :
32926else
32927
32928 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
32929echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
32930if test "${ac_cv_lib_socket_socket+set}" = set; then
32931 echo $ECHO_N "(cached) $ECHO_C" >&6
32932else
32933 ac_check_lib_save_LIBS=$LIBS
32934LIBS="-lsocket $LIBS"
32935cat >conftest.$ac_ext <<_ACEOF
789c5f4a 32936#line $LINENO "configure"
f93ca9fd
VS
32937/* confdefs.h. */
32938_ACEOF
32939cat confdefs.h >>conftest.$ac_ext
32940cat >>conftest.$ac_ext <<_ACEOF
32941/* end confdefs.h. */
32942
32943/* Override any gcc2 internal prototype to avoid an error. */
32944#ifdef __cplusplus
32945extern "C"
32946#endif
32947/* We use char because int might match the return type of a gcc2
32948 builtin and then its argument prototype would still apply. */
32949char socket ();
32950int
32951main ()
32952{
32953socket ();
e6cc62c6
VS
32954 ;
32955 return 0;
32956}
32957_ACEOF
32958rm -f conftest.$ac_objext conftest$ac_exeext
32959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 32960 (eval $ac_link) 2>&5
e6cc62c6
VS
32961 ac_status=$?
32962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963 (exit $ac_status); } &&
789c5f4a 32964 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32966 (eval $ac_try) 2>&5
32967 ac_status=$?
32968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32969 (exit $ac_status); }; }; then
f93ca9fd 32970 ac_cv_lib_socket_socket=yes
e6cc62c6
VS
32971else
32972 echo "$as_me: failed program was:" >&5
32973sed 's/^/| /' conftest.$ac_ext >&5
32974
f93ca9fd 32975ac_cv_lib_socket_socket=no
e6cc62c6 32976fi
789c5f4a 32977rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
f93ca9fd 32978LIBS=$ac_check_lib_save_LIBS
e6cc62c6 32979fi
f93ca9fd
VS
32980echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
32981echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
32982if test $ac_cv_lib_socket_socket = yes; then
32983 if test "$INET_LINK" != " -lsocket"; then
32984 INET_LINK="$INET_LINK -lsocket"
32985 fi
32986else
32987
32988 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
32989echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
32990 wxUSE_SOCKETS=no
32991
32992
32993fi
32994
32995
32996
32997fi
32998
32999 fi
33000fi
33001
33002if test "$wxUSE_SOCKETS" = "yes" ; then
33003 if test "$TOOLKIT" != "MSW"; then
33004 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
33005echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
33006if test "${wx_cv_type_getsockname3+set}" = set; then
33007 echo $ECHO_N "(cached) $ECHO_C" >&6
33008else
33009
33010 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 33011#line $LINENO "configure"
f93ca9fd 33012/* confdefs.h. */
e6cc62c6 33013_ACEOF
f93ca9fd
VS
33014cat confdefs.h >>conftest.$ac_ext
33015cat >>conftest.$ac_ext <<_ACEOF
33016/* end confdefs.h. */
33017
33018 #include <sys/types.h>
33019 #include <sys/socket.h>
f6bcfd97 33020
f93ca9fd
VS
33021int
33022main ()
33023{
33024
33025 socklen_t len;
33026 getsockname(0, 0, &len);
33027
33028 ;
33029 return 0;
33030}
33031_ACEOF
33032rm -f conftest.$ac_objext
33033if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 33034 (eval $ac_compile) 2>&5
f93ca9fd 33035 ac_status=$?
f93ca9fd
VS
33036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037 (exit $ac_status); } &&
789c5f4a 33038 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
33039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33040 (eval $ac_try) 2>&5
33041 ac_status=$?
33042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043 (exit $ac_status); }; }; then
33044 wx_cv_type_getsockname3=socklen_t
f6bcfd97 33045else
f93ca9fd
VS
33046 echo "$as_me: failed program was:" >&5
33047sed 's/^/| /' conftest.$ac_ext >&5
0e012a93 33048
f93ca9fd
VS
33049
33050 CFLAGS_OLD="$CFLAGS"
33051 if test "$GCC" = yes ; then
33052 CFLAGS="$CFLAGS -Werror"
33053 fi
33054
33055 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 33056#line $LINENO "configure"
f93ca9fd
VS
33057/* confdefs.h. */
33058_ACEOF
33059cat confdefs.h >>conftest.$ac_ext
33060cat >>conftest.$ac_ext <<_ACEOF
33061/* end confdefs.h. */
33062
33063 #include <sys/types.h>
33064 #include <sys/socket.h>
33065
33066int
33067main ()
33068{
33069
33070 size_t len;
33071 getsockname(0, 0, &len);
33072
33073 ;
33074 return 0;
33075}
33076_ACEOF
33077rm -f conftest.$ac_objext
33078if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 33079 (eval $ac_compile) 2>&5
f93ca9fd 33080 ac_status=$?
f93ca9fd
VS
33081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33082 (exit $ac_status); } &&
789c5f4a 33083 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
33084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33085 (eval $ac_try) 2>&5
33086 ac_status=$?
33087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33088 (exit $ac_status); }; }; then
33089 wx_cv_type_getsockname3=size_t
f6bcfd97 33090else
f93ca9fd
VS
33091 echo "$as_me: failed program was:" >&5
33092sed 's/^/| /' conftest.$ac_ext >&5
33093
e6cc62c6 33094cat >conftest.$ac_ext <<_ACEOF
789c5f4a 33095#line $LINENO "configure"
e6cc62c6
VS
33096/* confdefs.h. */
33097_ACEOF
33098cat confdefs.h >>conftest.$ac_ext
33099cat >>conftest.$ac_ext <<_ACEOF
33100/* end confdefs.h. */
33101
f93ca9fd
VS
33102 #include <sys/types.h>
33103 #include <sys/socket.h>
33104
e6cc62c6
VS
33105int
33106main ()
33107{
f93ca9fd
VS
33108
33109 int len;
33110 getsockname(0, 0, &len);
33111
e6cc62c6
VS
33112 ;
33113 return 0;
33114}
33115_ACEOF
f93ca9fd
VS
33116rm -f conftest.$ac_objext
33117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 33118 (eval $ac_compile) 2>&5
e6cc62c6
VS
33119 ac_status=$?
33120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33121 (exit $ac_status); } &&
789c5f4a 33122 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33124 (eval $ac_try) 2>&5
33125 ac_status=$?
33126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33127 (exit $ac_status); }; }; then
f93ca9fd 33128 wx_cv_type_getsockname3=int
e6cc62c6
VS
33129else
33130 echo "$as_me: failed program was:" >&5
33131sed 's/^/| /' conftest.$ac_ext >&5
33132
f93ca9fd
VS
33133wx_cv_type_getsockname3=unknown
33134
e6cc62c6 33135fi
789c5f4a 33136rm -f conftest.$ac_objext conftest.$ac_ext
f6bcfd97 33137
f6bcfd97 33138fi
789c5f4a 33139rm -f conftest.$ac_objext conftest.$ac_ext
f6bcfd97 33140
f93ca9fd 33141 CFLAGS="$CFLAGS_OLD"
0e012a93
VZ
33142
33143
f6bcfd97 33144fi
789c5f4a 33145rm -f conftest.$ac_objext conftest.$ac_ext
f6bcfd97 33146
f93ca9fd
VS
33147fi
33148echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
33149echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
33150
33151 if test "$wx_cv_type_getsockname3" = "unknown"; then
33152 wxUSE_SOCKETS=no
33153 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
33154echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
33155 else
33156 cat >>confdefs.h <<_ACEOF
33157#define SOCKLEN_T $wx_cv_type_getsockname3
33158_ACEOF
f6bcfd97 33159
10f2d63a
VZ
33160 fi
33161 fi
33162fi
33163
f93ca9fd 33164if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 33165 cat >>confdefs.h <<\_ACEOF
f93ca9fd 33166#define wxUSE_SOCKETS 1
e6cc62c6 33167_ACEOF
0b9ab0bd 33168
f93ca9fd 33169 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
1948bb32 33170fi
f93ca9fd
VS
33171
33172if test "$wxUSE_PROTOCOL" = "yes"; then
33173 if test "$wxUSE_SOCKETS" != "yes"; then
33174 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
33175echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
33176 wxUSE_PROTOCOL=no
33177 fi
33178fi
33179
33180if test "$wxUSE_PROTOCOL" = "yes"; then
e6cc62c6 33181 cat >>confdefs.h <<\_ACEOF
f93ca9fd 33182#define wxUSE_PROTOCOL 1
e6cc62c6 33183_ACEOF
10f2d63a 33184
f93ca9fd
VS
33185
33186 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
33187 cat >>confdefs.h <<\_ACEOF
33188#define wxUSE_PROTOCOL_HTTP 1
33189_ACEOF
33190
33191 fi
33192 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
33193 cat >>confdefs.h <<\_ACEOF
33194#define wxUSE_PROTOCOL_FTP 1
33195_ACEOF
33196
33197 fi
33198 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
33199 cat >>confdefs.h <<\_ACEOF
33200#define wxUSE_PROTOCOL_FILE 1
33201_ACEOF
33202
33203 fi
33204else
33205 if test "$wxUSE_FS_INET" = "yes"; then
33206 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
33207echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
33208 wxUSE_FS_INET="no"
33209 fi
10f2d63a
VZ
33210fi
33211
f93ca9fd
VS
33212if test "$wxUSE_URL" = "yes"; then
33213 if test "$wxUSE_PROTOCOL" != "yes"; then
33214 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
33215echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
33216 wxUSE_URL=no
33217 fi
33218 if test "$wxUSE_URL" = "yes"; then
33219 cat >>confdefs.h <<\_ACEOF
33220#define wxUSE_URL 1
33221_ACEOF
33222
33223 fi
33224fi
33225
33226if test "$wxUSE_FS_INET" = "yes"; then
33227 cat >>confdefs.h <<\_ACEOF
33228#define wxUSE_FS_INET 1
33229_ACEOF
33230
33231fi
33232
33233
33234if test "$wxUSE_GUI" = "yes"; then
33235
33236 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
33237 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
33238echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
33239 wxUSE_JOYSTICK=no
33240 fi
33241
33242 if test "$TOOLKIT" != "MSW"; then
33243 if test "$wxUSE_JOYSTICK" = "yes"; then
33244
33245for ac_header in linux/joystick.h
33246do
33247as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33248if eval "test \"\${$as_ac_Header+set}\" = set"; then
33249 echo "$as_me:$LINENO: checking for $ac_header" >&5
33250echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33251if eval "test \"\${$as_ac_Header+set}\" = set"; then
33252 echo $ECHO_N "(cached) $ECHO_C" >&6
33253fi
33254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33255echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33256else
33257 # Is the header compilable?
33258echo "$as_me:$LINENO: checking $ac_header usability" >&5
33259echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33260cat >conftest.$ac_ext <<_ACEOF
789c5f4a 33261#line $LINENO "configure"
f93ca9fd
VS
33262/* confdefs.h. */
33263_ACEOF
33264cat confdefs.h >>conftest.$ac_ext
33265cat >>conftest.$ac_ext <<_ACEOF
33266/* end confdefs.h. */
33267$ac_includes_default
33268#include <$ac_header>
33269_ACEOF
33270rm -f conftest.$ac_objext
33271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 33272 (eval $ac_compile) 2>&5
f93ca9fd 33273 ac_status=$?
f93ca9fd
VS
33274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33275 (exit $ac_status); } &&
789c5f4a 33276 { ac_try='test -s conftest.$ac_objext'
f93ca9fd
VS
33277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33278 (eval $ac_try) 2>&5
33279 ac_status=$?
33280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33281 (exit $ac_status); }; }; then
33282 ac_header_compiler=yes
33283else
33284 echo "$as_me: failed program was:" >&5
33285sed 's/^/| /' conftest.$ac_ext >&5
33286
33287ac_header_compiler=no
33288fi
789c5f4a 33289rm -f conftest.$ac_objext conftest.$ac_ext
f93ca9fd
VS
33290echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33291echo "${ECHO_T}$ac_header_compiler" >&6
33292
33293# Is the header present?
33294echo "$as_me:$LINENO: checking $ac_header presence" >&5
33295echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33296cat >conftest.$ac_ext <<_ACEOF
789c5f4a 33297#line $LINENO "configure"
f93ca9fd
VS
33298/* confdefs.h. */
33299_ACEOF
33300cat confdefs.h >>conftest.$ac_ext
33301cat >>conftest.$ac_ext <<_ACEOF
33302/* end confdefs.h. */
33303#include <$ac_header>
33304_ACEOF
33305if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33306 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33307 ac_status=$?
33308 grep -v '^ *+' conftest.er1 >conftest.err
33309 rm -f conftest.er1
33310 cat conftest.err >&5
33311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33312 (exit $ac_status); } >/dev/null; then
33313 if test -s conftest.err; then
33314 ac_cpp_err=$ac_c_preproc_warn_flag
f93ca9fd
VS
33315 else
33316 ac_cpp_err=
33317 fi
33318else
33319 ac_cpp_err=yes
33320fi
33321if test -z "$ac_cpp_err"; then
33322 ac_header_preproc=yes
33323else
33324 echo "$as_me: failed program was:" >&5
33325sed 's/^/| /' conftest.$ac_ext >&5
33326
33327 ac_header_preproc=no
33328fi
33329rm -f conftest.err conftest.$ac_ext
33330echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33331echo "${ECHO_T}$ac_header_preproc" >&6
33332
33333# So? What about this header?
789c5f4a
VZ
33334case $ac_header_compiler:$ac_header_preproc in
33335 yes:no )
f93ca9fd
VS
33336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33337echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
33338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33339echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33340 (
33341 cat <<\_ASBOX
33342## ------------------------------------ ##
33343## Report this to bug-autoconf@gnu.org. ##
33344## ------------------------------------ ##
33345_ASBOX
33346 ) |
33347 sed "s/^/$as_me: WARNING: /" >&2
f93ca9fd 33348 ;;
789c5f4a 33349 no:yes )
f93ca9fd
VS
33350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33351echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
33352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33353echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
f93ca9fd
VS
33354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33355echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f93ca9fd
VS
33356 (
33357 cat <<\_ASBOX
789c5f4a
VZ
33358## ------------------------------------ ##
33359## Report this to bug-autoconf@gnu.org. ##
33360## ------------------------------------ ##
f93ca9fd
VS
33361_ASBOX
33362 ) |
33363 sed "s/^/$as_me: WARNING: /" >&2
33364 ;;
33365esac
33366echo "$as_me:$LINENO: checking for $ac_header" >&5
33367echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33368if eval "test \"\${$as_ac_Header+set}\" = set"; then
33369 echo $ECHO_N "(cached) $ECHO_C" >&6
33370else
789c5f4a 33371 eval "$as_ac_Header=$ac_header_preproc"
f93ca9fd
VS
33372fi
33373echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33374echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33375
33376fi
33377if test `eval echo '${'$as_ac_Header'}'` = yes; then
33378 cat >>confdefs.h <<_ACEOF
33379#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33380_ACEOF
33381
33382fi
33383
33384done
33385
33386 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
33387 wxUSE_JOYSTICK=no
33388 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
33389echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
33390 fi
33391 fi
33392 fi
33393
33394 if test "$wxUSE_JOYSTICK" = "yes"; then
33395 cat >>confdefs.h <<\_ACEOF
33396#define wxUSE_JOYSTICK 1
33397_ACEOF
33398
33399 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
33400 fi
33401fi
33402
33403
33404
8284b0c5 33405
1e6feb95 33406if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 33407 cat >>confdefs.h <<\_ACEOF
1e6feb95 33408#define wxUSE_FONTMAP 1
e6cc62c6 33409_ACEOF
1e6feb95
VZ
33410
33411fi
33412
10f2d63a 33413if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 33414 cat >>confdefs.h <<\_ACEOF
10f2d63a 33415#define wxUSE_UNICODE 1
e6cc62c6 33416_ACEOF
10f2d63a 33417
8284b0c5 33418
eb854003 33419 if test "$USE_WIN32" != 1; then
bbc3925a
VS
33420 wxUSE_UNICODE_MSLU=no
33421 fi
a72a4bfa 33422
eb854003 33423 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
33424 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
33425echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
33426if test "${ac_cv_lib_unicows_main+set}" = set; then
33427 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 33428else
e6cc62c6 33429 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 33430LIBS="-lunicows $LIBS"
e6cc62c6 33431cat >conftest.$ac_ext <<_ACEOF
789c5f4a 33432#line $LINENO "configure"
e6cc62c6
VS
33433/* confdefs.h. */
33434_ACEOF
33435cat confdefs.h >>conftest.$ac_ext
33436cat >>conftest.$ac_ext <<_ACEOF
33437/* end confdefs.h. */
a72a4bfa 33438
8284b0c5 33439
e6cc62c6
VS
33440int
33441main ()
33442{
33443main ();
33444 ;
33445 return 0;
33446}
33447_ACEOF
33448rm -f conftest.$ac_objext conftest$ac_exeext
33449if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 33450 (eval $ac_link) 2>&5
e6cc62c6
VS
33451 ac_status=$?
33452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33453 (exit $ac_status); } &&
789c5f4a 33454 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33456 (eval $ac_try) 2>&5
33457 ac_status=$?
33458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33459 (exit $ac_status); }; }; then
33460 ac_cv_lib_unicows_main=yes
33461else
33462 echo "$as_me: failed program was:" >&5
33463sed 's/^/| /' conftest.$ac_ext >&5
33464
33465ac_cv_lib_unicows_main=no
33466fi
789c5f4a 33467rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33468LIBS=$ac_check_lib_save_LIBS
33469fi
33470echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
33471echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
33472if test $ac_cv_lib_unicows_main = yes; then
33473
33474 cat >>confdefs.h <<\_ACEOF
a72a4bfa 33475#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
33476_ACEOF
33477
a72a4bfa 33478
a72a4bfa 33479else
a72a4bfa 33480
e6cc62c6
VS
33481 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
33482 Applications will only run on Windows NT/2000/XP!" >&5
33483echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
33484 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 33485 wxUSE_UNICODE_MSLU=no
e6cc62c6 33486
a72a4bfa
VS
33487fi
33488
33489 fi
10f2d63a
VZ
33490fi
33491
10f2d63a 33492if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 33493 cat >>confdefs.h <<\_ACEOF
10f2d63a 33494#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 33495_ACEOF
10f2d63a
VZ
33496
33497fi
33498
8284b0c5 33499
10f2d63a 33500if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 33501 cat >>confdefs.h <<\_ACEOF
10f2d63a 33502#define wxUSE_POSTSCRIPT 1
e6cc62c6 33503_ACEOF
10f2d63a
VZ
33504
33505fi
33506
e6cc62c6 33507cat >>confdefs.h <<\_ACEOF
10f2d63a 33508#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 33509_ACEOF
10f2d63a 33510
8284b0c5 33511
e6cc62c6 33512cat >>confdefs.h <<\_ACEOF
10f2d63a 33513#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 33514_ACEOF
10f2d63a 33515
8284b0c5
MB
33516
33517
10f2d63a 33518if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 33519 cat >>confdefs.h <<\_ACEOF
10f2d63a 33520#define wxUSE_CONSTRAINTS 1
e6cc62c6 33521_ACEOF
10f2d63a
VZ
33522
33523 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
33524fi
33525
3879ecda 33526if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 33527 cat >>confdefs.h <<\_ACEOF
10f2d63a 33528#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 33529_ACEOF
10f2d63a 33530
1772d20c 33531 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
33532fi
33533
33534if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 33535 cat >>confdefs.h <<\_ACEOF
10f2d63a 33536#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 33537_ACEOF
10f2d63a
VZ
33538
33539 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
33540 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
33541 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
33542 fi
33543fi
33544
33545if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 33546 cat >>confdefs.h <<\_ACEOF
10f2d63a 33547#define wxUSE_HELP 1
e6cc62c6 33548_ACEOF
10f2d63a
VZ
33549
33550 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 33551
77e13408 33552 if test "$wxUSE_MSW" = 1; then
031d8228 33553 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 33554 cat >>confdefs.h <<\_ACEOF
29fd3c0c 33555#define wxUSE_MS_HTML_HELP 1
e6cc62c6 33556_ACEOF
29fd3c0c 33557
3e44f09d 33558 fi
3379ed37 33559 fi
031d8228
VS
33560
33561 if test "$wxUSE_WXHTML_HELP" = "yes"; then
33562 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 33563 cat >>confdefs.h <<\_ACEOF
031d8228 33564#define wxUSE_WXHTML_HELP 1
e6cc62c6 33565_ACEOF
031d8228
VS
33566
33567 else
e6cc62c6
VS
33568 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
33569echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
33570 wxUSE_WXHTML_HELP=no
33571 fi
33572 fi
10f2d63a
VZ
33573fi
33574
33575if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
33576 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
33577 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
33578echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 33579 else
e6cc62c6 33580 cat >>confdefs.h <<\_ACEOF
10f2d63a 33581#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 33582_ACEOF
10f2d63a
VZ
33583
33584 fi
33585 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
33586fi
33587
e6cc62c6
VS
33588if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
33589 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
33590echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
33591 { (exit 1); exit 1; }; }
33592fi
33593
33594
f95e4495 33595if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
e6cc62c6
VS
33596 -o "$wxUSE_CLIPBOARD" = "yes" \
33597 -o "$wxUSE_OLE" = "yes" \
33598 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
33599
33600for ac_header in ole2.h
33601do
33602as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
33603if eval "test \"\${$as_ac_Header+set}\" = set"; then
33604 echo "$as_me:$LINENO: checking for $ac_header" >&5
33605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33606if eval "test \"\${$as_ac_Header+set}\" = set"; then
33607 echo $ECHO_N "(cached) $ECHO_C" >&6
33608fi
33609echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33610echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33611else
33612 # Is the header compilable?
33613echo "$as_me:$LINENO: checking $ac_header usability" >&5
33614echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
33615cat >conftest.$ac_ext <<_ACEOF
789c5f4a 33616#line $LINENO "configure"
e6cc62c6
VS
33617/* confdefs.h. */
33618_ACEOF
33619cat confdefs.h >>conftest.$ac_ext
33620cat >>conftest.$ac_ext <<_ACEOF
33621/* end confdefs.h. */
33622$ac_includes_default
33623#include <$ac_header>
33624_ACEOF
33625rm -f conftest.$ac_objext
33626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 33627 (eval $ac_compile) 2>&5
e6cc62c6
VS
33628 ac_status=$?
33629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33630 (exit $ac_status); } &&
789c5f4a 33631 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33633 (eval $ac_try) 2>&5
33634 ac_status=$?
33635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33636 (exit $ac_status); }; }; then
33637 ac_header_compiler=yes
33638else
33639 echo "$as_me: failed program was:" >&5
33640sed 's/^/| /' conftest.$ac_ext >&5
33641
33642ac_header_compiler=no
33643fi
789c5f4a 33644rm -f conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
33645echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33646echo "${ECHO_T}$ac_header_compiler" >&6
33647
33648# Is the header present?
33649echo "$as_me:$LINENO: checking $ac_header presence" >&5
33650echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
33651cat >conftest.$ac_ext <<_ACEOF
789c5f4a 33652#line $LINENO "configure"
e6cc62c6
VS
33653/* confdefs.h. */
33654_ACEOF
33655cat confdefs.h >>conftest.$ac_ext
33656cat >>conftest.$ac_ext <<_ACEOF
33657/* end confdefs.h. */
33658#include <$ac_header>
33659_ACEOF
33660if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
33661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
33662 ac_status=$?
33663 grep -v '^ *+' conftest.er1 >conftest.err
33664 rm -f conftest.er1
33665 cat conftest.err >&5
33666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33667 (exit $ac_status); } >/dev/null; then
33668 if test -s conftest.err; then
33669 ac_cpp_err=$ac_c_preproc_warn_flag
33670 else
33671 ac_cpp_err=
33672 fi
33673else
33674 ac_cpp_err=yes
33675fi
33676if test -z "$ac_cpp_err"; then
33677 ac_header_preproc=yes
33678else
33679 echo "$as_me: failed program was:" >&5
33680sed 's/^/| /' conftest.$ac_ext >&5
33681
33682 ac_header_preproc=no
33683fi
33684rm -f conftest.err conftest.$ac_ext
33685echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33686echo "${ECHO_T}$ac_header_preproc" >&6
33687
33688# So? What about this header?
789c5f4a
VZ
33689case $ac_header_compiler:$ac_header_preproc in
33690 yes:no )
e6cc62c6
VS
33691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
33692echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
789c5f4a
VZ
33693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33694echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33695 (
33696 cat <<\_ASBOX
33697## ------------------------------------ ##
33698## Report this to bug-autoconf@gnu.org. ##
33699## ------------------------------------ ##
33700_ASBOX
33701 ) |
33702 sed "s/^/$as_me: WARNING: /" >&2
e6cc62c6 33703 ;;
789c5f4a 33704 no:yes )
e6cc62c6
VS
33705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
33706echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
789c5f4a
VZ
33707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
33708echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
e6cc62c6
VS
33709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
33710echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
33711 (
33712 cat <<\_ASBOX
789c5f4a
VZ
33713## ------------------------------------ ##
33714## Report this to bug-autoconf@gnu.org. ##
33715## ------------------------------------ ##
e6cc62c6
VS
33716_ASBOX
33717 ) |
33718 sed "s/^/$as_me: WARNING: /" >&2
33719 ;;
33720esac
33721echo "$as_me:$LINENO: checking for $ac_header" >&5
33722echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
33723if eval "test \"\${$as_ac_Header+set}\" = set"; then
33724 echo $ECHO_N "(cached) $ECHO_C" >&6
33725else
789c5f4a 33726 eval "$as_ac_Header=$ac_header_preproc"
e6cc62c6
VS
33727fi
33728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
33729echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
33730
10f2d63a 33731fi
e6cc62c6
VS
33732if test `eval echo '${'$as_ac_Header'}'` = yes; then
33733 cat >>confdefs.h <<_ACEOF
33734#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
33735_ACEOF
10f2d63a 33736
10f2d63a 33737fi
e6cc62c6 33738
10f2d63a
VZ
33739done
33740
8284b0c5 33741
2b9bdf71
VZ
33742 if test "$ac_cv_header_ole2_h" = "yes" ; then
33743 if test "$GCC" = yes ; then
8284b0c5
MB
33744
33745
e6cc62c6
VS
33746 ac_ext=cc
33747ac_cpp='$CXXCPP $CPPFLAGS'
33748ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33749ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33750ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
33751
33752
33753 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
33754echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
33755 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 33756#line $LINENO "configure"
e6cc62c6
VS
33757/* confdefs.h. */
33758_ACEOF
33759cat confdefs.h >>conftest.$ac_ext
33760cat >>conftest.$ac_ext <<_ACEOF
33761/* end confdefs.h. */
8284b0c5
MB
33762#include <windows.h>
33763 #include <ole2.h>
e6cc62c6
VS
33764int
33765main ()
33766{
8284b0c5 33767
e6cc62c6
VS
33768 ;
33769 return 0;
33770}
33771_ACEOF
33772rm -f conftest.$ac_objext
33773if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 33774 (eval $ac_compile) 2>&5
e6cc62c6
VS
33775 ac_status=$?
33776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33777 (exit $ac_status); } &&
789c5f4a 33778 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33780 (eval $ac_try) 2>&5
33781 ac_status=$?
33782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33783 (exit $ac_status); }; }; then
33784 echo "$as_me:$LINENO: result: no" >&5
33785echo "${ECHO_T}no" >&6
33786else
33787 echo "$as_me: failed program was:" >&5
33788sed 's/^/| /' conftest.$ac_ext >&5
33789
33790echo "$as_me:$LINENO: result: yes" >&5
33791echo "${ECHO_T}yes" >&6
8284b0c5
MB
33792 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
33793fi
789c5f4a 33794rm -f conftest.$ac_objext conftest.$ac_ext
8284b0c5 33795 ac_ext=c
8284b0c5 33796ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
33797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33799ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 33800
2b9bdf71 33801 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 33802 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
f95e4495
VS
33803 if test "$wxUSE_OLE" = "yes" ; then
33804 cat >>confdefs.h <<\_ACEOF
4f11a343 33805#define wxUSE_OLE 1
e6cc62c6 33806_ACEOF
4f11a343 33807
f95e4495 33808 fi
2b9bdf71
VZ
33809 fi
33810
f95e4495
VS
33811 if test "$wxUSE_DATAOBJ" = "yes" ; then
33812 cat >>confdefs.h <<\_ACEOF
2b9bdf71 33813#define wxUSE_DATAOBJ 1
e6cc62c6 33814_ACEOF
2b9bdf71 33815
f95e4495 33816 fi
2b9bdf71 33817 else
e6cc62c6
VS
33818 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
33819echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
33820
33821 wxUSE_CLIPBOARD=no
33822 wxUSE_DRAG_AND_DROP=no
33823 wxUSE_DATAOBJ=no
3bce6687
JS
33824 wxUSE_OLE=no
33825 fi
33826
33827 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 33828 cat >>confdefs.h <<\_ACEOF
3bce6687 33829#define wxUSE_METAFILE 1
e6cc62c6 33830_ACEOF
3bce6687
JS
33831
33832
e6cc62c6 33833 cat >>confdefs.h <<\_ACEOF
3bce6687 33834#define wxUSE_ENH_METAFILE 1
e6cc62c6 33835_ACEOF
3bce6687
JS
33836
33837 fi
33838fi
33839
2b9bdf71
VZ
33840if test "$wxUSE_IPC" = "yes"; then
33841 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
33842 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
33843echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
33844 fi
33845
e6cc62c6 33846 cat >>confdefs.h <<\_ACEOF
2b9bdf71 33847#define wxUSE_IPC 1
e6cc62c6 33848_ACEOF
2b9bdf71
VZ
33849
33850fi
33851
33852if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 33853 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
33854 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
33855echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
33856 wxUSE_CLIPBOARD=no
33857 fi
33858
33859 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 33860 cat >>confdefs.h <<\_ACEOF
2b9bdf71 33861#define wxUSE_CLIPBOARD 1
e6cc62c6 33862_ACEOF
2b9bdf71 33863
8284b0c5 33864
e6cc62c6 33865 cat >>confdefs.h <<\_ACEOF
673f4220 33866#define wxUSE_DATAOBJ 1
e6cc62c6 33867_ACEOF
673f4220 33868
6c657b52 33869 fi
2b9bdf71
VZ
33870fi
33871
33872if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
33873 if test "$wxUSE_GTK" = 1; then
33874 if test "$WXGTK12" != 1; then
e6cc62c6
VS
33875 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
33876echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
33877 wxUSE_DRAG_AND_DROP=no
33878 fi
33879 fi
33880
2b9bdf71 33881 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
33882 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
33883echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
33884 wxUSE_DRAG_AND_DROP=no
33885 fi
33886
f79bd02d 33887 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
33888 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
33889echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
33890 wxUSE_DRAG_AND_DROP=no
33891 fi
33892
6c657b52 33893 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
33894 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
33895echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
33896 wxUSE_DRAG_AND_DROP=no
33897 fi
33898
10f2d63a 33899 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 33900 cat >>confdefs.h <<\_ACEOF
10f2d63a 33901#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 33902_ACEOF
10f2d63a
VZ
33903
33904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
33905 fi
33906
33907fi
33908
33909if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 33910 cat >>confdefs.h <<\_ACEOF
10f2d63a 33911#define wxUSE_SPLINES 1
e6cc62c6 33912_ACEOF
10f2d63a
VZ
33913
33914fi
33915
8284b0c5 33916
1e6feb95
VZ
33917USES_CONTROLS=0
33918if test "$wxUSE_CONTROLS" = "yes"; then
33919 USES_CONTROLS=1
33920fi
33921
10f2d63a 33922if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 33923 cat >>confdefs.h <<\_ACEOF
10f2d63a 33924#define wxUSE_ACCEL 1
e6cc62c6 33925_ACEOF
10f2d63a 33926
1e6feb95
VZ
33927 USES_CONTROLS=1
33928fi
33929
33930if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 33931 cat >>confdefs.h <<\_ACEOF
1e6feb95 33932#define wxUSE_BUTTON 1
e6cc62c6 33933_ACEOF
1e6feb95
VZ
33934
33935 USES_CONTROLS=1
33936fi
33937
33938if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 33939 cat >>confdefs.h <<\_ACEOF
1e6feb95 33940#define wxUSE_BMPBUTTON 1
e6cc62c6 33941_ACEOF
1e6feb95
VZ
33942
33943 USES_CONTROLS=1
33944fi
33945
33946if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 33947 cat >>confdefs.h <<\_ACEOF
1e6feb95 33948#define wxUSE_CALENDARCTRL 1
e6cc62c6 33949_ACEOF
1e6feb95
VZ
33950
33951 USES_CONTROLS=1
33952 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
33953fi
33954
33955if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 33956 cat >>confdefs.h <<\_ACEOF
10f2d63a 33957#define wxUSE_CARET 1
e6cc62c6 33958_ACEOF
10f2d63a 33959
1e6feb95 33960 USES_CONTROLS=1
10f2d63a
VZ
33961 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
33962fi
33963
33964if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 33965 cat >>confdefs.h <<\_ACEOF
10f2d63a 33966#define wxUSE_COMBOBOX 1
e6cc62c6 33967_ACEOF
10f2d63a 33968
1e6feb95 33969 USES_CONTROLS=1
10f2d63a
VZ
33970fi
33971
33972if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 33973 cat >>confdefs.h <<\_ACEOF
10f2d63a 33974#define wxUSE_CHOICE 1
e6cc62c6 33975_ACEOF
10f2d63a 33976
1e6feb95 33977 USES_CONTROLS=1
10f2d63a
VZ
33978fi
33979
33980if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 33981 cat >>confdefs.h <<\_ACEOF
10f2d63a 33982#define wxUSE_CHECKBOX 1
e6cc62c6 33983_ACEOF
10f2d63a 33984
1e6feb95 33985 USES_CONTROLS=1
10f2d63a
VZ
33986fi
33987
33988if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 33989 cat >>confdefs.h <<\_ACEOF
10f2d63a 33990#define wxUSE_CHECKLISTBOX 1
e6cc62c6 33991_ACEOF
10f2d63a 33992
1e6feb95 33993 USES_CONTROLS=1
10f2d63a
VZ
33994 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
33995fi
33996
da494b40 33997if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 33998 cat >>confdefs.h <<\_ACEOF
da494b40 33999#define wxUSE_DISPLAY 1
e6cc62c6 34000_ACEOF
da494b40
MB
34001
34002 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
34003fi
34004
10f2d63a 34005if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 34006 cat >>confdefs.h <<\_ACEOF
10f2d63a 34007#define wxUSE_GAUGE 1
e6cc62c6 34008_ACEOF
10f2d63a 34009
1e6feb95 34010 USES_CONTROLS=1
10f2d63a
VZ
34011fi
34012
d6a55c4b 34013if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 34014 cat >>confdefs.h <<\_ACEOF
d6a55c4b 34015#define wxUSE_GRID 1
e6cc62c6 34016_ACEOF
10f2d63a 34017
1e6feb95 34018 USES_CONTROLS=1
d6a55c4b 34019 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
34020fi
34021
34022if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 34023 cat >>confdefs.h <<\_ACEOF
10f2d63a 34024#define wxUSE_IMAGLIST 1
e6cc62c6 34025_ACEOF
10f2d63a
VZ
34026
34027fi
34028
0e012a93
VZ
34029if test "$wxUSE_LISTBOOK" = "yes"; then
34030 cat >>confdefs.h <<\_ACEOF
34031#define wxUSE_LISTBOOK 1
34032_ACEOF
34033
34034 USES_CONTROLS=1
34035fi
34036
10f2d63a 34037if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 34038 cat >>confdefs.h <<\_ACEOF
10f2d63a 34039#define wxUSE_LISTBOX 1
e6cc62c6 34040_ACEOF
10f2d63a 34041
1e6feb95 34042 USES_CONTROLS=1
10f2d63a
VZ
34043fi
34044
34045if test "$wxUSE_LISTCTRL" = "yes"; then
34046 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 34047 cat >>confdefs.h <<\_ACEOF
10f2d63a 34048#define wxUSE_LISTCTRL 1
e6cc62c6 34049_ACEOF
10f2d63a 34050
1e6feb95 34051 USES_CONTROLS=1
10f2d63a
VZ
34052 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
34053 else
e6cc62c6
VS
34054 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
34055echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
34056 fi
34057fi
34058
34059if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 34060 cat >>confdefs.h <<\_ACEOF
10f2d63a 34061#define wxUSE_NOTEBOOK 1
e6cc62c6 34062_ACEOF
10f2d63a 34063
1e6feb95 34064 USES_CONTROLS=1
10f2d63a
VZ
34065 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
34066fi
34067
24176f2c 34068
10f2d63a 34069if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 34070 cat >>confdefs.h <<\_ACEOF
10f2d63a 34071#define wxUSE_RADIOBOX 1
e6cc62c6 34072_ACEOF
10f2d63a 34073
1e6feb95 34074 USES_CONTROLS=1
10f2d63a
VZ
34075fi
34076
34077if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 34078 cat >>confdefs.h <<\_ACEOF
10f2d63a 34079#define wxUSE_RADIOBTN 1
e6cc62c6 34080_ACEOF
10f2d63a 34081
1e6feb95 34082 USES_CONTROLS=1
10f2d63a
VZ
34083fi
34084
34085if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 34086 cat >>confdefs.h <<\_ACEOF
10f2d63a 34087#define wxUSE_SASH 1
e6cc62c6 34088_ACEOF
10f2d63a
VZ
34089
34090 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
34091fi
34092
34093if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 34094 cat >>confdefs.h <<\_ACEOF
10f2d63a 34095#define wxUSE_SCROLLBAR 1
e6cc62c6 34096_ACEOF
10f2d63a 34097
1e6feb95 34098 USES_CONTROLS=1
741a9306 34099 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
34100fi
34101
34102if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 34103 cat >>confdefs.h <<\_ACEOF
10f2d63a 34104#define wxUSE_SLIDER 1
e6cc62c6 34105_ACEOF
10f2d63a 34106
1e6feb95 34107 USES_CONTROLS=1
10f2d63a
VZ
34108fi
34109
34110if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 34111 cat >>confdefs.h <<\_ACEOF
10f2d63a 34112#define wxUSE_SPINBTN 1
e6cc62c6 34113_ACEOF
10f2d63a 34114
1e6feb95 34115 USES_CONTROLS=1
10f2d63a
VZ
34116fi
34117
56cfaa52 34118if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 34119 cat >>confdefs.h <<\_ACEOF
56cfaa52 34120#define wxUSE_SPINCTRL 1
e6cc62c6 34121_ACEOF
56cfaa52 34122
1e6feb95 34123 USES_CONTROLS=1
56cfaa52
RR
34124fi
34125
10f2d63a 34126if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 34127 cat >>confdefs.h <<\_ACEOF
10f2d63a 34128#define wxUSE_SPLITTER 1
e6cc62c6 34129_ACEOF
10f2d63a
VZ
34130
34131 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
34132fi
34133
34134if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 34135 cat >>confdefs.h <<\_ACEOF
10f2d63a 34136#define wxUSE_STATBMP 1
e6cc62c6 34137_ACEOF
10f2d63a 34138
1e6feb95 34139 USES_CONTROLS=1
10f2d63a
VZ
34140fi
34141
34142if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 34143 cat >>confdefs.h <<\_ACEOF
10f2d63a 34144#define wxUSE_STATBOX 1
e6cc62c6 34145_ACEOF
10f2d63a 34146
1e6feb95
VZ
34147 USES_CONTROLS=1
34148fi
34149
34150if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 34151 cat >>confdefs.h <<\_ACEOF
1e6feb95 34152#define wxUSE_STATTEXT 1
e6cc62c6 34153_ACEOF
1e6feb95
VZ
34154
34155 USES_CONTROLS=1
10f2d63a
VZ
34156fi
34157
34158if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 34159 cat >>confdefs.h <<\_ACEOF
10f2d63a 34160#define wxUSE_STATLINE 1
e6cc62c6 34161_ACEOF
10f2d63a 34162
89e6bf6d 34163 USES_CONTROLS=1
10f2d63a
VZ
34164fi
34165
34166if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 34167 cat >>confdefs.h <<\_ACEOF
10f2d63a 34168#define wxUSE_STATUSBAR 1
e6cc62c6 34169_ACEOF
10f2d63a 34170
1e6feb95 34171 USES_CONTROLS=1
698dcdb6 34172
2286341c 34173 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
34174fi
34175
34176if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 34177 cat >>confdefs.h <<\_ACEOF
10f2d63a 34178#define wxUSE_TAB_DIALOG 1
e6cc62c6 34179_ACEOF
10f2d63a
VZ
34180
34181 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
34182fi
34183
1e6feb95 34184if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 34185 cat >>confdefs.h <<\_ACEOF
1e6feb95 34186#define wxUSE_TEXTCTRL 1
e6cc62c6 34187_ACEOF
1e6feb95
VZ
34188
34189 USES_CONTROLS=1
34190 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
34191fi
34192
1db8dc4a 34193if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 34194 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
34195 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
34196echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
34197 wxUSE_TOGGLEBTN=no
34198 fi
34199 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
34200 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
34201echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
34202 wxUSE_TOGGLEBTN=no
34203 fi
34204
34205 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 34206 cat >>confdefs.h <<\_ACEOF
1db8dc4a 34207#define wxUSE_TOGGLEBTN 1
e6cc62c6 34208_ACEOF
1db8dc4a 34209
1e6feb95 34210 USES_CONTROLS=1
a45d7ab7 34211 fi
1db8dc4a
VZ
34212fi
34213
360d6699 34214if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 34215 cat >>confdefs.h <<\_ACEOF
360d6699 34216#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 34217_ACEOF
360d6699
VZ
34218
34219 wxUSE_TOOLBAR="yes"
1e6feb95 34220 USES_CONTROLS=1
360d6699
VZ
34221fi
34222
10f2d63a 34223if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 34224 cat >>confdefs.h <<\_ACEOF
10f2d63a 34225#define wxUSE_TOOLBAR 1
e6cc62c6 34226_ACEOF
10f2d63a 34227
1e6feb95 34228 USES_CONTROLS=1
698dcdb6 34229
360d6699
VZ
34230 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
34231 wxUSE_TOOLBAR_NATIVE="yes"
34232 fi
34233
1e6feb95 34234 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 34235 cat >>confdefs.h <<\_ACEOF
360d6699 34236#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 34237_ACEOF
360d6699 34238
1e6feb95
VZ
34239 USES_CONTROLS=1
34240 fi
34241
34242 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
34243fi
34244
10f2d63a
VZ
34245if test "$wxUSE_TOOLTIPS" = "yes"; then
34246 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
34247 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
34248echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 34249 else
89e6bf6d 34250 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
34251 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
34252echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 34253 else
e6cc62c6 34254 cat >>confdefs.h <<\_ACEOF
10f2d63a 34255#define wxUSE_TOOLTIPS 1
e6cc62c6 34256_ACEOF
10f2d63a
VZ
34257
34258 fi
34259 fi
34260fi
34261
34262if test "$wxUSE_TREECTRL" = "yes"; then
34263 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 34264 cat >>confdefs.h <<\_ACEOF
10f2d63a 34265#define wxUSE_TREECTRL 1
e6cc62c6 34266_ACEOF
10f2d63a 34267
1e6feb95 34268 USES_CONTROLS=1
10f2d63a
VZ
34269 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
34270 else
e6cc62c6
VS
34271 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
34272echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
34273 fi
34274fi
34275
9f41d601 34276if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 34277 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
34278 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
34279echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 34280 else
833a51f6
MB
34281 if test "$wxUSE_PM" = 1; then
34282 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
e6cc62c6 34283echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
833a51f6
MB
34284 else
34285 cat >>confdefs.h <<\_ACEOF
9f41d601 34286#define wxUSE_POPUPWIN 1
e6cc62c6 34287_ACEOF
9f41d601 34288
8284b0c5 34289
833a51f6 34290 USES_CONTROLS=1
485cf710 34291 fi
6abe4b65 34292 fi
9f41d601
RR
34293fi
34294
dd964dcc 34295if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 34296 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
34297 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
34298echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 34299 else
e6cc62c6 34300 cat >>confdefs.h <<\_ACEOF
dd964dcc 34301#define wxUSE_TIPWINDOW 1
e6cc62c6 34302_ACEOF
dd964dcc 34303
3c011993 34304 fi
dd964dcc
VZ
34305fi
34306
1e6feb95 34307if test "$USES_CONTROLS" = 1; then
e6cc62c6 34308 cat >>confdefs.h <<\_ACEOF
1e6feb95 34309#define wxUSE_CONTROLS 1
e6cc62c6 34310_ACEOF
10f2d63a 34311
10f2d63a
VZ
34312fi
34313
8284b0c5 34314
e46d2a18
VS
34315if test "$wxUSE_ACCESSIBILITY" = "yes"; then
34316 cat >>confdefs.h <<\_ACEOF
34317#define wxUSE_ACCESSIBILITY 1
34318_ACEOF
34319
34320 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
34321fi
1e6feb95 34322
24fd6d87 34323if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 34324 cat >>confdefs.h <<\_ACEOF
24fd6d87 34325#define wxUSE_DRAGIMAGE 1
e6cc62c6 34326_ACEOF
24fd6d87
VZ
34327
34328 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
34329fi
34330
e46d2a18 34331if test "$wxUSE_EXCEPTIONS" = "yes"; then
e6cc62c6 34332 cat >>confdefs.h <<\_ACEOF
e46d2a18 34333#define wxUSE_EXCEPTIONS 1
e6cc62c6 34334_ACEOF
7bb2947d 34335
e46d2a18
VS
34336fi
34337
34338USE_HTML=0
34339if test "$wxUSE_HTML" = "yes"; then
34340 cat >>confdefs.h <<\_ACEOF
34341#define wxUSE_HTML 1
34342_ACEOF
34343
34344 USE_HTML=1
34345 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
7bb2947d
MB
34346fi
34347
1e6feb95 34348if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 34349 cat >>confdefs.h <<\_ACEOF
1e6feb95 34350#define wxUSE_MENUS 1
e6cc62c6 34351_ACEOF
10f2d63a 34352
1e6feb95 34353 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
34354fi
34355
1e6feb95 34356if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 34357 cat >>confdefs.h <<\_ACEOF
1e6feb95 34358#define wxUSE_METAFILE 1
e6cc62c6 34359_ACEOF
10f2d63a 34360
10f2d63a
VZ
34361fi
34362
1e6feb95 34363if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 34364 cat >>confdefs.h <<\_ACEOF
1e6feb95 34365#define wxUSE_MIMETYPE 1
e6cc62c6 34366_ACEOF
10f2d63a 34367
10f2d63a
VZ
34368fi
34369
34370if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 34371 cat >>confdefs.h <<\_ACEOF
10f2d63a 34372#define wxUSE_MINIFRAME 1
e6cc62c6 34373_ACEOF
10f2d63a
VZ
34374
34375 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
34376fi
34377
e46d2a18 34378if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 34379 cat >>confdefs.h <<\_ACEOF
e46d2a18 34380#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 34381_ACEOF
10f2d63a 34382
e46d2a18
VS
34383 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
34384 "$TOOLKIT" = "MOTIF"; then
34385 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
34386 fi
10f2d63a
VZ
34387fi
34388
e46d2a18 34389
10f2d63a 34390if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 34391 cat >>confdefs.h <<\_ACEOF
1e487827 34392#define wxUSE_VALIDATORS 1
e6cc62c6 34393_ACEOF
703e0a69 34394
698dcdb6
VZ
34395 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
34396fi
34397
edae8572 34398if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 34399 cat >>confdefs.h <<\_ACEOF
edae8572 34400#define wxUSE_PALETTE 1
e6cc62c6 34401_ACEOF
edae8572
VZ
34402
34403fi
34404
e46d2a18
VS
34405if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
34406 LIBS=" -lunicows $LIBS"
34407fi
34408
34409
698dcdb6 34410if test "$wxUSE_IMAGE" = "yes" ; then
e46d2a18 34411 cat >>confdefs.h <<\_ACEOF
698dcdb6 34412#define wxUSE_IMAGE 1
e6cc62c6 34413_ACEOF
698dcdb6 34414
698dcdb6 34415
e46d2a18
VS
34416 if test "$wxUSE_GIF" = "yes" ; then
34417 cat >>confdefs.h <<\_ACEOF
698dcdb6 34418#define wxUSE_GIF 1
e6cc62c6 34419_ACEOF
698dcdb6 34420
e46d2a18 34421 fi
698dcdb6 34422
e46d2a18
VS
34423 if test "$wxUSE_PCX" = "yes" ; then
34424 cat >>confdefs.h <<\_ACEOF
698dcdb6 34425#define wxUSE_PCX 1
e6cc62c6 34426_ACEOF
698dcdb6 34427
e46d2a18 34428 fi
698dcdb6 34429
e46d2a18
VS
34430 if test "$wxUSE_IFF" = "yes" ; then
34431 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 34432#define wxUSE_IFF 1
e6cc62c6 34433_ACEOF
4b6b4dfc 34434
e46d2a18 34435 fi
4b6b4dfc 34436
e46d2a18
VS
34437 if test "$wxUSE_PNM" = "yes" ; then
34438 cat >>confdefs.h <<\_ACEOF
698dcdb6 34439#define wxUSE_PNM 1
e6cc62c6 34440_ACEOF
698dcdb6 34441
e46d2a18 34442 fi
698dcdb6 34443
e46d2a18
VS
34444 if test "$wxUSE_XPM" = "yes" ; then
34445 cat >>confdefs.h <<\_ACEOF
698dcdb6 34446#define wxUSE_XPM 1
e6cc62c6 34447_ACEOF
698dcdb6 34448
e46d2a18 34449 fi
698dcdb6 34450
e46d2a18
VS
34451 if test "$wxUSE_ICO_CUR" = "yes" ; then
34452 cat >>confdefs.h <<\_ACEOF
658974ae 34453#define wxUSE_ICO_CUR 1
e6cc62c6 34454_ACEOF
658974ae 34455
e46d2a18 34456 fi
a72a4bfa
VS
34457fi
34458
8284b0c5 34459
1e6feb95 34460if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 34461 cat >>confdefs.h <<\_ACEOF
1e6feb95 34462#define wxUSE_CHOICEDLG 1
e6cc62c6 34463_ACEOF
1e6feb95
VZ
34464
34465fi
34466
34467if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 34468 cat >>confdefs.h <<\_ACEOF
1e6feb95 34469#define wxUSE_COLOURDLG 1
e6cc62c6 34470_ACEOF
1e6feb95
VZ
34471
34472fi
34473
34474if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 34475 cat >>confdefs.h <<\_ACEOF
1e6feb95 34476#define wxUSE_FILEDLG 1
e6cc62c6 34477_ACEOF
1e6feb95
VZ
34478
34479fi
34480
8db37e06 34481if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 34482 cat >>confdefs.h <<\_ACEOF
8db37e06 34483#define wxUSE_FINDREPLDLG 1
e6cc62c6 34484_ACEOF
8db37e06
VZ
34485
34486fi
34487
1e6feb95 34488if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 34489 cat >>confdefs.h <<\_ACEOF
1e6feb95 34490#define wxUSE_FONTDLG 1
e6cc62c6 34491_ACEOF
1e6feb95
VZ
34492
34493fi
34494
34495if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 34496 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
34497 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
34498echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 34499 else
e6cc62c6 34500 cat >>confdefs.h <<\_ACEOF
1e6feb95 34501#define wxUSE_DIRDLG 1
e6cc62c6 34502_ACEOF
1e6feb95 34503
1e6feb95
VZ
34504 fi
34505fi
34506
34507if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 34508 cat >>confdefs.h <<\_ACEOF
1e6feb95 34509#define wxUSE_MSGDLG 1
e6cc62c6 34510_ACEOF
1e6feb95
VZ
34511
34512fi
34513
34514if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 34515 cat >>confdefs.h <<\_ACEOF
1e6feb95 34516#define wxUSE_NUMBERDLG 1
e6cc62c6 34517_ACEOF
1e6feb95
VZ
34518
34519fi
34520
34521if test "$wxUSE_PROGRESSDLG" = "yes"; then
34522 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
34523 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
34524echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 34525 else
e6cc62c6 34526 cat >>confdefs.h <<\_ACEOF
1e6feb95 34527#define wxUSE_PROGRESSDLG 1
e6cc62c6 34528_ACEOF
1e6feb95
VZ
34529
34530 fi
34531fi
34532
cbca9943 34533if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 34534 cat >>confdefs.h <<\_ACEOF
cbca9943 34535#define wxUSE_SPLASH 1
e6cc62c6 34536_ACEOF
cbca9943
VZ
34537
34538fi
34539
1e6feb95
VZ
34540if test "$wxUSE_STARTUP_TIPS" = "yes"; then
34541 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
34542 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
34543echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 34544 else
e6cc62c6 34545 cat >>confdefs.h <<\_ACEOF
1e6feb95 34546#define wxUSE_STARTUP_TIPS 1
e6cc62c6 34547_ACEOF
1e6feb95 34548
7b4a847f
RR
34549 fi
34550fi
579d8138 34551
8284b0c5 34552if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 34553 cat >>confdefs.h <<\_ACEOF
8284b0c5 34554#define wxUSE_TEXTDLG 1
e6cc62c6 34555_ACEOF
8284b0c5
MB
34556
34557fi
34558
34559if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 34560 cat >>confdefs.h <<\_ACEOF
8284b0c5 34561#define wxUSE_WIZARDDLG 1
e6cc62c6 34562_ACEOF
8284b0c5
MB
34563
34564 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
34565fi
34566
34567
34568if test "$cross_compiling" = "yes"; then
34569 OSINFO="\"$host\""
34570else
34571 OSINFO=`uname -s -r -m`
34572 OSINFO="\"$OSINFO\""
34573fi
34574
e6cc62c6 34575cat >>confdefs.h <<_ACEOF
8284b0c5 34576#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 34577_ACEOF
8284b0c5
MB
34578
34579
34580
34581if test "x$prefix" != "xNONE"; then
34582 wxPREFIX=$prefix
34583else
34584 wxPREFIX=$ac_default_prefix
34585fi
34586
e6cc62c6 34587cat >>confdefs.h <<_ACEOF
8284b0c5 34588#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 34589_ACEOF
8284b0c5
MB
34590
34591
e6cc62c6 34592top_builddir_wxconfig=`pwd`
52c71b80 34593
8284b0c5
MB
34594
34595
edd891e2
VS
34596CORE_BASE_LIBS="net base"
34597CORE_GUI_LIBS="adv core"
34598
34599if test "$wxUSE_XML" = "yes" ; then
34600 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
34601fi
45293562
VS
34602if test "$wxUSE_ODBC" != "no" ; then
34603 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
34604 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
edd891e2
VS
34605fi
34606if test "$wxUSE_HTML" = "yes" ; then
34607 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
34608fi
34609
57e7d4ac
VS
34610if test "$wxUSE_GUI" != "yes"; then
34611 CORE_GUI_LIBS=""
34612fi
34613
edd891e2
VS
34614
34615
34616
34617
34618
34619
8284b0c5
MB
34620
34621if test "$wxUSE_MAC" = 1 ; then
34622 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
34623fi
ac0c4cc3
DE
34624if test "$wxUSE_COCOA" = 1 ; then
34625 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
34626fi
8284b0c5
MB
34627
34628
2b5f62a0
VZ
34629LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
34630
34631have_cos=0
34632have_floor=0
e6cc62c6 34633
2b5f62a0
VZ
34634for ac_func in cos
34635do
e6cc62c6
VS
34636as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34637echo "$as_me:$LINENO: checking for $ac_func" >&5
34638echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34639if eval "test \"\${$as_ac_var+set}\" = set"; then
34640 echo $ECHO_N "(cached) $ECHO_C" >&6
34641else
34642 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 34643#line $LINENO "configure"
e6cc62c6
VS
34644/* confdefs.h. */
34645_ACEOF
34646cat confdefs.h >>conftest.$ac_ext
34647cat >>conftest.$ac_ext <<_ACEOF
34648/* end confdefs.h. */
2b5f62a0 34649/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34650 which can conflict with char $ac_func (); below.
34651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34652 <limits.h> exists even on freestanding compilers. */
34653#ifdef __STDC__
34654# include <limits.h>
34655#else
34656# include <assert.h>
34657#endif
2b5f62a0 34658/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34659#ifdef __cplusplus
34660extern "C"
34661{
34662#endif
2b5f62a0 34663/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34664 builtin and then its argument prototype would still apply. */
34665char $ac_func ();
2b5f62a0
VZ
34666/* The GNU C library defines this for functions which it implements
34667 to always fail with ENOSYS. Some functions are actually named
34668 something starting with __ and the normal name is an alias. */
34669#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34670choke me
34671#else
e6cc62c6
VS
34672char (*f) () = $ac_func;
34673#endif
34674#ifdef __cplusplus
34675}
2b5f62a0
VZ
34676#endif
34677
e6cc62c6
VS
34678int
34679main ()
34680{
34681return f != $ac_func;
34682 ;
34683 return 0;
34684}
34685_ACEOF
34686rm -f conftest.$ac_objext conftest$ac_exeext
34687if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 34688 (eval $ac_link) 2>&5
e6cc62c6
VS
34689 ac_status=$?
34690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34691 (exit $ac_status); } &&
789c5f4a 34692 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34694 (eval $ac_try) 2>&5
34695 ac_status=$?
34696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34697 (exit $ac_status); }; }; then
34698 eval "$as_ac_var=yes"
34699else
34700 echo "$as_me: failed program was:" >&5
34701sed 's/^/| /' conftest.$ac_ext >&5
34702
34703eval "$as_ac_var=no"
34704fi
789c5f4a 34705rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34706fi
34707echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34708echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34709if test `eval echo '${'$as_ac_var'}'` = yes; then
34710 cat >>confdefs.h <<_ACEOF
34711#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34712_ACEOF
2b5f62a0 34713 have_cos=1
2b5f62a0
VZ
34714fi
34715done
34716
e6cc62c6 34717
2b5f62a0
VZ
34718for ac_func in floor
34719do
e6cc62c6
VS
34720as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34721echo "$as_me:$LINENO: checking for $ac_func" >&5
34722echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34723if eval "test \"\${$as_ac_var+set}\" = set"; then
34724 echo $ECHO_N "(cached) $ECHO_C" >&6
34725else
34726 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 34727#line $LINENO "configure"
e6cc62c6
VS
34728/* confdefs.h. */
34729_ACEOF
34730cat confdefs.h >>conftest.$ac_ext
34731cat >>conftest.$ac_ext <<_ACEOF
34732/* end confdefs.h. */
2b5f62a0 34733/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34734 which can conflict with char $ac_func (); below.
34735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34736 <limits.h> exists even on freestanding compilers. */
34737#ifdef __STDC__
34738# include <limits.h>
34739#else
34740# include <assert.h>
34741#endif
2b5f62a0 34742/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34743#ifdef __cplusplus
34744extern "C"
34745{
34746#endif
2b5f62a0 34747/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34748 builtin and then its argument prototype would still apply. */
34749char $ac_func ();
2b5f62a0
VZ
34750/* The GNU C library defines this for functions which it implements
34751 to always fail with ENOSYS. Some functions are actually named
34752 something starting with __ and the normal name is an alias. */
34753#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34754choke me
34755#else
e6cc62c6
VS
34756char (*f) () = $ac_func;
34757#endif
34758#ifdef __cplusplus
34759}
2b5f62a0
VZ
34760#endif
34761
e6cc62c6
VS
34762int
34763main ()
34764{
34765return f != $ac_func;
34766 ;
34767 return 0;
34768}
34769_ACEOF
34770rm -f conftest.$ac_objext conftest$ac_exeext
34771if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 34772 (eval $ac_link) 2>&5
e6cc62c6
VS
34773 ac_status=$?
34774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34775 (exit $ac_status); } &&
789c5f4a 34776 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34778 (eval $ac_try) 2>&5
34779 ac_status=$?
34780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34781 (exit $ac_status); }; }; then
34782 eval "$as_ac_var=yes"
34783else
34784 echo "$as_me: failed program was:" >&5
34785sed 's/^/| /' conftest.$ac_ext >&5
34786
34787eval "$as_ac_var=no"
34788fi
789c5f4a 34789rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34790fi
34791echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34792echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34793if test `eval echo '${'$as_ac_var'}'` = yes; then
34794 cat >>confdefs.h <<_ACEOF
34795#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34796_ACEOF
2b5f62a0 34797 have_floor=1
2b5f62a0
VZ
34798fi
34799done
34800
e6cc62c6
VS
34801echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
34802echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 34803if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
34804 echo "$as_me:$LINENO: result: yes" >&5
34805echo "${ECHO_T}yes" >&6
2b5f62a0 34806else
e6cc62c6
VS
34807 echo "$as_me:$LINENO: result: no" >&5
34808echo "${ECHO_T}no" >&6
2b5f62a0
VZ
34809 LIBS="$LIBS -lm"
34810 # use different functions to avoid configure caching
34811 have_sin=0
34812 have_ceil=0
e6cc62c6
VS
34813
34814for ac_func in sin
2b5f62a0 34815do
e6cc62c6
VS
34816as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34817echo "$as_me:$LINENO: checking for $ac_func" >&5
34818echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34819if eval "test \"\${$as_ac_var+set}\" = set"; then
34820 echo $ECHO_N "(cached) $ECHO_C" >&6
34821else
34822 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 34823#line $LINENO "configure"
e6cc62c6
VS
34824/* confdefs.h. */
34825_ACEOF
34826cat confdefs.h >>conftest.$ac_ext
34827cat >>conftest.$ac_ext <<_ACEOF
34828/* end confdefs.h. */
2b5f62a0 34829/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34830 which can conflict with char $ac_func (); below.
34831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34832 <limits.h> exists even on freestanding compilers. */
34833#ifdef __STDC__
34834# include <limits.h>
34835#else
34836# include <assert.h>
34837#endif
2b5f62a0 34838/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34839#ifdef __cplusplus
34840extern "C"
34841{
34842#endif
2b5f62a0 34843/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34844 builtin and then its argument prototype would still apply. */
34845char $ac_func ();
2b5f62a0
VZ
34846/* The GNU C library defines this for functions which it implements
34847 to always fail with ENOSYS. Some functions are actually named
34848 something starting with __ and the normal name is an alias. */
34849#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34850choke me
34851#else
e6cc62c6
VS
34852char (*f) () = $ac_func;
34853#endif
34854#ifdef __cplusplus
34855}
2b5f62a0
VZ
34856#endif
34857
e6cc62c6
VS
34858int
34859main ()
34860{
34861return f != $ac_func;
34862 ;
34863 return 0;
34864}
34865_ACEOF
34866rm -f conftest.$ac_objext conftest$ac_exeext
34867if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 34868 (eval $ac_link) 2>&5
e6cc62c6
VS
34869 ac_status=$?
34870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34871 (exit $ac_status); } &&
789c5f4a 34872 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34874 (eval $ac_try) 2>&5
34875 ac_status=$?
34876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34877 (exit $ac_status); }; }; then
34878 eval "$as_ac_var=yes"
34879else
34880 echo "$as_me: failed program was:" >&5
34881sed 's/^/| /' conftest.$ac_ext >&5
34882
34883eval "$as_ac_var=no"
34884fi
789c5f4a 34885rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34886fi
34887echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34888echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34889if test `eval echo '${'$as_ac_var'}'` = yes; then
34890 cat >>confdefs.h <<_ACEOF
34891#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34892_ACEOF
2b5f62a0 34893 have_sin=1
2b5f62a0
VZ
34894fi
34895done
34896
e6cc62c6
VS
34897
34898for ac_func in ceil
2b5f62a0 34899do
e6cc62c6
VS
34900as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34901echo "$as_me:$LINENO: checking for $ac_func" >&5
34902echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34903if eval "test \"\${$as_ac_var+set}\" = set"; then
34904 echo $ECHO_N "(cached) $ECHO_C" >&6
34905else
34906 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 34907#line $LINENO "configure"
e6cc62c6
VS
34908/* confdefs.h. */
34909_ACEOF
34910cat confdefs.h >>conftest.$ac_ext
34911cat >>conftest.$ac_ext <<_ACEOF
34912/* end confdefs.h. */
2b5f62a0 34913/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34914 which can conflict with char $ac_func (); below.
34915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34916 <limits.h> exists even on freestanding compilers. */
34917#ifdef __STDC__
34918# include <limits.h>
34919#else
34920# include <assert.h>
34921#endif
2b5f62a0 34922/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34923#ifdef __cplusplus
34924extern "C"
34925{
34926#endif
2b5f62a0 34927/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34928 builtin and then its argument prototype would still apply. */
34929char $ac_func ();
2b5f62a0
VZ
34930/* The GNU C library defines this for functions which it implements
34931 to always fail with ENOSYS. Some functions are actually named
34932 something starting with __ and the normal name is an alias. */
34933#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34934choke me
34935#else
e6cc62c6
VS
34936char (*f) () = $ac_func;
34937#endif
34938#ifdef __cplusplus
34939}
2b5f62a0
VZ
34940#endif
34941
e6cc62c6
VS
34942int
34943main ()
34944{
34945return f != $ac_func;
34946 ;
34947 return 0;
34948}
34949_ACEOF
34950rm -f conftest.$ac_objext conftest$ac_exeext
34951if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
789c5f4a 34952 (eval $ac_link) 2>&5
e6cc62c6
VS
34953 ac_status=$?
34954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34955 (exit $ac_status); } &&
789c5f4a 34956 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34958 (eval $ac_try) 2>&5
34959 ac_status=$?
34960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34961 (exit $ac_status); }; }; then
34962 eval "$as_ac_var=yes"
34963else
34964 echo "$as_me: failed program was:" >&5
34965sed 's/^/| /' conftest.$ac_ext >&5
34966
34967eval "$as_ac_var=no"
34968fi
789c5f4a 34969rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34970fi
34971echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34972echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34973if test `eval echo '${'$as_ac_var'}'` = yes; then
34974 cat >>confdefs.h <<_ACEOF
34975#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34976_ACEOF
2b5f62a0 34977 have_ceil=1
2b5f62a0
VZ
34978fi
34979done
34980
e6cc62c6
VS
34981 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
34982echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 34983 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
34984 echo "$as_me:$LINENO: result: yes" >&5
34985echo "${ECHO_T}yes" >&6
2b5f62a0 34986 else
e6cc62c6
VS
34987 echo "$as_me:$LINENO: result: no" >&5
34988echo "${ECHO_T}no" >&6
2b5f62a0
VZ
34989 # not sure we should warn the user, crash, etc.
34990 fi
34991fi
8284b0c5
MB
34992
34993if test "$wxUSE_GUI" = "yes"; then
34994
e6cc62c6 34995
8284b0c5
MB
34996 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
34997 drawing dynamic erase event exec font image \
1dd02ac0 34998 minimal propsize rotate shaped widgets render"
b625909c
VS
34999
35000 if test "$wxUSE_MONOLITHIC" != "yes"; then
35001 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
35002 fi
8284b0c5
MB
35003else
35004 SAMPLES_SUBDIRS="console"
35005fi
35006
35007
e6cc62c6 35008INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
eea650d8 35009-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
8284b0c5 35010
fddeb06b
VS
35011if test "$GXX" = yes ; then
35012 CXXWARNINGS="-Wall"
35013 fi
35014
35015EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
35016
95318f7d 35017CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
35018CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
35019CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
35020
35021
fddeb06b 35022LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 35023EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 35024EXTRALIBS_XML="$EXPAT_LINK"
3527f29c 35025EXTRALIBS_HTML="$MSPACK_LINK"
bb41dcbe 35026EXTRALIBS_ODBC="$ODBC_LINK"
c74dc163
VS
35027if test "$wxUSE_GUI" = "yes"; then
35028 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
35029fi
34b08d2c
VS
35030if test "$wxUSE_OPENGL" = "yes"; then
35031 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
35032fi
fddeb06b
VS
35033
35034LDFLAGS="$LDFLAGS $PROFILE"
35035
8284b0c5
MB
35036if test "$wxUSE_GTK" = 1; then
35037 WXCONFIG_INCLUDE=
35038else
35039 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
35040fi
35041
67c13b6c
VS
35042WXCONFIG_EXTRALIBS="$LIBS"
35043
35044if test "$wxUSE_REGEX" = "builtin" ; then
35045 wxconfig_3rdparty="$wxconfig_3rdparty regex"
35046fi
35047if test "$wxUSE_EXPAT" = "builtin" ; then
35048 wxconfig_3rdparty="$wxconfig_3rdparty expat"
35049fi
35050if test "$wxUSE_ODBC" = "builtin" ; then
35051 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
35052fi
35053if test "$wxUSE_LIBTIFF" = "builtin" ; then
35054 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
35055fi
35056if test "$wxUSE_LIBJPEG" = "builtin" ; then
35057 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
35058fi
35059if test "$wxUSE_LIBPNG" = "builtin" ; then
35060 wxconfig_3rdparty="$wxconfig_3rdparty png"
35061fi
35062if test "$wxUSE_ZLIB" = "builtin" ; then
35063 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
35064fi
bb41dcbe
VS
35065if test "$wxUSE_ODBC" = "builtin" ; then
35066 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
35067fi
67c13b6c
VS
35068
35069for i in $wxconfig_3rdparty ; do
35070 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
35071done
35072
35073
fe0895cf
VS
35074if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
35075 WXUNIV=1
35076else
35077 WXUNIV=0
8284b0c5
MB
35078fi
35079
8284b0c5
MB
35080
35081
35082
35083
35084
35085
35086
672abd7a 35087
9747f85d
VS
35088if test $wxUSE_MONOLITHIC = "yes" ; then
35089 MONOLITHIC=1
35090else
35091 MONOLITHIC=0
35092fi
8284b0c5 35093
f93ca9fd
VS
35094if test $wxUSE_PLUGINS = "yes" ; then
35095 USE_PLUGINS=1
35096else
35097 USE_PLUGINS=0
35098fi
35099
bb41dcbe
VS
35100if test $wxUSE_ODBC != "no" ; then
35101 USE_ODBC=1
35102else
35103 USE_ODBC=0
35104fi
35105
029b47ad
VS
35106if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
35107 OFFICIAL_BUILD=1
35108else
35109 OFFICIAL_BUILD=0
35110fi
35111
8ee2dd05
VS
35112
35113
35114
8284b0c5
MB
35115
35116
35117
35118
35119
35120
c74dc163 35121
34b08d2c 35122
672abd7a 35123
cf615ebb 35124
6c67131a
VS
35125
35126
bb41dcbe 35127
f93ca9fd
VS
35128
35129
35130
3527f29c 35131
89fe663f 35132TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
8284b0c5
MB
35133
35134
35135
35136
35137
ea66c762 35138
0f1bc9c2 35139
f95e4495
VS
35140 if test "x$BAKEFILE_HOST" = "x"; then
35141 BAKEFILE_HOST="${host}"
35142 fi
35143
fe0895cf 35144 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
35145
35146 if test -n "$ac_tool_prefix"; then
35147 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
35148set dummy ${ac_tool_prefix}ranlib; ac_word=$2
35149echo "$as_me:$LINENO: checking for $ac_word" >&5
35150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35151if test "${ac_cv_prog_RANLIB+set}" = set; then
35152 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 35153else
fe0895cf
VS
35154 if test -n "$RANLIB"; then
35155 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 35156else
e6cc62c6
VS
35157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35158for as_dir in $PATH
35159do
35160 IFS=$as_save_IFS
35161 test -z "$as_dir" && as_dir=.
35162 for ac_exec_ext in '' $ac_executable_extensions; do
35163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35164 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
35165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35166 break 2
35167 fi
35168done
35169done
35170
10f2d63a 35171fi
10f2d63a 35172fi
e6cc62c6 35173RANLIB=$ac_cv_prog_RANLIB
fe0895cf 35174if test -n "$RANLIB"; then
e6cc62c6
VS
35175 echo "$as_me:$LINENO: result: $RANLIB" >&5
35176echo "${ECHO_T}$RANLIB" >&6
35177else
35178 echo "$as_me:$LINENO: result: no" >&5
35179echo "${ECHO_T}no" >&6
35180fi
35181
35182fi
35183if test -z "$ac_cv_prog_RANLIB"; then
35184 ac_ct_RANLIB=$RANLIB
35185 # Extract the first word of "ranlib", so it can be a program name with args.
35186set dummy ranlib; ac_word=$2
35187echo "$as_me:$LINENO: checking for $ac_word" >&5
35188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35189if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
35190 echo $ECHO_N "(cached) $ECHO_C" >&6
35191else
35192 if test -n "$ac_ct_RANLIB"; then
35193 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
35194else
35195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35196for as_dir in $PATH
35197do
35198 IFS=$as_save_IFS
35199 test -z "$as_dir" && as_dir=.
35200 for ac_exec_ext in '' $ac_executable_extensions; do
35201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35202 ac_cv_prog_ac_ct_RANLIB="ranlib"
35203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35204 break 2
35205 fi
35206done
35207done
35208
35209 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
35210fi
35211fi
35212ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
35213if test -n "$ac_ct_RANLIB"; then
35214 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
35215echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 35216else
e6cc62c6
VS
35217 echo "$as_me:$LINENO: result: no" >&5
35218echo "${ECHO_T}no" >&6
35219fi
35220
35221 RANLIB=$ac_ct_RANLIB
35222else
35223 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 35224fi
665bbe97 35225
fe0895cf
VS
35226 # Find a good install program. We prefer a C program (faster),
35227# so one script is as good as another. But avoid the broken or
35228# incompatible versions:
35229# SysV /etc/install, /usr/sbin/install
35230# SunOS /usr/etc/install
35231# IRIX /sbin/install
35232# AIX /bin/install
e6cc62c6 35233# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
35234# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
35235# AFS /usr/afsws/bin/install, which mishandles nonexistent args
35236# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
35237# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
35238echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
35239echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 35240if test -z "$INSTALL"; then
e6cc62c6
VS
35241if test "${ac_cv_path_install+set}" = set; then
35242 echo $ECHO_N "(cached) $ECHO_C" >&6
35243else
35244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35245for as_dir in $PATH
35246do
35247 IFS=$as_save_IFS
35248 test -z "$as_dir" && as_dir=.
35249 # Account for people who put trailing slashes in PATH elements.
35250case $as_dir/ in
35251 ./ | .// | /cC/* | \
35252 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
35253 /usr/ucb/* ) ;;
35254 *)
35255 # OSF1 and SCO ODT 3.0 have their own names for install.
35256 # Don't use installbsd from OSF since it installs stuff as root
35257 # by default.
35258 for ac_prog in ginstall scoinst install; do
35259 for ac_exec_ext in '' $ac_executable_extensions; do
789c5f4a
VZ
35260 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
35261 if test $ac_prog = install &&
35262 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
35263 # AIX install. It has an incompatible calling convention.
35264 :
35265 elif test $ac_prog = install &&
35266 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
35267 # program-specific install script used by HP pwplus--don't use.
35268 :
35269 else
35270 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
35271 break 3
35272 fi
35273 fi
fe0895cf 35274 done
e6cc62c6
VS
35275 done
35276 ;;
35277esac
35278done
35279
fe0895cf
VS
35280
35281fi
35282 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 35283 INSTALL=$ac_cv_path_install
fe0895cf
VS
35284 else
35285 # As a last resort, use the slow shell script. We don't cache a
35286 # path for INSTALL within a source directory, because that will
35287 # break other packages using the cache if that directory is
35288 # removed, or if the path is relative.
e6cc62c6 35289 INSTALL=$ac_install_sh
fe0895cf
VS
35290 fi
35291fi
e6cc62c6
VS
35292echo "$as_me:$LINENO: result: $INSTALL" >&5
35293echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
35294
35295# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
35296# It thinks the first close brace ends the variable substitution.
35297test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
35298
e6cc62c6 35299test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
35300
35301test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
35302
e6cc62c6
VS
35303 echo "$as_me:$LINENO: checking whether ln -s works" >&5
35304echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
35305LN_S=$as_ln_s
35306if test "$LN_S" = "ln -s"; then
35307 echo "$as_me:$LINENO: result: yes" >&5
35308echo "${ECHO_T}yes" >&6
fe0895cf 35309else
e6cc62c6
VS
35310 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
35311echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
35312fi
35313
35314
e6cc62c6
VS
35315 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
35316echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
789c5f4a 35317set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
e6cc62c6
VS
35318if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
35319 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 35320else
e6cc62c6 35321 cat >conftest.make <<\_ACEOF
fe0895cf 35322all:
e6cc62c6
VS
35323 @echo 'ac_maketemp="$(MAKE)"'
35324_ACEOF
fe0895cf 35325# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 35326eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
35327if test -n "$ac_maketemp"; then
35328 eval ac_cv_prog_make_${ac_make}_set=yes
35329else
35330 eval ac_cv_prog_make_${ac_make}_set=no
35331fi
e6cc62c6 35332rm -f conftest.make
fe0895cf
VS
35333fi
35334if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
35335 echo "$as_me:$LINENO: result: yes" >&5
35336echo "${ECHO_T}yes" >&6
fe0895cf
VS
35337 SET_MAKE=
35338else
e6cc62c6
VS
35339 echo "$as_me:$LINENO: result: no" >&5
35340echo "${ECHO_T}no" >&6
fe0895cf
VS
35341 SET_MAKE="MAKE=${MAKE-make}"
35342fi
35343
e6cc62c6
VS
35344
35345
874d12cf
VS
35346 if test -n "$ac_tool_prefix"; then
35347 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
35348set dummy ${ac_tool_prefix}ar; ac_word=$2
e6cc62c6
VS
35349echo "$as_me:$LINENO: checking for $ac_word" >&5
35350echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35351if test "${ac_cv_prog_AR+set}" = set; then
35352 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
35353else
35354 if test -n "$AR"; then
35355 ac_cv_prog_AR="$AR" # Let the user override the test.
35356else
e6cc62c6
VS
35357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35358for as_dir in $PATH
35359do
35360 IFS=$as_save_IFS
35361 test -z "$as_dir" && as_dir=.
35362 for ac_exec_ext in '' $ac_executable_extensions; do
35363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 35364 ac_cv_prog_AR="${ac_tool_prefix}ar"
e6cc62c6
VS
35365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35366 break 2
35367 fi
35368done
35369done
35370
fe0895cf
VS
35371fi
35372fi
e6cc62c6 35373AR=$ac_cv_prog_AR
fe0895cf 35374if test -n "$AR"; then
e6cc62c6
VS
35375 echo "$as_me:$LINENO: result: $AR" >&5
35376echo "${ECHO_T}$AR" >&6
fe0895cf 35377else
e6cc62c6
VS
35378 echo "$as_me:$LINENO: result: no" >&5
35379echo "${ECHO_T}no" >&6
fe0895cf
VS
35380fi
35381
874d12cf
VS
35382fi
35383if test -z "$ac_cv_prog_AR"; then
35384 ac_ct_AR=$AR
35385 # Extract the first word of "ar", so it can be a program name with args.
35386set dummy ar; ac_word=$2
35387echo "$as_me:$LINENO: checking for $ac_word" >&5
35388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35389if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
35390 echo $ECHO_N "(cached) $ECHO_C" >&6
35391else
35392 if test -n "$ac_ct_AR"; then
35393 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
35394else
35395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35396for as_dir in $PATH
35397do
35398 IFS=$as_save_IFS
35399 test -z "$as_dir" && as_dir=.
35400 for ac_exec_ext in '' $ac_executable_extensions; do
35401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35402 ac_cv_prog_ac_ct_AR="ar"
35403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35404 break 2
35405 fi
35406done
35407done
35408
35409 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
35410fi
35411fi
35412ac_ct_AR=$ac_cv_prog_ac_ct_AR
35413if test -n "$ac_ct_AR"; then
35414 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
35415echo "${ECHO_T}$ac_ct_AR" >&6
35416else
35417 echo "$as_me:$LINENO: result: no" >&5
35418echo "${ECHO_T}no" >&6
35419fi
35420
35421 AR=$ac_ct_AR
35422else
35423 AR="$ac_cv_prog_AR"
35424fi
35425
35426 if test -n "$ac_tool_prefix"; then
35427 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
35428set dummy ${ac_tool_prefix}strip; ac_word=$2
e6cc62c6
VS
35429echo "$as_me:$LINENO: checking for $ac_word" >&5
35430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35431if test "${ac_cv_prog_STRIP+set}" = set; then
35432 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
35433else
35434 if test -n "$STRIP"; then
35435 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
35436else
e6cc62c6
VS
35437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35438for as_dir in $PATH
35439do
35440 IFS=$as_save_IFS
35441 test -z "$as_dir" && as_dir=.
35442 for ac_exec_ext in '' $ac_executable_extensions; do
35443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 35444 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
e6cc62c6
VS
35445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35446 break 2
35447 fi
35448done
35449done
35450
fe0895cf
VS
35451fi
35452fi
e6cc62c6 35453STRIP=$ac_cv_prog_STRIP
fe0895cf 35454if test -n "$STRIP"; then
e6cc62c6
VS
35455 echo "$as_me:$LINENO: result: $STRIP" >&5
35456echo "${ECHO_T}$STRIP" >&6
fe0895cf 35457else
e6cc62c6
VS
35458 echo "$as_me:$LINENO: result: no" >&5
35459echo "${ECHO_T}no" >&6
fe0895cf
VS
35460fi
35461
874d12cf
VS
35462fi
35463if test -z "$ac_cv_prog_STRIP"; then
35464 ac_ct_STRIP=$STRIP
35465 # Extract the first word of "strip", so it can be a program name with args.
35466set dummy strip; ac_word=$2
35467echo "$as_me:$LINENO: checking for $ac_word" >&5
35468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35469if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
35470 echo $ECHO_N "(cached) $ECHO_C" >&6
35471else
35472 if test -n "$ac_ct_STRIP"; then
35473 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
35474else
35475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35476for as_dir in $PATH
35477do
35478 IFS=$as_save_IFS
35479 test -z "$as_dir" && as_dir=.
35480 for ac_exec_ext in '' $ac_executable_extensions; do
35481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35482 ac_cv_prog_ac_ct_STRIP="strip"
35483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35484 break 2
35485 fi
35486done
35487done
35488
35489 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
35490fi
35491fi
35492ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
35493if test -n "$ac_ct_STRIP"; then
35494 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
35495echo "${ECHO_T}$ac_ct_STRIP" >&6
35496else
35497 echo "$as_me:$LINENO: result: no" >&5
35498echo "${ECHO_T}no" >&6
35499fi
35500
35501 STRIP=$ac_ct_STRIP
35502else
35503 STRIP="$ac_cv_prog_STRIP"
35504fi
35505
35506 if test -n "$ac_tool_prefix"; then
35507 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
35508set dummy ${ac_tool_prefix}nm; ac_word=$2
35509echo "$as_me:$LINENO: checking for $ac_word" >&5
35510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35511if test "${ac_cv_prog_NM+set}" = set; then
35512 echo $ECHO_N "(cached) $ECHO_C" >&6
35513else
35514 if test -n "$NM"; then
35515 ac_cv_prog_NM="$NM" # Let the user override the test.
35516else
35517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35518for as_dir in $PATH
35519do
35520 IFS=$as_save_IFS
35521 test -z "$as_dir" && as_dir=.
35522 for ac_exec_ext in '' $ac_executable_extensions; do
35523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35524 ac_cv_prog_NM="${ac_tool_prefix}nm"
35525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35526 break 2
35527 fi
35528done
35529done
35530
35531fi
35532fi
35533NM=$ac_cv_prog_NM
35534if test -n "$NM"; then
35535 echo "$as_me:$LINENO: result: $NM" >&5
35536echo "${ECHO_T}$NM" >&6
35537else
35538 echo "$as_me:$LINENO: result: no" >&5
35539echo "${ECHO_T}no" >&6
35540fi
35541
35542fi
35543if test -z "$ac_cv_prog_NM"; then
35544 ac_ct_NM=$NM
35545 # Extract the first word of "nm", so it can be a program name with args.
35546set dummy nm; ac_word=$2
35547echo "$as_me:$LINENO: checking for $ac_word" >&5
35548echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35549if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
35550 echo $ECHO_N "(cached) $ECHO_C" >&6
35551else
35552 if test -n "$ac_ct_NM"; then
35553 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
35554else
35555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35556for as_dir in $PATH
35557do
35558 IFS=$as_save_IFS
35559 test -z "$as_dir" && as_dir=.
35560 for ac_exec_ext in '' $ac_executable_extensions; do
35561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
35562 ac_cv_prog_ac_ct_NM="nm"
35563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
35564 break 2
35565 fi
35566done
35567done
35568
35569 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
35570fi
35571fi
35572ac_ct_NM=$ac_cv_prog_ac_ct_NM
35573if test -n "$ac_ct_NM"; then
35574 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
35575echo "${ECHO_T}$ac_ct_NM" >&6
35576else
35577 echo "$as_me:$LINENO: result: no" >&5
35578echo "${ECHO_T}no" >&6
35579fi
35580
35581 NM=$ac_ct_NM
35582else
35583 NM="$ac_cv_prog_NM"
35584fi
35585
fe0895cf 35586
f95e4495 35587 case ${BAKEFILE_HOST} in
fe0895cf
VS
35588 *-hp-hpux* )
35589 INSTALL_DIR="mkdir"
35590 ;;
35591 *) INSTALL_DIR="$INSTALL -d"
35592 ;;
35593 esac
e6cc62c6 35594
fe0895cf 35595
6b9d41a5 35596 LDFLAGS_GUI=
f95e4495 35597 case ${BAKEFILE_HOST} in
6b9d41a5
VS
35598 *-*-cygwin* | *-*-mingw32* )
35599 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
35600 esac
35601
35602
fe0895cf 35603 fi
e6cc62c6
VS
35604
35605 echo "$as_me:$LINENO: checking if make is GNU make" >&5
35606echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 35607if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 35608 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 35609else
e6cc62c6 35610
fe0895cf
VS
35611 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
35612 egrep -s GNU > /dev/null); then
35613 bakefile_cv_prog_makeisgnu="yes"
35614 else
35615 bakefile_cv_prog_makeisgnu="no"
35616 fi
fe0895cf 35617
e6cc62c6 35618fi
49b0a3aa
VS
35619echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
35620echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
35621
35622 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
35623 IF_GNU_MAKE=""
35624 else
35625 IF_GNU_MAKE="#"
35626 fi
fe0895cf 35627
e6cc62c6
VS
35628
35629
fe0895cf
VS
35630 PLATFORM_UNIX=0
35631 PLATFORM_WIN32=0
35632 PLATFORM_MSDOS=0
35633 PLATFORM_MAC=0
35634 PLATFORM_MACOSX=0
96c1699d 35635 PLATFORM_OS2=0
e6cc62c6 35636
f95e4495
VS
35637 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
35638 case "${BAKEFILE_HOST}" in
35639 *-*-cygwin* | *-*-mingw32* )
35640 PLATFORM_WIN32=1
35641 ;;
35642 *-pc-msdosdjgpp )
35643 PLATFORM_MSDOS=1
35644 ;;
35645 *-pc-os2_emx | *-pc-os2-emx )
35646 PLATFORM_OS2=1
35647 ;;
35648 powerpc-*-darwin* )
35649 PLATFORM_MAC=1
35650 PLATFORM_MACOSX=1
35651 ;;
35652 * )
35653 PLATFORM_UNIX=1
35654 ;;
35655 esac
35656 else
35657 case "$BAKEFILE_FORCE_PLATFORM" in
35658 win32 )
35659 PLATFORM_WIN32=1
35660 ;;
35661 msdos )
35662 PLATFORM_MSDOS=1
35663 ;;
35664 os2 )
35665 PLATFORM_OS2=1
35666 ;;
35667 darwin )
35668 PLATFORM_MAC=1
35669 PLATFORM_MACOSX=1
35670 ;;
35671 unix )
35672 PLATFORM_UNIX=1
35673 ;;
35674 * )
35675 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
35676echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
35677 { (exit 1); exit 1; }; }
35678 ;;
35679 esac
35680 fi
fe0895cf 35681
fe0895cf 35682
e6cc62c6
VS
35683
35684
35685
35686
35687
35688
96c1699d 35689
fe0895cf 35690 SO_SUFFIX="so"
131f235d 35691 SO_SUFFIX_MODULE="so"
fe0895cf 35692 EXEEXT=""
4b1f6360 35693 LIBPREFIX=lib
fe0895cf 35694 DLLPREFIX=lib
131f235d 35695 DLLPREFIX_MODULE=
e6cc62c6 35696
f95e4495 35697 case "${BAKEFILE_HOST}" in
fe0895cf
VS
35698 *-hp-hpux* )
35699 SO_SUFFIX="sl"
131f235d 35700 SO_SUFFIX_MODULE="sl"
fe0895cf
VS
35701 ;;
35702 *-*-aix* )
35703 SO_SUFFIX="a"
131f235d 35704 SO_SUFFIX_MODULE="a"
fe0895cf
VS
35705 ;;
35706 *-*-cygwin* | *-*-mingw32* )
35707 SO_SUFFIX="dll"
131f235d 35708 SO_SUFFIX_MODULE="dll"
fe0895cf
VS
35709 EXEEXT=".exe"
35710 DLLPREFIX=""
35711 ;;
4b1f6360
VS
35712 *-pc-msdosdjgpp )
35713 EXEEXT=".exe"
35714 DLLPREFIX=""
35715 ;;
35716 *-pc-os2_emx | *-pc-os2-emx )
fe0895cf
VS
35717 EXEEXT=".exe"
35718 DLLPREFIX=""
4b1f6360 35719 LIBPREFIX=""
fe0895cf
VS
35720 ;;
35721 powerpc-*-darwin* )
35722 SO_SUFFIX="dylib"
131f235d 35723 SO_SUFFIX_MODULE="bundle"
fe0895cf
VS
35724 ;;
35725 esac
35726
fe0895cf 35727
e6cc62c6
VS
35728
35729
35730
35731
131f235d
VS
35732
35733
4b1f6360 35734
fe0895cf
VS
35735 SHARED_LD_CC="\$(CC) -shared -o"
35736 SHARED_LD_CXX="\$(CXX) -shared -o"
35737
35738 if test "x$GCC" = "xyes"; then
35739 PIC_FLAG="-fPIC"
35740 fi
35741
f95e4495 35742 case "${BAKEFILE_HOST}" in
fe0895cf
VS
35743 *-hp-hpux* )
35744 if test "x$GCC" = "xyes"; then
35745 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
35746 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
35747 else
35748 LDFLAGS="$LDFLAGS -L/usr/lib"
35749
35750 SHARED_LD_CC="${CC} -b -o"
35751 SHARED_LD_CXX="${CXX} -b -o"
35752 PIC_FLAG="+Z"
35753 fi
35754 ;;
35755
35756 *-*-linux* )
35757 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
35758 echo "$as_me:$LINENO: checking for Intel compiler" >&5
35759echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
35760if test "${bakefile_cv_prog_icc+set}" = set; then
35761 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 35762else
fe0895cf 35763
e6cc62c6 35764 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 35765#line $LINENO "configure"
e6cc62c6
VS
35766/* confdefs.h. */
35767_ACEOF
35768cat confdefs.h >>conftest.$ac_ext
35769cat >>conftest.$ac_ext <<_ACEOF
35770/* end confdefs.h. */
35771
35772int
35773main ()
35774{
fe0895cf
VS
35775
35776 #ifndef __INTEL_COMPILER
35777 #error Not icc
35778 #endif
e6cc62c6
VS
35779
35780 ;
35781 return 0;
35782}
35783_ACEOF
35784rm -f conftest.$ac_objext
35785if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 35786 (eval $ac_compile) 2>&5
e6cc62c6
VS
35787 ac_status=$?
35788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35789 (exit $ac_status); } &&
789c5f4a 35790 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
35791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35792 (eval $ac_try) 2>&5
35793 ac_status=$?
35794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35795 (exit $ac_status); }; }; then
fe0895cf
VS
35796 bakefile_cv_prog_icc=yes
35797else
e6cc62c6
VS
35798 echo "$as_me: failed program was:" >&5
35799sed 's/^/| /' conftest.$ac_ext >&5
35800
35801bakefile_cv_prog_icc=no
35802
fe0895cf 35803fi
789c5f4a 35804rm -f conftest.$ac_objext conftest.$ac_ext
fe0895cf 35805
e6cc62c6
VS
35806fi
35807echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
35808echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
35809 if test "$bakefile_cv_prog_icc" = "yes"; then
35810 PIC_FLAG="-KPIC"
35811 fi
35812 fi
35813 ;;
35814
35815 *-*-solaris2* )
35816 if test "x$GCC" != xyes ; then
35817 SHARED_LD_CC="${CC} -G -o"
35818 SHARED_LD_CXX="${CXX} -G -o"
35819 PIC_FLAG="-KPIC"
35820 fi
35821 ;;
35822
35823 *-*-darwin* )
35824 CFLAGS="$CFLAGS -fno-common"
35825 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
35826
35827
2a879853 35828 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
43948499
RD
35829echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
35830if test "${wx_cv_gcc31+set}" = set; then
35831 echo $ECHO_N "(cached) $ECHO_C" >&6
35832else
35833
2a879853 35834 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 35835#line $LINENO "configure"
43948499
RD
35836/* confdefs.h. */
35837_ACEOF
35838cat confdefs.h >>conftest.$ac_ext
35839cat >>conftest.$ac_ext <<_ACEOF
35840/* end confdefs.h. */
35841
35842int
35843main ()
35844{
35845
2a879853
VS
35846 #if (__GNUC__ < 3) || \
35847 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
35848 #error old gcc
35849 #endif
43948499
RD
35850
35851 ;
35852 return 0;
35853}
35854_ACEOF
35855rm -f conftest.$ac_objext
35856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 35857 (eval $ac_compile) 2>&5
43948499
RD
35858 ac_status=$?
35859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35860 (exit $ac_status); } &&
789c5f4a 35861 { ac_try='test -s conftest.$ac_objext'
43948499
RD
35862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35863 (eval $ac_try) 2>&5
35864 ac_status=$?
35865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35866 (exit $ac_status); }; }; then
35867
2a879853 35868 wx_cv_gcc31=yes
43948499
RD
35869
35870else
35871 echo "$as_me: failed program was:" >&5
35872sed 's/^/| /' conftest.$ac_ext >&5
35873
35874
2a879853 35875 wx_cv_gcc31=no
43948499
RD
35876
35877
35878fi
789c5f4a 35879rm -f conftest.$ac_objext conftest.$ac_ext
43948499
RD
35880
35881fi
35882echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
35883echo "${ECHO_T}$wx_cv_gcc31" >&6
2a879853 35884 if test "$wx_cv_gcc31" = "no"; then
43948499 35885 cat <<EOF >shared-ld-sh
fe0895cf
VS
35886#!/bin/sh
35887#-----------------------------------------------------------------------------
35888#-- Name: distrib/mac/shared-ld-sh
35889#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
35890#-- Author: Gilles Depeyrot
35891#-- Copyright: (c) 2002 Gilles Depeyrot
35892#-- Licence: any use permitted
35893#-----------------------------------------------------------------------------
35894
35895verbose=0
35896args=""
35897objects=""
131f235d 35898linking_flag="-dynamiclib"
fe0895cf
VS
35899
35900while test \${#} -gt 0; do
35901 case \${1} in
35902
35903 -v)
35904 verbose=1
35905 ;;
35906
35907 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
35908 # collect these options and values
35909 args="\${args} \${1} \${2}"
35910 shift
35911 ;;
35912
74500461 35913 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
fe0895cf
VS
35914 # collect these options
35915 args="\${args} \${1}"
35916 ;;
35917
131f235d
VS
35918 -dynamiclib|-bundle)
35919 linking_flag="\${1}"
fe0895cf
VS
35920 ;;
35921
35922 -*)
35923 echo "shared-ld: unhandled option '\${1}'"
35924 exit 1
35925 ;;
35926
4d264332 35927 *.o | *.a | *.dylib)
fe0895cf
VS
35928 # collect object files
35929 objects="\${objects} \${1}"
35930 ;;
35931
35932 *)
35933 echo "shared-ld: unhandled argument '\${1}'"
35934 exit 1
35935 ;;
35936
35937 esac
35938 shift
35939done
35940
35941#
35942# Link one module containing all the others
35943#
35944if test \${verbose} = 1; then
35945 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
35946fi
35947c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
35948status=\$?
35949if test \${status} != 0; then
35950 exit \${status}
35951fi
35952
35953#
35954# Link the shared library from the single module created
35955#
35956if test \${verbose} = 1; then
2a879853 35957 echo "cc \${linking_flag} master.\$\$.o \${args}"
fe0895cf 35958fi
131f235d 35959c++ \${linking_flag} master.\$\$.o \${args}
fe0895cf
VS
35960status=\$?
35961if test \${status} != 0; then
35962 exit \${status}
35963fi
35964
35965#
35966# Remove intermediate module
35967#
35968rm -f master.\$\$.o
35969
35970exit 0
35971EOF
43948499 35972 chmod +x shared-ld-sh
fe0895cf 35973
7f523214
VS
35974 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
35975 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
2a879853
VS
35976 SHARED_LD_CXX="$SHARED_LD_CC"
35977 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
35978 else
7f523214
VS
35979 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
35980 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
35981 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
35982 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
2a879853
VS
35983 fi
35984
fe0895cf 35985 PIC_FLAG="-dynamic -fPIC"
2a879853 35986 ;;
fe0895cf
VS
35987
35988 *-*-aix* )
35989 if test "x$GCC" != "xyes"; then
35990 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
35991set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
35992echo "$as_me:$LINENO: checking for $ac_word" >&5
35993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
35994if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
35995 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
35996else
35997 if test -n "$AIX_CXX_LD"; then
35998 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
35999else
e6cc62c6
VS
36000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36001for as_dir in $PATH
36002do
36003 IFS=$as_save_IFS
36004 test -z "$as_dir" && as_dir=.
36005 for ac_exec_ext in '' $ac_executable_extensions; do
36006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36007 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
36008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36009 break 2
36010 fi
36011done
36012done
36013
fe0895cf
VS
36014 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
36015fi
36016fi
e6cc62c6 36017AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 36018if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
36019 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
36020echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 36021else
e6cc62c6
VS
36022 echo "$as_me:$LINENO: result: no" >&5
36023echo "${ECHO_T}no" >&6
fe0895cf
VS
36024fi
36025
36026 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
36027 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
36028 fi
36029 ;;
36030
36031 *-*-beos* )
36032 SHARED_LD_CC="${LD} -shared -o"
36033 SHARED_LD_CXX="${LD} -shared -o"
36034 ;;
36035
36036 *-*-irix* )
36037 if test "x$GCC" != "xyes"; then
36038 PIC_FLAG="-KPIC"
36039 fi
36040 ;;
e6cc62c6 36041
fe0895cf
VS
36042 *-*-cygwin* | *-*-mingw32* )
36043 PIC_FLAG=""
36044 ;;
e6cc62c6 36045
fe0895cf
VS
36046 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
36047 *-*-sunos4* | \
36048 *-*-osf* | \
36049 *-*-dgux5* | \
4b1f6360 36050 *-pc-os2_emx | *-pc-os2-emx | \
fe0895cf
VS
36051 *-*-sysv5* )
36052 ;;
36053
36054 *)
f95e4495
VS
36055 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
36056echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
e6cc62c6 36057 { (exit 1); exit 1; }; }
fe0895cf
VS
36058 esac
36059
131f235d
VS
36060 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
36061 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
36062 fi
36063 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
239394fb 36064 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
131f235d
VS
36065 fi
36066
36067
36068
fe0895cf 36069
e6cc62c6
VS
36070
36071
36072
36073
fe0895cf
VS
36074 USE_SOVERSION=0
36075 USE_SOVERLINUX=0
36076 USE_SOVERSOLARIS=0
36077 USE_SOSYMLINKS=0
36078 USE_MACVERSION=0
36079 SONAME_FLAG=
36080
f95e4495 36081 case "${BAKEFILE_HOST}" in
fe0895cf
VS
36082 *-*-linux* )
36083 SONAME_FLAG="-Wl,-soname,"
36084 USE_SOVERSION=1
36085 USE_SOVERLINUX=1
36086 USE_SOSYMLINKS=1
36087 ;;
36088
36089 *-*-solaris2* )
36090 SONAME_FLAG="-h "
36091 USE_SOVERSION=1
36092 USE_SOVERSOLARIS=1
36093 USE_SOSYMLINKS=1
36094 ;;
36095
36096 *-*-darwin* )
36097 USE_MACVERSION=1
36098 USE_SOVERSION=1
36099 USE_SOSYMLINKS=1
e6cc62c6 36100 ;;
fe0895cf
VS
36101 esac
36102
fe0895cf 36103
e6cc62c6
VS
36104
36105
36106
36107
36108
36109
36110
49b0a3aa
VS
36111 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
36112echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
36113 DEPS_TRACKING=0
36114
fe0895cf 36115 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
36116 DEPSMODE=gcc
36117 DEPS_TRACKING=1
f95e4495 36118 case "${BAKEFILE_HOST}" in
3e5c3c83
VS
36119 powerpc-*-darwin* )
36120 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
36121 ;;
36122 * )
36123 DEPSFLAG_GCC="-MMD"
36124 ;;
36125 esac
49b0a3aa
VS
36126 echo "$as_me:$LINENO: result: gcc" >&5
36127echo "${ECHO_T}gcc" >&6
36128 else
36129 echo "$as_me:$LINENO: result: none" >&5
36130echo "${ECHO_T}none" >&6
36131 fi
36132
36133 if test $DEPS_TRACKING = 1 ; then
36134 cat <<EOF >bk-deps
36135#!/bin/sh
36136
45842500
VS
36137# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
36138# script. It is used to track C/C++ files dependencies in portable way.
49b0a3aa
VS
36139#
36140# Permission is given to use this file in any way.
36141
36142DEPSMODE=$DEPSMODE
36143DEPSDIR=.deps
3e5c3c83 36144DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
36145
36146mkdir -p \$DEPSDIR
36147
36148if test \$DEPSMODE = gcc ; then
3e5c3c83 36149 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
36150 status=\${?}
36151 if test \${status} != 0 ; then
36152 exit \${status}
36153 fi
36154 # move created file to the location we want it in:
36155 while test \${#} -gt 0; do
36156 case "\${1}" in
36157 -o )
36158 shift
36159 objfile=\${1}
36160 ;;
36161 -* )
36162 ;;
36163 * )
36164 srcfile=\${1}
36165 ;;
36166 esac
36167 shift
36168 done
36169 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
36170 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
36171 if test -f \$depfile ; then
36172 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
36173 rm -f \$depfile
36174 else
36175 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
36176 if test -f \$depfile ; then
9d0be83a 36177 sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
36178 rm -f \$depfile
36179 fi
36180 fi
49b0a3aa
VS
36181 exit 0
36182else
36183 \${*}
36184 exit \${?}
36185fi
36186EOF
36187 chmod +x bk-deps
fe0895cf 36188 fi
fe0895cf 36189
e6cc62c6
VS
36190
36191
36192
fe0895cf
VS
36193 RESCOMP=
36194 SETFILE=
36195
f95e4495 36196 case ${BAKEFILE_HOST} in
fe0895cf
VS
36197 *-*-cygwin* | *-*-mingw32* )
36198 if test "$build" != "$host" ; then
36199 RESCOMP=$host_alias-windres
36200 else
36201 # Extract the first word of "windres", so it can be a program name with args.
36202set dummy windres; ac_word=$2
e6cc62c6
VS
36203echo "$as_me:$LINENO: checking for $ac_word" >&5
36204echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36205if test "${ac_cv_prog_RESCOMP+set}" = set; then
36206 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
36207else
36208 if test -n "$RESCOMP"; then
36209 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
36210else
e6cc62c6
VS
36211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36212for as_dir in $PATH
36213do
36214 IFS=$as_save_IFS
36215 test -z "$as_dir" && as_dir=.
36216 for ac_exec_ext in '' $ac_executable_extensions; do
36217 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36218 ac_cv_prog_RESCOMP="windres"
36219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36220 break 2
36221 fi
36222done
36223done
36224
fe0895cf
VS
36225 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
36226fi
36227fi
e6cc62c6 36228RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 36229if test -n "$RESCOMP"; then
e6cc62c6
VS
36230 echo "$as_me:$LINENO: result: $RESCOMP" >&5
36231echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 36232else
e6cc62c6
VS
36233 echo "$as_me:$LINENO: result: no" >&5
36234echo "${ECHO_T}no" >&6
fe0895cf
VS
36235fi
36236
36237 fi
36238 ;;
e6cc62c6 36239
fe0895cf
VS
36240 *-*-darwin* )
36241 # Extract the first word of "Rez", so it can be a program name with args.
36242set dummy Rez; ac_word=$2
e6cc62c6
VS
36243echo "$as_me:$LINENO: checking for $ac_word" >&5
36244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36245if test "${ac_cv_prog_RESCOMP+set}" = set; then
36246 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
36247else
36248 if test -n "$RESCOMP"; then
36249 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
36250else
e6cc62c6
VS
36251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36252for as_dir in $PATH
36253do
36254 IFS=$as_save_IFS
36255 test -z "$as_dir" && as_dir=.
36256 for ac_exec_ext in '' $ac_executable_extensions; do
36257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36258 ac_cv_prog_RESCOMP="Rez"
36259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36260 break 2
36261 fi
36262done
36263done
36264
fe0895cf
VS
36265 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
36266fi
36267fi
e6cc62c6 36268RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 36269if test -n "$RESCOMP"; then
e6cc62c6
VS
36270 echo "$as_me:$LINENO: result: $RESCOMP" >&5
36271echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 36272else
e6cc62c6
VS
36273 echo "$as_me:$LINENO: result: no" >&5
36274echo "${ECHO_T}no" >&6
fe0895cf
VS
36275fi
36276
36277 # Extract the first word of "SetFile", so it can be a program name with args.
36278set dummy SetFile; ac_word=$2
e6cc62c6
VS
36279echo "$as_me:$LINENO: checking for $ac_word" >&5
36280echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36281if test "${ac_cv_prog_SETFILE+set}" = set; then
36282 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
36283else
36284 if test -n "$SETFILE"; then
36285 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
36286else
e6cc62c6
VS
36287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36288for as_dir in $PATH
36289do
36290 IFS=$as_save_IFS
36291 test -z "$as_dir" && as_dir=.
36292 for ac_exec_ext in '' $ac_executable_extensions; do
36293 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36294 ac_cv_prog_SETFILE="SetFile"
36295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36296 break 2
36297 fi
36298done
36299done
36300
fe0895cf
VS
36301 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
36302fi
36303fi
e6cc62c6 36304SETFILE=$ac_cv_prog_SETFILE
fe0895cf 36305if test -n "$SETFILE"; then
e6cc62c6
VS
36306 echo "$as_me:$LINENO: result: $SETFILE" >&5
36307echo "${ECHO_T}$SETFILE" >&6
fe0895cf 36308else
e6cc62c6
VS
36309 echo "$as_me:$LINENO: result: no" >&5
36310echo "${ECHO_T}no" >&6
fe0895cf
VS
36311fi
36312
36313 ;;
36314 esac
36315
fe0895cf
VS
36316
36317
e6cc62c6
VS
36318
36319
36320
36321
45842500 36322
ecfd48ca
VZ
36323
36324
45842500
VS
36325 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
36326if test "${enable_precomp_headers+set}" = set; then
36327 enableval="$enable_precomp_headers"
36328 bk_use_pch="$enableval"
36329fi;
36330
36331 GCC_PCH=0
36332
36333 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
36334 if test "x$GCC" = "xyes"; then
36335 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
36336echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
36337 cat >conftest.$ac_ext <<_ACEOF
789c5f4a 36338#line $LINENO "configure"
45842500
VS
36339/* confdefs.h. */
36340_ACEOF
36341cat confdefs.h >>conftest.$ac_ext
36342cat >>conftest.$ac_ext <<_ACEOF
36343/* end confdefs.h. */
36344
36345int
36346main ()
36347{
36348
8bcf2d20
VS
36349 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
36350 #error "no pch support"
36351 #endif
36352 #if (__GNUC__ < 3)
36353 #error "no pch support"
36354 #endif
36355 #if (__GNUC__ == 3) && \
36356 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
36357 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
36358 #error "no pch support"
45842500
VS
36359 #endif
36360
36361 ;
36362 return 0;
36363}
36364_ACEOF
36365rm -f conftest.$ac_objext
36366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
789c5f4a 36367 (eval $ac_compile) 2>&5
45842500
VS
36368 ac_status=$?
36369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36370 (exit $ac_status); } &&
789c5f4a 36371 { ac_try='test -s conftest.$ac_objext'
45842500
VS
36372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36373 (eval $ac_try) 2>&5
36374 ac_status=$?
36375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36376 (exit $ac_status); }; }; then
36377
36378 echo "$as_me:$LINENO: result: yes" >&5
36379echo "${ECHO_T}yes" >&6
36380 CPPFLAGS="-fpch-deps $CPPFLAGS"
36381 GCC_PCH=1
36382
36383else
36384 echo "$as_me: failed program was:" >&5
36385sed 's/^/| /' conftest.$ac_ext >&5
36386
36387
36388 echo "$as_me:$LINENO: result: no" >&5
36389echo "${ECHO_T}no" >&6
36390
36391fi
789c5f4a 36392rm -f conftest.$ac_objext conftest.$ac_ext
45842500
VS
36393 if test $GCC_PCH = 1 ; then
36394 cat <<EOF >bk-make-pch
36395#!/bin/sh
36396
36397# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
36398# script. It is used to generated precompiled headers.
36399#
36400# Permission is given to use this file in any way.
36401
36402outfile="\${1}"
36403header="\${2}"
36404shift
36405shift
36406
36407compiler=
36408headerfile=
36409while test \${#} -gt 0; do
36410 case "\${1}" in
36411 -I* )
36412 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
36413 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
36414 headerfile="\${incdir}/\${header}"
36415 fi
36416 ;;
36417 esac
36418 compiler="\${compiler} \${1}"
36419 shift
36420done
36421
36422if test "x\${headerfile}" = "x" ; then
36423 echo "error: can't find header \${header} in include paths" >2
36424else
36425 if test -f \${outfile} ; then
36426 rm -f \${outfile}
36427 else
36428 mkdir -p \`dirname \${outfile}\`
36429 fi
36430 depsfile=".deps/\`basename \${outfile}\`.d"
36431 mkdir -p .deps
36432 # can do this because gcc is >= 3.4:
36433 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
36434 exit \${?}
36435fi
36436EOF
36437 chmod +x bk-make-pch
36438 fi
36439 fi
36440 fi
36441
36442
36443
36444
36445
d78c94f2 36446 COND_BUILD_DEBUG="#"
6f628073 36447 if test "x$BUILD" = "xdebug" ; then
d78c94f2 36448 COND_BUILD_DEBUG=""
6f628073
VS
36449 fi
36450
6c67131a
VS
36451 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
36452 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
36453 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
36454 fi
36455
36456 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
36457 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
36458 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
36459 fi
36460
f93ca9fd
VS
36461 COND_BUILD_DEBUG_UNICODE_0="#"
36462 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
36463 COND_BUILD_DEBUG_UNICODE_0=""
36464 fi
36465
36466 COND_BUILD_DEBUG_UNICODE_1="#"
36467 if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
36468 COND_BUILD_DEBUG_UNICODE_1=""
36469 fi
36470
d78c94f2 36471 COND_BUILD_RELEASE="#"
6f628073 36472 if test "x$BUILD" = "xrelease" ; then
d78c94f2 36473 COND_BUILD_RELEASE=""
6b9d41a5
VS
36474 fi
36475
6c67131a
VS
36476 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
36477 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
36478 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
36479 fi
36480
f93ca9fd
VS
36481 COND_BUILD_RELEASE_UNICODE_0="#"
36482 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
36483 COND_BUILD_RELEASE_UNICODE_0=""
36484 fi
36485
36486 COND_BUILD_RELEASE_UNICODE_1="#"
36487 if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
36488 COND_BUILD_RELEASE_UNICODE_1=""
36489 fi
36490
6c67131a
VS
36491 COND_DEBUG_FLAG_1="#"
36492 if test "x$DEBUG_FLAG" = "x1" ; then
36493 COND_DEBUG_FLAG_1=""
36494 fi
36495
36496 COND_DEBUG_INFO_0="#"
36497 if test "x$DEBUG_INFO" = "x0" ; then
36498 COND_DEBUG_INFO_0=""
36499 fi
36500
36501 COND_DEBUG_INFO_1="#"
36502 if test "x$DEBUG_INFO" = "x1" ; then
36503 COND_DEBUG_INFO_1=""
36504 fi
36505
f95cd8fa
VS
36506 COND_DEPS_TRACKING_0="#"
36507 if test "x$DEPS_TRACKING" = "x0" ; then
36508 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
36509 fi
36510
8ee2dd05
VS
36511 COND_DEPS_TRACKING_1="#"
36512 if test "x$DEPS_TRACKING" = "x1" ; then
36513 COND_DEPS_TRACKING_1=""
36514 fi
36515
45842500
VS
36516 COND_GCC_PCH_1="#"
36517 if test "x$GCC_PCH" = "x1" ; then
36518 COND_GCC_PCH_1=""
36519 fi
36520
6f628073
VS
36521 COND_MONOLITHIC_0="#"
36522 if test "x$MONOLITHIC" = "x0" ; then
36523 COND_MONOLITHIC_0=""
6b9d41a5
VS
36524 fi
36525
6f628073
VS
36526 COND_MONOLITHIC_0_SHARED_0="#"
36527 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
36528 COND_MONOLITHIC_0_SHARED_0=""
36529 fi
36530
36531 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
36532 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
36533 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 36534 fi
e6cc62c6 36535
8772a1a7
VS
36536 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
36537 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
36538 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
36539 fi
36540
250700e4
RD
36541 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
36542 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
36543 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
36544 fi
36545
eb69fda5
VS
36546 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
36547 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
36548 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
36549 fi
36550
8ee2dd05
VS
36551 COND_MONOLITHIC_0_SHARED_1="#"
36552 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
36553 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 36554 fi
e6cc62c6 36555
6f628073
VS
36556 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
36557 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
36558 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
36559 fi
36560
8772a1a7
VS
36561 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
36562 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
36563 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
36564 fi
36565
250700e4
RD
36566 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
36567 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
36568 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
36569 fi
36570
eb69fda5
VS
36571 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
36572 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
36573 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
36574 fi
36575
f95e4495
VS
36576 COND_MONOLITHIC_0_USE_ODBC_1="#"
36577 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
36578 COND_MONOLITHIC_0_USE_ODBC_1=""
36579 fi
36580
3af038c0
VS
36581 COND_MONOLITHIC_1="#"
36582 if test "x$MONOLITHIC" = "x1" ; then
36583 COND_MONOLITHIC_1=""
36584 fi
36585
6f628073
VS
36586 COND_MONOLITHIC_1_SHARED_0="#"
36587 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
36588 COND_MONOLITHIC_1_SHARED_0=""
36589 fi
36590
36591 COND_MONOLITHIC_1_SHARED_1="#"
36592 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
36593 COND_MONOLITHIC_1_SHARED_1=""
36594 fi
36595
3af038c0
VS
36596 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
36597 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
36598 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
36599 fi
36600
36601 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
36602 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
36603 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
36604 fi
36605
6f628073
VS
36606 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
36607 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
36608 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
36609 fi
36610
3af038c0
VS
36611 COND_PLATFORM_MACOSX_1="#"
36612 if test "x$PLATFORM_MACOSX" = "x1" ; then
36613 COND_PLATFORM_MACOSX_1=""
36614 fi
36615
250700e4
RD
36616 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
36617 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
36618 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
36619 fi
36620
36621 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
36622 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
36623 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
36624 fi
36625
36626 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
36627 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
36628 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
36629 fi
36630
3527f29c
VS
36631 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
36632 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
36633 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
36634 fi
36635
8ee2dd05
VS
36636 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
36637 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
36638 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
36639 fi
36640
45842500
VS
36641 COND_PLATFORM_MAC_1="#"
36642 if test "x$PLATFORM_MAC" = "x1" ; then
36643 COND_PLATFORM_MAC_1=""
36644 fi
36645
3d8c1de0
VS
36646 COND_PLATFORM_OS2_1="#"
36647 if test "x$PLATFORM_OS2" = "x1" ; then
36648 COND_PLATFORM_OS2_1=""
36649 fi
36650
8772a1a7
VS
36651 COND_PLATFORM_UNIX_0="#"
36652 if test "x$PLATFORM_UNIX" = "x0" ; then
36653 COND_PLATFORM_UNIX_0=""
36654 fi
36655
3af038c0
VS
36656 COND_PLATFORM_UNIX_1="#"
36657 if test "x$PLATFORM_UNIX" = "x1" ; then
36658 COND_PLATFORM_UNIX_1=""
36659 fi
36660
3527f29c
VS
36661 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
36662 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
36663 COND_PLATFORM_UNIX_1_USE_GUI_1=""
36664 fi
36665
f93ca9fd
VS
36666 COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
36667 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
36668 COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
36669 fi
36670
3af038c0
VS
36671 COND_PLATFORM_WIN32_0="#"
36672 if test "x$PLATFORM_WIN32" = "x0" ; then
36673 COND_PLATFORM_WIN32_0=""
36674 fi
36675
36676 COND_PLATFORM_WIN32_1="#"
36677 if test "x$PLATFORM_WIN32" = "x1" ; then
36678 COND_PLATFORM_WIN32_1=""
36679 fi
36680
45842500
VS
36681 COND_SHARED_0="#"
36682 if test "x$SHARED" = "x0" ; then
36683 COND_SHARED_0=""
36684 fi
36685
250700e4
RD
36686 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
36687 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
36688 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
36689 fi
36690
52a5a009
VS
36691 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
36692 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
36693 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
36694 fi
36695
36696 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
36697 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
36698 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
36699 fi
36700
36701 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
36702 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
36703 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
36704 fi
36705
36706 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
36707 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
36708 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
36709 fi
36710
36711 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
36712 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
36713 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
36714 fi
36715
36716 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
36717 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
36718 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
36719 fi
36720
36721 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
36722 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
36723 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
36724 fi
36725
45842500
VS
36726 COND_SHARED_1="#"
36727 if test "x$SHARED" = "x1" ; then
36728 COND_SHARED_1=""
36729 fi
36730
250700e4
RD
36731 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
36732 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
36733 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
36734 fi
36735
6f628073
VS
36736 COND_TOOLKIT_COCOA="#"
36737 if test "x$TOOLKIT" = "xCOCOA" ; then
36738 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
36739 fi
36740
6f628073
VS
36741 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
36742 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36743 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
36744 fi
36745
6f628073
VS
36746 COND_TOOLKIT_GTK="#"
36747 if test "x$TOOLKIT" = "xGTK" ; then
36748 COND_TOOLKIT_GTK=""
f95cd8fa
VS
36749 fi
36750
6f628073
VS
36751 COND_TOOLKIT_GTK_USE_GUI_1="#"
36752 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
36753 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
36754 fi
36755
6f628073
VS
36756 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
36757 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36758 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
36759 fi
36760
3af038c0
VS
36761 COND_TOOLKIT_MAC="#"
36762 if test "x$TOOLKIT" = "xMAC" ; then
36763 COND_TOOLKIT_MAC=""
36764 fi
36765
8772a1a7
VS
36766 COND_TOOLKIT_MAC_USE_GUI_1="#"
36767 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
36768 COND_TOOLKIT_MAC_USE_GUI_1=""
36769 fi
36770
6f628073
VS
36771 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
36772 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36773 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
36774 fi
36775
6f628073
VS
36776 COND_TOOLKIT_MGL="#"
36777 if test "x$TOOLKIT" = "xMGL" ; then
36778 COND_TOOLKIT_MGL=""
8ee2dd05
VS
36779 fi
36780
6f628073
VS
36781 COND_TOOLKIT_MGL_USE_GUI_1="#"
36782 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
36783 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
36784 fi
36785
6f628073
VS
36786 COND_TOOLKIT_MOTIF="#"
36787 if test "x$TOOLKIT" = "xMOTIF" ; then
36788 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
36789 fi
36790
6f628073
VS
36791 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
36792 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
36793 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 36794 fi
e6cc62c6 36795
6f628073
VS
36796 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
36797 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36798 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
36799 fi
36800
6f628073
VS
36801 COND_TOOLKIT_MSW="#"
36802 if test "x$TOOLKIT" = "xMSW" ; then
36803 COND_TOOLKIT_MSW=""
8ee2dd05
VS
36804 fi
36805
6f628073
VS
36806 COND_TOOLKIT_MSW_USE_GUI_1="#"
36807 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
36808 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 36809 fi
e6cc62c6 36810
6f628073
VS
36811 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
36812 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36813 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 36814 fi
e6cc62c6 36815
96c1699d
VS
36816 COND_TOOLKIT_PM="#"
36817 if test "x$TOOLKIT" = "xPM" ; then
36818 COND_TOOLKIT_PM=""
36819 fi
36820
36821 COND_TOOLKIT_PM_USE_GUI_1="#"
36822 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
36823 COND_TOOLKIT_PM_USE_GUI_1=""
36824 fi
36825
36826 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
36827 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36828 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
36829 fi
36830
6f628073
VS
36831 COND_TOOLKIT_X11="#"
36832 if test "x$TOOLKIT" = "xX11" ; then
36833 COND_TOOLKIT_X11=""
9747f85d
VS
36834 fi
36835
6f628073
VS
36836 COND_TOOLKIT_X11_USE_GUI_1="#"
36837 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
36838 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
36839 fi
36840
3af038c0
VS
36841 COND_UNICODE_1="#"
36842 if test "x$UNICODE" = "x1" ; then
36843 COND_UNICODE_1=""
36844 fi
36845
7015ef3a
VZ
36846 COND_USE_EXCEPTIONS_0="#"
36847 if test "x$USE_EXCEPTIONS" = "x0" ; then
36848 COND_USE_EXCEPTIONS_0=""
36849 fi
36850
36851 COND_USE_EXCEPTIONS_1="#"
36852 if test "x$USE_EXCEPTIONS" = "x1" ; then
36853 COND_USE_EXCEPTIONS_1=""
36854 fi
36855
3af038c0
VS
36856 COND_USE_GUI_0="#"
36857 if test "x$USE_GUI" = "x0" ; then
36858 COND_USE_GUI_0=""
36859 fi
36860
36861 COND_USE_GUI_1="#"
36862 if test "x$USE_GUI" = "x1" ; then
36863 COND_USE_GUI_1=""
36864 fi
36865
e6cc62c6 36866 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
36867 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
36868 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 36869 fi
e6cc62c6
VS
36870
36871 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
36872 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
36873 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
36874 fi
36875
66a96744
VS
36876 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
36877 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
36878 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
36879 fi
36880
36881 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
36882 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
36883 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
36884 fi
36885
36886 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
36887 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
36888 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
36889 fi
36890
57e7d4ac
VS
36891 COND_USE_ODBC_1="#"
36892 if test "x$USE_ODBC" = "x1" ; then
36893 COND_USE_ODBC_1=""
36894 fi
36895
f93ca9fd
VS
36896 COND_USE_PLUGINS_0="#"
36897 if test "x$USE_PLUGINS" = "x0" ; then
36898 COND_USE_PLUGINS_0=""
36899 fi
36900
6f628073
VS
36901 COND_USE_SOSYMLINKS_1="#"
36902 if test "x$USE_SOSYMLINKS" = "x1" ; then
36903 COND_USE_SOSYMLINKS_1=""
b625909c
VS
36904 fi
36905
6f628073
VS
36906 COND_USE_SOVERLINUX_1="#"
36907 if test "x$USE_SOVERLINUX" = "x1" ; then
36908 COND_USE_SOVERLINUX_1=""
b625909c
VS
36909 fi
36910
6f628073
VS
36911 COND_USE_SOVERSION_0="#"
36912 if test "x$USE_SOVERSION" = "x0" ; then
36913 COND_USE_SOVERSION_0=""
fddeb06b 36914 fi
fe0895cf 36915
6f628073
VS
36916 COND_USE_SOVERSOLARIS_1="#"
36917 if test "x$USE_SOVERSOLARIS" = "x1" ; then
36918 COND_USE_SOVERSOLARIS_1=""
fddeb06b 36919 fi
fe0895cf 36920
f93ca9fd
VS
36921 COND_WITH_PLUGIN_SDL_1="#"
36922 if test "x$WITH_PLUGIN_SDL" = "x1" ; then
36923 COND_WITH_PLUGIN_SDL_1=""
36924 fi
36925
36926 COND_WITH_SDL_1="#"
36927 if test "x$WITH_SDL" = "x1" ; then
36928 COND_WITH_SDL_1=""
36929 fi
36930
3af038c0
VS
36931 COND_WXUNIV_1="#"
36932 if test "x$WXUNIV" = "x1" ; then
36933 COND_WXUNIV_1=""
36934 fi
36935
66a96744
VS
36936 COND_WXUSE_EXPAT_BUILTIN="#"
36937 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
36938 COND_WXUSE_EXPAT_BUILTIN=""
36939 fi
36940
02980527
VS
36941 COND_WXUSE_LIBJPEG_BUILTIN="#"
36942 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
36943 COND_WXUSE_LIBJPEG_BUILTIN=""
36944 fi
36945
36946 COND_WXUSE_LIBPNG_BUILTIN="#"
36947 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
36948 COND_WXUSE_LIBPNG_BUILTIN=""
36949 fi
36950
36951 COND_WXUSE_LIBTIFF_BUILTIN="#"
36952 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
36953 COND_WXUSE_LIBTIFF_BUILTIN=""
36954 fi
36955
36956 COND_WXUSE_ODBC_BUILTIN="#"
36957 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
36958 COND_WXUSE_ODBC_BUILTIN=""
36959 fi
36960
36961 COND_WXUSE_REGEX_BUILTIN="#"
36962 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
36963 COND_WXUSE_REGEX_BUILTIN=""
36964 fi
36965
36966 COND_WXUSE_ZLIB_BUILTIN="#"
36967 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
36968 COND_WXUSE_ZLIB_BUILTIN=""
36969 fi
36970
1772d20c 36971
fe0895cf 36972
fe0895cf 36973
fe0895cf 36974
45842500 36975if test $GCC_PCH = 1 ; then
130711ba 36976 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
45842500
VS
36977 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
36978else
36979 case "${host}" in
36980 powerpc-*-darwin* )
130711ba
VS
36981 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
36982 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
45842500 36983 ;;
45842500
VS
36984 esac
36985fi
fe0895cf
VS
36986
36987
fddeb06b 36988SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
36989
36990
36991
36992
36993
36994
36995
36996
36997
36998
36999
37000
37001
37002
37003
37004
37005
37006
37007
37008
37009
37010
37011
37012
37013
37014
37015
37016
37017
37018
37019
37020
37021
37022
37023
37024
37025
37026
37027
37028
37029
37030
37031
37032
37033
37034
37035
37036
37037
37038
37039
37040
37041
37042
37043
37044
37045
37046
37047
37048
37049
37050
37051
37052
37053
37054
37055
37056
37057
37058
37059
37060
37061
37062
37063
37064
37065
37066
37067
37068
37069
37070
37071
37072
37073
37074
37075
37076
37077
37078
37079
37080
37081
37082
fe0895cf 37083
f0290fca
VS
37084
37085
e6cc62c6
VS
37086
37087
37088echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
37089echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
789c5f4a 37090set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
e6cc62c6
VS
37091if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
37092 echo $ECHO_N "(cached) $ECHO_C" >&6
37093else
37094 cat >conftest.make <<\_ACEOF
37095all:
37096 @echo 'ac_maketemp="$(MAKE)"'
37097_ACEOF
37098# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
37099eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
37100if test -n "$ac_maketemp"; then
37101 eval ac_cv_prog_make_${ac_make}_set=yes
37102else
37103 eval ac_cv_prog_make_${ac_make}_set=no
37104fi
37105rm -f conftest.make
37106fi
37107if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
37108 echo "$as_me:$LINENO: result: yes" >&5
37109echo "${ECHO_T}yes" >&6
37110 SET_MAKE=
37111else
37112 echo "$as_me:$LINENO: result: no" >&5
37113echo "${ECHO_T}no" >&6
37114 SET_MAKE="MAKE=${MAKE-make}"
37115fi
37116
37117
37118if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
37119 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
37120fi
37121
37122 ac_config_headers="$ac_config_headers setup.h"
37123
37124
81345eef 37125 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
37126
37127
37128 ac_config_commands="$ac_config_commands default"
37129
37130
9de9b8f0 37131
6c3e36af
VZ
37132if test "$wxUSE_GUI" = "yes"; then
37133 SUBDIRS="samples demos utils contrib"
37134else SUBDIRS="samples utils"
37135fi
e6cc62c6 37136
166263e6 37137for subdir in `echo $SUBDIRS`; do
9747f85d 37138 if test -d ${srcdir}/${subdir} ; then
6c3e36af 37139 if test "$wxUSE_GUI" = "yes"; then
166263e6 37140 if test ${subdir} = "samples"; then
8772a1a7
VS
37141 makefiles="samples/Makefile.in $makefiles"
37142 for sample in `echo $SAMPLES_SUBDIRS`; do
166263e6
VZ
37143 if test -d $srcdir/samples/$sample; then
37144 makefiles="samples/$sample/Makefile.in $makefiles"
37145 fi
37146 done
37147 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
37148 fi
6c3e36af 37149 else if test ${subdir} = "samples"; then
8772a1a7 37150 makefiles="samples/Makefile.in samples/console/Makefile.in"
6c3e36af 37151 else makefiles="utils/HelpGen/Makefile.in \
2bf8cafb
VS
37152 utils/HelpGen/src/Makefile.in \
37153 utils/tex2rtf/Makefile.in \
37154 utils/tex2rtf/src/Makefile.in"
6c3e36af
VZ
37155 fi
37156 fi
37157
9747f85d
VS
37158 for mkin in $makefiles ; do
37159 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
37160 ac_config_files="$ac_config_files $mk"
e6cc62c6 37161
9747f85d
VS
37162 done
37163 fi
37164done
e6cc62c6 37165
9de9b8f0 37166
e6cc62c6
VS
37167cat >confcache <<\_ACEOF
37168# This file is a shell script that caches the results of configure
37169# tests run on this system so they can be shared between configure
37170# scripts and configure runs, see configure's option --config-cache.
37171# It is not useful on other systems. If it contains results you don't
37172# want to keep, you may remove or edit it.
37173#
37174# config.status only pays attention to the cache file if you give it
37175# the --recheck option to rerun configure.
37176#
37177# `ac_cv_env_foo' variables (set or unset) will be overridden when
37178# loading this file, other *unset* `ac_cv_foo' will be assigned the
37179# following values.
37180
37181_ACEOF
37182
37183# The following way of writing the cache mishandles newlines in values,
37184# but we know of no workaround that is simple, portable, and efficient.
37185# So, don't put newlines in cache variables' values.
37186# Ultrix sh set writes to stderr and can't be redirected directly,
37187# and sets the high bit in the cache file unless we assign to the vars.
37188{
37189 (set) 2>&1 |
37190 case `(ac_space=' '; set | grep ac_space) 2>&1` in
37191 *ac_space=\ *)
37192 # `set' does not quote correctly, so add quotes (double-quote
37193 # substitution turns \\\\ into \\, and sed turns \\ into \).
37194 sed -n \
789c5f4a
VZ
37195 "s/'/'\\\\''/g;
37196 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
37197 ;;
37198 *)
37199 # `set' quotes correctly as required by POSIX, so do not add quotes.
37200 sed -n \
789c5f4a 37201 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
37202 ;;
37203 esac;
37204} |
37205 sed '
37206 t clear
37207 : clear
37208 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
37209 t end
37210 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
37211 : end' >>confcache
37212if diff $cache_file confcache >/dev/null 2>&1; then :; else
37213 if test -w $cache_file; then
37214 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
37215 cat confcache >$cache_file
37216 else
37217 echo "not updating unwritable cache $cache_file"
37218 fi
37219fi
37220rm -f confcache
37221
37222test "x$prefix" = xNONE && prefix=$ac_default_prefix
37223# Let make expand exec_prefix.
37224test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
37225
37226# VPATH may cause trouble with some makes, so we remove $(srcdir),
37227# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
37228# trailing colons and then remove the whole line if VPATH becomes empty
37229# (actually we leave an empty line to preserve line numbers).
37230if test "x$srcdir" = x.; then
789c5f4a 37231 ac_vpsub='/^[ ]*VPATH[ ]*=/{
e6cc62c6
VS
37232s/:*\$(srcdir):*/:/;
37233s/:*\${srcdir}:*/:/;
37234s/:*@srcdir@:*/:/;
789c5f4a 37235s/^\([^=]*=[ ]*\):*/\1/;
e6cc62c6 37236s/:*$//;
789c5f4a 37237s/^[^=]*=[ ]*$//;
e6cc62c6
VS
37238}'
37239fi
37240
37241DEFS=-DHAVE_CONFIG_H
37242
37243ac_libobjs=
37244ac_ltlibobjs=
37245for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
37246 # 1. Remove the extension, and $U if already installed.
37247 ac_i=`echo "$ac_i" |
789c5f4a 37248 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
e6cc62c6
VS
37249 # 2. Add them.
37250 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
37251 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
37252done
37253LIBOBJS=$ac_libobjs
37254
37255LTLIBOBJS=$ac_ltlibobjs
37256
37257
37258
37259: ${CONFIG_STATUS=./config.status}
37260ac_clean_files_save=$ac_clean_files
37261ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37262{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
37263echo "$as_me: creating $CONFIG_STATUS" >&6;}
37264cat >$CONFIG_STATUS <<_ACEOF
37265#! $SHELL
37266# Generated by $as_me.
37267# Run this file to recreate the current configuration.
37268# Compiler output produced by configure, useful for debugging
37269# configure, is in config.log if it exists.
37270
37271debug=false
37272ac_cs_recheck=false
37273ac_cs_silent=false
37274SHELL=\${CONFIG_SHELL-$SHELL}
37275_ACEOF
37276
37277cat >>$CONFIG_STATUS <<\_ACEOF
37278## --------------------- ##
37279## M4sh Initialization. ##
37280## --------------------- ##
37281
37282# Be Bourne compatible
37283if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
37284 emulate sh
37285 NULLCMD=:
37286 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
37287 # is contrary to our usage. Disable this feature.
37288 alias -g '${1+"$@"}'='"$@"'
37289elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
37290 set -o posix
37291fi
37292
37293# Support unset when possible.
789c5f4a 37294if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
e6cc62c6
VS
37295 as_unset=unset
37296else
37297 as_unset=false
37298fi
37299
37300
37301# Work around bugs in pre-3.0 UWIN ksh.
37302$as_unset ENV MAIL MAILPATH
37303PS1='$ '
37304PS2='> '
37305PS4='+ '
37306
37307# NLS nuisances.
37308for as_var in \
37309 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
37310 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
37311 LC_TELEPHONE LC_TIME
37312do
789c5f4a 37313 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
e6cc62c6
VS
37314 eval $as_var=C; export $as_var
37315 else
37316 $as_unset $as_var
37317 fi
37318done
37319
37320# Required to use basename.
37321if expr a : '\(a\)' >/dev/null 2>&1; then
37322 as_expr=expr
37323else
37324 as_expr=false
37325fi
37326
37327if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
37328 as_basename=basename
37329else
37330 as_basename=false
37331fi
37332
37333
37334# Name of the executable.
37335as_me=`$as_basename "$0" ||
37336$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37337 X"$0" : 'X\(//\)$' \| \
37338 X"$0" : 'X\(/\)$' \| \
37339 . : '\(.\)' 2>/dev/null ||
37340echo X/"$0" |
37341 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
37342 /^X\/\(\/\/\)$/{ s//\1/; q; }
37343 /^X\/\(\/\).*/{ s//\1/; q; }
37344 s/.*/./; q'`
37345
37346
37347# PATH needs CR, and LINENO needs CR and PATH.
37348# Avoid depending upon Character Ranges.
37349as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37350as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37351as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37352as_cr_digits='0123456789'
37353as_cr_alnum=$as_cr_Letters$as_cr_digits
37354
37355# The user is always right.
37356if test "${PATH_SEPARATOR+set}" != set; then
37357 echo "#! /bin/sh" >conf$$.sh
37358 echo "exit 0" >>conf$$.sh
37359 chmod +x conf$$.sh
37360 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
37361 PATH_SEPARATOR=';'
37362 else
37363 PATH_SEPARATOR=:
37364 fi
37365 rm -f conf$$.sh
37366fi
37367
37368
37369 as_lineno_1=$LINENO
37370 as_lineno_2=$LINENO
37371 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
37372 test "x$as_lineno_1" != "x$as_lineno_2" &&
37373 test "x$as_lineno_3" = "x$as_lineno_2" || {
37374 # Find who we are. Look in the path if we contain no path at all
37375 # relative or not.
37376 case $0 in
37377 *[\\/]* ) as_myself=$0 ;;
37378 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37379for as_dir in $PATH
37380do
37381 IFS=$as_save_IFS
37382 test -z "$as_dir" && as_dir=.
37383 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37384done
37385
37386 ;;
37387 esac
37388 # We did not find ourselves, most probably we were run as `sh COMMAND'
37389 # in which case we are not to be found in the path.
37390 if test "x$as_myself" = x; then
37391 as_myself=$0
37392 fi
37393 if test ! -f "$as_myself"; then
37394 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
37395echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
37396 { (exit 1); exit 1; }; }
37397 fi
37398 case $CONFIG_SHELL in
37399 '')
37400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37401for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
37402do
37403 IFS=$as_save_IFS
37404 test -z "$as_dir" && as_dir=.
37405 for as_base in sh bash ksh sh5; do
37406 case $as_dir in
37407 /*)
37408 if ("$as_dir/$as_base" -c '
37409 as_lineno_1=$LINENO
37410 as_lineno_2=$LINENO
37411 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
37412 test "x$as_lineno_1" != "x$as_lineno_2" &&
37413 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
37414 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
37415 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
37416 CONFIG_SHELL=$as_dir/$as_base
37417 export CONFIG_SHELL
37418 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
37419 fi;;
37420 esac
37421 done
37422done
37423;;
37424 esac
37425
37426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
37427 # uniformly replaced by the line number. The first 'sed' inserts a
37428 # line-number line before each line; the second 'sed' does the real
37429 # work. The second script uses 'N' to pair each line-number line
37430 # with the numbered line, and appends trailing '-' during
37431 # substitution so that $LINENO is not a special case at line end.
37432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
37433 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
37434 sed '=' <$as_myself |
37435 sed '
37436 N
37437 s,$,-,
37438 : loop
37439 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
37440 t loop
37441 s,-$,,
37442 s,^['$as_cr_digits']*\n,,
37443 ' >$as_me.lineno &&
37444 chmod +x $as_me.lineno ||
37445 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
37446echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
37447 { (exit 1); exit 1; }; }
37448
37449 # Don't try to exec as it changes $[0], causing all sort of problems
37450 # (the dirname of $[0] is not the place where we might find the
37451 # original and so on. Autoconf is especially sensible to this).
37452 . ./$as_me.lineno
37453 # Exit status is that of the last command.
37454 exit
37455}
37456
37457
37458case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
37459 *c*,-n*) ECHO_N= ECHO_C='
37460' ECHO_T=' ' ;;
37461 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
37462 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
37463esac
37464
37465if expr a : '\(a\)' >/dev/null 2>&1; then
37466 as_expr=expr
37467else
37468 as_expr=false
37469fi
37470
37471rm -f conf$$ conf$$.exe conf$$.file
37472echo >conf$$.file
37473if ln -s conf$$.file conf$$ 2>/dev/null; then
37474 # We could just check for DJGPP; but this test a) works b) is more generic
37475 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
37476 if test -f conf$$.exe; then
37477 # Don't use ln at all; we don't have any links
37478 as_ln_s='cp -p'
37479 else
37480 as_ln_s='ln -s'
37481 fi
37482elif ln conf$$.file conf$$ 2>/dev/null; then
37483 as_ln_s=ln
37484else
37485 as_ln_s='cp -p'
37486fi
37487rm -f conf$$ conf$$.exe conf$$.file
37488
37489if mkdir -p . 2>/dev/null; then
37490 as_mkdir_p=:
37491else
37492 as_mkdir_p=false
37493fi
37494
37495as_executable_p="test -f"
37496
37497# Sed expression to map a string onto a valid CPP name.
789c5f4a 37498as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
e6cc62c6
VS
37499
37500# Sed expression to map a string onto a valid variable name.
789c5f4a 37501as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
e6cc62c6
VS
37502
37503
37504# IFS
37505# We need space, tab and new line, in precisely that order.
37506as_nl='
37507'
37508IFS=" $as_nl"
37509
37510# CDPATH.
37511$as_unset CDPATH
37512
37513exec 6>&1
37514
37515# Open the log real soon, to keep \$[0] and so on meaningful, and to
37516# report actual input values of CONFIG_FILES etc. instead of their
37517# values after options handling. Logging --version etc. is OK.
37518exec 5>>config.log
37519{
37520 echo
37521 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37522## Running $as_me. ##
37523_ASBOX
37524} >&5
37525cat >&5 <<_CSEOF
37526
e46d2a18 37527This file was extended by wxWindows $as_me 2.5.1, which was
789c5f4a 37528generated by GNU Autoconf 2.57. Invocation command line was
e6cc62c6
VS
37529
37530 CONFIG_FILES = $CONFIG_FILES
37531 CONFIG_HEADERS = $CONFIG_HEADERS
37532 CONFIG_LINKS = $CONFIG_LINKS
37533 CONFIG_COMMANDS = $CONFIG_COMMANDS
37534 $ $0 $@
37535
37536_CSEOF
37537echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
37538echo >&5
37539_ACEOF
37540
37541# Files that config.status was made for.
37542if test -n "$ac_config_files"; then
37543 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
37544fi
37545
37546if test -n "$ac_config_headers"; then
37547 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
37548fi
37549
37550if test -n "$ac_config_links"; then
37551 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
37552fi
37553
37554if test -n "$ac_config_commands"; then
37555 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
37556fi
37557
37558cat >>$CONFIG_STATUS <<\_ACEOF
37559
37560ac_cs_usage="\
37561\`$as_me' instantiates files from templates according to the
37562current configuration.
37563
37564Usage: $0 [OPTIONS] [FILE]...
37565
37566 -h, --help print this help, then exit
37567 -V, --version print version number, then exit
37568 -q, --quiet do not print progress messages
37569 -d, --debug don't remove temporary files
37570 --recheck update $as_me by reconfiguring in the same conditions
37571 --file=FILE[:TEMPLATE]
789c5f4a 37572 instantiate the configuration file FILE
e6cc62c6 37573 --header=FILE[:TEMPLATE]
789c5f4a 37574 instantiate the configuration header FILE
e6cc62c6
VS
37575
37576Configuration files:
37577$config_files
37578
37579Configuration headers:
37580$config_headers
37581
37582Configuration commands:
37583$config_commands
37584
37585Report bugs to <bug-autoconf@gnu.org>."
37586_ACEOF
37587
37588cat >>$CONFIG_STATUS <<_ACEOF
37589ac_cs_version="\\
e46d2a18 37590wxWindows config.status 2.5.1
789c5f4a 37591configured by $0, generated by GNU Autoconf 2.57,
e6cc62c6
VS
37592 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
37593
789c5f4a
VZ
37594Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
37595Free Software Foundation, Inc.
e6cc62c6
VS
37596This config.status script is free software; the Free Software Foundation
37597gives unlimited permission to copy, distribute and modify it."
37598srcdir=$srcdir
37599INSTALL="$INSTALL"
37600_ACEOF
37601
37602cat >>$CONFIG_STATUS <<\_ACEOF
37603# If no file are specified by the user, then we need to provide default
37604# value. By we need to know if files were specified by the user.
37605ac_need_defaults=:
37606while test $# != 0
37607do
37608 case $1 in
37609 --*=*)
37610 ac_option=`expr "x$1" : 'x\([^=]*\)='`
37611 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
37612 ac_shift=:
37613 ;;
37614 -*)
37615 ac_option=$1
37616 ac_optarg=$2
37617 ac_shift=shift
37618 ;;
37619 *) # This is not an option, so the user has probably given explicit
37620 # arguments.
37621 ac_option=$1
37622 ac_need_defaults=false;;
37623 esac
37624
37625 case $ac_option in
37626 # Handling of the options.
37627_ACEOF
37628cat >>$CONFIG_STATUS <<\_ACEOF
37629 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37630 ac_cs_recheck=: ;;
37631 --version | --vers* | -V )
37632 echo "$ac_cs_version"; exit 0 ;;
37633 --he | --h)
37634 # Conflict between --help and --header
37635 { { echo "$as_me:$LINENO: error: ambiguous option: $1
37636Try \`$0 --help' for more information." >&5
37637echo "$as_me: error: ambiguous option: $1
37638Try \`$0 --help' for more information." >&2;}
37639 { (exit 1); exit 1; }; };;
37640 --help | --hel | -h )
37641 echo "$ac_cs_usage"; exit 0 ;;
37642 --debug | --d* | -d )
37643 debug=: ;;
37644 --file | --fil | --fi | --f )
37645 $ac_shift
37646 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
37647 ac_need_defaults=false;;
37648 --header | --heade | --head | --hea )
37649 $ac_shift
37650 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
37651 ac_need_defaults=false;;
37652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37653 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37654 ac_cs_silent=: ;;
37655
37656 # This is an error.
37657 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
37658Try \`$0 --help' for more information." >&5
37659echo "$as_me: error: unrecognized option: $1
37660Try \`$0 --help' for more information." >&2;}
37661 { (exit 1); exit 1; }; } ;;
37662
37663 *) ac_config_targets="$ac_config_targets $1" ;;
37664
37665 esac
37666 shift
37667done
37668
37669ac_configure_extra_args=
37670
37671if $ac_cs_silent; then
37672 exec 6>/dev/null
37673 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
37674fi
37675
e6cc62c6
VS
37676_ACEOF
37677cat >>$CONFIG_STATUS <<_ACEOF
37678if \$ac_cs_recheck; then
37679 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
37680 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
37681fi
37682
e6cc62c6 37683_ACEOF
fe0895cf 37684
e6cc62c6 37685cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 37686#
e6cc62c6 37687# INIT-COMMANDS section.
10f2d63a 37688#
10f2d63a 37689
a0b9e27f 37690
e6cc62c6
VS
37691 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
37692 LN_S="${LN_S}"
10f2d63a 37693
10f2d63a 37694
10f2d63a 37695
e6cc62c6 37696_ACEOF
8284b0c5 37697
52127426 37698
247f5006 37699
e6cc62c6
VS
37700cat >>$CONFIG_STATUS <<\_ACEOF
37701for ac_config_target in $ac_config_targets
247f5006 37702do
e6cc62c6
VS
37703 case "$ac_config_target" in
37704 # Handling of arguments.
81345eef
VZ
37705 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
37706 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
37707 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 37708 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
37709 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
37710 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
37711 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
37712echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
37713 { (exit 1); exit 1; }; };;
247f5006
VZ
37714 esac
37715done
37716
e6cc62c6
VS
37717# If the user did not use the arguments to specify the items to instantiate,
37718# then the envvar interface is used. Set only those that are not.
37719# We use the long form for the default assignment because of an extremely
37720# bizarre bug on SunOS 4.1.3.
37721if $ac_need_defaults; then
37722 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37723 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37724 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37725fi
37726
37727# Have a temporary directory for convenience. Make it in the build tree
37728# simply because there is no reason to put it here, and in addition,
37729# creating and moving files from /tmp can sometimes cause problems.
37730# Create a temporary directory, and hook for its removal unless debugging.
37731$debug ||
37732{
37733 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
37734 trap '{ (exit 1); exit 1; }' 1 2 13 15
37735}
247f5006 37736
e6cc62c6 37737# Create a (secure) tmp directory for tmp files.
247f5006 37738
e6cc62c6
VS
37739{
37740 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
37741 test -n "$tmp" && test -d "$tmp"
37742} ||
37743{
37744 tmp=./confstat$$-$RANDOM
37745 (umask 077 && mkdir $tmp)
37746} ||
37747{
37748 echo "$me: cannot create a temporary directory in ." >&2
37749 { (exit 1); exit 1; }
37750}
37751
37752_ACEOF
37753
37754cat >>$CONFIG_STATUS <<_ACEOF
37755
37756#
37757# CONFIG_FILES section.
37758#
247f5006 37759
e6cc62c6
VS
37760# No need to generate the scripts if there are no CONFIG_FILES.
37761# This happens for instance when ./config.status config.h
37762if test -n "\$CONFIG_FILES"; then
37763 # Protect against being on the right side of a sed subst in config.status.
37764 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
37765 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
37766s,@SHELL@,$SHELL,;t t
37767s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
37768s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
37769s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
37770s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
37771s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
37772s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
37773s,@exec_prefix@,$exec_prefix,;t t
37774s,@prefix@,$prefix,;t t
37775s,@program_transform_name@,$program_transform_name,;t t
37776s,@bindir@,$bindir,;t t
37777s,@sbindir@,$sbindir,;t t
37778s,@libexecdir@,$libexecdir,;t t
37779s,@datadir@,$datadir,;t t
37780s,@sysconfdir@,$sysconfdir,;t t
37781s,@sharedstatedir@,$sharedstatedir,;t t
37782s,@localstatedir@,$localstatedir,;t t
37783s,@libdir@,$libdir,;t t
37784s,@includedir@,$includedir,;t t
37785s,@oldincludedir@,$oldincludedir,;t t
37786s,@infodir@,$infodir,;t t
37787s,@mandir@,$mandir,;t t
37788s,@build_alias@,$build_alias,;t t
37789s,@host_alias@,$host_alias,;t t
37790s,@target_alias@,$target_alias,;t t
37791s,@DEFS@,$DEFS,;t t
37792s,@ECHO_C@,$ECHO_C,;t t
37793s,@ECHO_N@,$ECHO_N,;t t
37794s,@ECHO_T@,$ECHO_T,;t t
37795s,@LIBS@,$LIBS,;t t
37796s,@build@,$build,;t t
37797s,@build_cpu@,$build_cpu,;t t
37798s,@build_vendor@,$build_vendor,;t t
37799s,@build_os@,$build_os,;t t
37800s,@host@,$host,;t t
37801s,@host_cpu@,$host_cpu,;t t
37802s,@host_vendor@,$host_vendor,;t t
37803s,@host_os@,$host_os,;t t
37804s,@target@,$target,;t t
37805s,@target_cpu@,$target_cpu,;t t
37806s,@target_vendor@,$target_vendor,;t t
37807s,@target_os@,$target_os,;t t
37808s,@CC@,$CC,;t t
37809s,@CFLAGS@,$CFLAGS,;t t
37810s,@LDFLAGS@,$LDFLAGS,;t t
37811s,@CPPFLAGS@,$CPPFLAGS,;t t
37812s,@ac_ct_CC@,$ac_ct_CC,;t t
37813s,@EXEEXT@,$EXEEXT,;t t
37814s,@OBJEXT@,$OBJEXT,;t t
37815s,@CPP@,$CPP,;t t
37816s,@EGREP@,$EGREP,;t t
37817s,@CXX@,$CXX,;t t
37818s,@CXXFLAGS@,$CXXFLAGS,;t t
37819s,@ac_ct_CXX@,$ac_ct_CXX,;t t
37820s,@RANLIB@,$RANLIB,;t t
37821s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
37822s,@AR@,$AR,;t t
37823s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
37824s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
37825s,@INSTALL_DATA@,$INSTALL_DATA,;t t
37826s,@STRIP@,$STRIP,;t t
37827s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
e6cc62c6
VS
37828s,@LN_S@,$LN_S,;t t
37829s,@CXXCPP@,$CXXCPP,;t t
672abd7a 37830s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
37831s,@PKG_CONFIG@,$PKG_CONFIG,;t t
37832s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
37833s,@GTK_LIBS@,$GTK_LIBS,;t t
37834s,@GTK_CONFIG@,$GTK_CONFIG,;t t
37835s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
37836s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
37837s,@X_CFLAGS@,$X_CFLAGS,;t t
37838s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
37839s,@X_LIBS@,$X_LIBS,;t t
37840s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
37841s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
37842s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
37843s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
37844s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
37845s,@RESCOMP@,$RESCOMP,;t t
37846s,@DEREZ@,$DEREZ,;t t
37847s,@SETFILE@,$SETFILE,;t t
37848s,@LIBICONV@,$LIBICONV,;t t
edd891e2 37849s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
f93ca9fd
VS
37850s,@SDL_CONFIG@,$SDL_CONFIG,;t t
37851s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
37852s,@SDL_LIBS@,$SDL_LIBS,;t t
edd891e2
VS
37853s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
37854s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
e6cc62c6
VS
37855s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
37856s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 37857s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
37858s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
37859s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
37860s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
37861s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
37862s,@VENDOR@,$VENDOR,;t t
37863s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
37864s,@WXUNIV@,$WXUNIV,;t t
37865s,@MONOLITHIC@,$MONOLITHIC,;t t
f93ca9fd 37866s,@USE_PLUGINS@,$USE_PLUGINS,;t t
e6cc62c6 37867s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 37868s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
3527f29c 37869s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
bb41dcbe 37870s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
c74dc163 37871s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 37872s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
f93ca9fd
VS
37873s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t
37874s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t
e6cc62c6
VS
37875s,@UNICODE@,$UNICODE,;t t
37876s,@BUILD@,$BUILD,;t t
6c67131a
VS
37877s,@DEBUG_INFO@,$DEBUG_INFO,;t t
37878s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
e6cc62c6
VS
37879s,@SHARED@,$SHARED,;t t
37880s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
37881s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
37882s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
0f1bc9c2 37883s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
ea66c762 37884s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
37885s,@SET_MAKE@,$SET_MAKE,;t t
37886s,@MAKE_SET@,$MAKE_SET,;t t
874d12cf
VS
37887s,@ac_ct_AR@,$ac_ct_AR,;t t
37888s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
37889s,@NM@,$NM,;t t
37890s,@ac_ct_NM@,$ac_ct_NM,;t t
e6cc62c6 37891s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 37892s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
37893s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
37894s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
37895s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
37896s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
37897s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
96c1699d 37898s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
e6cc62c6 37899s,@SO_SUFFIX@,$SO_SUFFIX,;t t
131f235d 37900s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
4b1f6360 37901s,@LIBPREFIX@,$LIBPREFIX,;t t
e6cc62c6 37902s,@DLLPREFIX@,$DLLPREFIX,;t t
131f235d 37903s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
dc838d98 37904s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
37905s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
37906s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
131f235d
VS
37907s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
37908s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
e6cc62c6
VS
37909s,@PIC_FLAG@,$PIC_FLAG,;t t
37910s,@USE_SOVERSION@,$USE_SOVERSION,;t t
37911s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
37912s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
37913s,@USE_MACVERSION@,$USE_MACVERSION,;t t
37914s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
37915s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 37916s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45842500 37917s,@GCC_PCH@,$GCC_PCH,;t t
d78c94f2 37918s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
6c67131a
VS
37919s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
37920s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
f93ca9fd
VS
37921s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t
37922s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t
d78c94f2 37923s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
6c67131a 37924s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
f93ca9fd
VS
37925s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t
37926s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t
6c67131a
VS
37927s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
37928s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
37929s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
f95cd8fa 37930s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 37931s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45842500 37932s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
6f628073 37933s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
37934s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
37935s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8772a1a7 37936s,@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 37937s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
eb69fda5 37938s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8ee2dd05 37939s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 37940s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
8772a1a7 37941s,@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 37942s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
eb69fda5 37943s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
f95e4495 37944s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
3af038c0 37945s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
37946s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
37947s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
37948s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
37949s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 37950s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 37951s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
37952s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
37953s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
37954s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
3527f29c 37955s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
8ee2dd05 37956s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
45842500 37957s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
3d8c1de0 37958s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
8772a1a7 37959s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
3af038c0 37960s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
3527f29c 37961s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
f93ca9fd 37962s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t
3af038c0
VS
37963s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
37964s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45842500 37965s,@COND_SHARED_0@,$COND_SHARED_0,;t t
250700e4 37966s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
52a5a009
VS
37967s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
37968s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
37969s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
37970s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
37971s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
37972s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
37973s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45842500 37974s,@COND_SHARED_1@,$COND_SHARED_1,;t t
250700e4 37975s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
37976s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
37977s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
37978s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
37979s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05 37980s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
3af038c0 37981s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
8772a1a7 37982s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
6f628073
VS
37983s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
37984s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
37985s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
6f628073
VS
37986s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
37987s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
37988s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 37989s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
37990s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
37991s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
96c1699d
VS
37992s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
37993s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
37994s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
6f628073
VS
37995s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
37996s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
3af038c0 37997s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
7015ef3a
VZ
37998s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
37999s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
3af038c0
VS
38000s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
38001s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
38002s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
38003s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
38004s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
38005s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
38006s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
57e7d4ac 38007s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
f93ca9fd 38008s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t
6f628073
VS
38009s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
38010s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
38011s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
38012s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
f93ca9fd
VS
38013s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t
38014s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t
3af038c0 38015s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 38016s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
38017s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
38018s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
38019s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
38020s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
38021s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
38022s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6
VS
38023s,@PATH_IFS@,$PATH_IFS,;t t
38024s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
38025s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
38026s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
38027s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
38028s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
cf615ebb
VS
38029s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
38030s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
e6cc62c6
VS
38031s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
38032s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
38033s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
38034s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
38035s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
38036s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
38037s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
38038s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
38039s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
38040s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
38041s,@WX_ALL@,$WX_ALL,;t t
38042s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
38043s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
38044s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
38045s,@STATIC_FLAG@,$STATIC_FLAG,;t t
38046s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
38047s,@USE_GUI@,$USE_GUI,;t t
38048s,@AFMINSTALL@,$AFMINSTALL,;t t
38049s,@WIN32INSTALL@,$WIN32INSTALL,;t t
38050s,@TOOLKIT@,$TOOLKIT,;t t
38051s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
38052s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
38053s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
38054s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
38055s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
38056s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
38057s,@cross_compiling@,$cross_compiling,;t t
67c13b6c 38058s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
e6cc62c6
VS
38059s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
38060s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
38061s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
38062s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
38063s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
38064s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
ffef10f6 38065s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
e6cc62c6 38066s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
38067s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
38068s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
38069s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
38070s,@ALL_HEADERS@,$ALL_HEADERS,;t t
38071s,@ALL_SOURCES@,$ALL_SOURCES,;t t
38072s,@GUIDIST@,$GUIDIST,;t t
38073s,@PORT_FILES@,$PORT_FILES,;t t
38074s,@DISTDIR@,$DISTDIR,;t t
38075s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
38076s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
38077s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
38078s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
38079s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
38080s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
38081s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
38082s,@RESFLAGS@,$RESFLAGS,;t t
38083s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
38084s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
38085s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
e6cc62c6
VS
38086s,@LIBWXMACRES@,$LIBWXMACRES,;t t
38087s,@MACRESCOMP@,$MACRESCOMP,;t t
38088s,@MACSETFILE@,$MACSETFILE,;t t
38089s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
38090s,@GCC@,$GCC,;t t
38091s,@DLLTOOL@,$DLLTOOL,;t t
38092s,@AS@,$AS,;t t
e6cc62c6
VS
38093s,@LD@,$LD,;t t
38094s,@MAKEINFO@,$MAKEINFO,;t t
38095s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
e6cc62c6
VS
38096s,@LIBOBJS@,$LIBOBJS,;t t
38097s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
38098CEOF
38099
e6cc62c6
VS
38100_ACEOF
38101
38102 cat >>$CONFIG_STATUS <<\_ACEOF
38103 # Split the substitutions into bite-sized pieces for seds with
38104 # small command number limits, like on Digital OSF/1 and HP-UX.
38105 ac_max_sed_lines=48
38106 ac_sed_frag=1 # Number of current file.
38107 ac_beg=1 # First line for current file.
38108 ac_end=$ac_max_sed_lines # Line after last line for current file.
38109 ac_more_lines=:
38110 ac_sed_cmds=
38111 while $ac_more_lines; do
38112 if test $ac_beg -gt 1; then
38113 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 38114 else
e6cc62c6
VS
38115 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
38116 fi
38117 if test ! -s $tmp/subs.frag; then
38118 ac_more_lines=false
38119 else
38120 # The purpose of the label and of the branching condition is to
38121 # speed up the sed processing (if there are no `@' at all, there
38122 # is no need to browse any of the substitutions).
38123 # These are the two extra sed commands mentioned above.
38124 (echo ':t
38125 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
38126 if test -z "$ac_sed_cmds"; then
789c5f4a 38127 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6 38128 else
789c5f4a 38129 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6
VS
38130 fi
38131 ac_sed_frag=`expr $ac_sed_frag + 1`
38132 ac_beg=$ac_end
38133 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 38134 fi
e6cc62c6
VS
38135 done
38136 if test -z "$ac_sed_cmds"; then
38137 ac_sed_cmds=cat
10f2d63a 38138 fi
e6cc62c6 38139fi # test -n "$CONFIG_FILES"
10f2d63a 38140
e6cc62c6
VS
38141_ACEOF
38142cat >>$CONFIG_STATUS <<\_ACEOF
38143for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 38144 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
38145 case $ac_file in
38146 - | *:- | *:-:* ) # input from stdin
789c5f4a
VZ
38147 cat >$tmp/stdin
38148 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38149 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 38150 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
789c5f4a 38151 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 38152 * ) ac_file_in=$ac_file.in ;;
10f2d63a 38153 esac
247f5006 38154
e6cc62c6
VS
38155 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
38156 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
38157$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
789c5f4a
VZ
38158 X"$ac_file" : 'X\(//\)[^/]' \| \
38159 X"$ac_file" : 'X\(//\)$' \| \
38160 X"$ac_file" : 'X\(/\)' \| \
38161 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
38162echo X"$ac_file" |
38163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38164 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38165 /^X\(\/\/\)$/{ s//\1/; q; }
38166 /^X\(\/\).*/{ s//\1/; q; }
38167 s/.*/./; q'`
38168 { if $as_mkdir_p; then
38169 mkdir -p "$ac_dir"
a0b9e27f 38170 else
e6cc62c6
VS
38171 as_dir="$ac_dir"
38172 as_dirs=
38173 while test ! -d "$as_dir"; do
38174 as_dirs="$as_dir $as_dirs"
38175 as_dir=`(dirname "$as_dir") 2>/dev/null ||
38176$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
789c5f4a
VZ
38177 X"$as_dir" : 'X\(//\)[^/]' \| \
38178 X"$as_dir" : 'X\(//\)$' \| \
38179 X"$as_dir" : 'X\(/\)' \| \
38180 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
38181echo X"$as_dir" |
38182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38183 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38184 /^X\(\/\/\)$/{ s//\1/; q; }
38185 /^X\(\/\).*/{ s//\1/; q; }
38186 s/.*/./; q'`
38187 done
38188 test ! -n "$as_dirs" || mkdir $as_dirs
38189 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38190echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38191 { (exit 1); exit 1; }; }; }
38192
38193 ac_builddir=.
38194
38195if test "$ac_dir" != .; then
38196 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38197 # A "../" for each directory in $ac_dir_suffix.
38198 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38199else
38200 ac_dir_suffix= ac_top_builddir=
38201fi
247f5006 38202
e6cc62c6
VS
38203case $srcdir in
38204 .) # No --srcdir option. We are building in place.
38205 ac_srcdir=.
38206 if test -z "$ac_top_builddir"; then
38207 ac_top_srcdir=.
38208 else
38209 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
38210 fi ;;
38211 [\\/]* | ?:[\\/]* ) # Absolute path.
38212 ac_srcdir=$srcdir$ac_dir_suffix;
38213 ac_top_srcdir=$srcdir ;;
247f5006 38214 *) # Relative path.
e6cc62c6
VS
38215 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
38216 ac_top_srcdir=$ac_top_builddir$srcdir ;;
38217esac
789c5f4a
VZ
38218# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
38219# absolute.
38220ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
38221ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
38222ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
38223ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10f2d63a 38224
247f5006 38225
e6cc62c6
VS
38226 case $INSTALL in
38227 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38228 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 38229 esac
247f5006 38230
e6cc62c6
VS
38231 if test x"$ac_file" != x-; then
38232 { echo "$as_me:$LINENO: creating $ac_file" >&5
38233echo "$as_me: creating $ac_file" >&6;}
38234 rm -f "$ac_file"
38235 fi
38236 # Let's still pretend it is `configure' which instantiates (i.e., don't
38237 # use $as_me), people would be surprised to read:
38238 # /* config.h. Generated by config.status. */
38239 if test x"$ac_file" = x-; then
38240 configure_input=
38241 else
38242 configure_input="$ac_file. "
38243 fi
38244 configure_input=$configure_input"Generated from `echo $ac_file_in |
789c5f4a 38245 sed 's,.*/,,'` by configure."
e6cc62c6
VS
38246
38247 # First look for the input files in the build tree, otherwise in the
38248 # src tree.
38249 ac_file_inputs=`IFS=:
38250 for f in $ac_file_in; do
38251 case $f in
38252 -) echo $tmp/stdin ;;
38253 [\\/$]*)
789c5f4a
VZ
38254 # Absolute (can't be DOS-style, as IFS=:)
38255 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
38256echo "$as_me: error: cannot find input file: $f" >&2;}
38257 { (exit 1); exit 1; }; }
789c5f4a 38258 echo $f;;
e6cc62c6 38259 *) # Relative
789c5f4a
VZ
38260 if test -f "$f"; then
38261 # Build tree
38262 echo $f
38263 elif test -f "$srcdir/$f"; then
38264 # Source tree
38265 echo $srcdir/$f
38266 else
38267 # /dev/null tree
38268 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
38269echo "$as_me: error: cannot find input file: $f" >&2;}
38270 { (exit 1); exit 1; }; }
789c5f4a 38271 fi;;
e6cc62c6
VS
38272 esac
38273 done` || { (exit 1); exit 1; }
38274_ACEOF
38275cat >>$CONFIG_STATUS <<_ACEOF
38276 sed "$ac_vpsub
38277$extrasub
38278_ACEOF
38279cat >>$CONFIG_STATUS <<\_ACEOF
38280:t
38281/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38282s,@configure_input@,$configure_input,;t t
38283s,@srcdir@,$ac_srcdir,;t t
38284s,@abs_srcdir@,$ac_abs_srcdir,;t t
38285s,@top_srcdir@,$ac_top_srcdir,;t t
38286s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
38287s,@builddir@,$ac_builddir,;t t
38288s,@abs_builddir@,$ac_abs_builddir,;t t
38289s,@top_builddir@,$ac_top_builddir,;t t
38290s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
38291s,@INSTALL@,$ac_INSTALL,;t t
38292" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
38293 rm -f $tmp/stdin
38294 if test x"$ac_file" != x-; then
38295 mv $tmp/out $ac_file
38296 else
38297 cat $tmp/out
38298 rm -f $tmp/out
38299 fi
38300
38301done
38302_ACEOF
38303cat >>$CONFIG_STATUS <<\_ACEOF
38304
38305#
38306# CONFIG_HEADER section.
38307#
10f2d63a
VZ
38308
38309# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
38310# NAME is the cpp macro being defined and VALUE is the value it is being given.
38311#
38312# ac_d sets the value in "#define NAME VALUE" lines.
789c5f4a
VZ
38313ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
38314ac_dB='[ ].*$,\1#\2'
e6cc62c6
VS
38315ac_dC=' '
38316ac_dD=',;t'
38317# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
789c5f4a 38318ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
e6cc62c6 38319ac_uB='$,\1#\2define\3'
10f2d63a 38320ac_uC=' '
e6cc62c6
VS
38321ac_uD=',;t'
38322
38323for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 38324 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
38325 case $ac_file in
38326 - | *:- | *:-:* ) # input from stdin
789c5f4a
VZ
38327 cat >$tmp/stdin
38328 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
38329 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 38330 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
789c5f4a 38331 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 38332 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
38333 esac
38334
e6cc62c6
VS
38335 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
38336echo "$as_me: creating $ac_file" >&6;}
38337
38338 # First look for the input files in the build tree, otherwise in the
38339 # src tree.
38340 ac_file_inputs=`IFS=:
38341 for f in $ac_file_in; do
38342 case $f in
38343 -) echo $tmp/stdin ;;
38344 [\\/$]*)
789c5f4a
VZ
38345 # Absolute (can't be DOS-style, as IFS=:)
38346 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
38347echo "$as_me: error: cannot find input file: $f" >&2;}
38348 { (exit 1); exit 1; }; }
789c5f4a 38349 echo $f;;
e6cc62c6 38350 *) # Relative
789c5f4a
VZ
38351 if test -f "$f"; then
38352 # Build tree
38353 echo $f
38354 elif test -f "$srcdir/$f"; then
38355 # Source tree
38356 echo $srcdir/$f
38357 else
38358 # /dev/null tree
38359 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
38360echo "$as_me: error: cannot find input file: $f" >&2;}
38361 { (exit 1); exit 1; }; }
789c5f4a 38362 fi;;
e6cc62c6
VS
38363 esac
38364 done` || { (exit 1); exit 1; }
38365 # Remove the trailing spaces.
789c5f4a 38366 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
e6cc62c6
VS
38367
38368_ACEOF
38369
38370# Transform confdefs.h into two sed scripts, `conftest.defines' and
38371# `conftest.undefs', that substitutes the proper values into
38372# config.h.in to produce config.h. The first handles `#define'
38373# templates, and the second `#undef' templates.
38374# And first: Protect against being on the right side of a sed subst in
38375# config.status. Protect against being in an unquoted here document
38376# in config.status.
38377rm -f conftest.defines conftest.undefs
38378# Using a here document instead of a string reduces the quoting nightmare.
38379# Putting comments in sed scripts is not portable.
38380#
38381# `end' is used to avoid that the second main sed command (meant for
38382# 0-ary CPP macros) applies to n-ary macro definitions.
38383# See the Autoconf documentation for `clear'.
38384cat >confdef2sed.sed <<\_ACEOF
38385s/[\\&,]/\\&/g
38386s,[\\$`],\\&,g
38387t clear
38388: clear
789c5f4a 38389s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
e6cc62c6 38390t end
789c5f4a 38391s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
e6cc62c6
VS
38392: end
38393_ACEOF
38394# If some macros were called several times there might be several times
38395# the same #defines, which is useless. Nevertheless, we may not want to
38396# sort them, since we want the *last* AC-DEFINE to be honored.
38397uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
38398sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
38399rm -f confdef2sed.sed
10f2d63a
VZ
38400
38401# This sed command replaces #undef with comments. This is necessary, for
38402# example, in the case of _POSIX_SOURCE, which is predefined and required
38403# on some systems where configure will not decide to define it.
e6cc62c6 38404cat >>conftest.undefs <<\_ACEOF
789c5f4a 38405s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
e6cc62c6
VS
38406_ACEOF
38407
38408# Break up conftest.defines because some shells have a limit on the size
38409# of here documents, and old seds have small limits too (100 cmds).
38410echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
789c5f4a 38411echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
e6cc62c6
VS
38412echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
38413echo ' :' >>$CONFIG_STATUS
38414rm -f conftest.tail
38415while grep . conftest.defines >/dev/null
38416do
38417 # Write a limited-size here document to $tmp/defines.sed.
38418 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
38419 # Speed up: don't consider the non `#define' lines.
789c5f4a 38420 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
e6cc62c6
VS
38421 # Work around the forget-to-reset-the-flag bug.
38422 echo 't clr' >>$CONFIG_STATUS
38423 echo ': clr' >>$CONFIG_STATUS
38424 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
38425 echo 'CEOF
38426 sed -f $tmp/defines.sed $tmp/in >$tmp/out
38427 rm -f $tmp/in
38428 mv $tmp/out $tmp/in
38429' >>$CONFIG_STATUS
38430 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
38431 rm -f conftest.defines
38432 mv conftest.tail conftest.defines
38433done
38434rm -f conftest.defines
38435echo ' fi # grep' >>$CONFIG_STATUS
38436echo >>$CONFIG_STATUS
10f2d63a 38437
e6cc62c6
VS
38438# Break up conftest.undefs because some shells have a limit on the size
38439# of here documents, and old seds have small limits too (100 cmds).
38440echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 38441rm -f conftest.tail
e6cc62c6 38442while grep . conftest.undefs >/dev/null
10f2d63a 38443do
e6cc62c6
VS
38444 # Write a limited-size here document to $tmp/undefs.sed.
38445 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
38446 # Speed up: don't consider the non `#undef'
789c5f4a 38447 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
e6cc62c6
VS
38448 # Work around the forget-to-reset-the-flag bug.
38449 echo 't clr' >>$CONFIG_STATUS
38450 echo ': clr' >>$CONFIG_STATUS
38451 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 38452 echo 'CEOF
e6cc62c6
VS
38453 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
38454 rm -f $tmp/in
38455 mv $tmp/out $tmp/in
38456' >>$CONFIG_STATUS
38457 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
38458 rm -f conftest.undefs
38459 mv conftest.tail conftest.undefs
10f2d63a 38460done
e6cc62c6
VS
38461rm -f conftest.undefs
38462
38463cat >>$CONFIG_STATUS <<\_ACEOF
38464 # Let's still pretend it is `configure' which instantiates (i.e., don't
38465 # use $as_me), people would be surprised to read:
38466 # /* config.h. Generated by config.status. */
38467 if test x"$ac_file" = x-; then
38468 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 38469 else
e6cc62c6 38470 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 38471 fi
e6cc62c6
VS
38472 cat $tmp/in >>$tmp/config.h
38473 rm -f $tmp/in
38474 if test x"$ac_file" != x-; then
38475 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
38476 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
38477echo "$as_me: $ac_file is unchanged" >&6;}
38478 else
38479 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
38480$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
789c5f4a
VZ
38481 X"$ac_file" : 'X\(//\)[^/]' \| \
38482 X"$ac_file" : 'X\(//\)$' \| \
38483 X"$ac_file" : 'X\(/\)' \| \
38484 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
38485echo X"$ac_file" |
38486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38488 /^X\(\/\/\)$/{ s//\1/; q; }
38489 /^X\(\/\).*/{ s//\1/; q; }
38490 s/.*/./; q'`
38491 { if $as_mkdir_p; then
38492 mkdir -p "$ac_dir"
38493 else
38494 as_dir="$ac_dir"
38495 as_dirs=
38496 while test ! -d "$as_dir"; do
38497 as_dirs="$as_dir $as_dirs"
38498 as_dir=`(dirname "$as_dir") 2>/dev/null ||
38499$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
789c5f4a
VZ
38500 X"$as_dir" : 'X\(//\)[^/]' \| \
38501 X"$as_dir" : 'X\(//\)$' \| \
38502 X"$as_dir" : 'X\(/\)' \| \
38503 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
38504echo X"$as_dir" |
38505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38506 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38507 /^X\(\/\/\)$/{ s//\1/; q; }
38508 /^X\(\/\).*/{ s//\1/; q; }
38509 s/.*/./; q'`
38510 done
38511 test ! -n "$as_dirs" || mkdir $as_dirs
38512 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38513echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38514 { (exit 1); exit 1; }; }; }
a0b9e27f 38515
e6cc62c6
VS
38516 rm -f $ac_file
38517 mv $tmp/config.h $ac_file
38518 fi
38519 else
38520 cat $tmp/config.h
38521 rm -f $tmp/config.h
38522 fi
38523done
38524_ACEOF
38525cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 38526
e6cc62c6
VS
38527#
38528# CONFIG_COMMANDS section.
38529#
38530for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
38531 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
38532 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
38533 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
38534$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
789c5f4a
VZ
38535 X"$ac_dest" : 'X\(//\)[^/]' \| \
38536 X"$ac_dest" : 'X\(//\)$' \| \
38537 X"$ac_dest" : 'X\(/\)' \| \
38538 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
38539echo X"$ac_dest" |
38540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38541 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38542 /^X\(\/\/\)$/{ s//\1/; q; }
38543 /^X\(\/\).*/{ s//\1/; q; }
38544 s/.*/./; q'`
38545 ac_builddir=.
38546
38547if test "$ac_dir" != .; then
38548 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38549 # A "../" for each directory in $ac_dir_suffix.
38550 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38551else
38552 ac_dir_suffix= ac_top_builddir=
38553fi
38554
38555case $srcdir in
38556 .) # No --srcdir option. We are building in place.
38557 ac_srcdir=.
38558 if test -z "$ac_top_builddir"; then
38559 ac_top_srcdir=.
38560 else
38561 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
38562 fi ;;
38563 [\\/]* | ?:[\\/]* ) # Absolute path.
38564 ac_srcdir=$srcdir$ac_dir_suffix;
38565 ac_top_srcdir=$srcdir ;;
38566 *) # Relative path.
38567 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
38568 ac_top_srcdir=$ac_top_builddir$srcdir ;;
38569esac
789c5f4a
VZ
38570# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
38571# absolute.
38572ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
38573ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
38574ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
38575ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
e6cc62c6
VS
38576
38577
38578 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
38579echo "$as_me: executing $ac_dest commands" >&6;}
38580 case $ac_dest in
38581 default )
652d930d 38582 if test ! -h wx-config; then
991a5759 38583 chmod +x wx-config
3a922bb4
RL
38584 mv wx-config wx${TOOLCHAIN_NAME}-config
38585 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 38586 fi
665bbe97 38587
00cf1208
RR
38588 if test ! -d lib; then
38589 mkdir lib
38590 fi
38591 if test ! -d lib/wx; then
38592 mkdir lib/wx
38593 fi
38594 if test ! -d lib/wx/include; then
38595 mkdir lib/wx/include
38596 fi
3a922bb4
RL
38597 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
38598 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 38599 fi
3a922bb4
RL
38600 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
38601 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
38602 fi
38603 if test -f setup.h; then
3a922bb4 38604 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 38605 fi
e6cc62c6
VS
38606 ;;
38607 esac
38608done
38609_ACEOF
2224580a 38610
e6cc62c6 38611cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 38612
e6cc62c6
VS
38613{ (exit 0); exit 0; }
38614_ACEOF
38615chmod +x $CONFIG_STATUS
38616ac_clean_files=$ac_clean_files_save
38617
38618
38619# configure is writing to config.log, and then calls config.status.
38620# config.status does its own redirection, appending to config.log.
38621# Unfortunately, on DOS this fails, as config.log is still kept open
38622# by configure, so config.status won't be able to write to it; its
38623# output is simply discarded. So we exec the FD to /dev/null,
38624# effectively closing config.log, so it can be properly (re)opened and
38625# appended to by config.status. When coming back to configure, we
38626# need to make the FD available again.
38627if test "$no_create" != yes; then
38628 ac_cs_success=:
38629 ac_config_status_args=
38630 test "$silent" = yes &&
38631 ac_config_status_args="$ac_config_status_args --quiet"
38632 exec 5>/dev/null
38633 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38634 exec 5>>config.log
38635 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38636 # would make configure fail if this is the last instruction.
38637 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
38638fi
38639
672abd7a
VS
38640#
38641# CONFIG_SUBDIRS section.
38642#
38643if test "$no_recursion" != yes; then
38644
38645 # Remove --cache-file and --srcdir arguments so they do not pile up.
38646 ac_sub_configure_args=
38647 ac_prev=
38648 for ac_arg in $ac_configure_args; do
38649 if test -n "$ac_prev"; then
38650 ac_prev=
38651 continue
38652 fi
38653 case $ac_arg in
38654 -cache-file | --cache-file | --cache-fil | --cache-fi \
38655 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
38656 ac_prev=cache_file ;;
38657 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
38658 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
38659 | --c=*)
38660 ;;
38661 --config-cache | -C)
38662 ;;
38663 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
38664 ac_prev=srcdir ;;
38665 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
38666 ;;
38667 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
38668 ac_prev=prefix ;;
38669 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
38670 ;;
38671 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
38672 esac
38673 done
38674
38675 # Always prepend --prefix to ensure using the same prefix
38676 # in subdir configurations.
38677 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
38678
38679 ac_popdir=`pwd`
38680 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
38681
38682 # Do not complain, so a configure script can configure whichever
38683 # parts of a large source tree are present.
38684 test -d $srcdir/$ac_dir || continue
38685
38686 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
38687echo "$as_me: configuring in $ac_dir" >&6;}
38688 { if $as_mkdir_p; then
38689 mkdir -p "$ac_dir"
38690 else
38691 as_dir="$ac_dir"
38692 as_dirs=
38693 while test ! -d "$as_dir"; do
38694 as_dirs="$as_dir $as_dirs"
38695 as_dir=`(dirname "$as_dir") 2>/dev/null ||
38696$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
789c5f4a
VZ
38697 X"$as_dir" : 'X\(//\)[^/]' \| \
38698 X"$as_dir" : 'X\(//\)$' \| \
38699 X"$as_dir" : 'X\(/\)' \| \
38700 . : '\(.\)' 2>/dev/null ||
672abd7a
VS
38701echo X"$as_dir" |
38702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
38703 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
38704 /^X\(\/\/\)$/{ s//\1/; q; }
38705 /^X\(\/\).*/{ s//\1/; q; }
38706 s/.*/./; q'`
38707 done
38708 test ! -n "$as_dirs" || mkdir $as_dirs
38709 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
38710echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
38711 { (exit 1); exit 1; }; }; }
38712
38713 ac_builddir=.
38714
38715if test "$ac_dir" != .; then
38716 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
38717 # A "../" for each directory in $ac_dir_suffix.
38718 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
38719else
38720 ac_dir_suffix= ac_top_builddir=
38721fi
38722
38723case $srcdir in
38724 .) # No --srcdir option. We are building in place.
38725 ac_srcdir=.
38726 if test -z "$ac_top_builddir"; then
38727 ac_top_srcdir=.
38728 else
38729 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
38730 fi ;;
38731 [\\/]* | ?:[\\/]* ) # Absolute path.
38732 ac_srcdir=$srcdir$ac_dir_suffix;
38733 ac_top_srcdir=$srcdir ;;
38734 *) # Relative path.
38735 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
38736 ac_top_srcdir=$ac_top_builddir$srcdir ;;
38737esac
789c5f4a
VZ
38738# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
38739# absolute.
38740ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
38741ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
38742ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
38743ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
672abd7a
VS
38744
38745
38746 cd $ac_dir
38747
38748 # Check for guested configure; otherwise get Cygnus style configure.
38749 if test -f $ac_srcdir/configure.gnu; then
38750 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
38751 elif test -f $ac_srcdir/configure; then
38752 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
38753 elif test -f $ac_srcdir/configure.in; then
38754 ac_sub_configure=$ac_configure
38755 else
38756 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
38757echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
38758 ac_sub_configure=
38759 fi
38760
38761 # The recursion is here.
38762 if test -n "$ac_sub_configure"; then
38763 # Make the cache file name correct relative to the subdirectory.
38764 case $cache_file in
38765 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
38766 *) # Relative path.
789c5f4a 38767 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
672abd7a
VS
38768 esac
38769
38770 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
38771echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
38772 # The eval makes quoting arguments work.
38773 eval $ac_sub_configure $ac_sub_configure_args \
789c5f4a
VZ
38774 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
38775 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
672abd7a
VS
38776echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
38777 { (exit 1); exit 1; }; }
38778 fi
38779
38780 cd $ac_popdir
38781 done
38782fi
38783
8284b0c5 38784
2b5f62a0
VZ
38785echo
38786echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
38787echo ""
89fe663f 38788echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}"
9747f85d 38789echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
38790
38791echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
38792echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
38793echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
38794
0c98a14e 38795echo " What level of wxWindows compatibility should be enabled?"
65d8ef1e
VS
38796echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
38797echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 38798
2b5f62a0
VZ
38799echo " Which libraries should wxWindows use?"
38800echo " jpeg ${wxUSE_LIBJPEG-none}"
38801echo " png ${wxUSE_LIBPNG-none}"
38802echo " regex ${wxUSE_REGEX}"
38803echo " tiff ${wxUSE_LIBTIFF-none}"
89fe663f
VZ
38804if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
38805echo " xpm ${wxUSE_LIBXPM-none}"
38806fi
2b5f62a0 38807echo " zlib ${wxUSE_ZLIB}"
fd3d7534 38808echo " odbc ${wxUSE_ODBC}"
5f0b6dff 38809echo " expat ${wxUSE_EXPAT}"
3527f29c 38810echo " libmspack ${wxUSE_LIBMSPACK}"
f93ca9fd 38811echo " sdl ${wxUSE_LIBSDL}"
2b5f62a0
VZ
38812
38813echo ""
38814