]> git.saurik.com Git - wxWidgets.git/blame - configure
Added note about deleting returned object (OpenFile)
[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.
eea650d8 4# Generated by GNU Autoconf 2.58 for wxWindows 2.5.1.
e6cc62c6
VS
5#
6# Report bugs to <wx-dev@lists.wxwindows.org>.
7#
eea650d8 8# Copyright (C) 2003 Free Software Foundation, Inc.
e6cc62c6
VS
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
fe0895cf 14
e6cc62c6
VS
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
eea650d8 25DUALCASE=1; export DUALCASE # for MKS sh
fe0895cf 26
e6cc62c6 27# Support unset when possible.
eea650d8 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
e6cc62c6
VS
29 as_unset=unset
30else
31 as_unset=false
32fi
fe0895cf
VS
33
34
e6cc62c6
VS
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
fe0895cf 40
e6cc62c6
VS
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
eea650d8 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
e6cc62c6
VS
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
fe0895cf 53
e6cc62c6
VS
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
fe0895cf 60
e6cc62c6
VS
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
fe0895cf
VS
66
67
e6cc62c6
VS
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
fe0895cf
VS
79
80
e6cc62c6
VS
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
fe0895cf 88
e6cc62c6
VS
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
fe0895cf
VS
101
102
e6cc62c6
VS
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
fe0895cf 119
e6cc62c6
VS
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
fe0895cf 158
e6cc62c6
VS
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
fe0895cf
VS
188
189
e6cc62c6
VS
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
fe0895cf 196
e6cc62c6
VS
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
fe0895cf 202
e6cc62c6
VS
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
fe0895cf 220
e6cc62c6
VS
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
eea650d8 224 test -d ./-p && rmdir ./-p
e6cc62c6
VS
225 as_mkdir_p=false
226fi
fe0895cf 227
e6cc62c6 228as_executable_p="test -f"
fe0895cf 229
e6cc62c6 230# Sed expression to map a string onto a valid CPP name.
eea650d8 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
fe0895cf 232
e6cc62c6 233# Sed expression to map a string onto a valid variable name.
eea650d8 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
fe0895cf
VS
235
236
e6cc62c6
VS
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
fe0895cf 242
e6cc62c6
VS
243# CDPATH.
244$as_unset CDPATH
fe0895cf
VS
245
246
e6cc62c6
VS
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
fe0895cf 251
e6cc62c6 252exec 6>&1
fe0895cf 253
a0b9e27f 254#
e6cc62c6
VS
255# Initializations.
256#
a0b9e27f 257ac_default_prefix=/usr/local
e6cc62c6
VS
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
271PACKAGE_NAME='wxWindows'
272PACKAGE_TARNAME='wxwindows'
e46d2a18
VS
273PACKAGE_VERSION='2.5.1'
274PACKAGE_STRING='wxWindows 2.5.1'
e6cc62c6
VS
275PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
672abd7a 315ac_subdirs_all="$ac_subdirs_all src/expat"
3527f29c 316ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD 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 EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL 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_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT 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_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_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_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_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 MACOSX_BUNDLE LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS'
e6cc62c6 317ac_subst_files=''
10f2d63a
VZ
318
319# Initialize some variables set by options.
e6cc62c6
VS
320ac_init_help=
321ac_init_version=false
10f2d63a
VZ
322# The variables have the same names as the options, with
323# dashes changed to underlines.
e6cc62c6 324cache_file=/dev/null
10f2d63a 325exec_prefix=NONE
10f2d63a 326no_create=
10f2d63a
VZ
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
10f2d63a
VZ
335verbose=
336x_includes=NONE
337x_libraries=NONE
e6cc62c6
VS
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
10f2d63a
VZ
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
10f2d63a
VZ
357ac_prev=
358for ac_option
359do
10f2d63a
VZ
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
e6cc62c6 367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
e6cc62c6 371 case $ac_option in
10f2d63a
VZ
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
e6cc62c6 376 bindir=$ac_optarg ;;
10f2d63a
VZ
377
378 -build | --build | --buil | --bui | --bu)
e6cc62c6 379 ac_prev=build_alias ;;
10f2d63a 380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
e6cc62c6 381 build_alias=$ac_optarg ;;
10f2d63a
VZ
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
e6cc62c6
VS
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
10f2d63a
VZ
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
e6cc62c6 397 datadir=$ac_optarg ;;
10f2d63a
VZ
398
399 -disable-* | --disable-*)
e6cc62c6 400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 401 # Reject names that are not valid shell variable names.
e6cc62c6
VS
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
10f2d63a
VZ
407
408 -enable-* | --enable-*)
e6cc62c6 409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 410 # Reject names that are not valid shell variable names.
e6cc62c6
VS
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
417 *) ac_optarg=yes ;;
418 esac
e6cc62c6 419 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
e6cc62c6 428 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
e6cc62c6
VS
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
10f2d63a
VZ
440
441 -host | --host | --hos | --ho)
e6cc62c6 442 ac_prev=host_alias ;;
10f2d63a 443 -host=* | --host=* | --hos=* | --ho=*)
e6cc62c6 444 host_alias=$ac_optarg ;;
10f2d63a
VZ
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
e6cc62c6 451 includedir=$ac_optarg ;;
10f2d63a
VZ
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
e6cc62c6 456 infodir=$ac_optarg ;;
10f2d63a
VZ
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
e6cc62c6 461 libdir=$ac_optarg ;;
10f2d63a
VZ
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
e6cc62c6 468 libexecdir=$ac_optarg ;;
10f2d63a
VZ
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
e6cc62c6 477 localstatedir=$ac_optarg ;;
10f2d63a
VZ
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
e6cc62c6 482 mandir=$ac_optarg ;;
10f2d63a
VZ
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
e6cc62c6 489 | --no-cr | --no-c | -n)
10f2d63a
VZ
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
e6cc62c6 503 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
e6cc62c6 508 prefix=$ac_optarg ;;
10f2d63a
VZ
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
e6cc62c6 515 program_prefix=$ac_optarg ;;
10f2d63a
VZ
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
e6cc62c6 522 program_suffix=$ac_optarg ;;
10f2d63a
VZ
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
e6cc62c6 539 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
e6cc62c6 549 sbindir=$ac_optarg ;;
10f2d63a
VZ
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
e6cc62c6 560 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
e6cc62c6 565 site=$ac_optarg ;;
10f2d63a
VZ
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
e6cc62c6 570 srcdir=$ac_optarg ;;
10f2d63a
VZ
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
e6cc62c6 577 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
e6cc62c6 580 ac_prev=target_alias ;;
10f2d63a 581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
e6cc62c6 582 target_alias=$ac_optarg ;;
10f2d63a
VZ
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
e6cc62c6
VS
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
10f2d63a
VZ
589
590 -with-* | --with-*)
e6cc62c6 591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 592 # Reject names that are not valid shell variable names.
e6cc62c6
VS
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
10f2d63a 596 ac_package=`echo $ac_package| sed 's/-/_/g'`
e6cc62c6
VS
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
599 *) ac_optarg=yes ;;
600 esac
e6cc62c6 601 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
602
603 -without-* | --without-*)
e6cc62c6 604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 605 # Reject names that are not valid shell variable names.
e6cc62c6
VS
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
10f2d63a
VZ
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
e6cc62c6 621 x_includes=$ac_optarg ;;
10f2d63a
VZ
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
e6cc62c6 628 x_libraries=$ac_optarg ;;
10f2d63a 629
e6cc62c6
VS
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
10f2d63a
VZ
633 ;;
634
e6cc62c6
VS
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
10f2d63a 645 *)
e6cc62c6
VS
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10f2d63a
VZ
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
e6cc62c6
VS
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
a0b9e27f 660fi
a0b9e27f 661
e6cc62c6
VS
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
8284b0c5 672
e6cc62c6
VS
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
eea650d8 675 localstatedir libdir includedir oldincludedir infodir mandir
10f2d63a 676do
e6cc62c6
VS
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
10f2d63a
VZ
682 esac
683done
684
e6cc62c6
VS
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
247f5006 702
e6cc62c6
VS
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
10f2d63a 707
10f2d63a
VZ
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
e6cc62c6
VS
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
eea650d8
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
10f2d63a
VZ
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
e6cc62c6
VS
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
10f2d63a 736 else
e6cc62c6
VS
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
10f2d63a
VZ
739 fi
740fi
e6cc62c6
VS
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
328a083c 789
e6cc62c6
VS
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
e46d2a18 797\`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems.
10f2d63a 798
e6cc62c6 799Usage: $0 [OPTION]... [VAR=VALUE]...
10f2d63a 800
e6cc62c6
VS
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
8284b0c5 803
e6cc62c6
VS
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
eea650d8 822 [$ac_default_prefix]
e6cc62c6 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
eea650d8 824 [PREFIX]
e6cc62c6
VS
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
e46d2a18 863 short | recursive ) echo "Configuration of wxWindows 2.5.1:";;
e6cc62c6
VS
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
9747f85d 871 --disable-monolithic don't build wxWindows as single library
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
e46d2a18 930 --enable-wave use wxWave 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
45842500 1034 --disable-precomp-headers don't use precompiled headers even if compiler can
e6cc62c6
VS
1035
1036Optional Packages:
1037 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1038 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1039 --with-gtk use GTK+
1040 --with-motif use Motif/Lesstif
1041 --with-mac use Mac OS X
1042 --with-cocoa use Cocoa
1043 --with-wine use Wine
1044 --with-msw use MS-Windows
1045 --with-pm use OS/2 Presentation Manager
1046 --with-mgl use SciTech MGL
1047 --with-microwin use MicroWindows
1048 --with-x11 use X11
1049 --with-libpng use libpng (PNG image format)
1050 --with-libjpeg use libjpeg (JPEG file format)
1051 --with-libtiff use libtiff (TIFF file format)
89fe663f 1052 --with-libxpm use libxpm (XPM file format)
3527f29c 1053 --with-libmspack use libmspack (CHM help files loading)
e6cc62c6
VS
1054 --with-opengl use OpenGL (or Mesa)
1055 --with-dmalloc use dmalloc library (http://dmalloc.com/)
1056 --with-regex enable support for wxRegEx class
1057 --with-zlib use zlib for LZW compression
1058 --with-odbc use the IODBC and wxODBC classes
672abd7a 1059 --with-expat enable XML support using expat parser
e6cc62c6
VS
1060 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1061 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1062 --with-x use the X Window System
1063 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1064
1065Some influential environment variables:
1066 CC C compiler command
1067 CFLAGS C compiler flags
1068 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1069 nonstandard directory <lib dir>
1070 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1071 headers in a nonstandard directory <include dir>
1072 CPP C preprocessor
1073 CXX C++ compiler command
1074 CXXFLAGS C++ compiler flags
1075 CXXCPP C++ preprocessor
1076
1077Use these variables to override the choices made by `configure' or to help
1078it to find libraries and programs with nonstandard names/locations.
1079
1080Report bugs to <wx-dev@lists.wxwindows.org>.
1081_ACEOF
1082fi
1083
1084if test "$ac_init_help" = "recursive"; then
1085 # If there are subdirs, report their specific --help.
1086 ac_popdir=`pwd`
1087 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1088 test -d $ac_dir || continue
1089 ac_builddir=.
1090
1091if test "$ac_dir" != .; then
1092 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1093 # A "../" for each directory in $ac_dir_suffix.
1094 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1095else
1096 ac_dir_suffix= ac_top_builddir=
1097fi
1098
1099case $srcdir in
1100 .) # No --srcdir option. We are building in place.
1101 ac_srcdir=.
1102 if test -z "$ac_top_builddir"; then
1103 ac_top_srcdir=.
1104 else
1105 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1106 fi ;;
1107 [\\/]* | ?:[\\/]* ) # Absolute path.
1108 ac_srcdir=$srcdir$ac_dir_suffix;
1109 ac_top_srcdir=$srcdir ;;
1110 *) # Relative path.
1111 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1112 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1113esac
eea650d8
VS
1114case "$ac_dir" in
1115.) ac_abs_builddir=$ac_builddir;;
1116*)
1117 case $ac_builddir in
1118 .) ac_abs_builddir="$ac_dir";;
1119 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
1120 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
1121 esac;;
1122esac
1123case "$ac_dir" in
1124.) ac_abs_top_builddir=${ac_top_builddir}.;;
1125*)
1126 case ${ac_top_builddir}. in
1127 .) ac_abs_top_builddir="$ac_dir";;
1128 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1129 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
1130 esac;;
1131esac
1132case "$ac_dir" in
1133.) ac_abs_srcdir=$ac_srcdir;;
1134*)
1135 case $ac_srcdir in
1136 .) ac_abs_srcdir="$ac_dir";;
1137 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1138 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
1139 esac;;
1140esac
1141case "$ac_dir" in
1142.) ac_abs_top_srcdir=$ac_top_srcdir;;
1143*)
1144 case $ac_top_srcdir in
1145 .) ac_abs_top_srcdir="$ac_dir";;
1146 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1147 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
1148 esac;;
1149esac
e6cc62c6
VS
1150
1151 cd $ac_dir
1152 # Check for guested configure; otherwise get Cygnus style configure.
1153 if test -f $ac_srcdir/configure.gnu; then
1154 echo
1155 $SHELL $ac_srcdir/configure.gnu --help=recursive
1156 elif test -f $ac_srcdir/configure; then
1157 echo
1158 $SHELL $ac_srcdir/configure --help=recursive
1159 elif test -f $ac_srcdir/configure.ac ||
eea650d8 1160 test -f $ac_srcdir/configure.in; then
e6cc62c6
VS
1161 echo
1162 $ac_configure --help
1163 else
1164 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165 fi
1166 cd $ac_popdir
1167 done
1168fi
8284b0c5 1169
e6cc62c6
VS
1170test -n "$ac_init_help" && exit 0
1171if $ac_init_version; then
1172 cat <<\_ACEOF
e46d2a18 1173wxWindows configure 2.5.1
eea650d8 1174generated by GNU Autoconf 2.58
10f2d63a 1175
eea650d8 1176Copyright (C) 2003 Free Software Foundation, Inc.
e6cc62c6
VS
1177This configure script is free software; the Free Software Foundation
1178gives unlimited permission to copy, distribute and modify it.
1179_ACEOF
1180 exit 0
7c66a493 1181fi
e6cc62c6
VS
1182exec 5>config.log
1183cat >&5 <<_ACEOF
1184This file contains any messages produced by compilers while
1185running configure, to aid debugging if configure makes a mistake.
1186
e46d2a18 1187It was created by wxWindows $as_me 2.5.1, which was
eea650d8 1188generated by GNU Autoconf 2.58. Invocation command line was
e6cc62c6
VS
1189
1190 $ $0 $@
1191
1192_ACEOF
1193{
1194cat <<_ASUNAME
1195## --------- ##
1196## Platform. ##
1197## --------- ##
1198
1199hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1200uname -m = `(uname -m) 2>/dev/null || echo unknown`
1201uname -r = `(uname -r) 2>/dev/null || echo unknown`
1202uname -s = `(uname -s) 2>/dev/null || echo unknown`
1203uname -v = `(uname -v) 2>/dev/null || echo unknown`
1204
1205/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1206/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1207
1208/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1209/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1210/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1211hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1212/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1213/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1214/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1215
1216_ASUNAME
1217
1218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1219for as_dir in $PATH
1220do
1221 IFS=$as_save_IFS
1222 test -z "$as_dir" && as_dir=.
1223 echo "PATH: $as_dir"
1224done
1225
1226} >&5
1227
1228cat >&5 <<_ACEOF
1229
1230
1231## ----------- ##
1232## Core tests. ##
1233## ----------- ##
1234
1235_ACEOF
1236
1237
1238# Keep a trace of the command line.
1239# Strip out --no-create and --no-recursion so they do not pile up.
1240# Strip out --silent because we don't want to record it for future runs.
1241# Also quote any args containing shell meta-characters.
1242# Make two passes to allow for proper duplicate-argument suppression.
1243ac_configure_args=
1244ac_configure_args0=
1245ac_configure_args1=
1246ac_sep=
1247ac_must_keep_next=false
1248for ac_pass in 1 2
1249do
1250 for ac_arg
1251 do
1252 case $ac_arg in
1253 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1254 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255 | -silent | --silent | --silen | --sile | --sil)
1256 continue ;;
1257 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1259 esac
1260 case $ac_pass in
1261 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1262 2)
1263 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1264 if test $ac_must_keep_next = true; then
eea650d8 1265 ac_must_keep_next=false # Got value, back to normal.
e6cc62c6 1266 else
eea650d8
VS
1267 case $ac_arg in
1268 *=* | --config-cache | -C | -disable-* | --disable-* \
1269 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1270 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1271 | -with-* | --with-* | -without-* | --without-* | --x)
1272 case "$ac_configure_args0 " in
1273 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1274 esac
1275 ;;
1276 -* ) ac_must_keep_next=true ;;
1277 esac
e6cc62c6
VS
1278 fi
1279 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1280 # Get rid of the leading space.
1281 ac_sep=" "
1282 ;;
1283 esac
1284 done
1285done
1286$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1287$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1288
1289# When interrupted or exit'd, cleanup temporary files, and complete
1290# config.log. We remove comments because anyway the quotes in there
1291# would cause problems or look ugly.
1292# WARNING: Be sure not to use single quotes in there, as some shells,
1293# such as our DU 5.0 friend, will then `close' the trap.
1294trap 'exit_status=$?
1295 # Save into config.log some information that might help in debugging.
1296 {
1297 echo
1298
1299 cat <<\_ASBOX
1300## ---------------- ##
1301## Cache variables. ##
1302## ---------------- ##
1303_ASBOX
1304 echo
1305 # The following way of writing the cache mishandles newlines in values,
1306{
1307 (set) 2>&1 |
1308 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1309 *ac_space=\ *)
1310 sed -n \
eea650d8
VS
1311 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
e6cc62c6
VS
1313 ;;
1314 *)
1315 sed -n \
eea650d8 1316 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
1317 ;;
1318 esac;
1319}
1320 echo
1321
1322 cat <<\_ASBOX
1323## ----------------- ##
1324## Output variables. ##
1325## ----------------- ##
1326_ASBOX
1327 echo
1328 for ac_var in $ac_subst_vars
1329 do
1330 eval ac_val=$`echo $ac_var`
1331 echo "$ac_var='"'"'$ac_val'"'"'"
1332 done | sort
1333 echo
1334
1335 if test -n "$ac_subst_files"; then
1336 cat <<\_ASBOX
1337## ------------- ##
1338## Output files. ##
1339## ------------- ##
1340_ASBOX
1341 echo
1342 for ac_var in $ac_subst_files
1343 do
1344 eval ac_val=$`echo $ac_var`
eea650d8 1345 echo "$ac_var='"'"'$ac_val'"'"'"
e6cc62c6
VS
1346 done | sort
1347 echo
1348 fi
1349
1350 if test -s confdefs.h; then
1351 cat <<\_ASBOX
1352## ----------- ##
1353## confdefs.h. ##
1354## ----------- ##
1355_ASBOX
1356 echo
1357 sed "/^$/d" confdefs.h | sort
1358 echo
1359 fi
1360 test "$ac_signal" != 0 &&
1361 echo "$as_me: caught signal $ac_signal"
1362 echo "$as_me: exit $exit_status"
1363 } >&5
eea650d8 1364 rm -f core *.core &&
e6cc62c6
VS
1365 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1366 exit $exit_status
1367 ' 0
1368for ac_signal in 1 2 13 15; do
1369 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1370done
1371ac_signal=0
1372
1373# confdefs.h avoids OS command line length limits that DEFS can exceed.
1374rm -rf conftest* confdefs.h
1375# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1376echo >confdefs.h
1377
1378# Predefined preprocessor variables.
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_NAME "$PACKAGE_NAME"
1382_ACEOF
1383
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1387_ACEOF
1388
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_VERSION "$PACKAGE_VERSION"
1392_ACEOF
1393
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_STRING "$PACKAGE_STRING"
1397_ACEOF
1398
1399
1400cat >>confdefs.h <<_ACEOF
1401#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1402_ACEOF
1403
1404
1405# Let the site file select an alternate cache file if it wants to.
1406# Prefer explicitly selected file to automatically selected ones.
1407if test -z "$CONFIG_SITE"; then
1408 if test "x$prefix" != xNONE; then
1409 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1410 else
1411 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1412 fi
1413fi
1414for ac_site_file in $CONFIG_SITE; do
1415 if test -r "$ac_site_file"; then
1416 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1417echo "$as_me: loading site script $ac_site_file" >&6;}
1418 sed 's/^/| /' "$ac_site_file" >&5
1419 . "$ac_site_file"
1420 fi
1421done
1422
1423if test -r "$cache_file"; then
1424 # Some versions of bash will fail to source /dev/null (special
1425 # files actually), so we avoid doing that.
1426 if test -f "$cache_file"; then
1427 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1428echo "$as_me: loading cache $cache_file" >&6;}
1429 case $cache_file in
1430 [\\/]* | ?:[\\/]* ) . $cache_file;;
1431 *) . ./$cache_file;;
1432 esac
1433 fi
1434else
1435 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1436echo "$as_me: creating cache $cache_file" >&6;}
1437 >$cache_file
1438fi
1439
1440# Check that the precious variables saved in the cache have kept the same
1441# value.
1442ac_cache_corrupted=false
1443for ac_var in `(set) 2>&1 |
eea650d8 1444 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
e6cc62c6
VS
1445 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1446 eval ac_new_set=\$ac_env_${ac_var}_set
1447 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1448 eval ac_new_val="\$ac_env_${ac_var}_value"
1449 case $ac_old_set,$ac_new_set in
1450 set,)
1451 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1452echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1453 ac_cache_corrupted=: ;;
1454 ,set)
1455 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1456echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1457 ac_cache_corrupted=: ;;
1458 ,);;
1459 *)
1460 if test "x$ac_old_val" != "x$ac_new_val"; then
eea650d8 1461 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
e6cc62c6 1462echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
eea650d8 1463 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
e6cc62c6 1464echo "$as_me: former value: $ac_old_val" >&2;}
eea650d8 1465 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
e6cc62c6 1466echo "$as_me: current value: $ac_new_val" >&2;}
eea650d8 1467 ac_cache_corrupted=:
e6cc62c6
VS
1468 fi;;
1469 esac
1470 # Pass precious variables to config.status.
1471 if test "$ac_new_set" = set; then
1472 case $ac_new_val in
1473 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1474 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1475 *) ac_arg=$ac_var=$ac_new_val ;;
1476 esac
1477 case " $ac_configure_args " in
1478 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1479 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1480 esac
1481 fi
1482done
1483if $ac_cache_corrupted; then
1484 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1485echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1486 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1487echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1488 { (exit 1); exit 1; }; }
1489fi
1490
1491ac_ext=c
1492ac_cpp='$CPP $CPPFLAGS'
1493ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1494ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1495ac_compiler_gnu=$ac_cv_c_compiler_gnu
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
698dcdb6 1513
8284b0c5 1514
7c66a493 1515
a0b9e27f
MB
1516
1517
a0b9e27f 1518
a0b9e27f 1519
a0b9e27f 1520
a0b9e27f 1521
a0b9e27f 1522
a0b9e27f 1523
e6cc62c6
VS
1524
1525
1526ac_aux_dir=
1527for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1528 if test -f $ac_dir/install-sh; then
1529 ac_aux_dir=$ac_dir
1530 ac_install_sh="$ac_aux_dir/install-sh -c"
1531 break
1532 elif test -f $ac_dir/install.sh; then
1533 ac_aux_dir=$ac_dir
1534 ac_install_sh="$ac_aux_dir/install.sh -c"
1535 break
1536 elif test -f $ac_dir/shtool; then
1537 ac_aux_dir=$ac_dir
1538 ac_install_sh="$ac_aux_dir/shtool install -c"
1539 break
1540 fi
1541done
1542if test -z "$ac_aux_dir"; then
1543 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1544echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1545 { (exit 1); exit 1; }; }
1546fi
1547ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1548ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1549ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1550
1551# Make sure we can run config.sub.
1552$ac_config_sub sun4 >/dev/null 2>&1 ||
1553 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1554echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1555 { (exit 1); exit 1; }; }
1556
1557echo "$as_me:$LINENO: checking build system type" >&5
1558echo $ECHO_N "checking build system type... $ECHO_C" >&6
1559if test "${ac_cv_build+set}" = set; then
1560 echo $ECHO_N "(cached) $ECHO_C" >&6
1561else
1562 ac_cv_build_alias=$build_alias
1563test -z "$ac_cv_build_alias" &&
1564 ac_cv_build_alias=`$ac_config_guess`
1565test -z "$ac_cv_build_alias" &&
1566 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1567echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1568 { (exit 1); exit 1; }; }
1569ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1570 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1571echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1572 { (exit 1); exit 1; }; }
1573
1574fi
1575echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1576echo "${ECHO_T}$ac_cv_build" >&6
1577build=$ac_cv_build
1578build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1579build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1580build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1581
1582
1583echo "$as_me:$LINENO: checking host system type" >&5
1584echo $ECHO_N "checking host system type... $ECHO_C" >&6
1585if test "${ac_cv_host+set}" = set; then
1586 echo $ECHO_N "(cached) $ECHO_C" >&6
1587else
1588 ac_cv_host_alias=$host_alias
1589test -z "$ac_cv_host_alias" &&
1590 ac_cv_host_alias=$ac_cv_build_alias
1591ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1592 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1593echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1594 { (exit 1); exit 1; }; }
1595
1596fi
1597echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1598echo "${ECHO_T}$ac_cv_host" >&6
1599host=$ac_cv_host
1600host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1601host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1602host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1603
1604
1605echo "$as_me:$LINENO: checking target system type" >&5
1606echo $ECHO_N "checking target system type... $ECHO_C" >&6
1607if test "${ac_cv_target+set}" = set; then
1608 echo $ECHO_N "(cached) $ECHO_C" >&6
1609else
1610 ac_cv_target_alias=$target_alias
1611test "x$ac_cv_target_alias" = "x" &&
1612 ac_cv_target_alias=$ac_cv_host_alias
1613ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1614 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1615echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1616 { (exit 1); exit 1; }; }
1617
1618fi
1619echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1620echo "${ECHO_T}$ac_cv_target" >&6
1621target=$ac_cv_target
1622target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1623target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1624target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1625
1626
1627# The aliases save the names the user supplied, while $host etc.
1628# will get canonicalized.
1629test -n "$target_alias" &&
7c66a493
VZ
1630 test "$program_prefix$program_suffix$program_transform_name" = \
1631 NONENONEs,x,x, &&
1632 program_prefix=${target_alias}-
8284b0c5
MB
1633
1634
a0b9e27f 1635
10f2d63a 1636WX_MAJOR_VERSION_NUMBER=2
34bed6d9 1637WX_MINOR_VERSION_NUMBER=5
e46d2a18 1638WX_RELEASE_NUMBER=1
10f2d63a 1639
10f2d63a 1640WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1641WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1642
978f1259
RL
1643WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1644
7015ef3a 1645WX_CURRENT=1
6426998c
RL
1646WX_REVISION=0
1647WX_AGE=0
1648
8284b0c5
MB
1649
1650
10f2d63a 1651USE_UNIX=1
73d617c9 1652USE_OS2=0
10f2d63a 1653USE_WIN32=0
f9bc1684 1654USE_DOS=0
b12915c1 1655USE_BEOS=0
1216f52d 1656USE_MAC=0
b12915c1 1657
10f2d63a 1658USE_AIX=
fe0895cf
VS
1659USE_BSD= USE_DARWIN= USE_FREEBSD=
1660USE_GNU= USE_HPUX=
89e3b3e4 1661USE_LINUX=
f6bcfd97 1662USE_NETBSD=
89e3b3e4 1663USE_OPENBSD=
fe0895cf
VS
1664USE_OSF= USE_SGI=
1665USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1666USE_ULTRIX=
89e3b3e4
VZ
1667USE_UNIXWARE=
1668
1669USE_ALPHA=
10f2d63a 1670
ab9b9eab
VZ
1671NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1672
ac0c4cc3 1673ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1674
ac0c4cc3 1675DEFAULT_wxUSE_COCOA=0
10f2d63a 1676DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1677DEFAULT_wxUSE_MAC=0
1678DEFAULT_wxUSE_MGL=0
1725144d 1679DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1680DEFAULT_wxUSE_MOTIF=0
1681DEFAULT_wxUSE_MSW=0
e07802fc 1682DEFAULT_wxUSE_PM=0
f79bd02d 1683DEFAULT_wxUSE_X11=0
10f2d63a 1684
ac0c4cc3 1685DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1686DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1687DEFAULT_DEFAULT_wxUSE_MAC=0
1688DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1689DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1690DEFAULT_DEFAULT_wxUSE_MOTIF=0
1691DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1692DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1693DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1694
d6a55c4b 1695PROGRAM_EXT=
3a922bb4 1696SO_SUFFIX=so
fe0895cf 1697SAMPLES_RPATH_FLAG=
0f1bc9c2 1698SAMPLES_RPATH_POSTLINK=
d6a55c4b 1699
10f2d63a
VZ
1700case "${host}" in
1701 *-hp-hpux* )
1702 USE_HPUX=1
1703 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1704 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1705 SO_SUFFIX=sl
e6cc62c6 1706 cat >>confdefs.h <<\_ACEOF
10f2d63a 1707#define __HPUX__ 1
e6cc62c6 1708_ACEOF
10f2d63a
VZ
1709
1710 ;;
1711 *-*-linux* )
1712 USE_LINUX=1
e6cc62c6 1713 cat >>confdefs.h <<\_ACEOF
10f2d63a 1714#define __LINUX__ 1
e6cc62c6 1715_ACEOF
10f2d63a
VZ
1716
1717 TMP=`uname -m`
1718 if test "x$TMP" = "xalpha"; then
1719 USE_ALPHA=1
e6cc62c6 1720 cat >>confdefs.h <<\_ACEOF
10f2d63a 1721#define __ALPHA__ 1
e6cc62c6 1722_ACEOF
fe0895cf
VS
1723
1724 fi
1725 DEFAULT_DEFAULT_wxUSE_GTK=1
1726 ;;
1727 *-*-gnu* )
1728 USE_GNU=1
e6cc62c6 1729 cat >>confdefs.h <<\_ACEOF
fe0895cf 1730#define __GNU__ 1
e6cc62c6 1731_ACEOF
fe0895cf
VS
1732
1733 TMP=`uname -m`
1734 if test "x$TMP" = "xalpha"; then
1735 USE_ALPHA=1
e6cc62c6 1736 cat >>confdefs.h <<\_ACEOF
fe0895cf 1737#define __ALPHA__ 1
e6cc62c6 1738_ACEOF
10f2d63a
VZ
1739
1740 fi
1741 DEFAULT_DEFAULT_wxUSE_GTK=1
1742 ;;
1743 *-*-irix5* | *-*-irix6* )
1744 USE_SGI=1
1745 USE_SVR4=1
e6cc62c6 1746 cat >>confdefs.h <<\_ACEOF
10f2d63a 1747#define __SGI__ 1
e6cc62c6 1748_ACEOF
10f2d63a 1749
e6cc62c6 1750 cat >>confdefs.h <<\_ACEOF
10f2d63a 1751#define __SVR4__ 1
e6cc62c6 1752_ACEOF
10f2d63a
VZ
1753
1754 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1755 ;;
1756 *-*-solaris2* )
1757 USE_SUN=1
1758 USE_SOLARIS=1
1759 USE_SVR4=1
e6cc62c6 1760 cat >>confdefs.h <<\_ACEOF
10f2d63a 1761#define __SUN__ 1
e6cc62c6 1762_ACEOF
10f2d63a 1763
e6cc62c6 1764 cat >>confdefs.h <<\_ACEOF
10f2d63a 1765#define __SOLARIS__ 1
e6cc62c6 1766_ACEOF
10f2d63a 1767
e6cc62c6 1768 cat >>confdefs.h <<\_ACEOF
10f2d63a 1769#define __SVR4__ 1
e6cc62c6 1770_ACEOF
10f2d63a
VZ
1771
1772 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1773 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1774 ;;
1775 *-*-sunos4* )
1776 USE_SUN=1
1777 USE_SUNOS=1
1778 USE_BSD=1
e6cc62c6 1779 cat >>confdefs.h <<\_ACEOF
10f2d63a 1780#define __SUN__ 1
e6cc62c6 1781_ACEOF
10f2d63a 1782
e6cc62c6 1783 cat >>confdefs.h <<\_ACEOF
10f2d63a 1784#define __SUNOS__ 1
e6cc62c6 1785_ACEOF
10f2d63a 1786
e6cc62c6 1787 cat >>confdefs.h <<\_ACEOF
10f2d63a 1788#define __BSD__ 1
e6cc62c6 1789_ACEOF
10f2d63a
VZ
1790
1791 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1792 ;;
f6bcfd97 1793 *-*-freebsd*)
10f2d63a
VZ
1794 USE_BSD=1
1795 USE_FREEBSD=1
e6cc62c6 1796 cat >>confdefs.h <<\_ACEOF
10f2d63a 1797#define __FREEBSD__ 1
e6cc62c6 1798_ACEOF
10f2d63a 1799
e6cc62c6 1800 cat >>confdefs.h <<\_ACEOF
10f2d63a 1801#define __BSD__ 1
e6cc62c6 1802_ACEOF
95c8801c
VS
1803
1804 DEFAULT_DEFAULT_wxUSE_GTK=1
1805 ;;
1806 *-*-openbsd*)
1807 USE_BSD=1
1808 USE_OPENBSD=1
e6cc62c6 1809 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1810#define __OPENBSD__ 1
e6cc62c6 1811_ACEOF
95c8801c 1812
e6cc62c6 1813 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1814#define __BSD__ 1
e6cc62c6 1815_ACEOF
f6bcfd97
BP
1816
1817 DEFAULT_DEFAULT_wxUSE_GTK=1
1818 ;;
1819 *-*-netbsd*)
1820 USE_BSD=1
1821 USE_NETBSD=1
e6cc62c6 1822 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1823#define __NETBSD__ 1
e6cc62c6 1824_ACEOF
f6bcfd97 1825
e6cc62c6 1826 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1827#define __BSD__ 1
e6cc62c6 1828_ACEOF
10f2d63a
VZ
1829
1830 DEFAULT_DEFAULT_wxUSE_GTK=1
1831 ;;
1832 *-*-osf* )
1833 USE_ALPHA=1
1834 USE_OSF=1
e6cc62c6 1835 cat >>confdefs.h <<\_ACEOF
10f2d63a 1836#define __ALPHA__ 1
e6cc62c6 1837_ACEOF
10f2d63a 1838
e6cc62c6 1839 cat >>confdefs.h <<\_ACEOF
10f2d63a 1840#define __OSF__ 1
e6cc62c6 1841_ACEOF
10f2d63a
VZ
1842
1843 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1844 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1845 ;;
1846 *-*-dgux5* )
1847 USE_ALPHA=1
1848 USE_SVR4=1
e6cc62c6 1849 cat >>confdefs.h <<\_ACEOF
10f2d63a 1850#define __ALPHA__ 1
e6cc62c6 1851_ACEOF
10f2d63a 1852
e6cc62c6 1853 cat >>confdefs.h <<\_ACEOF
10f2d63a 1854#define __SVR4__ 1
e6cc62c6 1855_ACEOF
10f2d63a
VZ
1856
1857 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1858 ;;
1859 *-*-sysv5* )
1860 USE_SYSV=1
1861 USE_SVR4=1
e6cc62c6 1862 cat >>confdefs.h <<\_ACEOF
10f2d63a 1863#define __SYSV__ 1
e6cc62c6 1864_ACEOF
10f2d63a 1865
e6cc62c6 1866 cat >>confdefs.h <<\_ACEOF
10f2d63a 1867#define __SVR4__ 1
e6cc62c6 1868_ACEOF
10f2d63a
VZ
1869
1870 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1871 ;;
1872 *-*-aix* )
1873 USE_AIX=1
1874 USE_SYSV=1
1875 USE_SVR4=1
2b5f62a0 1876 SO_SUFFIX=a
e6cc62c6 1877 cat >>confdefs.h <<\_ACEOF
10f2d63a 1878#define __AIX__ 1
e6cc62c6 1879_ACEOF
10f2d63a 1880
e6cc62c6 1881 cat >>confdefs.h <<\_ACEOF
10f2d63a 1882#define __SYSV__ 1
e6cc62c6 1883_ACEOF
10f2d63a 1884
e6cc62c6 1885 cat >>confdefs.h <<\_ACEOF
10f2d63a 1886#define __SVR4__ 1
e6cc62c6 1887_ACEOF
10f2d63a
VZ
1888
1889 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1890 ;;
1891
89e3b3e4
VZ
1892 *-*-*UnixWare*)
1893 USE_SYSV=1
1894 USE_SVR4=1
1895 USE_UNIXWARE=1
e6cc62c6 1896 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1897#define __UNIXWARE__ 1
e6cc62c6 1898_ACEOF
89e3b3e4
VZ
1899
1900 ;;
1901
1c8183e2 1902 *-*-cygwin* | *-*-mingw32* )
17234b26 1903 SO_SUFFIX=dll
cf27ef00 1904 PROGRAM_EXT=".exe"
7b7a7637 1905 RESCOMP=windres
10f2d63a
VZ
1906 DEFAULT_DEFAULT_wxUSE_MSW=1
1907 ;;
1908
f9bc1684
VS
1909 *-pc-msdosdjgpp )
1910 USE_UNIX=0
1911 USE_DOS=1
e6cc62c6 1912 cat >>confdefs.h <<\_ACEOF
f9bc1684 1913#define __DOS__ 1
e6cc62c6 1914_ACEOF
f9bc1684
VS
1915
1916 PROGRAM_EXT=".exe"
1917 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1918 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1919 ;;
1920
6fa882bd 1921 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1922 cat >>confdefs.h <<\_ACEOF
10f2d63a 1923#define __EMX__ 1
e6cc62c6 1924_ACEOF
10f2d63a 1925
73d617c9 1926 USE_OS2=1
7015ef3a
VZ
1927 cat >>confdefs.h <<\_ACEOF
1928#define __OS2__ 1
1929_ACEOF
1930
cf27ef00 1931 PROGRAM_EXT=".exe"
e07802fc 1932 DEFAULT_DEFAULT_wxUSE_PM=1
eb69fda5 1933 CXX=gcc
73d617c9 1934 LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals"
d5fc095c
VS
1935 ac_executable_extensions=".exe"
1936 export ac_executable_extensions
1937 ac_save_IFS="$IFS"
e46d2a18 1938 IFS='\\'
d5fc095c
VS
1939 ac_TEMP_PATH=
1940 for ac_dir in $PATH; do
1941 IFS=$ac_save_IFS
1942 if test -z "$ac_TEMP_PATH"; then
1943 ac_TEMP_PATH="$ac_dir"
1944 else
1945 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1946 fi
1947 done
1948 export PATH="$ac_TEMP_PATH"
1949 unset ac_TEMP_PATH
10f2d63a
VZ
1950 ;;
1951
d08b457b
GD
1952 powerpc-*-darwin* )
1953 USE_BSD=1
f11bdd03 1954 USE_DARWIN=1
3a922bb4 1955 SO_SUFFIX=dylib
e6cc62c6 1956 cat >>confdefs.h <<\_ACEOF
f11bdd03 1957#define __BSD__ 1
e6cc62c6 1958_ACEOF
b4085ce6 1959
e6cc62c6 1960 cat >>confdefs.h <<\_ACEOF
f11bdd03 1961#define __DARWIN__ 1
e6cc62c6 1962_ACEOF
d08b457b 1963
e6cc62c6 1964 cat >>confdefs.h <<\_ACEOF
d08b457b 1965#define __POWERPC__ 1
e6cc62c6 1966_ACEOF
82d43113 1967
e6cc62c6 1968 cat >>confdefs.h <<\_ACEOF
82d43113 1969#define TARGET_CARBON 1
e6cc62c6 1970_ACEOF
b4085ce6
GD
1971
1972 DEFAULT_DEFAULT_wxUSE_MAC=1
1973 ;;
1974
b12915c1
VZ
1975 *-*-beos* )
1976 USE_BEOS=1
e6cc62c6 1977 cat >>confdefs.h <<\_ACEOF
b12915c1 1978#define __BEOS__ 1
e6cc62c6 1979_ACEOF
b12915c1
VZ
1980
1981 ;;
1982
10f2d63a 1983 *)
e6cc62c6
VS
1984 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1985echo "$as_me: error: unknown system type ${host}." >&2;}
1986 { (exit 1); exit 1; }; }
10f2d63a
VZ
1987esac
1988
8284b0c5
MB
1989
1990
1991
1992 wx_arg_cache_file="configarg.cache"
1993 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1994 rm -f ${wx_arg_cache_file}.tmp
1995 touch ${wx_arg_cache_file}.tmp
1996 touch ${wx_arg_cache_file}
e6cc62c6 1997
10f2d63a
VZ
1998
1999DEBUG_CONFIGURE=0
2000if test $DEBUG_CONFIGURE = 1; then
1e6feb95 2001 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2002 DEFAULT_wxUSE_STL=no
1e6feb95 2003
d8356fa3
VZ
2004 DEFAULT_wxUSE_NANOX=no
2005
10f2d63a
VZ
2006 DEFAULT_wxUSE_THREADS=yes
2007
2008 DEFAULT_wxUSE_SHARED=yes
1e6feb95 2009 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
2010 DEFAULT_wxUSE_PROFILE=no
2011 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2012 DEFAULT_wxUSE_NO_RTTI=no
2013 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2014 DEFAULT_wxUSE_PERMISSIVE=no
2015 DEFAULT_wxUSE_DEBUG_FLAG=yes
2016 DEFAULT_wxUSE_DEBUG_INFO=yes
2017 DEFAULT_wxUSE_DEBUG_GDB=yes
2018 DEFAULT_wxUSE_MEM_TRACING=no
2019 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2020 DEFAULT_wxUSE_DMALLOC=no
2021 DEFAULT_wxUSE_APPLE_IEEE=no
2022
e46d2a18 2023 DEFAULT_wxUSE_EXCEPTIONS=no
10f2d63a 2024 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
2025 DEFAULT_wxUSE_LOGWINDOW=no
2026 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 2027 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
2028
2029 DEFAULT_wxUSE_GUI=yes
1e6feb95 2030 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 2031
3e44f09d 2032 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
2033 DEFAULT_wxUSE_XML=no
2034 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
2035 DEFAULT_wxUSE_ZLIB=no
2036 DEFAULT_wxUSE_LIBPNG=no
2037 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 2038 DEFAULT_wxUSE_LIBTIFF=no
89fe663f 2039 DEFAULT_wxUSE_LIBXPM=no
10f2d63a 2040 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2041 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2042
eb4efbdc 2043 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 2044 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 2045 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2046 DEFAULT_wxUSE_CMDLINE_PARSER=no
2047 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
2048 DEFAULT_wxUSE_TIMER=no
2049 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 2050 DEFAULT_wxUSE_FILE=no
1e6feb95 2051 DEFAULT_wxUSE_FFILE=no
a3a584a7 2052 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 2053 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
2054 DEFAULT_wxUSE_WAVE=no
2055 DEFAULT_wxUSE_INTL=no
2056 DEFAULT_wxUSE_CONFIG=no
1e6feb95 2057 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
2058 DEFAULT_wxUSE_STREAMS=no
2059 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
2060 DEFAULT_wxUSE_OLE=no
2061 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2062 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2063 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2064 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2065 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2066 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2067 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2068
2069 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2070 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2071 DEFAULT_wxUSE_POSTSCRIPT=no
2072
10f2d63a
VZ
2073 DEFAULT_wxUSE_CLIPBOARD=no
2074 DEFAULT_wxUSE_TOOLTIPS=no
2075 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2076 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2077 DEFAULT_wxUSE_SPLINES=no
2078
2079 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2080 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2081 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2082
10f2d63a
VZ
2083 DEFAULT_wxUSE_RESOURCES=no
2084 DEFAULT_wxUSE_CONSTRAINTS=no
2085 DEFAULT_wxUSE_IPC=no
2086 DEFAULT_wxUSE_HELP=no
29fd3c0c 2087 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2088 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2089 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2090 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2091 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2092 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2093 DEFAULT_wxUSE_PROTOCOL=no
2094 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2095 DEFAULT_wxUSE_PROTOCOL_FTP=no
2096 DEFAULT_wxUSE_PROTOCOL_FILE=no
2097 DEFAULT_wxUSE_URL=no
3bd8fb5f 2098
10f2d63a 2099 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2100 DEFAULT_wxUSE_CHOICEDLG=no
2101 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2102 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2103 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2104 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2105 DEFAULT_wxUSE_FONTDLG=no
2106 DEFAULT_wxUSE_MSGDLG=no
2107 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2108 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2109 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2110 DEFAULT_wxUSE_STARTUP_TIPS=no
2111 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2112 DEFAULT_wxUSE_WIZARDDLG=no
2113
1e6feb95 2114 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2115 DEFAULT_wxUSE_MINIFRAME=no
2116 DEFAULT_wxUSE_HTML=no
24528b0c 2117 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2118 DEFAULT_wxUSE_FS_INET=no
2119 DEFAULT_wxUSE_FS_ZIP=no
2120 DEFAULT_wxUSE_BUSYINFO=no
2121 DEFAULT_wxUSE_ZIPSTREAM=no
7015ef3a 2122 DEFAULT_wxUSE_GZSTREAM=no
1e6feb95 2123 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2124
2125 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2126 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2127 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2128 DEFAULT_wxUSE_CALCTRL=no
2129 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2130 DEFAULT_wxUSE_CHECKBOX=no
2131 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2132 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2133 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2134 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2135 DEFAULT_wxUSE_GAUGE=no
2136 DEFAULT_wxUSE_GRID=no
10f2d63a 2137 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 2138 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
2139 DEFAULT_wxUSE_LISTBOX=no
2140 DEFAULT_wxUSE_LISTCTRL=no
2141 DEFAULT_wxUSE_NOTEBOOK=no
2142 DEFAULT_wxUSE_RADIOBOX=no
2143 DEFAULT_wxUSE_RADIOBTN=no
2144 DEFAULT_wxUSE_SASH=no
2145 DEFAULT_wxUSE_SCROLLBAR=no
2146 DEFAULT_wxUSE_SLIDER=no
2147 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2148 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2149 DEFAULT_wxUSE_SPLITTER=no
2150 DEFAULT_wxUSE_STATBMP=no
2151 DEFAULT_wxUSE_STATBOX=no
2152 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2153 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2154 DEFAULT_wxUSE_STATUSBAR=yes
2155 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2156 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2157 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2158 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2159 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2160 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2161 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2162 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2163 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2164
2165 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2166 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2167 DEFAULT_wxUSE_WCSRTOMBS=no
2168
edae8572 2169 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2170 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2171 DEFAULT_wxUSE_GIF=no
2172 DEFAULT_wxUSE_PCX=no
2173 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2174 DEFAULT_wxUSE_IFF=no
0046ff7c 2175 DEFAULT_wxUSE_XPM=no
658974ae 2176 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2177 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2178
e9e0dc15 2179 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2180 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a 2181else
1e6feb95 2182 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2183 DEFAULT_wxUSE_STL=no
1e6feb95 2184
d8356fa3
VZ
2185 DEFAULT_wxUSE_NANOX=no
2186
10f2d63a
VZ
2187 DEFAULT_wxUSE_THREADS=yes
2188
2189 DEFAULT_wxUSE_SHARED=yes
2190 DEFAULT_wxUSE_OPTIMISE=yes
2191 DEFAULT_wxUSE_PROFILE=no
2192 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2193 DEFAULT_wxUSE_NO_RTTI=no
2194 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2195 DEFAULT_wxUSE_PERMISSIVE=no
2196 DEFAULT_wxUSE_DEBUG_FLAG=no
2197 DEFAULT_wxUSE_DEBUG_INFO=no
2198 DEFAULT_wxUSE_DEBUG_GDB=no
2199 DEFAULT_wxUSE_MEM_TRACING=no
2200 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2201 DEFAULT_wxUSE_DMALLOC=no
2202 DEFAULT_wxUSE_APPLE_IEEE=yes
2203
e46d2a18 2204 DEFAULT_wxUSE_EXCEPTIONS=yes
10f2d63a 2205 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2206 DEFAULT_wxUSE_LOGWINDOW=yes
2207 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2208 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2209
2210 DEFAULT_wxUSE_GUI=yes
2211
aa2d9ecc 2212 DEFAULT_wxUSE_REGEX=yes
672abd7a 2213 DEFAULT_wxUSE_XML=yes
aa2d9ecc
VZ
2214 DEFAULT_wxUSE_EXPAT=yes
2215 DEFAULT_wxUSE_ZLIB=yes
2216 DEFAULT_wxUSE_LIBPNG=yes
2217 DEFAULT_wxUSE_LIBJPEG=yes
2218 DEFAULT_wxUSE_LIBTIFF=yes
2219 DEFAULT_wxUSE_LIBXPM=yes
3527f29c 2220 DEFAULT_wxUSE_LIBMSPACK=yes
16b52fa1 2221 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2222 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2223
eb4efbdc 2224 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2225 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2226 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2227 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2228 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2229 DEFAULT_wxUSE_TIMER=yes
2230 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2231 DEFAULT_wxUSE_FILE=yes
1e6feb95 2232 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2233 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2234 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
2235 DEFAULT_wxUSE_WAVE=no
2236 DEFAULT_wxUSE_INTL=yes
2237 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2238 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2239 DEFAULT_wxUSE_STREAMS=yes
2240 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2241 DEFAULT_wxUSE_OLE=yes
2242 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2243 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2244 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2245 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2246 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2247 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2248 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2249
2250 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2251 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2252 DEFAULT_wxUSE_POSTSCRIPT=yes
2253
10f2d63a
VZ
2254 DEFAULT_wxUSE_CLIPBOARD=yes
2255 DEFAULT_wxUSE_TOOLTIPS=yes
2256 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2257 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2258 DEFAULT_wxUSE_SPLINES=yes
2259
2260 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2261 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2262 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2263
2b5f62a0 2264 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2265 DEFAULT_wxUSE_CONSTRAINTS=yes
2266 DEFAULT_wxUSE_IPC=yes
2267 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2268 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2269 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2270 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2271 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2272 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2273 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2274 DEFAULT_wxUSE_PROTOCOL=yes
2275 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2276 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2277 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2278 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2279
2280 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2281 DEFAULT_wxUSE_CHOICEDLG=yes
2282 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2283 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2284 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2285 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2286 DEFAULT_wxUSE_FONTDLG=yes
2287 DEFAULT_wxUSE_MSGDLG=yes
2288 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2289 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2290 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2291 DEFAULT_wxUSE_STARTUP_TIPS=yes
2292 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2293 DEFAULT_wxUSE_WIZARDDLG=yes
2294
1e6feb95 2295 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2296 DEFAULT_wxUSE_MINIFRAME=yes
2297 DEFAULT_wxUSE_HTML=yes
24528b0c 2298 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2299 DEFAULT_wxUSE_FS_INET=yes
2300 DEFAULT_wxUSE_FS_ZIP=yes
2301 DEFAULT_wxUSE_BUSYINFO=yes
2302 DEFAULT_wxUSE_ZIPSTREAM=yes
7015ef3a 2303 DEFAULT_wxUSE_GZSTREAM=yes
10f2d63a
VZ
2304 DEFAULT_wxUSE_VALIDATORS=yes
2305
2306 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2307 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2308 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2309 DEFAULT_wxUSE_CALCTRL=yes
2310 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2311 DEFAULT_wxUSE_CHECKBOX=yes
2312 DEFAULT_wxUSE_CHECKLST=yes
2313 DEFAULT_wxUSE_CHOICE=yes
2314 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2315 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2316 DEFAULT_wxUSE_GAUGE=yes
2317 DEFAULT_wxUSE_GRID=yes
10f2d63a 2318 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 2319 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
2320 DEFAULT_wxUSE_LISTBOX=yes
2321 DEFAULT_wxUSE_LISTCTRL=yes
2322 DEFAULT_wxUSE_NOTEBOOK=yes
2323 DEFAULT_wxUSE_RADIOBOX=yes
2324 DEFAULT_wxUSE_RADIOBTN=yes
2325 DEFAULT_wxUSE_SASH=yes
2326 DEFAULT_wxUSE_SCROLLBAR=yes
2327 DEFAULT_wxUSE_SLIDER=yes
2328 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2329 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2330 DEFAULT_wxUSE_SPLITTER=yes
2331 DEFAULT_wxUSE_STATBMP=yes
2332 DEFAULT_wxUSE_STATBOX=yes
2333 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2334 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2335 DEFAULT_wxUSE_STATUSBAR=yes
2336 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2337 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2338 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2339 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2340 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2341 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2342 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2343 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2344 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2345
2346 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2347 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2348 DEFAULT_wxUSE_WCSRTOMBS=no
2349
edae8572 2350 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2351 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2352 DEFAULT_wxUSE_GIF=yes
2353 DEFAULT_wxUSE_PCX=yes
cc0e8480 2354 DEFAULT_wxUSE_IFF=no
10f2d63a 2355 DEFAULT_wxUSE_PNM=yes
0046ff7c 2356 DEFAULT_wxUSE_XPM=yes
658974ae 2357 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2358 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2359
e9e0dc15 2360 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2361 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a
VZ
2362fi
2363
8284b0c5
MB
2364
2365
10f2d63a 2366for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2367 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2368 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2369 has_toolkit_in_cache=1
2370 eval "DEFAULT_$LINE"
2371 eval "CACHE_$toolkit=1"
2372 fi
2373done
2374
8284b0c5
MB
2375
2376
5005acfe 2377 enablestring=
e6cc62c6
VS
2378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2379echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2380 no_cache=0
2381 # Check whether --enable-gui or --disable-gui was given.
2382if test "${enable_gui+set}" = set; then
2383 enableval="$enable_gui"
e6cc62c6 2384
10f2d63a
VZ
2385 if test "$enableval" = yes; then
2386 ac_cv_use_gui='wxUSE_GUI=yes'
2387 else
2388 ac_cv_use_gui='wxUSE_GUI=no'
2389 fi
e6cc62c6 2390
10f2d63a 2391else
e6cc62c6 2392
10f2d63a
VZ
2393 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2394 if test "x$LINE" != x ; then
2395 eval "DEFAULT_$LINE"
2396 else
2397 no_cache=1
2398 fi
2399
2400 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2401
e6cc62c6 2402fi;
10f2d63a
VZ
2403
2404 eval "$ac_cv_use_gui"
2405 if test "$no_cache" != 1; then
2406 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2407 fi
2408
2409 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2410 echo "$as_me:$LINENO: result: yes" >&5
2411echo "${ECHO_T}yes" >&6
10f2d63a 2412 else
e6cc62c6
VS
2413 echo "$as_me:$LINENO: result: no" >&5
2414echo "${ECHO_T}no" >&6
10f2d63a 2415 fi
e6cc62c6 2416
10f2d63a 2417
9747f85d
VS
2418 enablestring=
2419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2420echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2421 no_cache=0
2422 # Check whether --enable-monolithic or --disable-monolithic was given.
2423if test "${enable_monolithic+set}" = set; then
2424 enableval="$enable_monolithic"
2425
2426 if test "$enableval" = yes; then
2427 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2428 else
2429 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2430 fi
2431
2432else
2433
2434 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2435 if test "x$LINE" != x ; then
2436 eval "DEFAULT_$LINE"
2437 else
2438 no_cache=1
2439 fi
2440
2441 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2442
2443fi;
2444
2445 eval "$ac_cv_use_monolithic"
2446 if test "$no_cache" != 1; then
2447 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2448 fi
2449
2450 if test "$wxUSE_MONOLITHIC" = yes; then
2451 echo "$as_me:$LINENO: result: yes" >&5
2452echo "${ECHO_T}yes" >&6
2453 else
2454 echo "$as_me:$LINENO: result: no" >&5
2455echo "${ECHO_T}no" >&6
2456 fi
2457
2458
b12915c1 2459if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2460
8284b0c5 2461
5005acfe 2462 enablestring=
e6cc62c6
VS
2463 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2464echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2465 no_cache=0
2466 # Check whether --enable-universal or --disable-universal was given.
2467if test "${enable_universal+set}" = set; then
2468 enableval="$enable_universal"
e6cc62c6 2469
1e6feb95
VZ
2470 if test "$enableval" = yes; then
2471 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2472 else
2473 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2474 fi
e6cc62c6 2475
1e6feb95 2476else
e6cc62c6 2477
1e6feb95
VZ
2478 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2479 if test "x$LINE" != x ; then
2480 eval "DEFAULT_$LINE"
2481 else
2482 no_cache=1
2483 fi
2484
2485 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2486
e6cc62c6 2487fi;
1e6feb95
VZ
2488
2489 eval "$ac_cv_use_universal"
2490 if test "$no_cache" != 1; then
2491 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2492 fi
2493
2494 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2495 echo "$as_me:$LINENO: result: yes" >&5
2496echo "${ECHO_T}yes" >&6
1e6feb95 2497 else
e6cc62c6
VS
2498 echo "$as_me:$LINENO: result: no" >&5
2499echo "${ECHO_T}no" >&6
1e6feb95 2500 fi
e6cc62c6
VS
2501
2502
10f2d63a
VZ
2503# Check whether --with-gtk or --without-gtk was given.
2504if test "${with_gtk+set}" = set; then
2505 withval="$with_gtk"
2506 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2507fi;
10f2d63a
VZ
2508
2509# Check whether --with-motif or --without-motif was given.
2510if test "${with_motif+set}" = set; then
2511 withval="$with_motif"
2512 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2513fi;
10f2d63a 2514
b4085ce6
GD
2515# Check whether --with-mac or --without-mac was given.
2516if test "${with_mac+set}" = set; then
2517 withval="$with_mac"
2518 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2519fi;
b4085ce6 2520
ac0c4cc3
DE
2521# Check whether --with-cocoa or --without-cocoa was given.
2522if test "${with_cocoa+set}" = set; then
2523 withval="$with_cocoa"
2524 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2525fi;
ac0c4cc3 2526
10f2d63a
VZ
2527# Check whether --with-wine or --without-wine was given.
2528if test "${with_wine+set}" = set; then
2529 withval="$with_wine"
89e6bf6d 2530 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2531fi;
10f2d63a 2532
77e13408
RL
2533# Check whether --with-msw or --without-msw was given.
2534if test "${with_msw+set}" = set; then
2535 withval="$with_msw"
b4efce5e 2536 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2537fi;
10f2d63a 2538
e07802fc
VZ
2539# Check whether --with-pm or --without-pm was given.
2540if test "${with_pm+set}" = set; then
2541 withval="$with_pm"
2542 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2543fi;
698dcdb6 2544
1e6feb95
VZ
2545# Check whether --with-mgl or --without-mgl was given.
2546if test "${with_mgl+set}" = set; then
2547 withval="$with_mgl"
6c657b52 2548 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2549fi;
1e6feb95 2550
1725144d
RR
2551# Check whether --with-microwin or --without-microwin was given.
2552if test "${with_microwin+set}" = set; then
2553 withval="$with_microwin"
2554 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2555fi;
1725144d 2556
f79bd02d
JS
2557# Check whether --with-x11 or --without-x11 was given.
2558if test "${with_x11+set}" = set; then
2559 withval="$with_x11"
3c011993 2560 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2561fi;
a0b9e27f 2562
5005acfe 2563 enablestring=
e6cc62c6
VS
2564 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2565echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2566 no_cache=0
ba875e66
VZ
2567 # Check whether --enable-nanox or --disable-nanox was given.
2568if test "${enable_nanox+set}" = set; then
2569 enableval="$enable_nanox"
e6cc62c6 2570
d8356fa3 2571 if test "$enableval" = yes; then
ba875e66 2572 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2573 else
ba875e66 2574 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2575 fi
e6cc62c6 2576
d8356fa3 2577else
e6cc62c6 2578
d8356fa3
VZ
2579 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2580 if test "x$LINE" != x ; then
2581 eval "DEFAULT_$LINE"
2582 else
2583 no_cache=1
2584 fi
2585
ba875e66 2586 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2587
e6cc62c6 2588fi;
d8356fa3 2589
ba875e66 2590 eval "$ac_cv_use_nanox"
d8356fa3 2591 if test "$no_cache" != 1; then
ba875e66 2592 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2593 fi
2594
2595 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2596 echo "$as_me:$LINENO: result: yes" >&5
2597echo "${ECHO_T}yes" >&6
d8356fa3 2598 else
e6cc62c6
VS
2599 echo "$as_me:$LINENO: result: no" >&5
2600echo "${ECHO_T}no" >&6
d8356fa3 2601 fi
e6cc62c6 2602
8284b0c5 2603
d74f4b5a 2604
5005acfe 2605 enablestring=
e6cc62c6
VS
2606 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2607echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2608 no_cache=0
2609 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2610if test "${enable_gtk2+set}" = set; then
2611 enableval="$enable_gtk2"
e6cc62c6 2612
d74f4b5a
VZ
2613 if test "$enableval" = yes; then
2614 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2615 else
2616 ac_cv_use_gtk2='wxUSE_GTK2=no'
2617 fi
e6cc62c6 2618
10f2d63a 2619else
e6cc62c6 2620
d74f4b5a
VZ
2621 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2622 if test "x$LINE" != x ; then
2623 eval "DEFAULT_$LINE"
2624 else
2625 no_cache=1
2626 fi
2627
2628 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2629
e6cc62c6 2630fi;
328a083c 2631
d74f4b5a
VZ
2632 eval "$ac_cv_use_gtk2"
2633 if test "$no_cache" != 1; then
2634 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2635 fi
2636
2637 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2638 echo "$as_me:$LINENO: result: yes" >&5
2639echo "${ECHO_T}yes" >&6
d74f4b5a 2640 else
e6cc62c6
VS
2641 echo "$as_me:$LINENO: result: no" >&5
2642echo "${ECHO_T}no" >&6
d74f4b5a 2643 fi
d74f4b5a 2644
5c6fa7d2 2645
e6cc62c6
VS
2646
2647 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2648echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2649 no_cache=0
e6cc62c6
VS
2650
2651# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2652if test "${with_libpng+set}" = set; then
2653 withval="$with_libpng"
e6cc62c6 2654
10f2d63a 2655 if test "$withval" = yes; then
b12915c1 2656 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2657 elif test "$withval" = no; then
b12915c1 2658 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2659 elif test "$withval" = sys; then
2660 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2661 elif test "$withval" = builtin; then
2662 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2663 else
e6cc62c6
VS
2664 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2665echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2666 { (exit 1); exit 1; }; }
10f2d63a 2667 fi
e6cc62c6 2668
10f2d63a 2669else
e6cc62c6 2670
b12915c1 2671 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2672 if test "x$LINE" != x ; then
2673 eval "DEFAULT_$LINE"
2674 else
2675 no_cache=1
2676 fi
2677
b12915c1 2678 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2679
e6cc62c6 2680fi;
10f2d63a 2681
b12915c1 2682 eval "$ac_cv_use_libpng"
10f2d63a 2683 if test "$no_cache" != 1; then
b12915c1 2684 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2685 fi
2686
b12915c1 2687 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2688 echo "$as_me:$LINENO: result: yes" >&5
2689echo "${ECHO_T}yes" >&6
422107f9 2690 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2691 echo "$as_me:$LINENO: result: no" >&5
2692echo "${ECHO_T}no" >&6
422107f9 2693 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2694 echo "$as_me:$LINENO: result: system version" >&5
2695echo "${ECHO_T}system version" >&6
4f14bcd8 2696 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2697 echo "$as_me:$LINENO: result: builtin version" >&5
2698echo "${ECHO_T}builtin version" >&6
422107f9 2699 else
e6cc62c6
VS
2700 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2701echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2702 { (exit 1); exit 1; }; }
10f2d63a 2703 fi
10f2d63a 2704
e6cc62c6
VS
2705
2706 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2707echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2708 no_cache=0
e6cc62c6
VS
2709
2710# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2711if test "${with_libjpeg+set}" = set; then
2712 withval="$with_libjpeg"
e6cc62c6 2713
10f2d63a 2714 if test "$withval" = yes; then
b12915c1 2715 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2716 elif test "$withval" = no; then
b12915c1 2717 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2718 elif test "$withval" = sys; then
2719 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2720 elif test "$withval" = builtin; then
2721 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2722 else
e6cc62c6
VS
2723 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2724echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2725 { (exit 1); exit 1; }; }
10f2d63a 2726 fi
e6cc62c6 2727
10f2d63a 2728else
e6cc62c6 2729
b12915c1 2730 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2731 if test "x$LINE" != x ; then
2732 eval "DEFAULT_$LINE"
2733 else
2734 no_cache=1
2735 fi
2736
b12915c1 2737 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2738
e6cc62c6 2739fi;
10f2d63a 2740
b12915c1 2741 eval "$ac_cv_use_libjpeg"
10f2d63a 2742 if test "$no_cache" != 1; then
b12915c1 2743 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2744 fi
2745
b12915c1 2746 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2747 echo "$as_me:$LINENO: result: yes" >&5
2748echo "${ECHO_T}yes" >&6
422107f9 2749 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2750 echo "$as_me:$LINENO: result: no" >&5
2751echo "${ECHO_T}no" >&6
422107f9 2752 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2753 echo "$as_me:$LINENO: result: system version" >&5
2754echo "${ECHO_T}system version" >&6
4f14bcd8 2755 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2756 echo "$as_me:$LINENO: result: builtin version" >&5
2757echo "${ECHO_T}builtin version" >&6
422107f9 2758 else
e6cc62c6
VS
2759 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2760echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2761 { (exit 1); exit 1; }; }
10f2d63a 2762 fi
10f2d63a 2763
e6cc62c6
VS
2764
2765 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2766echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2767 no_cache=0
e6cc62c6
VS
2768
2769# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2770if test "${with_libtiff+set}" = set; then
2771 withval="$with_libtiff"
e6cc62c6 2772
10f2d63a 2773 if test "$withval" = yes; then
b12915c1 2774 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2775 elif test "$withval" = no; then
b12915c1 2776 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2777 elif test "$withval" = sys; then
2778 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2779 elif test "$withval" = builtin; then
2780 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2781 else
e6cc62c6
VS
2782 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2783echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2784 { (exit 1); exit 1; }; }
10f2d63a 2785 fi
e6cc62c6 2786
10f2d63a 2787else
e6cc62c6 2788
b12915c1 2789 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2790 if test "x$LINE" != x ; then
2791 eval "DEFAULT_$LINE"
2792 else
2793 no_cache=1
2794 fi
2795
b12915c1 2796 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2797
e6cc62c6 2798fi;
10f2d63a 2799
b12915c1 2800 eval "$ac_cv_use_libtiff"
10f2d63a 2801 if test "$no_cache" != 1; then
b12915c1 2802 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2803 fi
2804
b12915c1 2805 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2806 echo "$as_me:$LINENO: result: yes" >&5
2807echo "${ECHO_T}yes" >&6
0dcf9893 2808 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2809 echo "$as_me:$LINENO: result: no" >&5
2810echo "${ECHO_T}no" >&6
0dcf9893 2811 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2812 echo "$as_me:$LINENO: result: system version" >&5
2813echo "${ECHO_T}system version" >&6
4f14bcd8 2814 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2815 echo "$as_me:$LINENO: result: builtin version" >&5
2816echo "${ECHO_T}builtin version" >&6
0dcf9893 2817 else
e6cc62c6
VS
2818 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2819echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2820 { (exit 1); exit 1; }; }
10f2d63a 2821 fi
10f2d63a 2822
e6cc62c6 2823
89fe663f
VZ
2824 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2825echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2826 no_cache=0
2827
2828# Check whether --with-libxpm or --without-libxpm was given.
2829if test "${with_libxpm+set}" = set; then
2830 withval="$with_libxpm"
2831
2832 if test "$withval" = yes; then
2833 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2834 elif test "$withval" = no; then
2835 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2836 elif test "$withval" = sys; then
2837 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2838 elif test "$withval" = builtin; then
2839 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2840 else
2841 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2842echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2843 { (exit 1); exit 1; }; }
2844 fi
2845
2846else
2847
2848 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2849 if test "x$LINE" != x ; then
2850 eval "DEFAULT_$LINE"
2851 else
2852 no_cache=1
2853 fi
2854
2855 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2856
2857fi;
2858
2859 eval "$ac_cv_use_libxpm"
2860 if test "$no_cache" != 1; then
2861 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2862 fi
2863
2864 if test "$wxUSE_LIBXPM" = yes; then
2865 echo "$as_me:$LINENO: result: yes" >&5
2866echo "${ECHO_T}yes" >&6
2867 elif test "$wxUSE_LIBXPM" = no; then
2868 echo "$as_me:$LINENO: result: no" >&5
2869echo "${ECHO_T}no" >&6
2870 elif test "$wxUSE_LIBXPM" = sys; then
2871 echo "$as_me:$LINENO: result: system version" >&5
2872echo "${ECHO_T}system version" >&6
2873 elif test "$wxUSE_LIBXPM" = builtin; then
2874 echo "$as_me:$LINENO: result: builtin version" >&5
2875echo "${ECHO_T}builtin version" >&6
2876 else
2877 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2878echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2879 { (exit 1); exit 1; }; }
2880 fi
2881
2882
3527f29c
VS
2883 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2884echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2885 no_cache=0
2886
2887# Check whether --with-libmspack or --without-libmspack was given.
2888if test "${with_libmspack+set}" = set; then
2889 withval="$with_libmspack"
2890
2891 if test "$withval" = yes; then
2892 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2893 else
2894 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2895 fi
2896
2897else
2898
2899 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2900 if test "x$LINE" != x ; then
2901 eval "DEFAULT_$LINE"
2902 else
2903 no_cache=1
2904 fi
2905
2906 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
2907
2908fi;
2909
2910 eval "$ac_cv_use_libmspack"
2911 if test "$no_cache" != 1; then
2912 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
2913 fi
2914
2915 if test "$wxUSE_LIBMSPACK" = yes; then
2916 echo "$as_me:$LINENO: result: yes" >&5
2917echo "${ECHO_T}yes" >&6
2918 else
2919 echo "$as_me:$LINENO: result: no" >&5
2920echo "${ECHO_T}no" >&6
2921 fi
2922
2923
e6cc62c6
VS
2924 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2925echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2926 no_cache=0
e6cc62c6
VS
2927
2928# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2929if test "${with_opengl+set}" = set; then
2930 withval="$with_opengl"
e6cc62c6 2931
10f2d63a 2932 if test "$withval" = yes; then
b12915c1 2933 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2934 else
b12915c1 2935 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2936 fi
e6cc62c6 2937
10f2d63a 2938else
e6cc62c6 2939
b12915c1 2940 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2941 if test "x$LINE" != x ; then
2942 eval "DEFAULT_$LINE"
2943 else
2944 no_cache=1
2945 fi
2946
b12915c1 2947 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2948
e6cc62c6 2949fi;
10f2d63a 2950
b12915c1 2951 eval "$ac_cv_use_opengl"
10f2d63a 2952 if test "$no_cache" != 1; then
b12915c1 2953 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2954 fi
2955
b12915c1 2956 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
2957 echo "$as_me:$LINENO: result: yes" >&5
2958echo "${ECHO_T}yes" >&6
10f2d63a 2959 else
e6cc62c6
VS
2960 echo "$as_me:$LINENO: result: no" >&5
2961echo "${ECHO_T}no" >&6
10f2d63a 2962 fi
e6cc62c6 2963
10f2d63a 2964
b12915c1
VZ
2965fi
2966
5c6fa7d2 2967
e6cc62c6
VS
2968 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2969echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 2970 no_cache=0
e6cc62c6
VS
2971
2972# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2973if test "${with_dmalloc+set}" = set; then
2974 withval="$with_dmalloc"
e6cc62c6 2975
c7a2bf27 2976 if test "$withval" = yes; then
b12915c1 2977 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2978 else
b12915c1 2979 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2980 fi
e6cc62c6 2981
c7a2bf27 2982else
e6cc62c6 2983
b12915c1 2984 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2985 if test "x$LINE" != x ; then
2986 eval "DEFAULT_$LINE"
2987 else
2988 no_cache=1
2989 fi
2990
b12915c1 2991 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2992
e6cc62c6 2993fi;
c7a2bf27 2994
b12915c1 2995 eval "$ac_cv_use_dmalloc"
c7a2bf27 2996 if test "$no_cache" != 1; then
b12915c1 2997 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
2998 fi
2999
b12915c1 3000 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
3001 echo "$as_me:$LINENO: result: yes" >&5
3002echo "${ECHO_T}yes" >&6
c7a2bf27 3003 else
e6cc62c6
VS
3004 echo "$as_me:$LINENO: result: no" >&5
3005echo "${ECHO_T}no" >&6
c7a2bf27 3006 fi
c7a2bf27 3007
e6cc62c6
VS
3008
3009 echo "$as_me:$LINENO: checking for --with-regex" >&5
3010echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 3011 no_cache=0
e6cc62c6
VS
3012
3013# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
3014if test "${with_regex+set}" = set; then
3015 withval="$with_regex"
e6cc62c6 3016
3e44f09d
VZ
3017 if test "$withval" = yes; then
3018 ac_cv_use_regex='wxUSE_REGEX=yes'
3019 elif test "$withval" = no; then
3020 ac_cv_use_regex='wxUSE_REGEX=no'
3021 elif test "$withval" = sys; then
3022 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
3023 elif test "$withval" = builtin; then
3024 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 3025 else
e6cc62c6
VS
3026 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3027echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3028 { (exit 1); exit 1; }; }
3e44f09d 3029 fi
e6cc62c6 3030
3e44f09d 3031else
e6cc62c6 3032
3e44f09d
VZ
3033 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3034 if test "x$LINE" != x ; then
3035 eval "DEFAULT_$LINE"
3036 else
3037 no_cache=1
3038 fi
3039
3040 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 3041
e6cc62c6 3042fi;
3e44f09d
VZ
3043
3044 eval "$ac_cv_use_regex"
3045 if test "$no_cache" != 1; then
3046 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3047 fi
3048
3049 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
3050 echo "$as_me:$LINENO: result: yes" >&5
3051echo "${ECHO_T}yes" >&6
3e44f09d 3052 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
3053 echo "$as_me:$LINENO: result: no" >&5
3054echo "${ECHO_T}no" >&6
3e44f09d 3055 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
3056 echo "$as_me:$LINENO: result: system version" >&5
3057echo "${ECHO_T}system version" >&6
4f14bcd8 3058 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
3059 echo "$as_me:$LINENO: result: builtin version" >&5
3060echo "${ECHO_T}builtin version" >&6
3e44f09d 3061 else
e6cc62c6
VS
3062 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3063echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3064 { (exit 1); exit 1; }; }
3e44f09d 3065 fi
3e44f09d 3066
e6cc62c6
VS
3067
3068 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3069echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 3070 no_cache=0
e6cc62c6
VS
3071
3072# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
3073if test "${with_zlib+set}" = set; then
3074 withval="$with_zlib"
e6cc62c6 3075
10f2d63a 3076 if test "$withval" = yes; then
b12915c1 3077 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 3078 elif test "$withval" = no; then
b12915c1 3079 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
3080 elif test "$withval" = sys; then
3081 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
3082 elif test "$withval" = builtin; then
3083 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 3084 else
e6cc62c6
VS
3085 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3086echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3087 { (exit 1); exit 1; }; }
10f2d63a 3088 fi
e6cc62c6 3089
10f2d63a 3090else
e6cc62c6 3091
b12915c1 3092 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
3093 if test "x$LINE" != x ; then
3094 eval "DEFAULT_$LINE"
3095 else
3096 no_cache=1
3097 fi
3098
b12915c1 3099 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 3100
e6cc62c6 3101fi;
10f2d63a 3102
b12915c1 3103 eval "$ac_cv_use_zlib"
10f2d63a 3104 if test "$no_cache" != 1; then
b12915c1 3105 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3106 fi
3107
b12915c1 3108 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
3109 echo "$as_me:$LINENO: result: yes" >&5
3110echo "${ECHO_T}yes" >&6
422107f9 3111 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
3112 echo "$as_me:$LINENO: result: no" >&5
3113echo "${ECHO_T}no" >&6
422107f9 3114 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
3115 echo "$as_me:$LINENO: result: system version" >&5
3116echo "${ECHO_T}system version" >&6
4f14bcd8 3117 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
3118 echo "$as_me:$LINENO: result: builtin version" >&5
3119echo "${ECHO_T}builtin version" >&6
422107f9 3120 else
e6cc62c6
VS
3121 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3122echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3123 { (exit 1); exit 1; }; }
10f2d63a 3124 fi
10f2d63a 3125
e6cc62c6
VS
3126
3127 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3128echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 3129 no_cache=0
e6cc62c6
VS
3130
3131# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
3132if test "${with_odbc+set}" = set; then
3133 withval="$with_odbc"
e6cc62c6 3134
10f2d63a
VZ
3135 if test "$withval" = yes; then
3136 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 3137 elif test "$withval" = no; then
10f2d63a 3138 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
3139 elif test "$withval" = sys; then
3140 ac_cv_use_odbc='wxUSE_ODBC=sys'
3141 elif test "$withval" = builtin; then
3142 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3143 else
e6cc62c6
VS
3144 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3145echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3146 { (exit 1); exit 1; }; }
10f2d63a 3147 fi
e6cc62c6 3148
10f2d63a 3149else
e6cc62c6 3150
10f2d63a
VZ
3151 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3152 if test "x$LINE" != x ; then
3153 eval "DEFAULT_$LINE"
3154 else
3155 no_cache=1
3156 fi
3157
3158 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 3159
e6cc62c6 3160fi;
10f2d63a
VZ
3161
3162 eval "$ac_cv_use_odbc"
3163 if test "$no_cache" != 1; then
3164 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3165 fi
3166
3167 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
3168 echo "$as_me:$LINENO: result: yes" >&5
3169echo "${ECHO_T}yes" >&6
8647bec6 3170 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3171 echo "$as_me:$LINENO: result: no" >&5
3172echo "${ECHO_T}no" >&6
8647bec6 3173 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3174 echo "$as_me:$LINENO: result: system version" >&5
3175echo "${ECHO_T}system version" >&6
8647bec6 3176 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3177 echo "$as_me:$LINENO: result: builtin version" >&5
3178echo "${ECHO_T}builtin version" >&6
8647bec6 3179 else
e6cc62c6
VS
3180 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3181echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3182 { (exit 1); exit 1; }; }
10f2d63a 3183 fi
e6cc62c6 3184
52127426 3185
672abd7a
VS
3186 echo "$as_me:$LINENO: checking for --with-expat" >&5
3187echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3188 no_cache=0
3189
3190# Check whether --with-expat or --without-expat was given.
3191if test "${with_expat+set}" = set; then
3192 withval="$with_expat"
3193
3194 if test "$withval" = yes; then
3195 ac_cv_use_expat='wxUSE_EXPAT=yes'
3196 elif test "$withval" = no; then
3197 ac_cv_use_expat='wxUSE_EXPAT=no'
3198 elif test "$withval" = sys; then
3199 ac_cv_use_expat='wxUSE_EXPAT=sys'
3200 elif test "$withval" = builtin; then
3201 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3202 else
3203 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3204echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3205 { (exit 1); exit 1; }; }
3206 fi
3207
3208else
3209
3210 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3211 if test "x$LINE" != x ; then
3212 eval "DEFAULT_$LINE"
3213 else
3214 no_cache=1
3215 fi
3216
3217 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3218
3219fi;
3220
3221 eval "$ac_cv_use_expat"
3222 if test "$no_cache" != 1; then
3223 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3224 fi
3225
3226 if test "$wxUSE_EXPAT" = yes; then
3227 echo "$as_me:$LINENO: result: yes" >&5
3228echo "${ECHO_T}yes" >&6
3229 elif test "$wxUSE_EXPAT" = no; then
3230 echo "$as_me:$LINENO: result: no" >&5
3231echo "${ECHO_T}no" >&6
3232 elif test "$wxUSE_EXPAT" = sys; then
3233 echo "$as_me:$LINENO: result: system version" >&5
3234echo "${ECHO_T}system version" >&6
3235 elif test "$wxUSE_EXPAT" = builtin; then
3236 echo "$as_me:$LINENO: result: builtin version" >&5
3237echo "${ECHO_T}builtin version" >&6
3238 else
3239 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3240echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3241 { (exit 1); exit 1; }; }
3242 fi
3243
3244
8284b0c5
MB
3245
3246
5005acfe 3247 enablestring=
e6cc62c6
VS
3248 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3249echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3250 no_cache=0
3251 # Check whether --enable-shared or --disable-shared was given.
3252if test "${enable_shared+set}" = set; then
3253 enableval="$enable_shared"
e6cc62c6 3254
10f2d63a
VZ
3255 if test "$enableval" = yes; then
3256 ac_cv_use_shared='wxUSE_SHARED=yes'
3257 else
3258 ac_cv_use_shared='wxUSE_SHARED=no'
3259 fi
e6cc62c6 3260
10f2d63a 3261else
e6cc62c6 3262
10f2d63a
VZ
3263 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3264 if test "x$LINE" != x ; then
3265 eval "DEFAULT_$LINE"
3266 else
3267 no_cache=1
3268 fi
3269
3270 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3271
e6cc62c6 3272fi;
10f2d63a
VZ
3273
3274 eval "$ac_cv_use_shared"
3275 if test "$no_cache" != 1; then
3276 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3277 fi
3278
3279 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3280 echo "$as_me:$LINENO: result: yes" >&5
3281echo "${ECHO_T}yes" >&6
10f2d63a 3282 else
e6cc62c6
VS
3283 echo "$as_me:$LINENO: result: no" >&5
3284echo "${ECHO_T}no" >&6
10f2d63a 3285 fi
e6cc62c6 3286
10f2d63a 3287
5005acfe 3288 enablestring=
e6cc62c6
VS
3289 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3290echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3291 no_cache=0
3292 # Check whether --enable-optimise or --disable-optimise was given.
3293if test "${enable_optimise+set}" = set; then
3294 enableval="$enable_optimise"
e6cc62c6 3295
10f2d63a
VZ
3296 if test "$enableval" = yes; then
3297 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3298 else
3299 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3300 fi
e6cc62c6 3301
10f2d63a 3302else
e6cc62c6 3303
10f2d63a
VZ
3304 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3305 if test "x$LINE" != x ; then
3306 eval "DEFAULT_$LINE"
3307 else
3308 no_cache=1
3309 fi
3310
3311 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3312
e6cc62c6 3313fi;
10f2d63a
VZ
3314
3315 eval "$ac_cv_use_optimise"
3316 if test "$no_cache" != 1; then
3317 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3318 fi
3319
3320 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3321 echo "$as_me:$LINENO: result: yes" >&5
3322echo "${ECHO_T}yes" >&6
10f2d63a 3323 else
e6cc62c6
VS
3324 echo "$as_me:$LINENO: result: no" >&5
3325echo "${ECHO_T}no" >&6
10f2d63a 3326 fi
e6cc62c6 3327
10f2d63a 3328
5005acfe 3329 enablestring=
e6cc62c6
VS
3330 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3331echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3332 no_cache=0
3333 # Check whether --enable-debug or --disable-debug was given.
3334if test "${enable_debug+set}" = set; then
3335 enableval="$enable_debug"
e6cc62c6 3336
10f2d63a
VZ
3337 if test "$enableval" = yes; then
3338 ac_cv_use_debug='wxUSE_DEBUG=yes'
3339 else
3340 ac_cv_use_debug='wxUSE_DEBUG=no'
3341 fi
e6cc62c6 3342
10f2d63a 3343else
e6cc62c6 3344
10f2d63a
VZ
3345 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3346 if test "x$LINE" != x ; then
3347 eval "DEFAULT_$LINE"
3348 else
3349 no_cache=1
3350 fi
3351
3352 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3353
e6cc62c6 3354fi;
10f2d63a
VZ
3355
3356 eval "$ac_cv_use_debug"
3357 if test "$no_cache" != 1; then
3358 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3359 fi
3360
3361 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3362 echo "$as_me:$LINENO: result: yes" >&5
3363echo "${ECHO_T}yes" >&6
10f2d63a 3364 else
e6cc62c6
VS
3365 echo "$as_me:$LINENO: result: no" >&5
3366echo "${ECHO_T}no" >&6
10f2d63a 3367 fi
e6cc62c6 3368
52127426 3369
df5168c4
MB
3370 enablestring=
3371 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3372echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3373 no_cache=0
3374 # Check whether --enable-stl or --disable-stl was given.
3375if test "${enable_stl+set}" = set; then
3376 enableval="$enable_stl"
3377
3378 if test "$enableval" = yes; then
3379 ac_cv_use_stl='wxUSE_STL=yes'
3380 else
3381 ac_cv_use_stl='wxUSE_STL=no'
3382 fi
3383
3384else
3385
3386 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3387 if test "x$LINE" != x ; then
3388 eval "DEFAULT_$LINE"
3389 else
3390 no_cache=1
3391 fi
3392
3393 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3394
3395fi;
3396
3397 eval "$ac_cv_use_stl"
3398 if test "$no_cache" != 1; then
3399 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3400 fi
3401
3402 if test "$wxUSE_STL" = yes; then
3403 echo "$as_me:$LINENO: result: yes" >&5
3404echo "${ECHO_T}yes" >&6
3405 else
3406 echo "$as_me:$LINENO: result: no" >&5
3407echo "${ECHO_T}no" >&6
3408 fi
3409
3410
10f2d63a
VZ
3411if test "$wxUSE_DEBUG" = "yes"; then
3412 DEFAULT_wxUSE_DEBUG_FLAG=yes
3413 DEFAULT_wxUSE_DEBUG_INFO=yes
6c67131a 3414 BUILD=debug
10f2d63a
VZ
3415elif test "$wxUSE_DEBUG" = "no"; then
3416 DEFAULT_wxUSE_DEBUG_FLAG=no
3417 DEFAULT_wxUSE_DEBUG_INFO=no
6c67131a 3418 BUILD=release
10f2d63a
VZ
3419fi
3420
8284b0c5 3421
5005acfe 3422 enablestring=
e6cc62c6
VS
3423 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3424echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3425 no_cache=0
3426 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3427if test "${enable_debug_flag+set}" = set; then
3428 enableval="$enable_debug_flag"
e6cc62c6 3429
10f2d63a
VZ
3430 if test "$enableval" = yes; then
3431 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3432 else
3433 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3434 fi
e6cc62c6 3435
10f2d63a 3436else
e6cc62c6 3437
10f2d63a
VZ
3438 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3439 if test "x$LINE" != x ; then
3440 eval "DEFAULT_$LINE"
3441 else
3442 no_cache=1
3443 fi
3444
3445 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3446
e6cc62c6 3447fi;
10f2d63a
VZ
3448
3449 eval "$ac_cv_use_debug_flag"
3450 if test "$no_cache" != 1; then
3451 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3452 fi
3453
3454 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3455 echo "$as_me:$LINENO: result: yes" >&5
3456echo "${ECHO_T}yes" >&6
10f2d63a 3457 else
e6cc62c6
VS
3458 echo "$as_me:$LINENO: result: no" >&5
3459echo "${ECHO_T}no" >&6
10f2d63a 3460 fi
e6cc62c6 3461
10f2d63a 3462
5005acfe 3463 enablestring=
e6cc62c6
VS
3464 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3465echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3466 no_cache=0
3467 # Check whether --enable-debug_info or --disable-debug_info was given.
3468if test "${enable_debug_info+set}" = set; then
3469 enableval="$enable_debug_info"
e6cc62c6 3470
10f2d63a
VZ
3471 if test "$enableval" = yes; then
3472 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3473 else
3474 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3475 fi
e6cc62c6 3476
10f2d63a 3477else
e6cc62c6 3478
10f2d63a
VZ
3479 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3480 if test "x$LINE" != x ; then
3481 eval "DEFAULT_$LINE"
3482 else
3483 no_cache=1
3484 fi
3485
3486 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3487
e6cc62c6 3488fi;
10f2d63a
VZ
3489
3490 eval "$ac_cv_use_debug_info"
3491 if test "$no_cache" != 1; then
3492 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3493 fi
3494
3495 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3496 echo "$as_me:$LINENO: result: yes" >&5
3497echo "${ECHO_T}yes" >&6
10f2d63a 3498 else
e6cc62c6
VS
3499 echo "$as_me:$LINENO: result: no" >&5
3500echo "${ECHO_T}no" >&6
10f2d63a 3501 fi
e6cc62c6 3502
10f2d63a 3503
5005acfe 3504 enablestring=
e6cc62c6
VS
3505 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3506echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3507 no_cache=0
3508 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3509if test "${enable_debug_gdb+set}" = set; then
3510 enableval="$enable_debug_gdb"
e6cc62c6 3511
10f2d63a
VZ
3512 if test "$enableval" = yes; then
3513 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3514 else
3515 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3516 fi
e6cc62c6 3517
10f2d63a 3518else
e6cc62c6 3519
10f2d63a
VZ
3520 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3521 if test "x$LINE" != x ; then
3522 eval "DEFAULT_$LINE"
3523 else
3524 no_cache=1
3525 fi
3526
3527 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3528
e6cc62c6 3529fi;
10f2d63a
VZ
3530
3531 eval "$ac_cv_use_debug_gdb"
3532 if test "$no_cache" != 1; then
3533 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3534 fi
3535
3536 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3537 echo "$as_me:$LINENO: result: yes" >&5
3538echo "${ECHO_T}yes" >&6
10f2d63a 3539 else
e6cc62c6
VS
3540 echo "$as_me:$LINENO: result: no" >&5
3541echo "${ECHO_T}no" >&6
10f2d63a 3542 fi
e6cc62c6 3543
10f2d63a 3544
5005acfe 3545 enablestring=
e6cc62c6
VS
3546 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3547echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3548 no_cache=0
3549 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3550if test "${enable_debug_cntxt+set}" = set; then
3551 enableval="$enable_debug_cntxt"
e6cc62c6 3552
10f2d63a
VZ
3553 if test "$enableval" = yes; then
3554 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3555 else
3556 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3557 fi
e6cc62c6 3558
10f2d63a 3559else
e6cc62c6 3560
10f2d63a
VZ
3561 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3562 if test "x$LINE" != x ; then
3563 eval "DEFAULT_$LINE"
3564 else
3565 no_cache=1
3566 fi
3567
3568 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3569
e6cc62c6 3570fi;
10f2d63a
VZ
3571
3572 eval "$ac_cv_use_debug_cntxt"
3573 if test "$no_cache" != 1; then
3574 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3575 fi
3576
3577 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3578 echo "$as_me:$LINENO: result: yes" >&5
3579echo "${ECHO_T}yes" >&6
10f2d63a 3580 else
e6cc62c6
VS
3581 echo "$as_me:$LINENO: result: no" >&5
3582echo "${ECHO_T}no" >&6
10f2d63a 3583 fi
e6cc62c6 3584
10f2d63a 3585
5005acfe 3586 enablestring=
e6cc62c6
VS
3587 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3588echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3589 no_cache=0
3590 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3591if test "${enable_mem_tracing+set}" = set; then
3592 enableval="$enable_mem_tracing"
e6cc62c6 3593
10f2d63a
VZ
3594 if test "$enableval" = yes; then
3595 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3596 else
3597 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3598 fi
e6cc62c6 3599
10f2d63a 3600else
e6cc62c6 3601
10f2d63a
VZ
3602 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3603 if test "x$LINE" != x ; then
3604 eval "DEFAULT_$LINE"
3605 else
3606 no_cache=1
3607 fi
3608
3609 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3610
e6cc62c6 3611fi;
10f2d63a
VZ
3612
3613 eval "$ac_cv_use_mem_tracing"
3614 if test "$no_cache" != 1; then
3615 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3616 fi
3617
3618 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3619 echo "$as_me:$LINENO: result: yes" >&5
3620echo "${ECHO_T}yes" >&6
10f2d63a 3621 else
e6cc62c6
VS
3622 echo "$as_me:$LINENO: result: no" >&5
3623echo "${ECHO_T}no" >&6
10f2d63a 3624 fi
e6cc62c6 3625
10f2d63a 3626
5005acfe 3627 enablestring=
e6cc62c6
VS
3628 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3629echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3630 no_cache=0
3631 # Check whether --enable-profile or --disable-profile was given.
3632if test "${enable_profile+set}" = set; then
3633 enableval="$enable_profile"
e6cc62c6 3634
10f2d63a
VZ
3635 if test "$enableval" = yes; then
3636 ac_cv_use_profile='wxUSE_PROFILE=yes'
3637 else
3638 ac_cv_use_profile='wxUSE_PROFILE=no'
3639 fi
e6cc62c6 3640
10f2d63a 3641else
e6cc62c6 3642
10f2d63a
VZ
3643 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3644 if test "x$LINE" != x ; then
3645 eval "DEFAULT_$LINE"
3646 else
3647 no_cache=1
3648 fi
3649
3650 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3651
e6cc62c6 3652fi;
10f2d63a
VZ
3653
3654 eval "$ac_cv_use_profile"
3655 if test "$no_cache" != 1; then
3656 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3657 fi
3658
3659 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3660 echo "$as_me:$LINENO: result: yes" >&5
3661echo "${ECHO_T}yes" >&6
10f2d63a 3662 else
e6cc62c6
VS
3663 echo "$as_me:$LINENO: result: no" >&5
3664echo "${ECHO_T}no" >&6
10f2d63a 3665 fi
e6cc62c6 3666
10f2d63a 3667
5005acfe 3668 enablestring=
e6cc62c6
VS
3669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3670echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3671 no_cache=0
3672 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3673if test "${enable_no_rtti+set}" = set; then
3674 enableval="$enable_no_rtti"
e6cc62c6 3675
10f2d63a
VZ
3676 if test "$enableval" = yes; then
3677 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3678 else
3679 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3680 fi
e6cc62c6 3681
10f2d63a 3682else
e6cc62c6 3683
10f2d63a
VZ
3684 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3685 if test "x$LINE" != x ; then
3686 eval "DEFAULT_$LINE"
3687 else
3688 no_cache=1
3689 fi
3690
3691 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3692
e6cc62c6 3693fi;
10f2d63a
VZ
3694
3695 eval "$ac_cv_use_no_rtti"
3696 if test "$no_cache" != 1; then
3697 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3698 fi
3699
3700 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3701 echo "$as_me:$LINENO: result: yes" >&5
3702echo "${ECHO_T}yes" >&6
10f2d63a 3703 else
e6cc62c6
VS
3704 echo "$as_me:$LINENO: result: no" >&5
3705echo "${ECHO_T}no" >&6
10f2d63a 3706 fi
e6cc62c6 3707
10f2d63a 3708
5005acfe 3709 enablestring=
e6cc62c6
VS
3710 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3711echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3712 no_cache=0
3713 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3714if test "${enable_no_exceptions+set}" = set; then
3715 enableval="$enable_no_exceptions"
e6cc62c6 3716
10f2d63a
VZ
3717 if test "$enableval" = yes; then
3718 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3719 else
3720 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3721 fi
e6cc62c6 3722
10f2d63a 3723else
e6cc62c6 3724
10f2d63a
VZ
3725 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3726 if test "x$LINE" != x ; then
3727 eval "DEFAULT_$LINE"
3728 else
3729 no_cache=1
3730 fi
3731
3732 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3733
e6cc62c6 3734fi;
10f2d63a
VZ
3735
3736 eval "$ac_cv_use_no_exceptions"
3737 if test "$no_cache" != 1; then
3738 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3739 fi
3740
3741 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3742 echo "$as_me:$LINENO: result: yes" >&5
3743echo "${ECHO_T}yes" >&6
10f2d63a 3744 else
e6cc62c6
VS
3745 echo "$as_me:$LINENO: result: no" >&5
3746echo "${ECHO_T}no" >&6
10f2d63a 3747 fi
e6cc62c6 3748
10f2d63a 3749
5005acfe 3750 enablestring=
e6cc62c6
VS
3751 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3752echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3753 no_cache=0
3754 # Check whether --enable-permissive or --disable-permissive was given.
3755if test "${enable_permissive+set}" = set; then
3756 enableval="$enable_permissive"
e6cc62c6 3757
10f2d63a
VZ
3758 if test "$enableval" = yes; then
3759 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3760 else
3761 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3762 fi
e6cc62c6 3763
10f2d63a 3764else
e6cc62c6 3765
10f2d63a
VZ
3766 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3767 if test "x$LINE" != x ; then
3768 eval "DEFAULT_$LINE"
3769 else
3770 no_cache=1
3771 fi
3772
3773 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3774
e6cc62c6 3775fi;
10f2d63a
VZ
3776
3777 eval "$ac_cv_use_permissive"
3778 if test "$no_cache" != 1; then
3779 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3780 fi
3781
3782 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3783 echo "$as_me:$LINENO: result: yes" >&5
3784echo "${ECHO_T}yes" >&6
10f2d63a 3785 else
e6cc62c6
VS
3786 echo "$as_me:$LINENO: result: no" >&5
3787echo "${ECHO_T}no" >&6
10f2d63a 3788 fi
e6cc62c6 3789
10f2d63a 3790
5005acfe 3791 enablestring=
e6cc62c6
VS
3792 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3793echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3794 no_cache=0
3795 # Check whether --enable-no_deps or --disable-no_deps was given.
3796if test "${enable_no_deps+set}" = set; then
3797 enableval="$enable_no_deps"
e6cc62c6 3798
10f2d63a
VZ
3799 if test "$enableval" = yes; then
3800 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3801 else
3802 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3803 fi
e6cc62c6 3804
10f2d63a 3805else
e6cc62c6 3806
10f2d63a
VZ
3807 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3808 if test "x$LINE" != x ; then
3809 eval "DEFAULT_$LINE"
3810 else
3811 no_cache=1
3812 fi
3813
3814 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3815
e6cc62c6 3816fi;
10f2d63a
VZ
3817
3818 eval "$ac_cv_use_no_deps"
3819 if test "$no_cache" != 1; then
3820 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3821 fi
3822
3823 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3824 echo "$as_me:$LINENO: result: yes" >&5
3825echo "${ECHO_T}yes" >&6
10f2d63a 3826 else
e6cc62c6
VS
3827 echo "$as_me:$LINENO: result: no" >&5
3828echo "${ECHO_T}no" >&6
10f2d63a 3829 fi
e6cc62c6 3830
52127426 3831
8284b0c5 3832
65d8ef1e 3833 enablestring=
e6cc62c6
VS
3834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3835echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3836 no_cache=0
3837 # Check whether --enable-compat22 or --disable-compat22 was given.
3838if test "${enable_compat22+set}" = set; then
3839 enableval="$enable_compat22"
e6cc62c6 3840
54276ccf
VZ
3841 if test "$enableval" = yes; then
3842 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3843 else
3844 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3845 fi
e6cc62c6 3846
54276ccf 3847else
e6cc62c6 3848
54276ccf
VZ
3849 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3850 if test "x$LINE" != x ; then
3851 eval "DEFAULT_$LINE"
3852 else
3853 no_cache=1
3854 fi
3855
3856 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3857
e6cc62c6 3858fi;
54276ccf
VZ
3859
3860 eval "$ac_cv_use_compat22"
3861 if test "$no_cache" != 1; then
3862 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3863 fi
3864
3865 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3866 echo "$as_me:$LINENO: result: yes" >&5
3867echo "${ECHO_T}yes" >&6
54276ccf 3868 else
e6cc62c6
VS
3869 echo "$as_me:$LINENO: result: no" >&5
3870echo "${ECHO_T}no" >&6
54276ccf 3871 fi
e6cc62c6 3872
54276ccf 3873
65d8ef1e 3874 enablestring=disable
e6cc62c6
VS
3875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3876echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3877 no_cache=0
3878 # Check whether --enable-compat24 or --disable-compat24 was given.
3879if test "${enable_compat24+set}" = set; then
3880 enableval="$enable_compat24"
e6cc62c6 3881
65d8ef1e
VS
3882 if test "$enableval" = yes; then
3883 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3884 else
3885 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3886 fi
e6cc62c6 3887
65d8ef1e 3888else
e6cc62c6 3889
65d8ef1e
VS
3890 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3891 if test "x$LINE" != x ; then
3892 eval "DEFAULT_$LINE"
3893 else
3894 no_cache=1
3895 fi
3896
3897 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3898
e6cc62c6 3899fi;
65d8ef1e
VS
3900
3901 eval "$ac_cv_use_compat24"
3902 if test "$no_cache" != 1; then
3903 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3904 fi
3905
3906 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3907 echo "$as_me:$LINENO: result: yes" >&5
3908echo "${ECHO_T}yes" >&6
65d8ef1e 3909 else
e6cc62c6
VS
3910 echo "$as_me:$LINENO: result: no" >&5
3911echo "${ECHO_T}no" >&6
65d8ef1e 3912 fi
e6cc62c6 3913
65d8ef1e 3914
3bd8fb5f
RD
3915# Check whether --enable-rpath or --disable-rpath was given.
3916if test "${enable_rpath+set}" = set; then
3917 enableval="$enable_rpath"
3918 wxRPATH_DIR="$enableval"
e6cc62c6 3919fi;
3bd8fb5f
RD
3920
3921if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3922 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3923fi
3924
8284b0c5
MB
3925
3926
3927
5005acfe 3928 enablestring=
e6cc62c6
VS
3929 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3930echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3931 no_cache=0
3932 # Check whether --enable-intl or --disable-intl was given.
3933if test "${enable_intl+set}" = set; then
3934 enableval="$enable_intl"
e6cc62c6 3935
10f2d63a
VZ
3936 if test "$enableval" = yes; then
3937 ac_cv_use_intl='wxUSE_INTL=yes'
3938 else
3939 ac_cv_use_intl='wxUSE_INTL=no'
3940 fi
e6cc62c6 3941
10f2d63a 3942else
e6cc62c6 3943
10f2d63a
VZ
3944 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3945 if test "x$LINE" != x ; then
3946 eval "DEFAULT_$LINE"
3947 else
3948 no_cache=1
3949 fi
3950
3951 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3952
e6cc62c6 3953fi;
10f2d63a
VZ
3954
3955 eval "$ac_cv_use_intl"
3956 if test "$no_cache" != 1; then
3957 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3958 fi
3959
3960 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
3961 echo "$as_me:$LINENO: result: yes" >&5
3962echo "${ECHO_T}yes" >&6
10f2d63a 3963 else
e6cc62c6
VS
3964 echo "$as_me:$LINENO: result: no" >&5
3965echo "${ECHO_T}no" >&6
10f2d63a 3966 fi
e6cc62c6 3967
10f2d63a 3968
5005acfe 3969 enablestring=
e6cc62c6
VS
3970 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3971echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
3972 no_cache=0
3973 # Check whether --enable-config or --disable-config was given.
3974if test "${enable_config+set}" = set; then
3975 enableval="$enable_config"
e6cc62c6 3976
10f2d63a
VZ
3977 if test "$enableval" = yes; then
3978 ac_cv_use_config='wxUSE_CONFIG=yes'
3979 else
3980 ac_cv_use_config='wxUSE_CONFIG=no'
3981 fi
e6cc62c6 3982
10f2d63a 3983else
e6cc62c6 3984
10f2d63a
VZ
3985 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3986 if test "x$LINE" != x ; then
3987 eval "DEFAULT_$LINE"
3988 else
3989 no_cache=1
3990 fi
3991
3992 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3993
e6cc62c6 3994fi;
10f2d63a
VZ
3995
3996 eval "$ac_cv_use_config"
3997 if test "$no_cache" != 1; then
3998 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3999 fi
4000
4001 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
4002 echo "$as_me:$LINENO: result: yes" >&5
4003echo "${ECHO_T}yes" >&6
10f2d63a 4004 else
e6cc62c6
VS
4005 echo "$as_me:$LINENO: result: no" >&5
4006echo "${ECHO_T}no" >&6
10f2d63a 4007 fi
e6cc62c6 4008
52127426 4009
8284b0c5 4010
5005acfe 4011 enablestring=
e6cc62c6
VS
4012 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4013echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
4014 no_cache=0
4015 # Check whether --enable-protocols or --disable-protocols was given.
4016if test "${enable_protocols+set}" = set; then
4017 enableval="$enable_protocols"
e6cc62c6 4018
a1622950
VZ
4019 if test "$enableval" = yes; then
4020 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4021 else
4022 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4023 fi
e6cc62c6 4024
a1622950 4025else
e6cc62c6 4026
a1622950
VZ
4027 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4028 if test "x$LINE" != x ; then
4029 eval "DEFAULT_$LINE"
4030 else
4031 no_cache=1
4032 fi
4033
4034 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 4035
e6cc62c6 4036fi;
a1622950
VZ
4037
4038 eval "$ac_cv_use_protocols"
4039 if test "$no_cache" != 1; then
4040 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4041 fi
4042
4043 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
4044 echo "$as_me:$LINENO: result: yes" >&5
4045echo "${ECHO_T}yes" >&6
a1622950 4046 else
e6cc62c6
VS
4047 echo "$as_me:$LINENO: result: no" >&5
4048echo "${ECHO_T}no" >&6
a1622950 4049 fi
e6cc62c6 4050
a1622950 4051
5005acfe 4052 enablestring=
e6cc62c6
VS
4053 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4054echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
4055 no_cache=0
4056 # Check whether --enable-ftp or --disable-ftp was given.
4057if test "${enable_ftp+set}" = set; then
4058 enableval="$enable_ftp"
e6cc62c6 4059
a1622950
VZ
4060 if test "$enableval" = yes; then
4061 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4062 else
4063 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4064 fi
e6cc62c6 4065
a1622950 4066else
e6cc62c6 4067
a1622950
VZ
4068 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4069 if test "x$LINE" != x ; then
4070 eval "DEFAULT_$LINE"
4071 else
4072 no_cache=1
4073 fi
4074
4075 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 4076
e6cc62c6 4077fi;
a1622950
VZ
4078
4079 eval "$ac_cv_use_ftp"
4080 if test "$no_cache" != 1; then
4081 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4082 fi
4083
4084 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
4085 echo "$as_me:$LINENO: result: yes" >&5
4086echo "${ECHO_T}yes" >&6
a1622950 4087 else
e6cc62c6
VS
4088 echo "$as_me:$LINENO: result: no" >&5
4089echo "${ECHO_T}no" >&6
a1622950 4090 fi
e6cc62c6 4091
a1622950 4092
5005acfe 4093 enablestring=
e6cc62c6
VS
4094 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4095echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
4096 no_cache=0
4097 # Check whether --enable-http or --disable-http was given.
4098if test "${enable_http+set}" = set; then
4099 enableval="$enable_http"
e6cc62c6 4100
a1622950
VZ
4101 if test "$enableval" = yes; then
4102 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4103 else
4104 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4105 fi
e6cc62c6 4106
a1622950 4107else
e6cc62c6 4108
a1622950
VZ
4109 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4110 if test "x$LINE" != x ; then
4111 eval "DEFAULT_$LINE"
4112 else
4113 no_cache=1
4114 fi
4115
4116 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 4117
e6cc62c6 4118fi;
a1622950
VZ
4119
4120 eval "$ac_cv_use_http"
4121 if test "$no_cache" != 1; then
4122 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4123 fi
4124
4125 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
4126 echo "$as_me:$LINENO: result: yes" >&5
4127echo "${ECHO_T}yes" >&6
a1622950 4128 else
e6cc62c6
VS
4129 echo "$as_me:$LINENO: result: no" >&5
4130echo "${ECHO_T}no" >&6
a1622950 4131 fi
e6cc62c6 4132
a1622950 4133
5005acfe 4134 enablestring=
e6cc62c6
VS
4135 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4136echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
4137 no_cache=0
4138 # Check whether --enable-fileproto or --disable-fileproto was given.
4139if test "${enable_fileproto+set}" = set; then
4140 enableval="$enable_fileproto"
e6cc62c6 4141
a1622950
VZ
4142 if test "$enableval" = yes; then
4143 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4144 else
4145 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4146 fi
e6cc62c6 4147
a1622950 4148else
e6cc62c6 4149
a1622950
VZ
4150 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4151 if test "x$LINE" != x ; then
4152 eval "DEFAULT_$LINE"
4153 else
4154 no_cache=1
4155 fi
4156
4157 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4158
e6cc62c6 4159fi;
a1622950
VZ
4160
4161 eval "$ac_cv_use_fileproto"
4162 if test "$no_cache" != 1; then
4163 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4164 fi
4165
4166 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4167 echo "$as_me:$LINENO: result: yes" >&5
4168echo "${ECHO_T}yes" >&6
a1622950 4169 else
e6cc62c6
VS
4170 echo "$as_me:$LINENO: result: no" >&5
4171echo "${ECHO_T}no" >&6
a1622950 4172 fi
e6cc62c6 4173
a1622950 4174
5005acfe 4175 enablestring=
e6cc62c6
VS
4176 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4177echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4178 no_cache=0
4179 # Check whether --enable-sockets or --disable-sockets was given.
4180if test "${enable_sockets+set}" = set; then
4181 enableval="$enable_sockets"
e6cc62c6 4182
10f2d63a
VZ
4183 if test "$enableval" = yes; then
4184 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4185 else
4186 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4187 fi
e6cc62c6 4188
10f2d63a 4189else
e6cc62c6 4190
10f2d63a
VZ
4191 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4192 if test "x$LINE" != x ; then
4193 eval "DEFAULT_$LINE"
4194 else
4195 no_cache=1
4196 fi
4197
4198 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4199
e6cc62c6 4200fi;
10f2d63a
VZ
4201
4202 eval "$ac_cv_use_sockets"
4203 if test "$no_cache" != 1; then
4204 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4205 fi
4206
4207 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4208 echo "$as_me:$LINENO: result: yes" >&5
4209echo "${ECHO_T}yes" >&6
10f2d63a 4210 else
e6cc62c6
VS
4211 echo "$as_me:$LINENO: result: no" >&5
4212echo "${ECHO_T}no" >&6
10f2d63a 4213 fi
e6cc62c6 4214
8284b0c5 4215
5005acfe 4216 enablestring=
e6cc62c6
VS
4217 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4218echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4219 no_cache=0
4220 # Check whether --enable-ole or --disable-ole was given.
4221if test "${enable_ole+set}" = set; then
4222 enableval="$enable_ole"
e6cc62c6 4223
3bce6687
JS
4224 if test "$enableval" = yes; then
4225 ac_cv_use_ole='wxUSE_OLE=yes'
4226 else
4227 ac_cv_use_ole='wxUSE_OLE=no'
4228 fi
e6cc62c6 4229
3bce6687 4230else
e6cc62c6 4231
3bce6687
JS
4232 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4233 if test "x$LINE" != x ; then
4234 eval "DEFAULT_$LINE"
4235 else
4236 no_cache=1
4237 fi
4238
4239 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4240
e6cc62c6 4241fi;
3bce6687
JS
4242
4243 eval "$ac_cv_use_ole"
4244 if test "$no_cache" != 1; then
4245 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4246 fi
4247
4248 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4249 echo "$as_me:$LINENO: result: yes" >&5
4250echo "${ECHO_T}yes" >&6
3bce6687 4251 else
e6cc62c6
VS
4252 echo "$as_me:$LINENO: result: no" >&5
4253echo "${ECHO_T}no" >&6
3bce6687 4254 fi
e6cc62c6 4255
3bce6687 4256
5005acfe 4257 enablestring=
e6cc62c6
VS
4258 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4259echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4260 no_cache=0
4261 # Check whether --enable-dataobj or --disable-dataobj was given.
4262if test "${enable_dataobj+set}" = set; then
4263 enableval="$enable_dataobj"
e6cc62c6 4264
3bce6687
JS
4265 if test "$enableval" = yes; then
4266 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4267 else
4268 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4269 fi
e6cc62c6 4270
3bce6687 4271else
e6cc62c6 4272
3bce6687
JS
4273 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4274 if test "x$LINE" != x ; then
4275 eval "DEFAULT_$LINE"
4276 else
4277 no_cache=1
4278 fi
4279
4280 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4281
e6cc62c6 4282fi;
3bce6687
JS
4283
4284 eval "$ac_cv_use_dataobj"
4285 if test "$no_cache" != 1; then
4286 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4287 fi
4288
4289 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4290 echo "$as_me:$LINENO: result: yes" >&5
4291echo "${ECHO_T}yes" >&6
3bce6687 4292 else
e6cc62c6
VS
4293 echo "$as_me:$LINENO: result: no" >&5
4294echo "${ECHO_T}no" >&6
3bce6687 4295 fi
e6cc62c6 4296
3bce6687 4297
52127426 4298
5005acfe 4299 enablestring=
e6cc62c6
VS
4300 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4301echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4302 no_cache=0
eb4efbdc
VZ
4303 # Check whether --enable-ipc or --disable-ipc was given.
4304if test "${enable_ipc+set}" = set; then
4305 enableval="$enable_ipc"
e6cc62c6 4306
10f2d63a 4307 if test "$enableval" = yes; then
eb4efbdc 4308 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4309 else
eb4efbdc 4310 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4311 fi
e6cc62c6 4312
10f2d63a 4313else
e6cc62c6 4314
eb4efbdc 4315 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4316 if test "x$LINE" != x ; then
4317 eval "DEFAULT_$LINE"
4318 else
4319 no_cache=1
4320 fi
4321
eb4efbdc 4322 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4323
e6cc62c6 4324fi;
10f2d63a 4325
eb4efbdc 4326 eval "$ac_cv_use_ipc"
10f2d63a 4327 if test "$no_cache" != 1; then
eb4efbdc 4328 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4329 fi
4330
eb4efbdc 4331 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4332 echo "$as_me:$LINENO: result: yes" >&5
4333echo "${ECHO_T}yes" >&6
10f2d63a 4334 else
e6cc62c6
VS
4335 echo "$as_me:$LINENO: result: no" >&5
4336echo "${ECHO_T}no" >&6
10f2d63a 4337 fi
e6cc62c6 4338
52127426 4339
8284b0c5 4340
5005acfe 4341 enablestring=
e46d2a18
VS
4342 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4343echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a 4344 no_cache=0
e46d2a18
VS
4345 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4346if test "${enable_apple_ieee+set}" = set; then
4347 enableval="$enable_apple_ieee"
e6cc62c6 4348
10f2d63a 4349 if test "$enableval" = yes; then
e46d2a18 4350 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
10f2d63a 4351 else
e46d2a18 4352 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
10f2d63a 4353 fi
e6cc62c6 4354
10f2d63a 4355else
e6cc62c6 4356
e46d2a18 4357 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
10f2d63a
VZ
4358 if test "x$LINE" != x ; then
4359 eval "DEFAULT_$LINE"
4360 else
4361 no_cache=1
4362 fi
4363
e46d2a18 4364 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4365
e6cc62c6 4366fi;
10f2d63a 4367
e46d2a18 4368 eval "$ac_cv_use_apple_ieee"
10f2d63a 4369 if test "$no_cache" != 1; then
e46d2a18 4370 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4371 fi
4372
e46d2a18 4373 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4374 echo "$as_me:$LINENO: result: yes" >&5
4375echo "${ECHO_T}yes" >&6
10f2d63a 4376 else
e6cc62c6
VS
4377 echo "$as_me:$LINENO: result: no" >&5
4378echo "${ECHO_T}no" >&6
10f2d63a 4379 fi
e6cc62c6 4380
10f2d63a 4381
5005acfe 4382 enablestring=
e46d2a18
VS
4383 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4384echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
10f2d63a 4385 no_cache=0
e46d2a18
VS
4386 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4387if test "${enable_catch_segvs+set}" = set; then
4388 enableval="$enable_catch_segvs"
e6cc62c6 4389
10f2d63a 4390 if test "$enableval" = yes; then
e46d2a18 4391 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
10f2d63a 4392 else
e46d2a18 4393 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
10f2d63a 4394 fi
e6cc62c6 4395
10f2d63a 4396else
e6cc62c6 4397
e46d2a18 4398 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
10f2d63a
VZ
4399 if test "x$LINE" != x ; then
4400 eval "DEFAULT_$LINE"
4401 else
4402 no_cache=1
4403 fi
4404
e46d2a18 4405 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
10f2d63a 4406
e6cc62c6 4407fi;
10f2d63a 4408
e46d2a18 4409 eval "$ac_cv_use_catch_segvs"
10f2d63a 4410 if test "$no_cache" != 1; then
e46d2a18 4411 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4412 fi
4413
e46d2a18 4414 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
4415 echo "$as_me:$LINENO: result: yes" >&5
4416echo "${ECHO_T}yes" >&6
10f2d63a 4417 else
e6cc62c6
VS
4418 echo "$as_me:$LINENO: result: no" >&5
4419echo "${ECHO_T}no" >&6
10f2d63a 4420 fi
e6cc62c6 4421
10f2d63a 4422
5005acfe 4423 enablestring=
e46d2a18
VS
4424 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4425echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
10f2d63a 4426 no_cache=0
e46d2a18
VS
4427 # Check whether --enable-cmdline or --disable-cmdline was given.
4428if test "${enable_cmdline+set}" = set; then
4429 enableval="$enable_cmdline"
e6cc62c6 4430
10f2d63a 4431 if test "$enableval" = yes; then
e46d2a18 4432 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
10f2d63a 4433 else
e46d2a18 4434 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
10f2d63a 4435 fi
e6cc62c6 4436
10f2d63a 4437else
e6cc62c6 4438
e46d2a18 4439 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
10f2d63a
VZ
4440 if test "x$LINE" != x ; then
4441 eval "DEFAULT_$LINE"
4442 else
4443 no_cache=1
4444 fi
4445
e46d2a18 4446 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
10f2d63a 4447
e6cc62c6 4448fi;
10f2d63a 4449
e46d2a18 4450 eval "$ac_cv_use_cmdline"
10f2d63a 4451 if test "$no_cache" != 1; then
e46d2a18 4452 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4453 fi
4454
e46d2a18 4455 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4456 echo "$as_me:$LINENO: result: yes" >&5
4457echo "${ECHO_T}yes" >&6
10f2d63a 4458 else
e6cc62c6
VS
4459 echo "$as_me:$LINENO: result: no" >&5
4460echo "${ECHO_T}no" >&6
10f2d63a 4461 fi
e6cc62c6 4462
10f2d63a 4463
5005acfe 4464 enablestring=
e46d2a18
VS
4465 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4466echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
10f2d63a 4467 no_cache=0
e46d2a18
VS
4468 # Check whether --enable-datetime or --disable-datetime was given.
4469if test "${enable_datetime+set}" = set; then
4470 enableval="$enable_datetime"
e6cc62c6 4471
10f2d63a 4472 if test "$enableval" = yes; then
e46d2a18 4473 ac_cv_use_datetime='wxUSE_DATETIME=yes'
10f2d63a 4474 else
e46d2a18 4475 ac_cv_use_datetime='wxUSE_DATETIME=no'
10f2d63a 4476 fi
e6cc62c6 4477
10f2d63a 4478else
e6cc62c6 4479
e46d2a18 4480 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
10f2d63a
VZ
4481 if test "x$LINE" != x ; then
4482 eval "DEFAULT_$LINE"
4483 else
4484 no_cache=1
4485 fi
4486
e46d2a18 4487 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
10f2d63a 4488
e6cc62c6 4489fi;
10f2d63a 4490
e46d2a18 4491 eval "$ac_cv_use_datetime"
10f2d63a 4492 if test "$no_cache" != 1; then
e46d2a18 4493 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4494 fi
4495
e46d2a18 4496 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4497 echo "$as_me:$LINENO: result: yes" >&5
4498echo "${ECHO_T}yes" >&6
10f2d63a 4499 else
e6cc62c6
VS
4500 echo "$as_me:$LINENO: result: no" >&5
4501echo "${ECHO_T}no" >&6
10f2d63a 4502 fi
e6cc62c6 4503
10f2d63a 4504
5005acfe 4505 enablestring=
e46d2a18
VS
4506 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4507echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4508 no_cache=0
e46d2a18
VS
4509 # Check whether --enable-dialupman or --disable-dialupman was given.
4510if test "${enable_dialupman+set}" = set; then
4511 enableval="$enable_dialupman"
e6cc62c6 4512
10f2d63a 4513 if test "$enableval" = yes; then
e46d2a18 4514 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4515 else
e46d2a18 4516 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4517 fi
e6cc62c6 4518
10f2d63a 4519else
e6cc62c6 4520
e46d2a18 4521 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4522 if test "x$LINE" != x ; then
4523 eval "DEFAULT_$LINE"
4524 else
4525 no_cache=1
4526 fi
4527
e46d2a18 4528 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4529
e6cc62c6 4530fi;
10f2d63a 4531
e46d2a18 4532 eval "$ac_cv_use_dialupman"
10f2d63a 4533 if test "$no_cache" != 1; then
e46d2a18 4534 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4535 fi
4536
e46d2a18 4537 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4538 echo "$as_me:$LINENO: result: yes" >&5
4539echo "${ECHO_T}yes" >&6
10f2d63a 4540 else
e6cc62c6
VS
4541 echo "$as_me:$LINENO: result: no" >&5
4542echo "${ECHO_T}no" >&6
10f2d63a 4543 fi
e6cc62c6 4544
10f2d63a 4545
5005acfe 4546 enablestring=
e6cc62c6
VS
4547 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4548echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4549 no_cache=0
4550 # Check whether --enable-dynlib or --disable-dynlib was given.
4551if test "${enable_dynlib+set}" = set; then
4552 enableval="$enable_dynlib"
e6cc62c6 4553
10f2d63a
VZ
4554 if test "$enableval" = yes; then
4555 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4556 else
4557 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4558 fi
e6cc62c6 4559
10f2d63a 4560else
e6cc62c6 4561
10f2d63a
VZ
4562 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4563 if test "x$LINE" != x ; then
4564 eval "DEFAULT_$LINE"
4565 else
4566 no_cache=1
4567 fi
4568
4569 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4570
e6cc62c6 4571fi;
10f2d63a
VZ
4572
4573 eval "$ac_cv_use_dynlib"
4574 if test "$no_cache" != 1; then
4575 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4576 fi
4577
4578 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4579 echo "$as_me:$LINENO: result: yes" >&5
4580echo "${ECHO_T}yes" >&6
10f2d63a 4581 else
e6cc62c6
VS
4582 echo "$as_me:$LINENO: result: no" >&5
4583echo "${ECHO_T}no" >&6
10f2d63a 4584 fi
e6cc62c6 4585
10f2d63a 4586
5005acfe 4587 enablestring=
e6cc62c6
VS
4588 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4589echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4590 no_cache=0
4591 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4592if test "${enable_dynamicloader+set}" = set; then
4593 enableval="$enable_dynamicloader"
e6cc62c6 4594
0b9ab0bd
RL
4595 if test "$enableval" = yes; then
4596 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4597 else
4598 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4599 fi
e6cc62c6 4600
0b9ab0bd 4601else
e6cc62c6 4602
0b9ab0bd
RL
4603 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4604 if test "x$LINE" != x ; then
4605 eval "DEFAULT_$LINE"
4606 else
4607 no_cache=1
4608 fi
4609
4610 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4611
e6cc62c6 4612fi;
0b9ab0bd
RL
4613
4614 eval "$ac_cv_use_dynamicloader"
4615 if test "$no_cache" != 1; then
4616 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4617 fi
4618
4619 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4620 echo "$as_me:$LINENO: result: yes" >&5
4621echo "${ECHO_T}yes" >&6
0b9ab0bd 4622 else
e6cc62c6
VS
4623 echo "$as_me:$LINENO: result: no" >&5
4624echo "${ECHO_T}no" >&6
0b9ab0bd 4625 fi
e6cc62c6 4626
0b9ab0bd 4627
5005acfe 4628 enablestring=
e46d2a18
VS
4629 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4630echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
10f2d63a 4631 no_cache=0
e46d2a18
VS
4632 # Check whether --enable-exceptions or --disable-exceptions was given.
4633if test "${enable_exceptions+set}" = set; then
4634 enableval="$enable_exceptions"
e6cc62c6 4635
10f2d63a 4636 if test "$enableval" = yes; then
e46d2a18 4637 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
10f2d63a 4638 else
e46d2a18 4639 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
10f2d63a 4640 fi
e6cc62c6 4641
10f2d63a 4642else
e6cc62c6 4643
e46d2a18 4644 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
4645 if test "x$LINE" != x ; then
4646 eval "DEFAULT_$LINE"
4647 else
4648 no_cache=1
4649 fi
4650
e46d2a18 4651 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
10f2d63a 4652
e6cc62c6 4653fi;
10f2d63a 4654
e46d2a18 4655 eval "$ac_cv_use_exceptions"
10f2d63a 4656 if test "$no_cache" != 1; then
e46d2a18 4657 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4658 fi
4659
e46d2a18 4660 if test "$wxUSE_EXCEPTIONS" = yes; then
e6cc62c6
VS
4661 echo "$as_me:$LINENO: result: yes" >&5
4662echo "${ECHO_T}yes" >&6
10f2d63a 4663 else
e6cc62c6
VS
4664 echo "$as_me:$LINENO: result: no" >&5
4665echo "${ECHO_T}no" >&6
10f2d63a 4666 fi
e6cc62c6 4667
10f2d63a 4668
5005acfe 4669 enablestring=
e46d2a18
VS
4670 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4671echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
e8f65ba6 4672 no_cache=0
e46d2a18
VS
4673 # Check whether --enable-ffile or --disable-ffile was given.
4674if test "${enable_ffile+set}" = set; then
4675 enableval="$enable_ffile"
e6cc62c6 4676
e8f65ba6 4677 if test "$enableval" = yes; then
e46d2a18 4678 ac_cv_use_ffile='wxUSE_FFILE=yes'
e8f65ba6 4679 else
e46d2a18 4680 ac_cv_use_ffile='wxUSE_FFILE=no'
e8f65ba6 4681 fi
e6cc62c6 4682
e8f65ba6 4683else
e6cc62c6 4684
e46d2a18 4685 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
e8f65ba6
RR
4686 if test "x$LINE" != x ; then
4687 eval "DEFAULT_$LINE"
4688 else
4689 no_cache=1
4690 fi
4691
e46d2a18 4692 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
e8f65ba6 4693
e6cc62c6 4694fi;
e8f65ba6 4695
e46d2a18 4696 eval "$ac_cv_use_ffile"
e8f65ba6 4697 if test "$no_cache" != 1; then
e46d2a18 4698 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
e8f65ba6
RR
4699 fi
4700
e46d2a18 4701 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4702 echo "$as_me:$LINENO: result: yes" >&5
4703echo "${ECHO_T}yes" >&6
e8f65ba6 4704 else
e6cc62c6
VS
4705 echo "$as_me:$LINENO: result: no" >&5
4706echo "${ECHO_T}no" >&6
e8f65ba6 4707 fi
e6cc62c6 4708
e8f65ba6 4709
5005acfe 4710 enablestring=
e46d2a18
VS
4711 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4712echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a 4713 no_cache=0
e46d2a18
VS
4714 # Check whether --enable-file or --disable-file was given.
4715if test "${enable_file+set}" = set; then
4716 enableval="$enable_file"
e6cc62c6 4717
10f2d63a 4718 if test "$enableval" = yes; then
e46d2a18 4719 ac_cv_use_file='wxUSE_FILE=yes'
10f2d63a 4720 else
e46d2a18 4721 ac_cv_use_file='wxUSE_FILE=no'
10f2d63a 4722 fi
e6cc62c6 4723
10f2d63a 4724else
e6cc62c6 4725
e46d2a18 4726 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4727 if test "x$LINE" != x ; then
4728 eval "DEFAULT_$LINE"
4729 else
4730 no_cache=1
4731 fi
4732
e46d2a18 4733 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4734
e6cc62c6 4735fi;
10f2d63a 4736
e46d2a18 4737 eval "$ac_cv_use_file"
10f2d63a 4738 if test "$no_cache" != 1; then
e46d2a18 4739 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4740 fi
4741
e46d2a18 4742 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4743 echo "$as_me:$LINENO: result: yes" >&5
4744echo "${ECHO_T}yes" >&6
10f2d63a 4745 else
e6cc62c6
VS
4746 echo "$as_me:$LINENO: result: no" >&5
4747echo "${ECHO_T}no" >&6
10f2d63a 4748 fi
e6cc62c6 4749
10f2d63a 4750
5005acfe 4751 enablestring=
e46d2a18
VS
4752 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4753echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
10f2d63a 4754 no_cache=0
e46d2a18
VS
4755 # Check whether --enable-filesystem or --disable-filesystem was given.
4756if test "${enable_filesystem+set}" = set; then
4757 enableval="$enable_filesystem"
e6cc62c6 4758
10f2d63a 4759 if test "$enableval" = yes; then
e46d2a18 4760 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
10f2d63a 4761 else
e46d2a18 4762 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
10f2d63a 4763 fi
e6cc62c6 4764
10f2d63a 4765else
e6cc62c6 4766
e46d2a18 4767 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
10f2d63a
VZ
4768 if test "x$LINE" != x ; then
4769 eval "DEFAULT_$LINE"
4770 else
4771 no_cache=1
4772 fi
4773
e46d2a18 4774 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
10f2d63a 4775
e6cc62c6 4776fi;
10f2d63a 4777
e46d2a18 4778 eval "$ac_cv_use_filesystem"
10f2d63a 4779 if test "$no_cache" != 1; then
e46d2a18 4780 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4781 fi
4782
e46d2a18 4783 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
4784 echo "$as_me:$LINENO: result: yes" >&5
4785echo "${ECHO_T}yes" >&6
10f2d63a 4786 else
e6cc62c6
VS
4787 echo "$as_me:$LINENO: result: no" >&5
4788echo "${ECHO_T}no" >&6
10f2d63a 4789 fi
e6cc62c6 4790
10f2d63a 4791
5005acfe 4792 enablestring=
e46d2a18
VS
4793 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4794echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4795 no_cache=0
e46d2a18
VS
4796 # Check whether --enable-fontmap or --disable-fontmap was given.
4797if test "${enable_fontmap+set}" = set; then
4798 enableval="$enable_fontmap"
e6cc62c6 4799
10f2d63a 4800 if test "$enableval" = yes; then
e46d2a18 4801 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4802 else
e46d2a18 4803 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4804 fi
e6cc62c6 4805
10f2d63a 4806else
e6cc62c6 4807
e46d2a18 4808 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4809 if test "x$LINE" != x ; then
4810 eval "DEFAULT_$LINE"
4811 else
4812 no_cache=1
4813 fi
4814
e46d2a18 4815 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4816
e6cc62c6 4817fi;
10f2d63a 4818
e46d2a18 4819 eval "$ac_cv_use_fontmap"
10f2d63a 4820 if test "$no_cache" != 1; then
e46d2a18 4821 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4822 fi
4823
e46d2a18 4824 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4825 echo "$as_me:$LINENO: result: yes" >&5
4826echo "${ECHO_T}yes" >&6
10f2d63a 4827 else
e6cc62c6
VS
4828 echo "$as_me:$LINENO: result: no" >&5
4829echo "${ECHO_T}no" >&6
10f2d63a 4830 fi
e6cc62c6 4831
10f2d63a 4832
5005acfe 4833 enablestring=
e46d2a18
VS
4834 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
4835echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a 4836 no_cache=0
e46d2a18
VS
4837 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4838if test "${enable_fs_inet+set}" = set; then
4839 enableval="$enable_fs_inet"
e6cc62c6 4840
10f2d63a 4841 if test "$enableval" = yes; then
e46d2a18 4842 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
10f2d63a 4843 else
e46d2a18 4844 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
10f2d63a 4845 fi
e6cc62c6 4846
10f2d63a 4847else
e6cc62c6 4848
e46d2a18 4849 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
10f2d63a
VZ
4850 if test "x$LINE" != x ; then
4851 eval "DEFAULT_$LINE"
4852 else
4853 no_cache=1
4854 fi
4855
e46d2a18 4856 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 4857
e6cc62c6 4858fi;
10f2d63a 4859
e46d2a18 4860 eval "$ac_cv_use_fs_inet"
10f2d63a 4861 if test "$no_cache" != 1; then
e46d2a18 4862 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4863 fi
4864
e46d2a18 4865 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
4866 echo "$as_me:$LINENO: result: yes" >&5
4867echo "${ECHO_T}yes" >&6
10f2d63a 4868 else
e6cc62c6
VS
4869 echo "$as_me:$LINENO: result: no" >&5
4870echo "${ECHO_T}no" >&6
10f2d63a 4871 fi
e6cc62c6 4872
10f2d63a 4873
5005acfe 4874 enablestring=
e46d2a18
VS
4875 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
4876echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
a3a584a7 4877 no_cache=0
e46d2a18
VS
4878 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4879if test "${enable_fs_zip+set}" = set; then
4880 enableval="$enable_fs_zip"
e6cc62c6 4881
a3a584a7 4882 if test "$enableval" = yes; then
e46d2a18 4883 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
a3a584a7 4884 else
e46d2a18 4885 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
a3a584a7 4886 fi
e6cc62c6 4887
a3a584a7 4888else
e6cc62c6 4889
e46d2a18 4890 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
a3a584a7
VZ
4891 if test "x$LINE" != x ; then
4892 eval "DEFAULT_$LINE"
4893 else
4894 no_cache=1
4895 fi
4896
e46d2a18 4897 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a3a584a7 4898
e6cc62c6 4899fi;
a3a584a7 4900
e46d2a18 4901 eval "$ac_cv_use_fs_zip"
a3a584a7 4902 if test "$no_cache" != 1; then
e46d2a18 4903 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
a3a584a7
VZ
4904 fi
4905
e46d2a18 4906 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
4907 echo "$as_me:$LINENO: result: yes" >&5
4908echo "${ECHO_T}yes" >&6
a3a584a7 4909 else
e6cc62c6
VS
4910 echo "$as_me:$LINENO: result: no" >&5
4911echo "${ECHO_T}no" >&6
a3a584a7 4912 fi
e6cc62c6 4913
a3a584a7 4914
5005acfe 4915 enablestring=
e46d2a18
VS
4916 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4917echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
10f2d63a 4918 no_cache=0
e46d2a18
VS
4919 # Check whether --enable-geometry or --disable-geometry was given.
4920if test "${enable_geometry+set}" = set; then
4921 enableval="$enable_geometry"
e6cc62c6 4922
10f2d63a 4923 if test "$enableval" = yes; then
e46d2a18 4924 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
10f2d63a 4925 else
e46d2a18 4926 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
10f2d63a 4927 fi
e6cc62c6 4928
10f2d63a 4929else
e6cc62c6 4930
e46d2a18 4931 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
10f2d63a
VZ
4932 if test "x$LINE" != x ; then
4933 eval "DEFAULT_$LINE"
4934 else
4935 no_cache=1
4936 fi
4937
e46d2a18 4938 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
10f2d63a 4939
e6cc62c6 4940fi;
10f2d63a 4941
e46d2a18 4942 eval "$ac_cv_use_geometry"
10f2d63a 4943 if test "$no_cache" != 1; then
e46d2a18 4944 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4945 fi
4946
e46d2a18 4947 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
4948 echo "$as_me:$LINENO: result: yes" >&5
4949echo "${ECHO_T}yes" >&6
10f2d63a 4950 else
e6cc62c6
VS
4951 echo "$as_me:$LINENO: result: no" >&5
4952echo "${ECHO_T}no" >&6
10f2d63a 4953 fi
e6cc62c6 4954
10f2d63a 4955
5005acfe 4956 enablestring=
e46d2a18
VS
4957 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4958echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a 4959 no_cache=0
e46d2a18
VS
4960 # Check whether --enable-log or --disable-log was given.
4961if test "${enable_log+set}" = set; then
4962 enableval="$enable_log"
e6cc62c6 4963
10f2d63a 4964 if test "$enableval" = yes; then
e46d2a18 4965 ac_cv_use_log='wxUSE_LOG=yes'
10f2d63a 4966 else
e46d2a18 4967 ac_cv_use_log='wxUSE_LOG=no'
10f2d63a 4968 fi
e6cc62c6 4969
10f2d63a 4970else
e6cc62c6 4971
e46d2a18 4972 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
10f2d63a
VZ
4973 if test "x$LINE" != x ; then
4974 eval "DEFAULT_$LINE"
4975 else
4976 no_cache=1
4977 fi
4978
e46d2a18 4979 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4980
e6cc62c6 4981fi;
10f2d63a 4982
e46d2a18 4983 eval "$ac_cv_use_log"
10f2d63a 4984 if test "$no_cache" != 1; then
e46d2a18 4985 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4986 fi
4987
e46d2a18 4988 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
4989 echo "$as_me:$LINENO: result: yes" >&5
4990echo "${ECHO_T}yes" >&6
10f2d63a 4991 else
e6cc62c6
VS
4992 echo "$as_me:$LINENO: result: no" >&5
4993echo "${ECHO_T}no" >&6
10f2d63a 4994 fi
e6cc62c6 4995
10f2d63a 4996
5005acfe 4997 enablestring=
e46d2a18
VS
4998 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
4999echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a 5000 no_cache=0
e46d2a18
VS
5001 # Check whether --enable-longlong or --disable-longlong was given.
5002if test "${enable_longlong+set}" = set; then
5003 enableval="$enable_longlong"
e6cc62c6 5004
1e6feb95 5005 if test "$enableval" = yes; then
e46d2a18 5006 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
1e6feb95 5007 else
e46d2a18 5008 ac_cv_use_longlong='wxUSE_LONGLONG=no'
1e6feb95 5009 fi
e6cc62c6 5010
1e6feb95 5011else
e6cc62c6 5012
e46d2a18 5013 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
1e6feb95
VZ
5014 if test "x$LINE" != x ; then
5015 eval "DEFAULT_$LINE"
5016 else
5017 no_cache=1
5018 fi
5019
e46d2a18 5020 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
1e6feb95 5021
e6cc62c6 5022fi;
1e6feb95 5023
e46d2a18 5024 eval "$ac_cv_use_longlong"
1e6feb95 5025 if test "$no_cache" != 1; then
e46d2a18 5026 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5027 fi
5028
e46d2a18
VS
5029 if test "$wxUSE_LONGLONG" = yes; then
5030 echo "$as_me:$LINENO: result: yes" >&5
5031echo "${ECHO_T}yes" >&6
5032 else
5033 echo "$as_me:$LINENO: result: no" >&5
5034echo "${ECHO_T}no" >&6
5035 fi
5036
5037
5038 enablestring=
5039 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5040echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5041 no_cache=0
5042 # Check whether --enable-mimetype or --disable-mimetype was given.
5043if test "${enable_mimetype+set}" = set; then
5044 enableval="$enable_mimetype"
5045
5046 if test "$enableval" = yes; then
5047 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5048 else
5049 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5050 fi
5051
5052else
5053
5054 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5055 if test "x$LINE" != x ; then
5056 eval "DEFAULT_$LINE"
5057 else
5058 no_cache=1
5059 fi
5060
5061 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5062
5063fi;
5064
5065 eval "$ac_cv_use_mimetype"
5066 if test "$no_cache" != 1; then
5067 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5068 fi
5069
5070 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5071 echo "$as_me:$LINENO: result: yes" >&5
5072echo "${ECHO_T}yes" >&6
1e6feb95 5073 else
e6cc62c6
VS
5074 echo "$as_me:$LINENO: result: no" >&5
5075echo "${ECHO_T}no" >&6
1e6feb95 5076 fi
e6cc62c6 5077
1e6feb95 5078
5005acfe 5079 enablestring=
e6cc62c6
VS
5080 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5081echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
5082 no_cache=0
5083 # Check whether --enable-mslu or --disable-mslu was given.
5084if test "${enable_mslu+set}" = set; then
5085 enableval="$enable_mslu"
e6cc62c6 5086
a72a4bfa
VS
5087 if test "$enableval" = yes; then
5088 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5089 else
5090 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5091 fi
e6cc62c6 5092
a72a4bfa 5093else
e6cc62c6 5094
a72a4bfa
VS
5095 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5096 if test "x$LINE" != x ; then
5097 eval "DEFAULT_$LINE"
5098 else
5099 no_cache=1
5100 fi
5101
5102 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 5103
e6cc62c6 5104fi;
a72a4bfa
VS
5105
5106 eval "$ac_cv_use_mslu"
5107 if test "$no_cache" != 1; then
5108 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5109 fi
5110
5111 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
5112 echo "$as_me:$LINENO: result: yes" >&5
5113echo "${ECHO_T}yes" >&6
a72a4bfa 5114 else
e6cc62c6
VS
5115 echo "$as_me:$LINENO: result: no" >&5
5116echo "${ECHO_T}no" >&6
a72a4bfa 5117 fi
e6cc62c6 5118
a72a4bfa 5119
5005acfe 5120 enablestring=
e46d2a18
VS
5121 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5122echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
1e6feb95 5123 no_cache=0
e46d2a18
VS
5124 # Check whether --enable-snglinst or --disable-snglinst was given.
5125if test "${enable_snglinst+set}" = set; then
5126 enableval="$enable_snglinst"
e6cc62c6 5127
1e6feb95 5128 if test "$enableval" = yes; then
e46d2a18 5129 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
10f2d63a 5130 else
e46d2a18 5131 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
10f2d63a 5132 fi
e6cc62c6 5133
10f2d63a 5134else
e6cc62c6 5135
e46d2a18 5136 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
10f2d63a
VZ
5137 if test "x$LINE" != x ; then
5138 eval "DEFAULT_$LINE"
5139 else
5140 no_cache=1
5141 fi
5142
e46d2a18 5143 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
10f2d63a 5144
e6cc62c6 5145fi;
10f2d63a 5146
e46d2a18 5147 eval "$ac_cv_use_snglinst"
10f2d63a 5148 if test "$no_cache" != 1; then
e46d2a18 5149 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5150 fi
5151
e46d2a18
VS
5152 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5153 echo "$as_me:$LINENO: result: yes" >&5
5154echo "${ECHO_T}yes" >&6
5155 else
5156 echo "$as_me:$LINENO: result: no" >&5
5157echo "${ECHO_T}no" >&6
5158 fi
5159
5160
5161 enablestring=
5162 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5163echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5164 no_cache=0
5165 # Check whether --enable-streams or --disable-streams was given.
5166if test "${enable_streams+set}" = set; then
5167 enableval="$enable_streams"
5168
5169 if test "$enableval" = yes; then
5170 ac_cv_use_streams='wxUSE_STREAMS=yes'
5171 else
5172 ac_cv_use_streams='wxUSE_STREAMS=no'
5173 fi
5174
5175else
5176
5177 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5178 if test "x$LINE" != x ; then
5179 eval "DEFAULT_$LINE"
5180 else
5181 no_cache=1
5182 fi
5183
5184 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5185
5186fi;
5187
5188 eval "$ac_cv_use_streams"
5189 if test "$no_cache" != 1; then
5190 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5191 fi
5192
5193 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
5194 echo "$as_me:$LINENO: result: yes" >&5
5195echo "${ECHO_T}yes" >&6
10f2d63a 5196 else
e6cc62c6
VS
5197 echo "$as_me:$LINENO: result: no" >&5
5198echo "${ECHO_T}no" >&6
10f2d63a 5199 fi
e6cc62c6 5200
10f2d63a 5201
5005acfe 5202 enablestring=
e6cc62c6
VS
5203 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5204echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5205 no_cache=0
5206 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5207if test "${enable_std_iostreams+set}" = set; then
5208 enableval="$enable_std_iostreams"
e6cc62c6 5209
10f2d63a
VZ
5210 if test "$enableval" = yes; then
5211 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5212 else
5213 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5214 fi
e6cc62c6 5215
10f2d63a 5216else
e6cc62c6 5217
10f2d63a
VZ
5218 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5219 if test "x$LINE" != x ; then
5220 eval "DEFAULT_$LINE"
5221 else
5222 no_cache=1
5223 fi
5224
5225 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5226
e6cc62c6 5227fi;
10f2d63a
VZ
5228
5229 eval "$ac_cv_use_std_iostreams"
5230 if test "$no_cache" != 1; then
5231 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5232 fi
5233
5234 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5235 echo "$as_me:$LINENO: result: yes" >&5
5236echo "${ECHO_T}yes" >&6
10f2d63a 5237 else
e6cc62c6
VS
5238 echo "$as_me:$LINENO: result: no" >&5
5239echo "${ECHO_T}no" >&6
10f2d63a 5240 fi
e6cc62c6 5241
10f2d63a 5242
5005acfe 5243 enablestring=
e46d2a18
VS
5244 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5245echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
24528b0c 5246 no_cache=0
e46d2a18
VS
5247 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5248if test "${enable_stopwatch+set}" = set; then
5249 enableval="$enable_stopwatch"
e6cc62c6 5250
24528b0c 5251 if test "$enableval" = yes; then
e46d2a18 5252 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
24528b0c 5253 else
e46d2a18 5254 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
24528b0c 5255 fi
e6cc62c6 5256
24528b0c 5257else
e6cc62c6 5258
e46d2a18 5259 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
24528b0c
VS
5260 if test "x$LINE" != x ; then
5261 eval "DEFAULT_$LINE"
5262 else
5263 no_cache=1
5264 fi
5265
e46d2a18 5266 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
24528b0c 5267
e6cc62c6 5268fi;
24528b0c 5269
e46d2a18 5270 eval "$ac_cv_use_stopwatch"
24528b0c 5271 if test "$no_cache" != 1; then
e46d2a18 5272 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
24528b0c
VS
5273 fi
5274
e46d2a18 5275 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
5276 echo "$as_me:$LINENO: result: yes" >&5
5277echo "${ECHO_T}yes" >&6
24528b0c 5278 else
e6cc62c6
VS
5279 echo "$as_me:$LINENO: result: no" >&5
5280echo "${ECHO_T}no" >&6
24528b0c 5281 fi
e6cc62c6 5282
24528b0c 5283
5005acfe 5284 enablestring=
e46d2a18
VS
5285 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5286echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
10f2d63a 5287 no_cache=0
e46d2a18
VS
5288 # Check whether --enable-system_options or --disable-system_options was given.
5289if test "${enable_system_options+set}" = set; then
5290 enableval="$enable_system_options"
e6cc62c6 5291
10f2d63a 5292 if test "$enableval" = yes; then
e46d2a18 5293 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
10f2d63a 5294 else
e46d2a18 5295 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
10f2d63a 5296 fi
e6cc62c6 5297
10f2d63a 5298else
e6cc62c6 5299
e46d2a18 5300 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
5301 if test "x$LINE" != x ; then
5302 eval "DEFAULT_$LINE"
5303 else
5304 no_cache=1
5305 fi
5306
e46d2a18 5307 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
10f2d63a 5308
e6cc62c6 5309fi;
10f2d63a 5310
e46d2a18 5311 eval "$ac_cv_use_system_options"
10f2d63a 5312 if test "$no_cache" != 1; then
e46d2a18 5313 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5314 fi
5315
e46d2a18 5316 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5317 echo "$as_me:$LINENO: result: yes" >&5
5318echo "${ECHO_T}yes" >&6
10f2d63a 5319 else
e6cc62c6
VS
5320 echo "$as_me:$LINENO: result: no" >&5
5321echo "${ECHO_T}no" >&6
10f2d63a 5322 fi
e6cc62c6 5323
10f2d63a 5324
5005acfe 5325 enablestring=
e46d2a18
VS
5326 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5327echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
10f2d63a 5328 no_cache=0
e46d2a18
VS
5329 # Check whether --enable-textbuf or --disable-textbuf was given.
5330if test "${enable_textbuf+set}" = set; then
5331 enableval="$enable_textbuf"
e6cc62c6 5332
10f2d63a 5333 if test "$enableval" = yes; then
e46d2a18 5334 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
10f2d63a 5335 else
e46d2a18 5336 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
10f2d63a 5337 fi
e6cc62c6 5338
10f2d63a 5339else
e6cc62c6 5340
e46d2a18 5341 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
10f2d63a
VZ
5342 if test "x$LINE" != x ; then
5343 eval "DEFAULT_$LINE"
5344 else
5345 no_cache=1
5346 fi
5347
e46d2a18 5348 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
10f2d63a 5349
e6cc62c6 5350fi;
10f2d63a 5351
e46d2a18 5352 eval "$ac_cv_use_textbuf"
10f2d63a 5353 if test "$no_cache" != 1; then
e46d2a18 5354 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5355 fi
5356
e46d2a18 5357 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
5358 echo "$as_me:$LINENO: result: yes" >&5
5359echo "${ECHO_T}yes" >&6
10f2d63a 5360 else
e6cc62c6
VS
5361 echo "$as_me:$LINENO: result: no" >&5
5362echo "${ECHO_T}no" >&6
10f2d63a 5363 fi
e6cc62c6 5364
10f2d63a 5365
5005acfe 5366 enablestring=
e46d2a18
VS
5367 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5368echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 5369 no_cache=0
e46d2a18
VS
5370 # Check whether --enable-textfile or --disable-textfile was given.
5371if test "${enable_textfile+set}" = set; then
5372 enableval="$enable_textfile"
e6cc62c6 5373
10f2d63a 5374 if test "$enableval" = yes; then
e46d2a18 5375 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 5376 else
e46d2a18 5377 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 5378 fi
e6cc62c6 5379
10f2d63a 5380else
e6cc62c6 5381
e46d2a18 5382 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
5383 if test "x$LINE" != x ; then
5384 eval "DEFAULT_$LINE"
5385 else
5386 no_cache=1
5387 fi
5388
e46d2a18 5389 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 5390
e6cc62c6 5391fi;
10f2d63a 5392
e46d2a18 5393 eval "$ac_cv_use_textfile"
10f2d63a 5394 if test "$no_cache" != 1; then
e46d2a18 5395 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5396 fi
5397
e46d2a18 5398 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
5399 echo "$as_me:$LINENO: result: yes" >&5
5400echo "${ECHO_T}yes" >&6
10f2d63a 5401 else
e6cc62c6
VS
5402 echo "$as_me:$LINENO: result: no" >&5
5403echo "${ECHO_T}no" >&6
10f2d63a 5404 fi
e6cc62c6 5405
8284b0c5 5406
5005acfe 5407 enablestring=
e46d2a18
VS
5408 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5409echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
eb4efbdc 5410 no_cache=0
e46d2a18
VS
5411 # Check whether --enable-timer or --disable-timer was given.
5412if test "${enable_timer+set}" = set; then
5413 enableval="$enable_timer"
e6cc62c6 5414
eb4efbdc 5415 if test "$enableval" = yes; then
e46d2a18 5416 ac_cv_use_timer='wxUSE_TIMER=yes'
eb4efbdc 5417 else
e46d2a18 5418 ac_cv_use_timer='wxUSE_TIMER=no'
eb4efbdc 5419 fi
e6cc62c6 5420
eb4efbdc 5421else
e6cc62c6 5422
e46d2a18 5423 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
eb4efbdc
VZ
5424 if test "x$LINE" != x ; then
5425 eval "DEFAULT_$LINE"
5426 else
5427 no_cache=1
5428 fi
5429
e46d2a18 5430 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
eb4efbdc 5431
e6cc62c6 5432fi;
eb4efbdc 5433
e46d2a18 5434 eval "$ac_cv_use_timer"
eb4efbdc 5435 if test "$no_cache" != 1; then
e46d2a18 5436 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
eb4efbdc
VZ
5437 fi
5438
e46d2a18 5439 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
5440 echo "$as_me:$LINENO: result: yes" >&5
5441echo "${ECHO_T}yes" >&6
eb4efbdc 5442 else
e6cc62c6
VS
5443 echo "$as_me:$LINENO: result: no" >&5
5444echo "${ECHO_T}no" >&6
eb4efbdc 5445 fi
e6cc62c6 5446
eb4efbdc 5447
5005acfe 5448 enablestring=
e46d2a18
VS
5449 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5450echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
4f3c5f06 5451 no_cache=0
e46d2a18
VS
5452 # Check whether --enable-unicode or --disable-unicode was given.
5453if test "${enable_unicode+set}" = set; then
5454 enableval="$enable_unicode"
e6cc62c6 5455
4f3c5f06 5456 if test "$enableval" = yes; then
e46d2a18 5457 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4f3c5f06 5458 else
e46d2a18 5459 ac_cv_use_unicode='wxUSE_UNICODE=no'
4f3c5f06 5460 fi
e6cc62c6 5461
4f3c5f06 5462else
e6cc62c6 5463
e46d2a18 5464 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4f3c5f06
VZ
5465 if test "x$LINE" != x ; then
5466 eval "DEFAULT_$LINE"
5467 else
5468 no_cache=1
5469 fi
5470
e46d2a18 5471 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4f3c5f06 5472
e6cc62c6 5473fi;
4f3c5f06 5474
e46d2a18 5475 eval "$ac_cv_use_unicode"
4f3c5f06 5476 if test "$no_cache" != 1; then
e46d2a18 5477 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4f3c5f06
VZ
5478 fi
5479
e46d2a18 5480 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5481 echo "$as_me:$LINENO: result: yes" >&5
5482echo "${ECHO_T}yes" >&6
4f3c5f06 5483 else
e6cc62c6
VS
5484 echo "$as_me:$LINENO: result: no" >&5
5485echo "${ECHO_T}no" >&6
4f3c5f06 5486 fi
e6cc62c6 5487
52127426 5488
e46d2a18
VS
5489 enablestring=
5490 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
5491echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
5492 no_cache=0
5493 # Check whether --enable-wave or --disable-wave was given.
5494if test "${enable_wave+set}" = set; then
5495 enableval="$enable_wave"
5496
5497 if test "$enableval" = yes; then
5498 ac_cv_use_wave='wxUSE_WAVE=yes'
5499 else
5500 ac_cv_use_wave='wxUSE_WAVE=no'
5501 fi
5502
5503else
5504
5505 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
5506 if test "x$LINE" != x ; then
5507 eval "DEFAULT_$LINE"
5508 else
5509 no_cache=1
5510 fi
5511
5512 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
5513
5514fi;
5515
5516 eval "$ac_cv_use_wave"
5517 if test "$no_cache" != 1; then
5518 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
5519 fi
5520
5521 if test "$wxUSE_WAVE" = yes; then
5522 echo "$as_me:$LINENO: result: yes" >&5
5523echo "${ECHO_T}yes" >&6
5524 else
5525 echo "$as_me:$LINENO: result: no" >&5
5526echo "${ECHO_T}no" >&6
5527 fi
5528
8284b0c5 5529
5005acfe 5530 enablestring=
e46d2a18
VS
5531 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5532echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95 5533 no_cache=0
e46d2a18
VS
5534 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5535if test "${enable_wxprintfv+set}" = set; then
5536 enableval="$enable_wxprintfv"
e6cc62c6 5537
1e6feb95 5538 if test "$enableval" = yes; then
e46d2a18 5539 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
1e6feb95 5540 else
e46d2a18 5541 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
1e6feb95 5542 fi
e6cc62c6 5543
1e6feb95 5544else
e6cc62c6 5545
e46d2a18 5546 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
1e6feb95
VZ
5547 if test "x$LINE" != x ; then
5548 eval "DEFAULT_$LINE"
5549 else
5550 no_cache=1
5551 fi
5552
e46d2a18 5553 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
1e6feb95 5554
e6cc62c6 5555fi;
1e6feb95 5556
e46d2a18 5557 eval "$ac_cv_use_wxprintfv"
1e6feb95 5558 if test "$no_cache" != 1; then
e46d2a18 5559 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5560 fi
5561
e46d2a18 5562 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5563 echo "$as_me:$LINENO: result: yes" >&5
5564echo "${ECHO_T}yes" >&6
1e6feb95 5565 else
e6cc62c6
VS
5566 echo "$as_me:$LINENO: result: no" >&5
5567echo "${ECHO_T}no" >&6
1e6feb95 5568 fi
e6cc62c6 5569
1e6feb95 5570
5005acfe 5571 enablestring=
e46d2a18
VS
5572 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5573echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
3e44f09d 5574 no_cache=0
e46d2a18
VS
5575 # Check whether --enable-zipstream or --disable-zipstream was given.
5576if test "${enable_zipstream+set}" = set; then
5577 enableval="$enable_zipstream"
e6cc62c6 5578
3e44f09d 5579 if test "$enableval" = yes; then
e46d2a18 5580 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3e44f09d 5581 else
e46d2a18 5582 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3e44f09d 5583 fi
e6cc62c6 5584
3e44f09d 5585else
e6cc62c6 5586
e46d2a18 5587 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3e44f09d
VZ
5588 if test "x$LINE" != x ; then
5589 eval "DEFAULT_$LINE"
5590 else
5591 no_cache=1
5592 fi
5593
e46d2a18 5594 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3e44f09d 5595
e6cc62c6 5596fi;
3e44f09d 5597
e46d2a18 5598 eval "$ac_cv_use_zipstream"
3e44f09d 5599 if test "$no_cache" != 1; then
e46d2a18 5600 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3e44f09d
VZ
5601 fi
5602
e46d2a18 5603 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5604 echo "$as_me:$LINENO: result: yes" >&5
5605echo "${ECHO_T}yes" >&6
3e44f09d 5606 else
e6cc62c6
VS
5607 echo "$as_me:$LINENO: result: no" >&5
5608echo "${ECHO_T}no" >&6
3e44f09d 5609 fi
e6cc62c6 5610
8284b0c5 5611
7015ef3a
VZ
5612 enablestring=
5613 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5614echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5615 no_cache=0
5616 # Check whether --enable-gzstream or --disable-gzstream was given.
5617if test "${enable_gzstream+set}" = set; then
5618 enableval="$enable_gzstream"
5619
5620 if test "$enableval" = yes; then
5621 ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5622 else
5623 ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5624 fi
5625
5626else
5627
5628 LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}`
5629 if test "x$LINE" != x ; then
5630 eval "DEFAULT_$LINE"
5631 else
5632 no_cache=1
5633 fi
5634
5635 ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5636
5637fi;
5638
5639 eval "$ac_cv_use_gzstream"
5640 if test "$no_cache" != 1; then
5641 echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5642 fi
5643
5644 if test "$wxUSE_GZSTREAM" = yes; then
5645 echo "$as_me:$LINENO: result: yes" >&5
5646echo "${ECHO_T}yes" >&6
5647 else
5648 echo "$as_me:$LINENO: result: no" >&5
5649echo "${ECHO_T}no" >&6
5650 fi
5651
5652
52127426 5653
5005acfe 5654 enablestring=
e6cc62c6
VS
5655 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5656echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5657 no_cache=0
5658 # Check whether --enable-url or --disable-url was given.
5659if test "${enable_url+set}" = set; then
5660 enableval="$enable_url"
e6cc62c6 5661
4cdb0ab0
VS
5662 if test "$enableval" = yes; then
5663 ac_cv_use_url='wxUSE_URL=yes'
5664 else
5665 ac_cv_use_url='wxUSE_URL=no'
5666 fi
e6cc62c6 5667
4cdb0ab0 5668else
e6cc62c6 5669
4cdb0ab0
VS
5670 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5671 if test "x$LINE" != x ; then
5672 eval "DEFAULT_$LINE"
5673 else
5674 no_cache=1
5675 fi
5676
5677 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5678
e6cc62c6 5679fi;
4cdb0ab0
VS
5680
5681 eval "$ac_cv_use_url"
5682 if test "$no_cache" != 1; then
5683 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5684 fi
5685
5686 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5687 echo "$as_me:$LINENO: result: yes" >&5
5688echo "${ECHO_T}yes" >&6
4cdb0ab0 5689 else
e6cc62c6
VS
5690 echo "$as_me:$LINENO: result: no" >&5
5691echo "${ECHO_T}no" >&6
4cdb0ab0 5692 fi
e6cc62c6 5693
4cdb0ab0 5694
5005acfe 5695 enablestring=
e6cc62c6
VS
5696 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5697echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5698 no_cache=0
5699 # Check whether --enable-protocol or --disable-protocol was given.
5700if test "${enable_protocol+set}" = set; then
5701 enableval="$enable_protocol"
e6cc62c6 5702
4cdb0ab0
VS
5703 if test "$enableval" = yes; then
5704 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5705 else
5706 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5707 fi
e6cc62c6 5708
4cdb0ab0 5709else
e6cc62c6 5710
4cdb0ab0
VS
5711 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5712 if test "x$LINE" != x ; then
5713 eval "DEFAULT_$LINE"
5714 else
5715 no_cache=1
5716 fi
5717
5718 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5719
e6cc62c6 5720fi;
4cdb0ab0
VS
5721
5722 eval "$ac_cv_use_protocol"
5723 if test "$no_cache" != 1; then
5724 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5725 fi
5726
5727 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5728 echo "$as_me:$LINENO: result: yes" >&5
5729echo "${ECHO_T}yes" >&6
4cdb0ab0 5730 else
e6cc62c6
VS
5731 echo "$as_me:$LINENO: result: no" >&5
5732echo "${ECHO_T}no" >&6
4cdb0ab0 5733 fi
e6cc62c6 5734
4cdb0ab0 5735
5005acfe 5736 enablestring=
e6cc62c6
VS
5737 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5738echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5739 no_cache=0
5740 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5741if test "${enable_protocol_http+set}" = set; then
5742 enableval="$enable_protocol_http"
e6cc62c6 5743
4cdb0ab0
VS
5744 if test "$enableval" = yes; then
5745 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5746 else
5747 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5748 fi
e6cc62c6 5749
4cdb0ab0 5750else
e6cc62c6 5751
4cdb0ab0
VS
5752 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5753 if test "x$LINE" != x ; then
5754 eval "DEFAULT_$LINE"
5755 else
5756 no_cache=1
5757 fi
5758
5759 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5760
e6cc62c6 5761fi;
4cdb0ab0
VS
5762
5763 eval "$ac_cv_use_protocol_http"
5764 if test "$no_cache" != 1; then
5765 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5766 fi
5767
5768 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5769 echo "$as_me:$LINENO: result: yes" >&5
5770echo "${ECHO_T}yes" >&6
4cdb0ab0 5771 else
e6cc62c6
VS
5772 echo "$as_me:$LINENO: result: no" >&5
5773echo "${ECHO_T}no" >&6
4cdb0ab0 5774 fi
e6cc62c6 5775
4cdb0ab0 5776
5005acfe 5777 enablestring=
e6cc62c6
VS
5778 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5779echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5780 no_cache=0
5781 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5782if test "${enable_protocol_ftp+set}" = set; then
5783 enableval="$enable_protocol_ftp"
e6cc62c6 5784
4cdb0ab0
VS
5785 if test "$enableval" = yes; then
5786 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5787 else
5788 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5789 fi
e6cc62c6 5790
4cdb0ab0 5791else
e6cc62c6 5792
4cdb0ab0
VS
5793 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5794 if test "x$LINE" != x ; then
5795 eval "DEFAULT_$LINE"
5796 else
5797 no_cache=1
5798 fi
5799
5800 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5801
e6cc62c6 5802fi;
4cdb0ab0
VS
5803
5804 eval "$ac_cv_use_protocol_ftp"
5805 if test "$no_cache" != 1; then
5806 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5807 fi
5808
5809 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5810 echo "$as_me:$LINENO: result: yes" >&5
5811echo "${ECHO_T}yes" >&6
4cdb0ab0 5812 else
e6cc62c6
VS
5813 echo "$as_me:$LINENO: result: no" >&5
5814echo "${ECHO_T}no" >&6
4cdb0ab0 5815 fi
e6cc62c6 5816
4cdb0ab0 5817
5005acfe 5818 enablestring=
e6cc62c6
VS
5819 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5820echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5821 no_cache=0
5822 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5823if test "${enable_protocol_file+set}" = set; then
5824 enableval="$enable_protocol_file"
e6cc62c6 5825
4cdb0ab0
VS
5826 if test "$enableval" = yes; then
5827 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5828 else
5829 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5830 fi
e6cc62c6 5831
4cdb0ab0 5832else
e6cc62c6 5833
4cdb0ab0
VS
5834 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5835 if test "x$LINE" != x ; then
5836 eval "DEFAULT_$LINE"
5837 else
5838 no_cache=1
5839 fi
5840
5841 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5842
e6cc62c6 5843fi;
4cdb0ab0
VS
5844
5845 eval "$ac_cv_use_protocol_file"
5846 if test "$no_cache" != 1; then
5847 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5848 fi
5849
5850 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5851 echo "$as_me:$LINENO: result: yes" >&5
5852echo "${ECHO_T}yes" >&6
4cdb0ab0 5853 else
e6cc62c6
VS
5854 echo "$as_me:$LINENO: result: no" >&5
5855echo "${ECHO_T}no" >&6
4cdb0ab0 5856 fi
e6cc62c6 5857
52127426 5858
8284b0c5
MB
5859
5860
5861
5005acfe 5862 enablestring=
e6cc62c6
VS
5863 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5864echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5865 no_cache=0
5866 # Check whether --enable-threads or --disable-threads was given.
5867if test "${enable_threads+set}" = set; then
5868 enableval="$enable_threads"
e6cc62c6 5869
10f2d63a
VZ
5870 if test "$enableval" = yes; then
5871 ac_cv_use_threads='wxUSE_THREADS=yes'
5872 else
5873 ac_cv_use_threads='wxUSE_THREADS=no'
5874 fi
e6cc62c6 5875
10f2d63a 5876else
e6cc62c6 5877
10f2d63a
VZ
5878 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5879 if test "x$LINE" != x ; then
5880 eval "DEFAULT_$LINE"
5881 else
5882 no_cache=1
5883 fi
5884
5885 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5886
e6cc62c6 5887fi;
10f2d63a
VZ
5888
5889 eval "$ac_cv_use_threads"
5890 if test "$no_cache" != 1; then
5891 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5892 fi
5893
5894 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5895 echo "$as_me:$LINENO: result: yes" >&5
5896echo "${ECHO_T}yes" >&6
10f2d63a 5897 else
e6cc62c6
VS
5898 echo "$as_me:$LINENO: result: no" >&5
5899echo "${ECHO_T}no" >&6
10f2d63a 5900 fi
e6cc62c6 5901
10f2d63a 5902
b12915c1
VZ
5903if test "$wxUSE_GUI" = "yes"; then
5904
8284b0c5
MB
5905
5906
5005acfe 5907 enablestring=
e6cc62c6
VS
5908 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5909echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5910 no_cache=0
5911 # Check whether --enable-docview or --disable-docview was given.
5912if test "${enable_docview+set}" = set; then
5913 enableval="$enable_docview"
e6cc62c6 5914
10f2d63a
VZ
5915 if test "$enableval" = yes; then
5916 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5917 else
5918 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5919 fi
e6cc62c6 5920
10f2d63a 5921else
e6cc62c6 5922
10f2d63a
VZ
5923 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5924 if test "x$LINE" != x ; then
5925 eval "DEFAULT_$LINE"
5926 else
5927 no_cache=1
5928 fi
5929
5930 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5931
e6cc62c6 5932fi;
10f2d63a
VZ
5933
5934 eval "$ac_cv_use_docview"
5935 if test "$no_cache" != 1; then
5936 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5937 fi
5938
5939 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
5940 echo "$as_me:$LINENO: result: yes" >&5
5941echo "${ECHO_T}yes" >&6
10f2d63a 5942 else
e6cc62c6
VS
5943 echo "$as_me:$LINENO: result: no" >&5
5944echo "${ECHO_T}no" >&6
10f2d63a 5945 fi
e6cc62c6 5946
10f2d63a 5947
5005acfe 5948 enablestring=
e6cc62c6
VS
5949 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5950echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
5951 no_cache=0
5952 # Check whether --enable-help or --disable-help was given.
5953if test "${enable_help+set}" = set; then
5954 enableval="$enable_help"
e6cc62c6 5955
10f2d63a
VZ
5956 if test "$enableval" = yes; then
5957 ac_cv_use_help='wxUSE_HELP=yes'
5958 else
5959 ac_cv_use_help='wxUSE_HELP=no'
5960 fi
e6cc62c6 5961
10f2d63a 5962else
e6cc62c6 5963
10f2d63a
VZ
5964 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5965 if test "x$LINE" != x ; then
5966 eval "DEFAULT_$LINE"
5967 else
5968 no_cache=1
5969 fi
5970
5971 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5972
e6cc62c6 5973fi;
10f2d63a
VZ
5974
5975 eval "$ac_cv_use_help"
5976 if test "$no_cache" != 1; then
5977 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5978 fi
5979
5980 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
5981 echo "$as_me:$LINENO: result: yes" >&5
5982echo "${ECHO_T}yes" >&6
10f2d63a 5983 else
e6cc62c6
VS
5984 echo "$as_me:$LINENO: result: no" >&5
5985echo "${ECHO_T}no" >&6
10f2d63a 5986 fi
e6cc62c6 5987
10f2d63a 5988
5005acfe 5989 enablestring=
e6cc62c6
VS
5990 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5991echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5992 no_cache=0
5993 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5994if test "${enable_mshtmlhelp+set}" = set; then
5995 enableval="$enable_mshtmlhelp"
e6cc62c6 5996
29fd3c0c
VS
5997 if test "$enableval" = yes; then
5998 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
5999 else
6000 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6001 fi
e6cc62c6 6002
29fd3c0c 6003else
e6cc62c6 6004
29fd3c0c
VS
6005 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6006 if test "x$LINE" != x ; then
6007 eval "DEFAULT_$LINE"
6008 else
6009 no_cache=1
6010 fi
6011
6012 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 6013
e6cc62c6 6014fi;
29fd3c0c
VS
6015
6016 eval "$ac_cv_use_mshtmlhelp"
6017 if test "$no_cache" != 1; then
6018 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6019 fi
6020
6021 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
6022 echo "$as_me:$LINENO: result: yes" >&5
6023echo "${ECHO_T}yes" >&6
29fd3c0c 6024 else
e6cc62c6
VS
6025 echo "$as_me:$LINENO: result: no" >&5
6026echo "${ECHO_T}no" >&6
29fd3c0c 6027 fi
e6cc62c6 6028
29fd3c0c 6029
5005acfe 6030 enablestring=
e6cc62c6
VS
6031 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6032echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
6033 no_cache=0
6034 # Check whether --enable-html or --disable-html was given.
6035if test "${enable_html+set}" = set; then
6036 enableval="$enable_html"
e6cc62c6 6037
3379ed37
VZ
6038 if test "$enableval" = yes; then
6039 ac_cv_use_html='wxUSE_HTML=yes'
6040 else
6041 ac_cv_use_html='wxUSE_HTML=no'
6042 fi
e6cc62c6 6043
3379ed37 6044else
e6cc62c6 6045
3379ed37
VZ
6046 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6047 if test "x$LINE" != x ; then
6048 eval "DEFAULT_$LINE"
6049 else
6050 no_cache=1
6051 fi
6052
6053 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 6054
e6cc62c6 6055fi;
3379ed37
VZ
6056
6057 eval "$ac_cv_use_html"
6058 if test "$no_cache" != 1; then
6059 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6060 fi
6061
6062 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
6063 echo "$as_me:$LINENO: result: yes" >&5
6064echo "${ECHO_T}yes" >&6
3379ed37 6065 else
e6cc62c6
VS
6066 echo "$as_me:$LINENO: result: no" >&5
6067echo "${ECHO_T}no" >&6
3379ed37 6068 fi
e6cc62c6 6069
3379ed37 6070
5005acfe 6071 enablestring=
e6cc62c6
VS
6072 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6073echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
6074 no_cache=0
6075 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6076if test "${enable_htmlhelp+set}" = set; then
6077 enableval="$enable_htmlhelp"
e6cc62c6 6078
3379ed37
VZ
6079 if test "$enableval" = yes; then
6080 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6081 else
6082 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6083 fi
e6cc62c6 6084
3379ed37 6085else
e6cc62c6 6086
3379ed37
VZ
6087 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6088 if test "x$LINE" != x ; then
6089 eval "DEFAULT_$LINE"
6090 else
6091 no_cache=1
6092 fi
6093
6094 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 6095
e6cc62c6 6096fi;
3379ed37
VZ
6097
6098 eval "$ac_cv_use_htmlhelp"
6099 if test "$no_cache" != 1; then
6100 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6101 fi
6102
6103 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
6104 echo "$as_me:$LINENO: result: yes" >&5
6105echo "${ECHO_T}yes" >&6
3379ed37 6106 else
e6cc62c6
VS
6107 echo "$as_me:$LINENO: result: no" >&5
6108echo "${ECHO_T}no" >&6
3379ed37 6109 fi
e6cc62c6 6110
3379ed37 6111
5005acfe 6112 enablestring=
e6cc62c6
VS
6113 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6114echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
6115 no_cache=0
6116 # Check whether --enable-constraints or --disable-constraints was given.
6117if test "${enable_constraints+set}" = set; then
6118 enableval="$enable_constraints"
e6cc62c6 6119
10f2d63a
VZ
6120 if test "$enableval" = yes; then
6121 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6122 else
6123 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6124 fi
e6cc62c6 6125
10f2d63a 6126else
e6cc62c6 6127
10f2d63a
VZ
6128 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6129 if test "x$LINE" != x ; then
6130 eval "DEFAULT_$LINE"
6131 else
6132 no_cache=1
6133 fi
6134
6135 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 6136
e6cc62c6 6137fi;
10f2d63a
VZ
6138
6139 eval "$ac_cv_use_constraints"
6140 if test "$no_cache" != 1; then
6141 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6142 fi
6143
6144 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
6145 echo "$as_me:$LINENO: result: yes" >&5
6146echo "${ECHO_T}yes" >&6
10f2d63a 6147 else
e6cc62c6
VS
6148 echo "$as_me:$LINENO: result: no" >&5
6149echo "${ECHO_T}no" >&6
10f2d63a 6150 fi
e6cc62c6 6151
10f2d63a 6152
5005acfe 6153 enablestring=
e6cc62c6
VS
6154 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6155echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
6156 no_cache=0
6157 # Check whether --enable-printarch or --disable-printarch was given.
6158if test "${enable_printarch+set}" = set; then
6159 enableval="$enable_printarch"
e6cc62c6 6160
10f2d63a
VZ
6161 if test "$enableval" = yes; then
6162 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6163 else
6164 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6165 fi
e6cc62c6 6166
10f2d63a 6167else
e6cc62c6 6168
10f2d63a
VZ
6169 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6170 if test "x$LINE" != x ; then
6171 eval "DEFAULT_$LINE"
6172 else
6173 no_cache=1
6174 fi
6175
6176 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 6177
e6cc62c6 6178fi;
10f2d63a
VZ
6179
6180 eval "$ac_cv_use_printarch"
6181 if test "$no_cache" != 1; then
6182 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6183 fi
6184
6185 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
6186 echo "$as_me:$LINENO: result: yes" >&5
6187echo "${ECHO_T}yes" >&6
10f2d63a 6188 else
e6cc62c6
VS
6189 echo "$as_me:$LINENO: result: no" >&5
6190echo "${ECHO_T}no" >&6
10f2d63a 6191 fi
e6cc62c6 6192
10f2d63a 6193
5005acfe 6194 enablestring=
e6cc62c6
VS
6195 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6196echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6197 no_cache=0
6198 # Check whether --enable-mdi or --disable-mdi was given.
6199if test "${enable_mdi+set}" = set; then
6200 enableval="$enable_mdi"
e6cc62c6 6201
10f2d63a
VZ
6202 if test "$enableval" = yes; then
6203 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6204 else
6205 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6206 fi
e6cc62c6 6207
10f2d63a 6208else
e6cc62c6 6209
10f2d63a
VZ
6210 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6211 if test "x$LINE" != x ; then
6212 eval "DEFAULT_$LINE"
6213 else
6214 no_cache=1
6215 fi
6216
6217 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6218
e6cc62c6 6219fi;
10f2d63a
VZ
6220
6221 eval "$ac_cv_use_mdi"
6222 if test "$no_cache" != 1; then
6223 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6224 fi
6225
6226 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6227 echo "$as_me:$LINENO: result: yes" >&5
6228echo "${ECHO_T}yes" >&6
10f2d63a 6229 else
e6cc62c6
VS
6230 echo "$as_me:$LINENO: result: no" >&5
6231echo "${ECHO_T}no" >&6
10f2d63a 6232 fi
e6cc62c6 6233
698dcdb6 6234
5005acfe 6235 enablestring=
e6cc62c6
VS
6236 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6237echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6238 no_cache=0
6239 # Check whether --enable-loggui or --disable-loggui was given.
6240if test "${enable_loggui+set}" = set; then
6241 enableval="$enable_loggui"
e6cc62c6 6242
1e6feb95
VZ
6243 if test "$enableval" = yes; then
6244 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6245 else
6246 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6247 fi
e6cc62c6 6248
1e6feb95 6249else
e6cc62c6 6250
1e6feb95
VZ
6251 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6252 if test "x$LINE" != x ; then
6253 eval "DEFAULT_$LINE"
6254 else
6255 no_cache=1
6256 fi
6257
6258 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6259
e6cc62c6 6260fi;
1e6feb95
VZ
6261
6262 eval "$ac_cv_use_loggui"
6263 if test "$no_cache" != 1; then
6264 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6265 fi
6266
6267 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6268 echo "$as_me:$LINENO: result: yes" >&5
6269echo "${ECHO_T}yes" >&6
1e6feb95 6270 else
e6cc62c6
VS
6271 echo "$as_me:$LINENO: result: no" >&5
6272echo "${ECHO_T}no" >&6
1e6feb95 6273 fi
e6cc62c6 6274
1e6feb95 6275
5005acfe 6276 enablestring=
e6cc62c6
VS
6277 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6278echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6279 no_cache=0
6280 # Check whether --enable-logwin or --disable-logwin was given.
6281if test "${enable_logwin+set}" = set; then
6282 enableval="$enable_logwin"
e6cc62c6 6283
1e6feb95
VZ
6284 if test "$enableval" = yes; then
6285 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6286 else
6287 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6288 fi
e6cc62c6 6289
1e6feb95 6290else
e6cc62c6 6291
1e6feb95
VZ
6292 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6293 if test "x$LINE" != x ; then
6294 eval "DEFAULT_$LINE"
6295 else
6296 no_cache=1
6297 fi
6298
6299 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6300
e6cc62c6 6301fi;
1e6feb95
VZ
6302
6303 eval "$ac_cv_use_logwin"
6304 if test "$no_cache" != 1; then
6305 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6306 fi
6307
6308 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6309 echo "$as_me:$LINENO: result: yes" >&5
6310echo "${ECHO_T}yes" >&6
1e6feb95 6311 else
e6cc62c6
VS
6312 echo "$as_me:$LINENO: result: no" >&5
6313echo "${ECHO_T}no" >&6
1e6feb95 6314 fi
e6cc62c6 6315
1e6feb95 6316
5005acfe 6317 enablestring=
e6cc62c6
VS
6318 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6319echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6320 no_cache=0
6321 # Check whether --enable-logdialog or --disable-logdialog was given.
6322if test "${enable_logdialog+set}" = set; then
6323 enableval="$enable_logdialog"
e6cc62c6 6324
69d27ff7
MB
6325 if test "$enableval" = yes; then
6326 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6327 else
6328 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6329 fi
e6cc62c6 6330
69d27ff7 6331else
e6cc62c6 6332
69d27ff7
MB
6333 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6334 if test "x$LINE" != x ; then
6335 eval "DEFAULT_$LINE"
6336 else
6337 no_cache=1
6338 fi
6339
6340 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6341
e6cc62c6 6342fi;
69d27ff7
MB
6343
6344 eval "$ac_cv_use_logdialog"
6345 if test "$no_cache" != 1; then
6346 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6347 fi
6348
6349 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6350 echo "$as_me:$LINENO: result: yes" >&5
6351echo "${ECHO_T}yes" >&6
69d27ff7 6352 else
e6cc62c6
VS
6353 echo "$as_me:$LINENO: result: no" >&5
6354echo "${ECHO_T}no" >&6
69d27ff7 6355 fi
e6cc62c6 6356
8284b0c5 6357
52127426 6358
5005acfe 6359 enablestring=
e6cc62c6
VS
6360 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6361echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6362 no_cache=0
6363 # Check whether --enable-postscript or --disable-postscript was given.
6364if test "${enable_postscript+set}" = set; then
6365 enableval="$enable_postscript"
e6cc62c6 6366
10f2d63a
VZ
6367 if test "$enableval" = yes; then
6368 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6369 else
6370 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6371 fi
e6cc62c6 6372
10f2d63a 6373else
e6cc62c6 6374
10f2d63a
VZ
6375 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6376 if test "x$LINE" != x ; then
6377 eval "DEFAULT_$LINE"
6378 else
6379 no_cache=1
6380 fi
6381
6382 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6383
e6cc62c6 6384fi;
10f2d63a
VZ
6385
6386 eval "$ac_cv_use_postscript"
6387 if test "$no_cache" != 1; then
6388 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6389 fi
6390
6391 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6392 echo "$as_me:$LINENO: result: yes" >&5
6393echo "${ECHO_T}yes" >&6
10f2d63a 6394 else
e6cc62c6
VS
6395 echo "$as_me:$LINENO: result: no" >&5
6396echo "${ECHO_T}no" >&6
10f2d63a 6397 fi
e6cc62c6 6398
8284b0c5
MB
6399
6400
52127426 6401
8284b0c5 6402
5005acfe 6403 enablestring=
e6cc62c6
VS
6404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6405echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6406 no_cache=0
3c907f20
VZ
6407 # Check whether --enable-prologio or --disable-prologio was given.
6408if test "${enable_prologio+set}" = set; then
6409 enableval="$enable_prologio"
e6cc62c6 6410
10f2d63a 6411 if test "$enableval" = yes; then
3c907f20 6412 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6413 else
3c907f20 6414 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6415 fi
e6cc62c6 6416
10f2d63a 6417else
e6cc62c6 6418
3c907f20 6419 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6420 if test "x$LINE" != x ; then
6421 eval "DEFAULT_$LINE"
6422 else
6423 no_cache=1
6424 fi
6425
3c907f20 6426 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6427
e6cc62c6 6428fi;
10f2d63a 6429
3c907f20 6430 eval "$ac_cv_use_prologio"
10f2d63a 6431 if test "$no_cache" != 1; then
3c907f20 6432 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6433 fi
6434
3c907f20 6435 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6436 echo "$as_me:$LINENO: result: yes" >&5
6437echo "${ECHO_T}yes" >&6
10f2d63a 6438 else
e6cc62c6
VS
6439 echo "$as_me:$LINENO: result: no" >&5
6440echo "${ECHO_T}no" >&6
10f2d63a 6441 fi
e6cc62c6 6442
8284b0c5 6443
5005acfe 6444 enablestring=
e6cc62c6
VS
6445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6446echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6447 no_cache=0
3c907f20
VZ
6448 # Check whether --enable-resources or --disable-resources was given.
6449if test "${enable_resources+set}" = set; then
6450 enableval="$enable_resources"
e6cc62c6 6451
10f2d63a 6452 if test "$enableval" = yes; then
3c907f20 6453 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6454 else
3c907f20 6455 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6456 fi
e6cc62c6 6457
10f2d63a 6458else
e6cc62c6 6459
3c907f20 6460 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6461 if test "x$LINE" != x ; then
6462 eval "DEFAULT_$LINE"
6463 else
6464 no_cache=1
6465 fi
6466
3c907f20 6467 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6468
e6cc62c6 6469fi;
10f2d63a 6470
3c907f20 6471 eval "$ac_cv_use_resources"
10f2d63a 6472 if test "$no_cache" != 1; then
3c907f20 6473 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6474 fi
6475
3c907f20 6476 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6477 echo "$as_me:$LINENO: result: yes" >&5
6478echo "${ECHO_T}yes" >&6
10f2d63a 6479 else
e6cc62c6
VS
6480 echo "$as_me:$LINENO: result: no" >&5
6481echo "${ECHO_T}no" >&6
10f2d63a 6482 fi
e6cc62c6 6483
8284b0c5
MB
6484
6485
52127426 6486
5005acfe 6487 enablestring=
e6cc62c6
VS
6488 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6489echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6490 no_cache=0
6491 # Check whether --enable-clipboard or --disable-clipboard was given.
6492if test "${enable_clipboard+set}" = set; then
6493 enableval="$enable_clipboard"
e6cc62c6 6494
10f2d63a
VZ
6495 if test "$enableval" = yes; then
6496 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6497 else
6498 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6499 fi
e6cc62c6 6500
10f2d63a 6501else
e6cc62c6 6502
10f2d63a
VZ
6503 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6504 if test "x$LINE" != x ; then
6505 eval "DEFAULT_$LINE"
6506 else
6507 no_cache=1
6508 fi
6509
6510 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6511
e6cc62c6 6512fi;
10f2d63a
VZ
6513
6514 eval "$ac_cv_use_clipboard"
6515 if test "$no_cache" != 1; then
6516 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6517 fi
6518
6519 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6520 echo "$as_me:$LINENO: result: yes" >&5
6521echo "${ECHO_T}yes" >&6
10f2d63a 6522 else
e6cc62c6
VS
6523 echo "$as_me:$LINENO: result: no" >&5
6524echo "${ECHO_T}no" >&6
10f2d63a 6525 fi
e6cc62c6 6526
10f2d63a 6527
5005acfe 6528 enablestring=
e6cc62c6
VS
6529 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6530echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6531 no_cache=0
6532 # Check whether --enable-dnd or --disable-dnd was given.
6533if test "${enable_dnd+set}" = set; then
6534 enableval="$enable_dnd"
e6cc62c6 6535
10f2d63a
VZ
6536 if test "$enableval" = yes; then
6537 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6538 else
6539 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6540 fi
e6cc62c6 6541
10f2d63a 6542else
e6cc62c6 6543
10f2d63a
VZ
6544 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6545 if test "x$LINE" != x ; then
6546 eval "DEFAULT_$LINE"
6547 else
6548 no_cache=1
6549 fi
6550
6551 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6552
e6cc62c6 6553fi;
10f2d63a
VZ
6554
6555 eval "$ac_cv_use_dnd"
6556 if test "$no_cache" != 1; then
6557 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6558 fi
6559
6560 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6561 echo "$as_me:$LINENO: result: yes" >&5
6562echo "${ECHO_T}yes" >&6
10f2d63a 6563 else
e6cc62c6
VS
6564 echo "$as_me:$LINENO: result: no" >&5
6565echo "${ECHO_T}no" >&6
10f2d63a 6566 fi
e6cc62c6 6567
10f2d63a 6568
5005acfe 6569 enablestring=
e6cc62c6
VS
6570 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6571echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6572 no_cache=0
6573 # Check whether --enable-metafile or --disable-metafile was given.
6574if test "${enable_metafile+set}" = set; then
6575 enableval="$enable_metafile"
e6cc62c6 6576
b64f0a5f
RL
6577 if test "$enableval" = yes; then
6578 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6579 else
6580 ac_cv_use_metafile='wxUSE_METAFILE=no'
6581 fi
e6cc62c6 6582
b64f0a5f 6583else
e6cc62c6 6584
b64f0a5f
RL
6585 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6586 if test "x$LINE" != x ; then
6587 eval "DEFAULT_$LINE"
6588 else
6589 no_cache=1
6590 fi
6591
6592 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6593
e6cc62c6 6594fi;
b64f0a5f
RL
6595
6596 eval "$ac_cv_use_metafile"
6597 if test "$no_cache" != 1; then
6598 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6599 fi
6600
6601 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6602 echo "$as_me:$LINENO: result: yes" >&5
6603echo "${ECHO_T}yes" >&6
b64f0a5f 6604 else
e6cc62c6
VS
6605 echo "$as_me:$LINENO: result: no" >&5
6606echo "${ECHO_T}no" >&6
b64f0a5f 6607 fi
e6cc62c6 6608
52127426 6609
8284b0c5 6610
52127426 6611
8284b0c5 6612
5005acfe 6613 enablestring=
e6cc62c6
VS
6614 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6615echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6616 no_cache=0
6617 # Check whether --enable-controls or --disable-controls was given.
6618if test "${enable_controls+set}" = set; then
6619 enableval="$enable_controls"
e6cc62c6 6620
10f2d63a
VZ
6621 if test "$enableval" = yes; then
6622 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6623 else
6624 ac_cv_use_controls='wxUSE_CONTROLS=no'
6625 fi
e6cc62c6 6626
10f2d63a 6627else
e6cc62c6 6628
10f2d63a
VZ
6629 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6630 if test "x$LINE" != x ; then
6631 eval "DEFAULT_$LINE"
6632 else
6633 no_cache=1
6634 fi
6635
6636 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6637
e6cc62c6 6638fi;
10f2d63a
VZ
6639
6640 eval "$ac_cv_use_controls"
6641 if test "$no_cache" != 1; then
6642 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6643 fi
6644
6645 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6646 echo "$as_me:$LINENO: result: yes" >&5
6647echo "${ECHO_T}yes" >&6
10f2d63a 6648 else
e6cc62c6
VS
6649 echo "$as_me:$LINENO: result: no" >&5
6650echo "${ECHO_T}no" >&6
10f2d63a 6651 fi
e6cc62c6 6652
10f2d63a
VZ
6653
6654if test "$wxUSE_CONTROLS" = "yes"; then
6655 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6656 DEFAULT_wxUSE_BMPBUTTON=yes
6657 DEFAULT_wxUSE_BUTTON=yes
6658 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6659 DEFAULT_wxUSE_CARET=yes
6660 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6661 DEFAULT_wxUSE_CHECKBOX=yes
6662 DEFAULT_wxUSE_CHECKLISTBOX=yes
6663 DEFAULT_wxUSE_CHOICE=yes
6664 DEFAULT_wxUSE_GAUGE=yes
6665 DEFAULT_wxUSE_GRID=yes
10f2d63a 6666 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 6667 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
6668 DEFAULT_wxUSE_LISTBOX=yes
6669 DEFAULT_wxUSE_LISTCTRL=yes
6670 DEFAULT_wxUSE_NOTEBOOK=yes
6671 DEFAULT_wxUSE_RADIOBOX=yes
6672 DEFAULT_wxUSE_RADIOBTN=yes
6673 DEFAULT_wxUSE_SASH=yes
6674 DEFAULT_wxUSE_SCROLLBAR=yes
6675 DEFAULT_wxUSE_SLIDER=yes
6676 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6677 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6678 DEFAULT_wxUSE_SPLITTER=yes
6679 DEFAULT_wxUSE_STATBMP=yes
6680 DEFAULT_wxUSE_STATBOX=yes
6681 DEFAULT_wxUSE_STATLINE=yes
6682 DEFAULT_wxUSE_STATUSBAR=yes
6683 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6684 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6685 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6686 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6687 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6688 DEFAULT_wxUSE_TOOLTIPS=yes
6689 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6690 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6691 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6692elif test "$wxUSE_CONTROLS" = "no"; then
6693 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6694 DEFAULT_wxUSE_BMPBUTTON=no
6695 DEFAULT_wxUSE_BUTTON=no
6696 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6697 DEFAULT_wxUSE_CARET=no
6698 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6699 DEFAULT_wxUSE_CHECKBOX=no
6700 DEFAULT_wxUSE_CHECKLISTBOX=no
6701 DEFAULT_wxUSE_CHOICE=no
6702 DEFAULT_wxUSE_GAUGE=no
6703 DEFAULT_wxUSE_GRID=no
10f2d63a 6704 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 6705 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
6706 DEFAULT_wxUSE_LISTBOX=no
6707 DEFAULT_wxUSE_LISTCTRL=no
6708 DEFAULT_wxUSE_NOTEBOOK=no
6709 DEFAULT_wxUSE_RADIOBOX=no
6710 DEFAULT_wxUSE_RADIOBTN=no
6711 DEFAULT_wxUSE_SASH=no
6712 DEFAULT_wxUSE_SCROLLBAR=no
6713 DEFAULT_wxUSE_SLIDER=no
6714 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6715 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6716 DEFAULT_wxUSE_SPLITTER=no
6717 DEFAULT_wxUSE_STATBMP=no
6718 DEFAULT_wxUSE_STATBOX=no
6719 DEFAULT_wxUSE_STATLINE=no
6720 DEFAULT_wxUSE_STATUSBAR=no
6721 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6722 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6723 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6724 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6725 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6726 DEFAULT_wxUSE_TOOLTIPS=no
6727 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6728 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6729 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6730fi
6731
ac0c4cc3
DE
6732## FIXME: This is a blatant hack
6733if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6734 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3 6735 wxUSE_DRAG_AND_DROP=no
8b389fab
DE
6736 # Generic notebook requires tab dialog
6737 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6738 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
ac0c4cc3 6739 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6740 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6741 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6742fi
6743
8284b0c5 6744
5005acfe 6745 enablestring=
e6cc62c6
VS
6746 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6747echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6748 no_cache=0
6749 # Check whether --enable-accel or --disable-accel was given.
6750if test "${enable_accel+set}" = set; then
6751 enableval="$enable_accel"
e6cc62c6 6752
10f2d63a
VZ
6753 if test "$enableval" = yes; then
6754 ac_cv_use_accel='wxUSE_ACCEL=yes'
6755 else
6756 ac_cv_use_accel='wxUSE_ACCEL=no'
6757 fi
e6cc62c6 6758
10f2d63a 6759else
e6cc62c6 6760
10f2d63a
VZ
6761 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6762 if test "x$LINE" != x ; then
6763 eval "DEFAULT_$LINE"
6764 else
6765 no_cache=1
6766 fi
6767
6768 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6769
e6cc62c6 6770fi;
10f2d63a
VZ
6771
6772 eval "$ac_cv_use_accel"
6773 if test "$no_cache" != 1; then
6774 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6775 fi
6776
6777 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6778 echo "$as_me:$LINENO: result: yes" >&5
6779echo "${ECHO_T}yes" >&6
10f2d63a 6780 else
e6cc62c6
VS
6781 echo "$as_me:$LINENO: result: no" >&5
6782echo "${ECHO_T}no" >&6
10f2d63a 6783 fi
e6cc62c6 6784
10f2d63a 6785
5005acfe 6786 enablestring=
e6cc62c6
VS
6787 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6788echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6789 no_cache=0
1e6feb95
VZ
6790 # Check whether --enable-button or --disable-button was given.
6791if test "${enable_button+set}" = set; then
6792 enableval="$enable_button"
e6cc62c6 6793
10f2d63a 6794 if test "$enableval" = yes; then
1e6feb95 6795 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6796 else
1e6feb95 6797 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6798 fi
e6cc62c6 6799
10f2d63a 6800else
e6cc62c6 6801
1e6feb95 6802 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6803 if test "x$LINE" != x ; then
6804 eval "DEFAULT_$LINE"
6805 else
6806 no_cache=1
6807 fi
6808
1e6feb95 6809 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6810
e6cc62c6 6811fi;
10f2d63a 6812
1e6feb95 6813 eval "$ac_cv_use_button"
10f2d63a 6814 if test "$no_cache" != 1; then
1e6feb95 6815 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6816 fi
6817
1e6feb95 6818 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6819 echo "$as_me:$LINENO: result: yes" >&5
6820echo "${ECHO_T}yes" >&6
10f2d63a 6821 else
e6cc62c6
VS
6822 echo "$as_me:$LINENO: result: no" >&5
6823echo "${ECHO_T}no" >&6
10f2d63a 6824 fi
e6cc62c6 6825
10f2d63a 6826
5005acfe 6827 enablestring=
e6cc62c6
VS
6828 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6829echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6830 no_cache=0
6831 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6832if test "${enable_bmpbutton+set}" = set; then
6833 enableval="$enable_bmpbutton"
e6cc62c6 6834
10f2d63a
VZ
6835 if test "$enableval" = yes; then
6836 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6837 else
6838 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6839 fi
e6cc62c6 6840
10f2d63a 6841else
e6cc62c6 6842
10f2d63a
VZ
6843 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6844 if test "x$LINE" != x ; then
6845 eval "DEFAULT_$LINE"
6846 else
6847 no_cache=1
6848 fi
6849
6850 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6851
e6cc62c6 6852fi;
10f2d63a
VZ
6853
6854 eval "$ac_cv_use_bmpbutton"
6855 if test "$no_cache" != 1; then
6856 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6857 fi
6858
6859 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6860 echo "$as_me:$LINENO: result: yes" >&5
6861echo "${ECHO_T}yes" >&6
10f2d63a 6862 else
e6cc62c6
VS
6863 echo "$as_me:$LINENO: result: no" >&5
6864echo "${ECHO_T}no" >&6
10f2d63a 6865 fi
e6cc62c6 6866
10f2d63a 6867
5005acfe 6868 enablestring=
e6cc62c6
VS
6869 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6870echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6871 no_cache=0
6872 # Check whether --enable-calendar or --disable-calendar was given.
6873if test "${enable_calendar+set}" = set; then
6874 enableval="$enable_calendar"
e6cc62c6 6875
1e6feb95
VZ
6876 if test "$enableval" = yes; then
6877 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6878 else
6879 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6880 fi
e6cc62c6 6881
1e6feb95 6882else
e6cc62c6 6883
1e6feb95
VZ
6884 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6885 if test "x$LINE" != x ; then
6886 eval "DEFAULT_$LINE"
6887 else
6888 no_cache=1
6889 fi
6890
6891 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6892
e6cc62c6 6893fi;
1e6feb95
VZ
6894
6895 eval "$ac_cv_use_calendar"
6896 if test "$no_cache" != 1; then
6897 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6898 fi
6899
6900 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6901 echo "$as_me:$LINENO: result: yes" >&5
6902echo "${ECHO_T}yes" >&6
1e6feb95 6903 else
e6cc62c6
VS
6904 echo "$as_me:$LINENO: result: no" >&5
6905echo "${ECHO_T}no" >&6
1e6feb95 6906 fi
e6cc62c6 6907
1e6feb95 6908
5005acfe 6909 enablestring=
e6cc62c6
VS
6910 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6911echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6912 no_cache=0
6913 # Check whether --enable-caret or --disable-caret was given.
6914if test "${enable_caret+set}" = set; then
6915 enableval="$enable_caret"
e6cc62c6 6916
1e6feb95
VZ
6917 if test "$enableval" = yes; then
6918 ac_cv_use_caret='wxUSE_CARET=yes'
6919 else
6920 ac_cv_use_caret='wxUSE_CARET=no'
6921 fi
e6cc62c6 6922
1e6feb95 6923else
e6cc62c6 6924
1e6feb95
VZ
6925 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6926 if test "x$LINE" != x ; then
6927 eval "DEFAULT_$LINE"
6928 else
6929 no_cache=1
6930 fi
6931
6932 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6933
e6cc62c6 6934fi;
1e6feb95
VZ
6935
6936 eval "$ac_cv_use_caret"
6937 if test "$no_cache" != 1; then
6938 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6939 fi
6940
6941 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
6942 echo "$as_me:$LINENO: result: yes" >&5
6943echo "${ECHO_T}yes" >&6
1e6feb95 6944 else
e6cc62c6
VS
6945 echo "$as_me:$LINENO: result: no" >&5
6946echo "${ECHO_T}no" >&6
1e6feb95 6947 fi
e6cc62c6 6948
1e6feb95 6949
5005acfe 6950 enablestring=
e6cc62c6
VS
6951 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6952echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6953 no_cache=0
6954 # Check whether --enable-checkbox or --disable-checkbox was given.
6955if test "${enable_checkbox+set}" = set; then
6956 enableval="$enable_checkbox"
e6cc62c6 6957
10f2d63a
VZ
6958 if test "$enableval" = yes; then
6959 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6960 else
6961 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6962 fi
e6cc62c6 6963
10f2d63a 6964else
e6cc62c6 6965
10f2d63a
VZ
6966 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6967 if test "x$LINE" != x ; then
6968 eval "DEFAULT_$LINE"
6969 else
6970 no_cache=1
6971 fi
6972
6973 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6974
e6cc62c6 6975fi;
10f2d63a
VZ
6976
6977 eval "$ac_cv_use_checkbox"
6978 if test "$no_cache" != 1; then
6979 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6980 fi
6981
6982 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
6983 echo "$as_me:$LINENO: result: yes" >&5
6984echo "${ECHO_T}yes" >&6
10f2d63a 6985 else
e6cc62c6
VS
6986 echo "$as_me:$LINENO: result: no" >&5
6987echo "${ECHO_T}no" >&6
10f2d63a 6988 fi
e6cc62c6 6989
10f2d63a 6990
5005acfe 6991 enablestring=
e6cc62c6
VS
6992 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6993echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
6994 no_cache=0
6995 # Check whether --enable-checklst or --disable-checklst was given.
6996if test "${enable_checklst+set}" = set; then
6997 enableval="$enable_checklst"
e6cc62c6 6998
10f2d63a
VZ
6999 if test "$enableval" = yes; then
7000 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7001 else
7002 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7003 fi
e6cc62c6 7004
10f2d63a 7005else
e6cc62c6 7006
10f2d63a
VZ
7007 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7008 if test "x$LINE" != x ; then
7009 eval "DEFAULT_$LINE"
7010 else
7011 no_cache=1
7012 fi
7013
7014 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 7015
e6cc62c6 7016fi;
10f2d63a
VZ
7017
7018 eval "$ac_cv_use_checklst"
7019 if test "$no_cache" != 1; then
7020 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7021 fi
7022
7023 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
7024 echo "$as_me:$LINENO: result: yes" >&5
7025echo "${ECHO_T}yes" >&6
10f2d63a 7026 else
e6cc62c6
VS
7027 echo "$as_me:$LINENO: result: no" >&5
7028echo "${ECHO_T}no" >&6
10f2d63a 7029 fi
e6cc62c6 7030
10f2d63a 7031
5005acfe 7032 enablestring=
e6cc62c6
VS
7033 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7034echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
7035 no_cache=0
7036 # Check whether --enable-choice or --disable-choice was given.
7037if test "${enable_choice+set}" = set; then
7038 enableval="$enable_choice"
e6cc62c6 7039
10f2d63a
VZ
7040 if test "$enableval" = yes; then
7041 ac_cv_use_choice='wxUSE_CHOICE=yes'
7042 else
7043 ac_cv_use_choice='wxUSE_CHOICE=no'
7044 fi
e6cc62c6 7045
10f2d63a 7046else
e6cc62c6 7047
10f2d63a
VZ
7048 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7049 if test "x$LINE" != x ; then
7050 eval "DEFAULT_$LINE"
7051 else
7052 no_cache=1
7053 fi
7054
7055 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 7056
e6cc62c6 7057fi;
10f2d63a
VZ
7058
7059 eval "$ac_cv_use_choice"
7060 if test "$no_cache" != 1; then
7061 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7062 fi
7063
7064 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
7065 echo "$as_me:$LINENO: result: yes" >&5
7066echo "${ECHO_T}yes" >&6
10f2d63a 7067 else
e6cc62c6
VS
7068 echo "$as_me:$LINENO: result: no" >&5
7069echo "${ECHO_T}no" >&6
10f2d63a 7070 fi
e6cc62c6 7071
10f2d63a 7072
5005acfe 7073 enablestring=
e6cc62c6
VS
7074 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7075echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
7076 no_cache=0
7077 # Check whether --enable-combobox or --disable-combobox was given.
7078if test "${enable_combobox+set}" = set; then
7079 enableval="$enable_combobox"
e6cc62c6 7080
10f2d63a
VZ
7081 if test "$enableval" = yes; then
7082 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7083 else
7084 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7085 fi
e6cc62c6 7086
10f2d63a 7087else
e6cc62c6 7088
10f2d63a
VZ
7089 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7090 if test "x$LINE" != x ; then
7091 eval "DEFAULT_$LINE"
7092 else
7093 no_cache=1
7094 fi
7095
7096 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 7097
e6cc62c6 7098fi;
10f2d63a
VZ
7099
7100 eval "$ac_cv_use_combobox"
7101 if test "$no_cache" != 1; then
7102 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7103 fi
7104
7105 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
7106 echo "$as_me:$LINENO: result: yes" >&5
7107echo "${ECHO_T}yes" >&6
10f2d63a 7108 else
e6cc62c6
VS
7109 echo "$as_me:$LINENO: result: no" >&5
7110echo "${ECHO_T}no" >&6
10f2d63a 7111 fi
e6cc62c6 7112
10f2d63a 7113
da494b40 7114 enablestring=
e6cc62c6
VS
7115 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7116echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
7117 no_cache=0
7118 # Check whether --enable-display or --disable-display was given.
7119if test "${enable_display+set}" = set; then
7120 enableval="$enable_display"
e6cc62c6 7121
da494b40
MB
7122 if test "$enableval" = yes; then
7123 ac_cv_use_display='wxUSE_DISPLAY=yes'
7124 else
7125 ac_cv_use_display='wxUSE_DISPLAY=no'
7126 fi
e6cc62c6 7127
da494b40 7128else
e6cc62c6 7129
da494b40
MB
7130 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7131 if test "x$LINE" != x ; then
7132 eval "DEFAULT_$LINE"
7133 else
7134 no_cache=1
7135 fi
7136
7137 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 7138
e6cc62c6 7139fi;
da494b40
MB
7140
7141 eval "$ac_cv_use_display"
7142 if test "$no_cache" != 1; then
7143 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7144 fi
7145
7146 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
7147 echo "$as_me:$LINENO: result: yes" >&5
7148echo "${ECHO_T}yes" >&6
da494b40 7149 else
e6cc62c6
VS
7150 echo "$as_me:$LINENO: result: no" >&5
7151echo "${ECHO_T}no" >&6
da494b40 7152 fi
e6cc62c6 7153
da494b40 7154
5005acfe 7155 enablestring=
e6cc62c6
VS
7156 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7157echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
7158 no_cache=0
7159 # Check whether --enable-gauge or --disable-gauge was given.
7160if test "${enable_gauge+set}" = set; then
7161 enableval="$enable_gauge"
e6cc62c6 7162
10f2d63a
VZ
7163 if test "$enableval" = yes; then
7164 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7165 else
7166 ac_cv_use_gauge='wxUSE_GAUGE=no'
7167 fi
e6cc62c6 7168
10f2d63a 7169else
e6cc62c6 7170
10f2d63a
VZ
7171 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7172 if test "x$LINE" != x ; then
7173 eval "DEFAULT_$LINE"
7174 else
7175 no_cache=1
7176 fi
7177
7178 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 7179
e6cc62c6 7180fi;
10f2d63a
VZ
7181
7182 eval "$ac_cv_use_gauge"
7183 if test "$no_cache" != 1; then
7184 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7185 fi
7186
7187 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7188 echo "$as_me:$LINENO: result: yes" >&5
7189echo "${ECHO_T}yes" >&6
10f2d63a 7190 else
e6cc62c6
VS
7191 echo "$as_me:$LINENO: result: no" >&5
7192echo "${ECHO_T}no" >&6
10f2d63a 7193 fi
e6cc62c6 7194
10f2d63a 7195
5005acfe 7196 enablestring=
e6cc62c6
VS
7197 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7198echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7199 no_cache=0
7200 # Check whether --enable-grid or --disable-grid was given.
7201if test "${enable_grid+set}" = set; then
7202 enableval="$enable_grid"
e6cc62c6 7203
10f2d63a
VZ
7204 if test "$enableval" = yes; then
7205 ac_cv_use_grid='wxUSE_GRID=yes'
7206 else
7207 ac_cv_use_grid='wxUSE_GRID=no'
7208 fi
e6cc62c6 7209
10f2d63a 7210else
e6cc62c6 7211
10f2d63a
VZ
7212 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7213 if test "x$LINE" != x ; then
7214 eval "DEFAULT_$LINE"
7215 else
7216 no_cache=1
7217 fi
7218
7219 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7220
e6cc62c6 7221fi;
10f2d63a
VZ
7222
7223 eval "$ac_cv_use_grid"
7224 if test "$no_cache" != 1; then
7225 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7226 fi
7227
7228 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7229 echo "$as_me:$LINENO: result: yes" >&5
7230echo "${ECHO_T}yes" >&6
10f2d63a 7231 else
e6cc62c6
VS
7232 echo "$as_me:$LINENO: result: no" >&5
7233echo "${ECHO_T}no" >&6
10f2d63a 7234 fi
e6cc62c6 7235
10f2d63a 7236
5005acfe 7237 enablestring=
e6cc62c6
VS
7238 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7239echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7240 no_cache=0
7241 # Check whether --enable-imaglist or --disable-imaglist was given.
7242if test "${enable_imaglist+set}" = set; then
7243 enableval="$enable_imaglist"
e6cc62c6 7244
10f2d63a
VZ
7245 if test "$enableval" = yes; then
7246 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7247 else
7248 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7249 fi
e6cc62c6 7250
10f2d63a 7251else
e6cc62c6 7252
10f2d63a
VZ
7253 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7254 if test "x$LINE" != x ; then
7255 eval "DEFAULT_$LINE"
7256 else
7257 no_cache=1
7258 fi
7259
7260 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7261
e6cc62c6 7262fi;
10f2d63a
VZ
7263
7264 eval "$ac_cv_use_imaglist"
7265 if test "$no_cache" != 1; then
7266 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7267 fi
7268
7269 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7270 echo "$as_me:$LINENO: result: yes" >&5
7271echo "${ECHO_T}yes" >&6
10f2d63a 7272 else
e6cc62c6
VS
7273 echo "$as_me:$LINENO: result: no" >&5
7274echo "${ECHO_T}no" >&6
10f2d63a 7275 fi
e6cc62c6 7276
10f2d63a 7277
0e012a93
VZ
7278 enablestring=
7279 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7280echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7281 no_cache=0
7282 # Check whether --enable-listbook or --disable-listbook was given.
7283if test "${enable_listbook+set}" = set; then
7284 enableval="$enable_listbook"
7285
7286 if test "$enableval" = yes; then
7287 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7288 else
7289 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7290 fi
7291
7292else
7293
7294 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7295 if test "x$LINE" != x ; then
7296 eval "DEFAULT_$LINE"
7297 else
7298 no_cache=1
7299 fi
7300
7301 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7302
7303fi;
7304
7305 eval "$ac_cv_use_listbook"
7306 if test "$no_cache" != 1; then
7307 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7308 fi
7309
7310 if test "$wxUSE_LISTBOOK" = yes; then
7311 echo "$as_me:$LINENO: result: yes" >&5
7312echo "${ECHO_T}yes" >&6
7313 else
7314 echo "$as_me:$LINENO: result: no" >&5
7315echo "${ECHO_T}no" >&6
7316 fi
7317
7318
5005acfe 7319 enablestring=
e6cc62c6
VS
7320 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7321echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7322 no_cache=0
7323 # Check whether --enable-listbox or --disable-listbox was given.
7324if test "${enable_listbox+set}" = set; then
7325 enableval="$enable_listbox"
e6cc62c6 7326
10f2d63a
VZ
7327 if test "$enableval" = yes; then
7328 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7329 else
7330 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7331 fi
e6cc62c6 7332
10f2d63a 7333else
e6cc62c6 7334
10f2d63a
VZ
7335 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7336 if test "x$LINE" != x ; then
7337 eval "DEFAULT_$LINE"
7338 else
7339 no_cache=1
7340 fi
7341
7342 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7343
e6cc62c6 7344fi;
10f2d63a
VZ
7345
7346 eval "$ac_cv_use_listbox"
7347 if test "$no_cache" != 1; then
7348 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7349 fi
7350
7351 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7352 echo "$as_me:$LINENO: result: yes" >&5
7353echo "${ECHO_T}yes" >&6
10f2d63a 7354 else
e6cc62c6
VS
7355 echo "$as_me:$LINENO: result: no" >&5
7356echo "${ECHO_T}no" >&6
10f2d63a 7357 fi
e6cc62c6 7358
10f2d63a 7359
5005acfe 7360 enablestring=
e6cc62c6
VS
7361 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7362echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7363 no_cache=0
7364 # Check whether --enable-listctrl or --disable-listctrl was given.
7365if test "${enable_listctrl+set}" = set; then
7366 enableval="$enable_listctrl"
e6cc62c6 7367
10f2d63a
VZ
7368 if test "$enableval" = yes; then
7369 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7370 else
7371 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7372 fi
e6cc62c6 7373
10f2d63a 7374else
e6cc62c6 7375
10f2d63a
VZ
7376 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7377 if test "x$LINE" != x ; then
7378 eval "DEFAULT_$LINE"
7379 else
7380 no_cache=1
7381 fi
7382
7383 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7384
e6cc62c6 7385fi;
10f2d63a
VZ
7386
7387 eval "$ac_cv_use_listctrl"
7388 if test "$no_cache" != 1; then
7389 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7390 fi
7391
7392 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7393 echo "$as_me:$LINENO: result: yes" >&5
7394echo "${ECHO_T}yes" >&6
10f2d63a 7395 else
e6cc62c6
VS
7396 echo "$as_me:$LINENO: result: no" >&5
7397echo "${ECHO_T}no" >&6
10f2d63a 7398 fi
e6cc62c6 7399
10f2d63a 7400
5005acfe 7401 enablestring=
e6cc62c6
VS
7402 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7403echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7404 no_cache=0
7405 # Check whether --enable-notebook or --disable-notebook was given.
7406if test "${enable_notebook+set}" = set; then
7407 enableval="$enable_notebook"
e6cc62c6 7408
10f2d63a
VZ
7409 if test "$enableval" = yes; then
7410 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7411 else
7412 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7413 fi
e6cc62c6 7414
10f2d63a 7415else
e6cc62c6 7416
10f2d63a
VZ
7417 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7418 if test "x$LINE" != x ; then
7419 eval "DEFAULT_$LINE"
7420 else
7421 no_cache=1
7422 fi
7423
7424 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7425
e6cc62c6 7426fi;
10f2d63a
VZ
7427
7428 eval "$ac_cv_use_notebook"
7429 if test "$no_cache" != 1; then
7430 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7431 fi
7432
7433 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7434 echo "$as_me:$LINENO: result: yes" >&5
7435echo "${ECHO_T}yes" >&6
10f2d63a 7436 else
e6cc62c6
VS
7437 echo "$as_me:$LINENO: result: no" >&5
7438echo "${ECHO_T}no" >&6
10f2d63a 7439 fi
e6cc62c6 7440
10f2d63a 7441
5005acfe 7442 enablestring=
e6cc62c6
VS
7443 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7444echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7445 no_cache=0
7446 # Check whether --enable-radiobox or --disable-radiobox was given.
7447if test "${enable_radiobox+set}" = set; then
7448 enableval="$enable_radiobox"
e6cc62c6 7449
10f2d63a
VZ
7450 if test "$enableval" = yes; then
7451 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7452 else
7453 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7454 fi
e6cc62c6 7455
10f2d63a 7456else
e6cc62c6 7457
10f2d63a
VZ
7458 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7459 if test "x$LINE" != x ; then
7460 eval "DEFAULT_$LINE"
7461 else
7462 no_cache=1
7463 fi
7464
7465 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7466
e6cc62c6 7467fi;
10f2d63a
VZ
7468
7469 eval "$ac_cv_use_radiobox"
7470 if test "$no_cache" != 1; then
7471 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7472 fi
7473
7474 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7475 echo "$as_me:$LINENO: result: yes" >&5
7476echo "${ECHO_T}yes" >&6
10f2d63a 7477 else
e6cc62c6
VS
7478 echo "$as_me:$LINENO: result: no" >&5
7479echo "${ECHO_T}no" >&6
10f2d63a 7480 fi
e6cc62c6 7481
10f2d63a 7482
5005acfe 7483 enablestring=
e6cc62c6
VS
7484 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7485echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7486 no_cache=0
7487 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7488if test "${enable_radiobtn+set}" = set; then
7489 enableval="$enable_radiobtn"
e6cc62c6 7490
10f2d63a
VZ
7491 if test "$enableval" = yes; then
7492 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7493 else
7494 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7495 fi
e6cc62c6 7496
10f2d63a 7497else
e6cc62c6 7498
10f2d63a
VZ
7499 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7500 if test "x$LINE" != x ; then
7501 eval "DEFAULT_$LINE"
7502 else
7503 no_cache=1
7504 fi
7505
7506 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7507
e6cc62c6 7508fi;
10f2d63a
VZ
7509
7510 eval "$ac_cv_use_radiobtn"
7511 if test "$no_cache" != 1; then
7512 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7513 fi
7514
7515 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7516 echo "$as_me:$LINENO: result: yes" >&5
7517echo "${ECHO_T}yes" >&6
10f2d63a 7518 else
e6cc62c6
VS
7519 echo "$as_me:$LINENO: result: no" >&5
7520echo "${ECHO_T}no" >&6
10f2d63a 7521 fi
e6cc62c6 7522
10f2d63a 7523
5005acfe 7524 enablestring=
e6cc62c6
VS
7525 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7526echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7527 no_cache=0
7528 # Check whether --enable-sash or --disable-sash was given.
7529if test "${enable_sash+set}" = set; then
7530 enableval="$enable_sash"
e6cc62c6 7531
10f2d63a
VZ
7532 if test "$enableval" = yes; then
7533 ac_cv_use_sash='wxUSE_SASH=yes'
7534 else
7535 ac_cv_use_sash='wxUSE_SASH=no'
7536 fi
e6cc62c6 7537
10f2d63a 7538else
e6cc62c6 7539
10f2d63a
VZ
7540 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7541 if test "x$LINE" != x ; then
7542 eval "DEFAULT_$LINE"
7543 else
7544 no_cache=1
7545 fi
7546
7547 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7548
e6cc62c6 7549fi;
10f2d63a
VZ
7550
7551 eval "$ac_cv_use_sash"
7552 if test "$no_cache" != 1; then
7553 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7554 fi
7555
7556 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7557 echo "$as_me:$LINENO: result: yes" >&5
7558echo "${ECHO_T}yes" >&6
10f2d63a 7559 else
e6cc62c6
VS
7560 echo "$as_me:$LINENO: result: no" >&5
7561echo "${ECHO_T}no" >&6
10f2d63a 7562 fi
e6cc62c6 7563
10f2d63a 7564
5005acfe 7565 enablestring=
e6cc62c6
VS
7566 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7567echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7568 no_cache=0
7569 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7570if test "${enable_scrollbar+set}" = set; then
7571 enableval="$enable_scrollbar"
e6cc62c6 7572
10f2d63a
VZ
7573 if test "$enableval" = yes; then
7574 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7575 else
7576 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7577 fi
e6cc62c6 7578
10f2d63a 7579else
e6cc62c6 7580
10f2d63a
VZ
7581 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7582 if test "x$LINE" != x ; then
7583 eval "DEFAULT_$LINE"
7584 else
7585 no_cache=1
7586 fi
7587
7588 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7589
e6cc62c6 7590fi;
10f2d63a
VZ
7591
7592 eval "$ac_cv_use_scrollbar"
7593 if test "$no_cache" != 1; then
7594 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7595 fi
7596
7597 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7598 echo "$as_me:$LINENO: result: yes" >&5
7599echo "${ECHO_T}yes" >&6
10f2d63a 7600 else
e6cc62c6
VS
7601 echo "$as_me:$LINENO: result: no" >&5
7602echo "${ECHO_T}no" >&6
10f2d63a 7603 fi
e6cc62c6 7604
10f2d63a 7605
5005acfe 7606 enablestring=
e6cc62c6
VS
7607 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7608echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7609 no_cache=0
7610 # Check whether --enable-slider or --disable-slider was given.
7611if test "${enable_slider+set}" = set; then
7612 enableval="$enable_slider"
e6cc62c6 7613
10f2d63a
VZ
7614 if test "$enableval" = yes; then
7615 ac_cv_use_slider='wxUSE_SLIDER=yes'
7616 else
7617 ac_cv_use_slider='wxUSE_SLIDER=no'
7618 fi
e6cc62c6 7619
10f2d63a 7620else
e6cc62c6 7621
10f2d63a
VZ
7622 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7623 if test "x$LINE" != x ; then
7624 eval "DEFAULT_$LINE"
7625 else
7626 no_cache=1
7627 fi
7628
7629 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7630
e6cc62c6 7631fi;
10f2d63a
VZ
7632
7633 eval "$ac_cv_use_slider"
7634 if test "$no_cache" != 1; then
7635 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7636 fi
7637
7638 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7639 echo "$as_me:$LINENO: result: yes" >&5
7640echo "${ECHO_T}yes" >&6
10f2d63a 7641 else
e6cc62c6
VS
7642 echo "$as_me:$LINENO: result: no" >&5
7643echo "${ECHO_T}no" >&6
10f2d63a 7644 fi
e6cc62c6 7645
10f2d63a 7646
5005acfe 7647 enablestring=
e6cc62c6
VS
7648 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7649echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7650 no_cache=0
7651 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7652if test "${enable_spinbtn+set}" = set; then
7653 enableval="$enable_spinbtn"
e6cc62c6 7654
10f2d63a
VZ
7655 if test "$enableval" = yes; then
7656 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7657 else
7658 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7659 fi
e6cc62c6 7660
10f2d63a 7661else
e6cc62c6 7662
10f2d63a
VZ
7663 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7664 if test "x$LINE" != x ; then
7665 eval "DEFAULT_$LINE"
7666 else
7667 no_cache=1
7668 fi
7669
7670 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7671
e6cc62c6 7672fi;
10f2d63a
VZ
7673
7674 eval "$ac_cv_use_spinbtn"
7675 if test "$no_cache" != 1; then
7676 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7677 fi
7678
7679 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7680 echo "$as_me:$LINENO: result: yes" >&5
7681echo "${ECHO_T}yes" >&6
10f2d63a 7682 else
e6cc62c6
VS
7683 echo "$as_me:$LINENO: result: no" >&5
7684echo "${ECHO_T}no" >&6
10f2d63a 7685 fi
e6cc62c6 7686
10f2d63a 7687
5005acfe 7688 enablestring=
e6cc62c6
VS
7689 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7690echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7691 no_cache=0
7692 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7693if test "${enable_spinctrl+set}" = set; then
7694 enableval="$enable_spinctrl"
e6cc62c6 7695
56cfaa52
RR
7696 if test "$enableval" = yes; then
7697 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7698 else
7699 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7700 fi
e6cc62c6 7701
56cfaa52 7702else
e6cc62c6 7703
56cfaa52
RR
7704 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7705 if test "x$LINE" != x ; then
7706 eval "DEFAULT_$LINE"
7707 else
7708 no_cache=1
7709 fi
7710
7711 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7712
e6cc62c6 7713fi;
56cfaa52
RR
7714
7715 eval "$ac_cv_use_spinctrl"
7716 if test "$no_cache" != 1; then
7717 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7718 fi
7719
7720 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7721 echo "$as_me:$LINENO: result: yes" >&5
7722echo "${ECHO_T}yes" >&6
56cfaa52 7723 else
e6cc62c6
VS
7724 echo "$as_me:$LINENO: result: no" >&5
7725echo "${ECHO_T}no" >&6
56cfaa52 7726 fi
e6cc62c6 7727
56cfaa52 7728
5005acfe 7729 enablestring=
e6cc62c6
VS
7730 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7731echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7732 no_cache=0
7733 # Check whether --enable-splitter or --disable-splitter was given.
7734if test "${enable_splitter+set}" = set; then
7735 enableval="$enable_splitter"
e6cc62c6 7736
10f2d63a
VZ
7737 if test "$enableval" = yes; then
7738 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7739 else
7740 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7741 fi
e6cc62c6 7742
10f2d63a 7743else
e6cc62c6 7744
10f2d63a
VZ
7745 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7746 if test "x$LINE" != x ; then
7747 eval "DEFAULT_$LINE"
7748 else
7749 no_cache=1
7750 fi
7751
7752 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7753
e6cc62c6 7754fi;
10f2d63a
VZ
7755
7756 eval "$ac_cv_use_splitter"
7757 if test "$no_cache" != 1; then
7758 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7759 fi
7760
7761 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7762 echo "$as_me:$LINENO: result: yes" >&5
7763echo "${ECHO_T}yes" >&6
10f2d63a 7764 else
e6cc62c6
VS
7765 echo "$as_me:$LINENO: result: no" >&5
7766echo "${ECHO_T}no" >&6
10f2d63a 7767 fi
e6cc62c6 7768
10f2d63a 7769
5005acfe 7770 enablestring=
e6cc62c6
VS
7771 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7772echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7773 no_cache=0
7774 # Check whether --enable-statbmp or --disable-statbmp was given.
7775if test "${enable_statbmp+set}" = set; then
7776 enableval="$enable_statbmp"
e6cc62c6 7777
10f2d63a
VZ
7778 if test "$enableval" = yes; then
7779 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7780 else
7781 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7782 fi
e6cc62c6 7783
10f2d63a 7784else
e6cc62c6 7785
10f2d63a
VZ
7786 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7787 if test "x$LINE" != x ; then
7788 eval "DEFAULT_$LINE"
7789 else
7790 no_cache=1
7791 fi
7792
7793 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7794
e6cc62c6 7795fi;
10f2d63a
VZ
7796
7797 eval "$ac_cv_use_statbmp"
7798 if test "$no_cache" != 1; then
7799 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7800 fi
7801
7802 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7803 echo "$as_me:$LINENO: result: yes" >&5
7804echo "${ECHO_T}yes" >&6
10f2d63a 7805 else
e6cc62c6
VS
7806 echo "$as_me:$LINENO: result: no" >&5
7807echo "${ECHO_T}no" >&6
10f2d63a 7808 fi
e6cc62c6 7809
10f2d63a 7810
5005acfe 7811 enablestring=
e6cc62c6
VS
7812 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7813echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7814 no_cache=0
7815 # Check whether --enable-statbox or --disable-statbox was given.
7816if test "${enable_statbox+set}" = set; then
7817 enableval="$enable_statbox"
e6cc62c6 7818
10f2d63a
VZ
7819 if test "$enableval" = yes; then
7820 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7821 else
7822 ac_cv_use_statbox='wxUSE_STATBOX=no'
7823 fi
e6cc62c6 7824
10f2d63a 7825else
e6cc62c6 7826
10f2d63a
VZ
7827 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7828 if test "x$LINE" != x ; then
7829 eval "DEFAULT_$LINE"
7830 else
7831 no_cache=1
7832 fi
7833
7834 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7835
e6cc62c6 7836fi;
10f2d63a
VZ
7837
7838 eval "$ac_cv_use_statbox"
7839 if test "$no_cache" != 1; then
7840 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7841 fi
7842
7843 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7844 echo "$as_me:$LINENO: result: yes" >&5
7845echo "${ECHO_T}yes" >&6
10f2d63a 7846 else
e6cc62c6
VS
7847 echo "$as_me:$LINENO: result: no" >&5
7848echo "${ECHO_T}no" >&6
10f2d63a 7849 fi
e6cc62c6 7850
10f2d63a 7851
5005acfe 7852 enablestring=
e6cc62c6
VS
7853 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7854echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7855 no_cache=0
7856 # Check whether --enable-statline or --disable-statline was given.
7857if test "${enable_statline+set}" = set; then
7858 enableval="$enable_statline"
e6cc62c6 7859
10f2d63a
VZ
7860 if test "$enableval" = yes; then
7861 ac_cv_use_statline='wxUSE_STATLINE=yes'
7862 else
7863 ac_cv_use_statline='wxUSE_STATLINE=no'
7864 fi
e6cc62c6 7865
10f2d63a 7866else
e6cc62c6 7867
10f2d63a
VZ
7868 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7869 if test "x$LINE" != x ; then
7870 eval "DEFAULT_$LINE"
7871 else
7872 no_cache=1
7873 fi
7874
7875 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7876
e6cc62c6 7877fi;
10f2d63a
VZ
7878
7879 eval "$ac_cv_use_statline"
7880 if test "$no_cache" != 1; then
7881 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7882 fi
7883
7884 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7885 echo "$as_me:$LINENO: result: yes" >&5
7886echo "${ECHO_T}yes" >&6
10f2d63a 7887 else
e6cc62c6
VS
7888 echo "$as_me:$LINENO: result: no" >&5
7889echo "${ECHO_T}no" >&6
10f2d63a 7890 fi
e6cc62c6 7891
10f2d63a 7892
5005acfe 7893 enablestring=
e6cc62c6
VS
7894 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7895echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7896 no_cache=0
7897 # Check whether --enable-stattext or --disable-stattext was given.
7898if test "${enable_stattext+set}" = set; then
7899 enableval="$enable_stattext"
e6cc62c6 7900
1e6feb95
VZ
7901 if test "$enableval" = yes; then
7902 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7903 else
7904 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7905 fi
e6cc62c6 7906
1e6feb95 7907else
e6cc62c6 7908
1e6feb95
VZ
7909 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7910 if test "x$LINE" != x ; then
7911 eval "DEFAULT_$LINE"
7912 else
7913 no_cache=1
7914 fi
7915
7916 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7917
e6cc62c6 7918fi;
1e6feb95
VZ
7919
7920 eval "$ac_cv_use_stattext"
7921 if test "$no_cache" != 1; then
7922 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7923 fi
7924
7925 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7926 echo "$as_me:$LINENO: result: yes" >&5
7927echo "${ECHO_T}yes" >&6
1e6feb95 7928 else
e6cc62c6
VS
7929 echo "$as_me:$LINENO: result: no" >&5
7930echo "${ECHO_T}no" >&6
1e6feb95 7931 fi
e6cc62c6 7932
1e6feb95 7933
5005acfe 7934 enablestring=
e6cc62c6
VS
7935 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7936echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7937 no_cache=0
7938 # Check whether --enable-statusbar or --disable-statusbar was given.
7939if test "${enable_statusbar+set}" = set; then
7940 enableval="$enable_statusbar"
e6cc62c6 7941
10f2d63a
VZ
7942 if test "$enableval" = yes; then
7943 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7944 else
7945 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7946 fi
e6cc62c6 7947
10f2d63a 7948else
e6cc62c6 7949
10f2d63a
VZ
7950 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7951 if test "x$LINE" != x ; then
7952 eval "DEFAULT_$LINE"
7953 else
7954 no_cache=1
7955 fi
7956
7957 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7958
e6cc62c6 7959fi;
10f2d63a
VZ
7960
7961 eval "$ac_cv_use_statusbar"
7962 if test "$no_cache" != 1; then
7963 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7964 fi
7965
7966 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
7967 echo "$as_me:$LINENO: result: yes" >&5
7968echo "${ECHO_T}yes" >&6
10f2d63a 7969 else
e6cc62c6
VS
7970 echo "$as_me:$LINENO: result: no" >&5
7971echo "${ECHO_T}no" >&6
10f2d63a 7972 fi
e6cc62c6 7973
10f2d63a 7974
5005acfe 7975 enablestring=
e6cc62c6
VS
7976 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7977echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7978 no_cache=0
7979 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7980if test "${enable_tabdialog+set}" = set; then
7981 enableval="$enable_tabdialog"
e6cc62c6 7982
10f2d63a
VZ
7983 if test "$enableval" = yes; then
7984 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7985 else
7986 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7987 fi
e6cc62c6 7988
10f2d63a 7989else
e6cc62c6 7990
10f2d63a
VZ
7991 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7992 if test "x$LINE" != x ; then
7993 eval "DEFAULT_$LINE"
7994 else
7995 no_cache=1
7996 fi
7997
7998 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 7999
e6cc62c6 8000fi;
10f2d63a
VZ
8001
8002 eval "$ac_cv_use_tabdialog"
8003 if test "$no_cache" != 1; then
8004 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8005 fi
8006
8007 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
8008 echo "$as_me:$LINENO: result: yes" >&5
8009echo "${ECHO_T}yes" >&6
10f2d63a 8010 else
e6cc62c6
VS
8011 echo "$as_me:$LINENO: result: no" >&5
8012echo "${ECHO_T}no" >&6
10f2d63a 8013 fi
e6cc62c6 8014
10f2d63a 8015
5005acfe 8016 enablestring=
e6cc62c6
VS
8017 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8018echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
8019 no_cache=0
8020 # Check whether --enable-textctrl or --disable-textctrl was given.
8021if test "${enable_textctrl+set}" = set; then
8022 enableval="$enable_textctrl"
e6cc62c6 8023
1e6feb95
VZ
8024 if test "$enableval" = yes; then
8025 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8026 else
8027 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8028 fi
e6cc62c6 8029
1e6feb95 8030else
e6cc62c6 8031
1e6feb95
VZ
8032 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8033 if test "x$LINE" != x ; then
8034 eval "DEFAULT_$LINE"
8035 else
8036 no_cache=1
8037 fi
8038
8039 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 8040
e6cc62c6 8041fi;
1e6feb95
VZ
8042
8043 eval "$ac_cv_use_textctrl"
8044 if test "$no_cache" != 1; then
8045 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8046 fi
8047
8048 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
8049 echo "$as_me:$LINENO: result: yes" >&5
8050echo "${ECHO_T}yes" >&6
1e6feb95 8051 else
e6cc62c6
VS
8052 echo "$as_me:$LINENO: result: no" >&5
8053echo "${ECHO_T}no" >&6
1e6feb95 8054 fi
e6cc62c6 8055
1e6feb95 8056
5005acfe 8057 enablestring=
e6cc62c6
VS
8058 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8059echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
8060 no_cache=0
8061 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8062if test "${enable_togglebtn+set}" = set; then
8063 enableval="$enable_togglebtn"
e6cc62c6 8064
1db8dc4a
VZ
8065 if test "$enableval" = yes; then
8066 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8067 else
8068 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8069 fi
e6cc62c6 8070
1db8dc4a 8071else
e6cc62c6 8072
1db8dc4a
VZ
8073 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8074 if test "x$LINE" != x ; then
8075 eval "DEFAULT_$LINE"
8076 else
8077 no_cache=1
8078 fi
8079
8080 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 8081
e6cc62c6 8082fi;
1db8dc4a
VZ
8083
8084 eval "$ac_cv_use_togglebtn"
8085 if test "$no_cache" != 1; then
8086 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8087 fi
8088
8089 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
8090 echo "$as_me:$LINENO: result: yes" >&5
8091echo "${ECHO_T}yes" >&6
1db8dc4a 8092 else
e6cc62c6
VS
8093 echo "$as_me:$LINENO: result: no" >&5
8094echo "${ECHO_T}no" >&6
1db8dc4a 8095 fi
e6cc62c6 8096
1db8dc4a 8097
5005acfe 8098 enablestring=
e6cc62c6
VS
8099 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8100echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
8101 no_cache=0
8102 # Check whether --enable-toolbar or --disable-toolbar was given.
8103if test "${enable_toolbar+set}" = set; then
8104 enableval="$enable_toolbar"
e6cc62c6 8105
10f2d63a
VZ
8106 if test "$enableval" = yes; then
8107 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8108 else
8109 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8110 fi
e6cc62c6 8111
10f2d63a 8112else
e6cc62c6 8113
10f2d63a
VZ
8114 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8115 if test "x$LINE" != x ; then
8116 eval "DEFAULT_$LINE"
8117 else
8118 no_cache=1
8119 fi
8120
8121 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 8122
e6cc62c6 8123fi;
10f2d63a
VZ
8124
8125 eval "$ac_cv_use_toolbar"
8126 if test "$no_cache" != 1; then
8127 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8128 fi
8129
8130 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
8131 echo "$as_me:$LINENO: result: yes" >&5
8132echo "${ECHO_T}yes" >&6
10f2d63a 8133 else
e6cc62c6
VS
8134 echo "$as_me:$LINENO: result: no" >&5
8135echo "${ECHO_T}no" >&6
10f2d63a 8136 fi
e6cc62c6 8137
10f2d63a 8138
5005acfe 8139 enablestring=
e6cc62c6
VS
8140 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8141echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
8142 no_cache=0
8143 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8144if test "${enable_tbarnative+set}" = set; then
8145 enableval="$enable_tbarnative"
e6cc62c6 8146
360d6699
VZ
8147 if test "$enableval" = yes; then
8148 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8149 else
8150 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8151 fi
e6cc62c6 8152
360d6699 8153else
e6cc62c6 8154
360d6699
VZ
8155 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8156 if test "x$LINE" != x ; then
8157 eval "DEFAULT_$LINE"
8158 else
8159 no_cache=1
8160 fi
8161
8162 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 8163
e6cc62c6 8164fi;
360d6699
VZ
8165
8166 eval "$ac_cv_use_tbarnative"
8167 if test "$no_cache" != 1; then
8168 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8169 fi
8170
8171 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
8172 echo "$as_me:$LINENO: result: yes" >&5
8173echo "${ECHO_T}yes" >&6
360d6699 8174 else
e6cc62c6
VS
8175 echo "$as_me:$LINENO: result: no" >&5
8176echo "${ECHO_T}no" >&6
360d6699 8177 fi
e6cc62c6 8178
360d6699 8179
5005acfe 8180 enablestring=
e6cc62c6
VS
8181 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8182echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
8183 no_cache=0
8184 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8185if test "${enable_tbarsmpl+set}" = set; then
8186 enableval="$enable_tbarsmpl"
e6cc62c6 8187
360d6699
VZ
8188 if test "$enableval" = yes; then
8189 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8190 else
8191 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8192 fi
e6cc62c6 8193
360d6699 8194else
e6cc62c6 8195
360d6699
VZ
8196 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8197 if test "x$LINE" != x ; then
8198 eval "DEFAULT_$LINE"
8199 else
8200 no_cache=1
8201 fi
8202
8203 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 8204
e6cc62c6 8205fi;
360d6699
VZ
8206
8207 eval "$ac_cv_use_tbarsmpl"
8208 if test "$no_cache" != 1; then
8209 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8210 fi
8211
8212 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
8213 echo "$as_me:$LINENO: result: yes" >&5
8214echo "${ECHO_T}yes" >&6
360d6699 8215 else
e6cc62c6
VS
8216 echo "$as_me:$LINENO: result: no" >&5
8217echo "${ECHO_T}no" >&6
360d6699 8218 fi
e6cc62c6 8219
360d6699 8220
5005acfe 8221 enablestring=
e6cc62c6
VS
8222 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8223echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8224 no_cache=0
8225 # Check whether --enable-treectrl or --disable-treectrl was given.
8226if test "${enable_treectrl+set}" = set; then
8227 enableval="$enable_treectrl"
e6cc62c6 8228
10f2d63a
VZ
8229 if test "$enableval" = yes; then
8230 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8231 else
8232 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8233 fi
e6cc62c6 8234
10f2d63a 8235else
e6cc62c6 8236
10f2d63a
VZ
8237 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8238 if test "x$LINE" != x ; then
8239 eval "DEFAULT_$LINE"
8240 else
8241 no_cache=1
8242 fi
8243
8244 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8245
e6cc62c6 8246fi;
10f2d63a 8247
1e6feb95
VZ
8248 eval "$ac_cv_use_treectrl"
8249 if test "$no_cache" != 1; then
8250 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8251 fi
8252
8253 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8254 echo "$as_me:$LINENO: result: yes" >&5
8255echo "${ECHO_T}yes" >&6
1e6feb95 8256 else
e6cc62c6
VS
8257 echo "$as_me:$LINENO: result: no" >&5
8258echo "${ECHO_T}no" >&6
1e6feb95 8259 fi
e6cc62c6 8260
1e6feb95 8261
5005acfe 8262 enablestring=
e6cc62c6
VS
8263 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8264echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8265 no_cache=0
8266 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8267if test "${enable_tipwindow+set}" = set; then
8268 enableval="$enable_tipwindow"
e6cc62c6 8269
9926e4a4
VZ
8270 if test "$enableval" = yes; then
8271 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8272 else
8273 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8274 fi
e6cc62c6 8275
9926e4a4 8276else
e6cc62c6 8277
9926e4a4
VZ
8278 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8279 if test "x$LINE" != x ; then
8280 eval "DEFAULT_$LINE"
8281 else
8282 no_cache=1
8283 fi
8284
8285 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8286
e6cc62c6 8287fi;
9926e4a4
VZ
8288
8289 eval "$ac_cv_use_tipwindow"
8290 if test "$no_cache" != 1; then
8291 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8292 fi
8293
8294 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8295 echo "$as_me:$LINENO: result: yes" >&5
8296echo "${ECHO_T}yes" >&6
9926e4a4 8297 else
e6cc62c6
VS
8298 echo "$as_me:$LINENO: result: no" >&5
8299echo "${ECHO_T}no" >&6
9926e4a4 8300 fi
e6cc62c6 8301
9926e4a4 8302
5005acfe 8303 enablestring=
e6cc62c6
VS
8304 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8305echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8306 no_cache=0
8307 # Check whether --enable-popupwin or --disable-popupwin was given.
8308if test "${enable_popupwin+set}" = set; then
8309 enableval="$enable_popupwin"
e6cc62c6 8310
9f41d601
RR
8311 if test "$enableval" = yes; then
8312 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8313 else
8314 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8315 fi
e6cc62c6 8316
9f41d601 8317else
e6cc62c6 8318
9f41d601
RR
8319 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8320 if test "x$LINE" != x ; then
8321 eval "DEFAULT_$LINE"
8322 else
8323 no_cache=1
8324 fi
8325
8326 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8327
e6cc62c6 8328fi;
9f41d601
RR
8329
8330 eval "$ac_cv_use_popupwin"
8331 if test "$no_cache" != 1; then
8332 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8333 fi
8334
8335 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8336 echo "$as_me:$LINENO: result: yes" >&5
8337echo "${ECHO_T}yes" >&6
9f41d601 8338 else
e6cc62c6
VS
8339 echo "$as_me:$LINENO: result: no" >&5
8340echo "${ECHO_T}no" >&6
9f41d601 8341 fi
e6cc62c6 8342
52127426 8343
8284b0c5
MB
8344
8345
5005acfe 8346 enablestring=
e6cc62c6
VS
8347 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8348echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8349 no_cache=0
8350 # Check whether --enable-commondlg or --disable-commondlg was given.
8351if test "${enable_commondlg+set}" = set; then
8352 enableval="$enable_commondlg"
e6cc62c6 8353
1e6feb95
VZ
8354 if test "$enableval" = yes; then
8355 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8356 else
8357 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8358 fi
e6cc62c6 8359
1e6feb95 8360else
e6cc62c6 8361
1e6feb95
VZ
8362 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8363 if test "x$LINE" != x ; then
8364 eval "DEFAULT_$LINE"
8365 else
8366 no_cache=1
8367 fi
8368
8369 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8370
e6cc62c6 8371fi;
1e6feb95
VZ
8372
8373 eval "$ac_cv_use_commondlg"
8374 if test "$no_cache" != 1; then
8375 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8376 fi
8377
8378 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8379 echo "$as_me:$LINENO: result: yes" >&5
8380echo "${ECHO_T}yes" >&6
1e6feb95 8381 else
e6cc62c6
VS
8382 echo "$as_me:$LINENO: result: no" >&5
8383echo "${ECHO_T}no" >&6
1e6feb95 8384 fi
e6cc62c6 8385
1e6feb95 8386
5005acfe 8387 enablestring=
e6cc62c6
VS
8388 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8389echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8390 no_cache=0
8391 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8392if test "${enable_choicedlg+set}" = set; then
8393 enableval="$enable_choicedlg"
e6cc62c6 8394
1e6feb95
VZ
8395 if test "$enableval" = yes; then
8396 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8397 else
8398 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8399 fi
e6cc62c6 8400
1e6feb95 8401else
e6cc62c6 8402
1e6feb95
VZ
8403 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8404 if test "x$LINE" != x ; then
8405 eval "DEFAULT_$LINE"
8406 else
8407 no_cache=1
8408 fi
8409
8410 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8411
e6cc62c6 8412fi;
1e6feb95
VZ
8413
8414 eval "$ac_cv_use_choicedlg"
8415 if test "$no_cache" != 1; then
8416 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8417 fi
8418
8419 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8420 echo "$as_me:$LINENO: result: yes" >&5
8421echo "${ECHO_T}yes" >&6
1e6feb95 8422 else
e6cc62c6
VS
8423 echo "$as_me:$LINENO: result: no" >&5
8424echo "${ECHO_T}no" >&6
1e6feb95 8425 fi
e6cc62c6 8426
1e6feb95 8427
5005acfe 8428 enablestring=
e6cc62c6
VS
8429 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8430echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8431 no_cache=0
8432 # Check whether --enable-coldlg or --disable-coldlg was given.
8433if test "${enable_coldlg+set}" = set; then
8434 enableval="$enable_coldlg"
e6cc62c6 8435
1e6feb95
VZ
8436 if test "$enableval" = yes; then
8437 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8438 else
8439 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8440 fi
e6cc62c6 8441
1e6feb95 8442else
e6cc62c6 8443
1e6feb95
VZ
8444 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8445 if test "x$LINE" != x ; then
8446 eval "DEFAULT_$LINE"
8447 else
8448 no_cache=1
8449 fi
8450
8451 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8452
e6cc62c6 8453fi;
1e6feb95
VZ
8454
8455 eval "$ac_cv_use_coldlg"
8456 if test "$no_cache" != 1; then
8457 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8458 fi
8459
8460 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8461 echo "$as_me:$LINENO: result: yes" >&5
8462echo "${ECHO_T}yes" >&6
1e6feb95 8463 else
e6cc62c6
VS
8464 echo "$as_me:$LINENO: result: no" >&5
8465echo "${ECHO_T}no" >&6
1e6feb95 8466 fi
e6cc62c6 8467
1e6feb95 8468
5005acfe 8469 enablestring=
e6cc62c6
VS
8470 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8471echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8472 no_cache=0
8473 # Check whether --enable-filedlg or --disable-filedlg was given.
8474if test "${enable_filedlg+set}" = set; then
8475 enableval="$enable_filedlg"
e6cc62c6 8476
1e6feb95
VZ
8477 if test "$enableval" = yes; then
8478 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8479 else
8480 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8481 fi
e6cc62c6 8482
1e6feb95 8483else
e6cc62c6 8484
1e6feb95
VZ
8485 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8486 if test "x$LINE" != x ; then
8487 eval "DEFAULT_$LINE"
8488 else
8489 no_cache=1
8490 fi
8491
8492 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8493
e6cc62c6 8494fi;
1e6feb95
VZ
8495
8496 eval "$ac_cv_use_filedlg"
8497 if test "$no_cache" != 1; then
8498 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8499 fi
8500
8501 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8502 echo "$as_me:$LINENO: result: yes" >&5
8503echo "${ECHO_T}yes" >&6
1e6feb95 8504 else
e6cc62c6
VS
8505 echo "$as_me:$LINENO: result: no" >&5
8506echo "${ECHO_T}no" >&6
1e6feb95 8507 fi
e6cc62c6 8508
1e6feb95 8509
5005acfe 8510 enablestring=
e6cc62c6
VS
8511 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8512echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8513 no_cache=0
69d27ff7
MB
8514 # Check whether --enable-finddlg or --disable-finddlg was given.
8515if test "${enable_finddlg+set}" = set; then
8516 enableval="$enable_finddlg"
e6cc62c6 8517
8db37e06 8518 if test "$enableval" = yes; then
69d27ff7 8519 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8520 else
69d27ff7 8521 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8522 fi
e6cc62c6 8523
8db37e06 8524else
e6cc62c6 8525
8db37e06
VZ
8526 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8527 if test "x$LINE" != x ; then
8528 eval "DEFAULT_$LINE"
8529 else
8530 no_cache=1
8531 fi
8532
69d27ff7 8533 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8534
e6cc62c6 8535fi;
8db37e06 8536
69d27ff7 8537 eval "$ac_cv_use_finddlg"
8db37e06 8538 if test "$no_cache" != 1; then
69d27ff7 8539 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8540 fi
8541
8542 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8543 echo "$as_me:$LINENO: result: yes" >&5
8544echo "${ECHO_T}yes" >&6
8db37e06 8545 else
e6cc62c6
VS
8546 echo "$as_me:$LINENO: result: no" >&5
8547echo "${ECHO_T}no" >&6
8db37e06 8548 fi
e6cc62c6 8549
8db37e06 8550
5005acfe 8551 enablestring=
e6cc62c6
VS
8552 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8553echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8554 no_cache=0
8555 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8556if test "${enable_fontdlg+set}" = set; then
8557 enableval="$enable_fontdlg"
e6cc62c6 8558
1e6feb95
VZ
8559 if test "$enableval" = yes; then
8560 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8561 else
8562 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8563 fi
e6cc62c6 8564
1e6feb95 8565else
e6cc62c6 8566
1e6feb95
VZ
8567 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8568 if test "x$LINE" != x ; then
8569 eval "DEFAULT_$LINE"
8570 else
8571 no_cache=1
8572 fi
8573
8574 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8575
e6cc62c6 8576fi;
1e6feb95
VZ
8577
8578 eval "$ac_cv_use_fontdlg"
8579 if test "$no_cache" != 1; then
8580 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8581 fi
8582
8583 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8584 echo "$as_me:$LINENO: result: yes" >&5
8585echo "${ECHO_T}yes" >&6
1e6feb95 8586 else
e6cc62c6
VS
8587 echo "$as_me:$LINENO: result: no" >&5
8588echo "${ECHO_T}no" >&6
1e6feb95 8589 fi
e6cc62c6 8590
1e6feb95 8591
5005acfe 8592 enablestring=
e6cc62c6
VS
8593 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8594echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8595 no_cache=0
8596 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8597if test "${enable_dirdlg+set}" = set; then
8598 enableval="$enable_dirdlg"
e6cc62c6 8599
1e6feb95
VZ
8600 if test "$enableval" = yes; then
8601 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8602 else
8603 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8604 fi
e6cc62c6 8605
1e6feb95 8606else
e6cc62c6 8607
1e6feb95
VZ
8608 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8609 if test "x$LINE" != x ; then
8610 eval "DEFAULT_$LINE"
8611 else
8612 no_cache=1
8613 fi
8614
8615 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8616
e6cc62c6 8617fi;
1e6feb95
VZ
8618
8619 eval "$ac_cv_use_dirdlg"
10f2d63a 8620 if test "$no_cache" != 1; then
1e6feb95 8621 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8622 fi
8623
1e6feb95 8624 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8625 echo "$as_me:$LINENO: result: yes" >&5
8626echo "${ECHO_T}yes" >&6
10f2d63a 8627 else
e6cc62c6
VS
8628 echo "$as_me:$LINENO: result: no" >&5
8629echo "${ECHO_T}no" >&6
10f2d63a 8630 fi
e6cc62c6 8631
698dcdb6 8632
5005acfe 8633 enablestring=
e6cc62c6
VS
8634 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8635echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8636 no_cache=0
1e6feb95
VZ
8637 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8638if test "${enable_msgdlg+set}" = set; then
8639 enableval="$enable_msgdlg"
e6cc62c6 8640
10f2d63a 8641 if test "$enableval" = yes; then
1e6feb95 8642 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8643 else
1e6feb95 8644 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8645 fi
e6cc62c6 8646
10f2d63a 8647else
e6cc62c6 8648
1e6feb95 8649 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8650 if test "x$LINE" != x ; then
8651 eval "DEFAULT_$LINE"
8652 else
8653 no_cache=1
8654 fi
8655
1e6feb95 8656 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8657
e6cc62c6 8658fi;
10f2d63a 8659
1e6feb95 8660 eval "$ac_cv_use_msgdlg"
10f2d63a 8661 if test "$no_cache" != 1; then
1e6feb95 8662 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8663 fi
8664
1e6feb95 8665 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8666 echo "$as_me:$LINENO: result: yes" >&5
8667echo "${ECHO_T}yes" >&6
10f2d63a 8668 else
e6cc62c6
VS
8669 echo "$as_me:$LINENO: result: no" >&5
8670echo "${ECHO_T}no" >&6
10f2d63a 8671 fi
e6cc62c6 8672
10f2d63a 8673
5005acfe 8674 enablestring=
e6cc62c6
VS
8675 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8676echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8677 no_cache=0
1e6feb95
VZ
8678 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8679if test "${enable_numberdlg+set}" = set; then
8680 enableval="$enable_numberdlg"
e6cc62c6 8681
10f2d63a 8682 if test "$enableval" = yes; then
1e6feb95 8683 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8684 else
1e6feb95 8685 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8686 fi
e6cc62c6 8687
10f2d63a 8688else
e6cc62c6 8689
1e6feb95 8690 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8691 if test "x$LINE" != x ; then
8692 eval "DEFAULT_$LINE"
8693 else
8694 no_cache=1
8695 fi
8696
1e6feb95 8697 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8698
e6cc62c6 8699fi;
10f2d63a 8700
1e6feb95 8701 eval "$ac_cv_use_numberdlg"
10f2d63a 8702 if test "$no_cache" != 1; then
1e6feb95 8703 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8704 fi
8705
1e6feb95 8706 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8707 echo "$as_me:$LINENO: result: yes" >&5
8708echo "${ECHO_T}yes" >&6
10f2d63a 8709 else
e6cc62c6
VS
8710 echo "$as_me:$LINENO: result: no" >&5
8711echo "${ECHO_T}no" >&6
10f2d63a 8712 fi
e6cc62c6 8713
10f2d63a 8714
5005acfe 8715 enablestring=
e6cc62c6
VS
8716 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8717echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8718 no_cache=0
8719 # Check whether --enable-splash or --disable-splash was given.
8720if test "${enable_splash+set}" = set; then
8721 enableval="$enable_splash"
e6cc62c6 8722
cbca9943
VZ
8723 if test "$enableval" = yes; then
8724 ac_cv_use_splash='wxUSE_SPLASH=yes'
8725 else
8726 ac_cv_use_splash='wxUSE_SPLASH=no'
8727 fi
e6cc62c6 8728
cbca9943 8729else
e6cc62c6 8730
cbca9943
VZ
8731 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8732 if test "x$LINE" != x ; then
8733 eval "DEFAULT_$LINE"
8734 else
8735 no_cache=1
8736 fi
8737
8738 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8739
e6cc62c6 8740fi;
cbca9943
VZ
8741
8742 eval "$ac_cv_use_splash"
8743 if test "$no_cache" != 1; then
8744 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8745 fi
8746
8747 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8748 echo "$as_me:$LINENO: result: yes" >&5
8749echo "${ECHO_T}yes" >&6
cbca9943 8750 else
e6cc62c6
VS
8751 echo "$as_me:$LINENO: result: no" >&5
8752echo "${ECHO_T}no" >&6
cbca9943 8753 fi
e6cc62c6 8754
cbca9943 8755
5005acfe 8756 enablestring=
e6cc62c6
VS
8757 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8758echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8759 no_cache=0
8760 # Check whether --enable-textdlg or --disable-textdlg was given.
8761if test "${enable_textdlg+set}" = set; then
8762 enableval="$enable_textdlg"
e6cc62c6 8763
10f2d63a
VZ
8764 if test "$enableval" = yes; then
8765 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8766 else
8767 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8768 fi
e6cc62c6 8769
10f2d63a 8770else
e6cc62c6 8771
10f2d63a
VZ
8772 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8773 if test "x$LINE" != x ; then
8774 eval "DEFAULT_$LINE"
8775 else
8776 no_cache=1
8777 fi
8778
8779 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8780
e6cc62c6 8781fi;
10f2d63a
VZ
8782
8783 eval "$ac_cv_use_textdlg"
8784 if test "$no_cache" != 1; then
8785 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8786 fi
8787
8788 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8789 echo "$as_me:$LINENO: result: yes" >&5
8790echo "${ECHO_T}yes" >&6
10f2d63a 8791 else
e6cc62c6
VS
8792 echo "$as_me:$LINENO: result: no" >&5
8793echo "${ECHO_T}no" >&6
10f2d63a 8794 fi
e6cc62c6 8795
10f2d63a 8796
5005acfe 8797 enablestring=
e6cc62c6
VS
8798 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8799echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8800 no_cache=0
8801 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8802if test "${enable_tipdlg+set}" = set; then
8803 enableval="$enable_tipdlg"
e6cc62c6 8804
10f2d63a
VZ
8805 if test "$enableval" = yes; then
8806 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8807 else
8808 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8809 fi
e6cc62c6 8810
10f2d63a 8811else
e6cc62c6 8812
10f2d63a
VZ
8813 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8814 if test "x$LINE" != x ; then
8815 eval "DEFAULT_$LINE"
8816 else
8817 no_cache=1
8818 fi
8819
8820 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8821
e6cc62c6 8822fi;
10f2d63a
VZ
8823
8824 eval "$ac_cv_use_tipdlg"
8825 if test "$no_cache" != 1; then
8826 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8827 fi
8828
8829 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8830 echo "$as_me:$LINENO: result: yes" >&5
8831echo "${ECHO_T}yes" >&6
10f2d63a 8832 else
e6cc62c6
VS
8833 echo "$as_me:$LINENO: result: no" >&5
8834echo "${ECHO_T}no" >&6
10f2d63a 8835 fi
e6cc62c6 8836
10f2d63a 8837
5005acfe 8838 enablestring=
e6cc62c6
VS
8839 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8840echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8841 no_cache=0
8842 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8843if test "${enable_progressdlg+set}" = set; then
8844 enableval="$enable_progressdlg"
e6cc62c6 8845
10f2d63a
VZ
8846 if test "$enableval" = yes; then
8847 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8848 else
8849 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8850 fi
e6cc62c6 8851
10f2d63a 8852else
e6cc62c6 8853
10f2d63a
VZ
8854 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8855 if test "x$LINE" != x ; then
8856 eval "DEFAULT_$LINE"
8857 else
8858 no_cache=1
8859 fi
8860
8861 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8862
e6cc62c6 8863fi;
10f2d63a
VZ
8864
8865 eval "$ac_cv_use_progressdlg"
8866 if test "$no_cache" != 1; then
8867 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8868 fi
8869
8870 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8871 echo "$as_me:$LINENO: result: yes" >&5
8872echo "${ECHO_T}yes" >&6
10f2d63a 8873 else
e6cc62c6
VS
8874 echo "$as_me:$LINENO: result: no" >&5
8875echo "${ECHO_T}no" >&6
10f2d63a 8876 fi
e6cc62c6 8877
10f2d63a 8878
5005acfe 8879 enablestring=
e6cc62c6
VS
8880 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8881echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8882 no_cache=0
8883 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8884if test "${enable_wizarddlg+set}" = set; then
8885 enableval="$enable_wizarddlg"
e6cc62c6 8886
b1f5d087
VZ
8887 if test "$enableval" = yes; then
8888 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8889 else
8890 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8891 fi
e6cc62c6 8892
b1f5d087 8893else
e6cc62c6 8894
b1f5d087
VZ
8895 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8896 if test "x$LINE" != x ; then
8897 eval "DEFAULT_$LINE"
8898 else
8899 no_cache=1
8900 fi
8901
8902 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8903
e6cc62c6 8904fi;
b1f5d087
VZ
8905
8906 eval "$ac_cv_use_wizarddlg"
8907 if test "$no_cache" != 1; then
8908 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8909 fi
8910
8911 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8912 echo "$as_me:$LINENO: result: yes" >&5
8913echo "${ECHO_T}yes" >&6
b1f5d087 8914 else
e6cc62c6
VS
8915 echo "$as_me:$LINENO: result: no" >&5
8916echo "${ECHO_T}no" >&6
b1f5d087 8917 fi
e6cc62c6 8918
8284b0c5
MB
8919
8920
52127426 8921
5005acfe 8922 enablestring=
e6cc62c6
VS
8923 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8924echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8925 no_cache=0
8926 # Check whether --enable-menus or --disable-menus was given.
8927if test "${enable_menus+set}" = set; then
8928 enableval="$enable_menus"
e6cc62c6 8929
1e6feb95
VZ
8930 if test "$enableval" = yes; then
8931 ac_cv_use_menus='wxUSE_MENUS=yes'
8932 else
8933 ac_cv_use_menus='wxUSE_MENUS=no'
8934 fi
e6cc62c6 8935
1e6feb95 8936else
e6cc62c6 8937
1e6feb95
VZ
8938 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8939 if test "x$LINE" != x ; then
8940 eval "DEFAULT_$LINE"
8941 else
8942 no_cache=1
8943 fi
8944
8945 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8946
e6cc62c6 8947fi;
1e6feb95
VZ
8948
8949 eval "$ac_cv_use_menus"
8950 if test "$no_cache" != 1; then
8951 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8952 fi
8953
8954 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
8955 echo "$as_me:$LINENO: result: yes" >&5
8956echo "${ECHO_T}yes" >&6
1e6feb95 8957 else
e6cc62c6
VS
8958 echo "$as_me:$LINENO: result: no" >&5
8959echo "${ECHO_T}no" >&6
1e6feb95 8960 fi
e6cc62c6 8961
1e6feb95 8962
5005acfe 8963 enablestring=
e6cc62c6
VS
8964 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8965echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8966 no_cache=0
8967 # Check whether --enable-miniframe or --disable-miniframe was given.
8968if test "${enable_miniframe+set}" = set; then
8969 enableval="$enable_miniframe"
e6cc62c6 8970
10f2d63a
VZ
8971 if test "$enableval" = yes; then
8972 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8973 else
8974 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8975 fi
e6cc62c6 8976
10f2d63a 8977else
e6cc62c6 8978
10f2d63a
VZ
8979 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8980 if test "x$LINE" != x ; then
8981 eval "DEFAULT_$LINE"
8982 else
8983 no_cache=1
8984 fi
8985
8986 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8987
e6cc62c6 8988fi;
10f2d63a
VZ
8989
8990 eval "$ac_cv_use_miniframe"
8991 if test "$no_cache" != 1; then
8992 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8993 fi
8994
8995 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
8996 echo "$as_me:$LINENO: result: yes" >&5
8997echo "${ECHO_T}yes" >&6
10f2d63a 8998 else
e6cc62c6
VS
8999 echo "$as_me:$LINENO: result: no" >&5
9000echo "${ECHO_T}no" >&6
10f2d63a 9001 fi
e6cc62c6 9002
10f2d63a 9003
5005acfe 9004 enablestring=
e6cc62c6
VS
9005 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9006echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
9007 no_cache=0
9008 # Check whether --enable-tooltips or --disable-tooltips was given.
9009if test "${enable_tooltips+set}" = set; then
9010 enableval="$enable_tooltips"
e6cc62c6 9011
10f2d63a
VZ
9012 if test "$enableval" = yes; then
9013 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9014 else
9015 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9016 fi
e6cc62c6 9017
10f2d63a 9018else
e6cc62c6 9019
10f2d63a
VZ
9020 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9021 if test "x$LINE" != x ; then
9022 eval "DEFAULT_$LINE"
9023 else
9024 no_cache=1
9025 fi
9026
9027 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 9028
e6cc62c6 9029fi;
10f2d63a
VZ
9030
9031 eval "$ac_cv_use_tooltips"
9032 if test "$no_cache" != 1; then
9033 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9034 fi
9035
9036 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
9037 echo "$as_me:$LINENO: result: yes" >&5
9038echo "${ECHO_T}yes" >&6
10f2d63a 9039 else
e6cc62c6
VS
9040 echo "$as_me:$LINENO: result: no" >&5
9041echo "${ECHO_T}no" >&6
10f2d63a 9042 fi
e6cc62c6 9043
10f2d63a 9044
5005acfe 9045 enablestring=
e6cc62c6
VS
9046 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9047echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
9048 no_cache=0
9049 # Check whether --enable-splines or --disable-splines was given.
9050if test "${enable_splines+set}" = set; then
9051 enableval="$enable_splines"
e6cc62c6 9052
10f2d63a
VZ
9053 if test "$enableval" = yes; then
9054 ac_cv_use_splines='wxUSE_SPLINES=yes'
9055 else
9056 ac_cv_use_splines='wxUSE_SPLINES=no'
9057 fi
e6cc62c6 9058
10f2d63a 9059else
e6cc62c6 9060
10f2d63a
VZ
9061 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9062 if test "x$LINE" != x ; then
9063 eval "DEFAULT_$LINE"
9064 else
9065 no_cache=1
9066 fi
9067
9068 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 9069
e6cc62c6 9070fi;
10f2d63a
VZ
9071
9072 eval "$ac_cv_use_splines"
9073 if test "$no_cache" != 1; then
9074 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9075 fi
9076
9077 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
9078 echo "$as_me:$LINENO: result: yes" >&5
9079echo "${ECHO_T}yes" >&6
10f2d63a 9080 else
e6cc62c6
VS
9081 echo "$as_me:$LINENO: result: no" >&5
9082echo "${ECHO_T}no" >&6
10f2d63a 9083 fi
e6cc62c6 9084
10f2d63a 9085
5005acfe 9086 enablestring=
e6cc62c6
VS
9087 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9088echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
9089 no_cache=0
9090 # Check whether --enable-validators or --disable-validators was given.
9091if test "${enable_validators+set}" = set; then
9092 enableval="$enable_validators"
e6cc62c6 9093
10f2d63a
VZ
9094 if test "$enableval" = yes; then
9095 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9096 else
9097 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9098 fi
e6cc62c6 9099
10f2d63a 9100else
e6cc62c6 9101
10f2d63a
VZ
9102 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9103 if test "x$LINE" != x ; then
9104 eval "DEFAULT_$LINE"
9105 else
9106 no_cache=1
9107 fi
9108
9109 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 9110
e6cc62c6 9111fi;
10f2d63a
VZ
9112
9113 eval "$ac_cv_use_validators"
9114 if test "$no_cache" != 1; then
9115 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9116 fi
9117
9118 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
9119 echo "$as_me:$LINENO: result: yes" >&5
9120echo "${ECHO_T}yes" >&6
10f2d63a 9121 else
e6cc62c6
VS
9122 echo "$as_me:$LINENO: result: no" >&5
9123echo "${ECHO_T}no" >&6
10f2d63a 9124 fi
e6cc62c6 9125
10f2d63a 9126
5005acfe 9127 enablestring=
e6cc62c6
VS
9128 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9129echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
9130 no_cache=0
9131 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9132if test "${enable_busyinfo+set}" = set; then
9133 enableval="$enable_busyinfo"
e6cc62c6 9134
10f2d63a
VZ
9135 if test "$enableval" = yes; then
9136 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9137 else
9138 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9139 fi
e6cc62c6 9140
10f2d63a 9141else
e6cc62c6 9142
10f2d63a
VZ
9143 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9144 if test "x$LINE" != x ; then
9145 eval "DEFAULT_$LINE"
9146 else
9147 no_cache=1
9148 fi
9149
9150 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 9151
e6cc62c6 9152fi;
10f2d63a
VZ
9153
9154 eval "$ac_cv_use_busyinfo"
9155 if test "$no_cache" != 1; then
9156 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9157 fi
9158
9159 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
9160 echo "$as_me:$LINENO: result: yes" >&5
9161echo "${ECHO_T}yes" >&6
10f2d63a 9162 else
e6cc62c6
VS
9163 echo "$as_me:$LINENO: result: no" >&5
9164echo "${ECHO_T}no" >&6
10f2d63a 9165 fi
e6cc62c6 9166
10f2d63a 9167
5005acfe 9168 enablestring=
e6cc62c6
VS
9169 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9170echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
9171 no_cache=0
9172 # Check whether --enable-joystick or --disable-joystick was given.
9173if test "${enable_joystick+set}" = set; then
9174 enableval="$enable_joystick"
e6cc62c6 9175
f6bcfd97
BP
9176 if test "$enableval" = yes; then
9177 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9178 else
9179 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9180 fi
e6cc62c6 9181
f6bcfd97 9182else
e6cc62c6 9183
f6bcfd97
BP
9184 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9185 if test "x$LINE" != x ; then
9186 eval "DEFAULT_$LINE"
9187 else
9188 no_cache=1
9189 fi
9190
9191 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 9192
e6cc62c6 9193fi;
f6bcfd97
BP
9194
9195 eval "$ac_cv_use_joystick"
9196 if test "$no_cache" != 1; then
9197 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9198 fi
9199
9200 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
9201 echo "$as_me:$LINENO: result: yes" >&5
9202echo "${ECHO_T}yes" >&6
f6bcfd97 9203 else
e6cc62c6
VS
9204 echo "$as_me:$LINENO: result: no" >&5
9205echo "${ECHO_T}no" >&6
f6bcfd97 9206 fi
e6cc62c6 9207
698dcdb6 9208
5005acfe 9209 enablestring=
e6cc62c6
VS
9210 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9211echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
9212 no_cache=0
9213 # Check whether --enable-metafile or --disable-metafile was given.
9214if test "${enable_metafile+set}" = set; then
9215 enableval="$enable_metafile"
e6cc62c6 9216
1e6feb95
VZ
9217 if test "$enableval" = yes; then
9218 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9219 else
9220 ac_cv_use_metafile='wxUSE_METAFILE=no'
9221 fi
e6cc62c6 9222
1e6feb95 9223else
e6cc62c6 9224
1e6feb95
VZ
9225 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9226 if test "x$LINE" != x ; then
9227 eval "DEFAULT_$LINE"
9228 else
9229 no_cache=1
9230 fi
9231
9232 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9233
e6cc62c6 9234fi;
1e6feb95
VZ
9235
9236 eval "$ac_cv_use_metafile"
9237 if test "$no_cache" != 1; then
9238 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9239 fi
9240
9241 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9242 echo "$as_me:$LINENO: result: yes" >&5
9243echo "${ECHO_T}yes" >&6
1e6feb95 9244 else
e6cc62c6
VS
9245 echo "$as_me:$LINENO: result: no" >&5
9246echo "${ECHO_T}no" >&6
1e6feb95 9247 fi
e6cc62c6 9248
1e6feb95 9249
5005acfe 9250 enablestring=
e6cc62c6
VS
9251 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9252echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9253 no_cache=0
9254 # Check whether --enable-dragimage or --disable-dragimage was given.
9255if test "${enable_dragimage+set}" = set; then
9256 enableval="$enable_dragimage"
e6cc62c6 9257
24fd6d87
VZ
9258 if test "$enableval" = yes; then
9259 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9260 else
9261 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9262 fi
e6cc62c6 9263
24fd6d87 9264else
e6cc62c6 9265
24fd6d87
VZ
9266 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9267 if test "x$LINE" != x ; then
9268 eval "DEFAULT_$LINE"
9269 else
9270 no_cache=1
9271 fi
9272
9273 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9274
e6cc62c6 9275fi;
24fd6d87
VZ
9276
9277 eval "$ac_cv_use_dragimage"
9278 if test "$no_cache" != 1; then
9279 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9280 fi
9281
9282 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9283 echo "$as_me:$LINENO: result: yes" >&5
9284echo "${ECHO_T}yes" >&6
24fd6d87 9285 else
e6cc62c6
VS
9286 echo "$as_me:$LINENO: result: no" >&5
9287echo "${ECHO_T}no" >&6
24fd6d87 9288 fi
e6cc62c6 9289
52127426 9290
7bb2947d 9291 enablestring=
e6cc62c6
VS
9292 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9293echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9294 no_cache=0
9295 # Check whether --enable-accessibility or --disable-accessibility was given.
9296if test "${enable_accessibility+set}" = set; then
9297 enableval="$enable_accessibility"
e6cc62c6 9298
7bb2947d
MB
9299 if test "$enableval" = yes; then
9300 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9301 else
9302 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9303 fi
e6cc62c6 9304
7bb2947d 9305else
e6cc62c6 9306
7bb2947d
MB
9307 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9308 if test "x$LINE" != x ; then
9309 eval "DEFAULT_$LINE"
9310 else
9311 no_cache=1
9312 fi
9313
9314 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9315
e6cc62c6 9316fi;
7bb2947d
MB
9317
9318 eval "$ac_cv_use_accessibility"
9319 if test "$no_cache" != 1; then
9320 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9321 fi
9322
9323 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9324 echo "$as_me:$LINENO: result: yes" >&5
9325echo "${ECHO_T}yes" >&6
7bb2947d 9326 else
e6cc62c6
VS
9327 echo "$as_me:$LINENO: result: no" >&5
9328echo "${ECHO_T}no" >&6
7bb2947d 9329 fi
e6cc62c6 9330
7bb2947d 9331
8284b0c5
MB
9332
9333
5005acfe 9334 enablestring=
e6cc62c6
VS
9335 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9336echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9337 no_cache=0
9338 # Check whether --enable-palette or --disable-palette was given.
9339if test "${enable_palette+set}" = set; then
9340 enableval="$enable_palette"
e6cc62c6 9341
edae8572
VZ
9342 if test "$enableval" = yes; then
9343 ac_cv_use_palette='wxUSE_PALETTE=yes'
9344 else
9345 ac_cv_use_palette='wxUSE_PALETTE=no'
9346 fi
e6cc62c6 9347
edae8572 9348else
e6cc62c6 9349
edae8572
VZ
9350 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9351 if test "x$LINE" != x ; then
9352 eval "DEFAULT_$LINE"
9353 else
9354 no_cache=1
9355 fi
9356
9357 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9358
e6cc62c6 9359fi;
edae8572
VZ
9360
9361 eval "$ac_cv_use_palette"
9362 if test "$no_cache" != 1; then
9363 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9364 fi
9365
9366 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9367 echo "$as_me:$LINENO: result: yes" >&5
9368echo "${ECHO_T}yes" >&6
edae8572 9369 else
e6cc62c6
VS
9370 echo "$as_me:$LINENO: result: no" >&5
9371echo "${ECHO_T}no" >&6
edae8572 9372 fi
e6cc62c6 9373
edae8572 9374
5005acfe 9375 enablestring=
e6cc62c6
VS
9376 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9377echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9378 no_cache=0
9379 # Check whether --enable-image or --disable-image was given.
9380if test "${enable_image+set}" = set; then
9381 enableval="$enable_image"
e6cc62c6 9382
0046ff7c
VS
9383 if test "$enableval" = yes; then
9384 ac_cv_use_image='wxUSE_IMAGE=yes'
9385 else
9386 ac_cv_use_image='wxUSE_IMAGE=no'
9387 fi
e6cc62c6 9388
0046ff7c 9389else
e6cc62c6 9390
0046ff7c
VS
9391 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9392 if test "x$LINE" != x ; then
9393 eval "DEFAULT_$LINE"
9394 else
9395 no_cache=1
9396 fi
9397
9398 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9399
e6cc62c6 9400fi;
0046ff7c
VS
9401
9402 eval "$ac_cv_use_image"
9403 if test "$no_cache" != 1; then
9404 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9405 fi
9406
9407 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9408 echo "$as_me:$LINENO: result: yes" >&5
9409echo "${ECHO_T}yes" >&6
0046ff7c 9410 else
e6cc62c6
VS
9411 echo "$as_me:$LINENO: result: no" >&5
9412echo "${ECHO_T}no" >&6
0046ff7c 9413 fi
e6cc62c6 9414
0046ff7c 9415
5005acfe 9416 enablestring=
e6cc62c6
VS
9417 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9418echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9419 no_cache=0
9420 # Check whether --enable-gif or --disable-gif was given.
9421if test "${enable_gif+set}" = set; then
9422 enableval="$enable_gif"
e6cc62c6 9423
10f2d63a
VZ
9424 if test "$enableval" = yes; then
9425 ac_cv_use_gif='wxUSE_GIF=yes'
9426 else
9427 ac_cv_use_gif='wxUSE_GIF=no'
9428 fi
e6cc62c6 9429
10f2d63a 9430else
e6cc62c6 9431
10f2d63a
VZ
9432 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9433 if test "x$LINE" != x ; then
9434 eval "DEFAULT_$LINE"
9435 else
9436 no_cache=1
9437 fi
9438
9439 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9440
e6cc62c6 9441fi;
10f2d63a
VZ
9442
9443 eval "$ac_cv_use_gif"
9444 if test "$no_cache" != 1; then
9445 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9446 fi
9447
9448 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9449 echo "$as_me:$LINENO: result: yes" >&5
9450echo "${ECHO_T}yes" >&6
10f2d63a 9451 else
e6cc62c6
VS
9452 echo "$as_me:$LINENO: result: no" >&5
9453echo "${ECHO_T}no" >&6
10f2d63a 9454 fi
e6cc62c6 9455
10f2d63a 9456
5005acfe 9457 enablestring=
e6cc62c6
VS
9458 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9459echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9460 no_cache=0
9461 # Check whether --enable-pcx or --disable-pcx was given.
9462if test "${enable_pcx+set}" = set; then
9463 enableval="$enable_pcx"
e6cc62c6 9464
10f2d63a
VZ
9465 if test "$enableval" = yes; then
9466 ac_cv_use_pcx='wxUSE_PCX=yes'
9467 else
9468 ac_cv_use_pcx='wxUSE_PCX=no'
9469 fi
e6cc62c6 9470
10f2d63a 9471else
e6cc62c6 9472
10f2d63a
VZ
9473 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9474 if test "x$LINE" != x ; then
9475 eval "DEFAULT_$LINE"
9476 else
9477 no_cache=1
9478 fi
9479
9480 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9481
e6cc62c6 9482fi;
10f2d63a
VZ
9483
9484 eval "$ac_cv_use_pcx"
9485 if test "$no_cache" != 1; then
9486 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9487 fi
9488
9489 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9490 echo "$as_me:$LINENO: result: yes" >&5
9491echo "${ECHO_T}yes" >&6
10f2d63a 9492 else
e6cc62c6
VS
9493 echo "$as_me:$LINENO: result: no" >&5
9494echo "${ECHO_T}no" >&6
10f2d63a 9495 fi
e6cc62c6 9496
10f2d63a 9497
5005acfe 9498 enablestring=
e6cc62c6
VS
9499 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9500echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9501 no_cache=0
9502 # Check whether --enable-iff or --disable-iff was given.
9503if test "${enable_iff+set}" = set; then
9504 enableval="$enable_iff"
e6cc62c6 9505
4b6b4dfc
RR
9506 if test "$enableval" = yes; then
9507 ac_cv_use_iff='wxUSE_IFF=yes'
9508 else
9509 ac_cv_use_iff='wxUSE_IFF=no'
9510 fi
e6cc62c6 9511
4b6b4dfc 9512else
e6cc62c6 9513
4b6b4dfc
RR
9514 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9515 if test "x$LINE" != x ; then
9516 eval "DEFAULT_$LINE"
9517 else
9518 no_cache=1
9519 fi
9520
9521 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9522
e6cc62c6 9523fi;
4b6b4dfc
RR
9524
9525 eval "$ac_cv_use_iff"
9526 if test "$no_cache" != 1; then
9527 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9528 fi
9529
9530 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9531 echo "$as_me:$LINENO: result: yes" >&5
9532echo "${ECHO_T}yes" >&6
4b6b4dfc 9533 else
e6cc62c6
VS
9534 echo "$as_me:$LINENO: result: no" >&5
9535echo "${ECHO_T}no" >&6
4b6b4dfc 9536 fi
e6cc62c6 9537
4b6b4dfc 9538
5005acfe 9539 enablestring=
e6cc62c6
VS
9540 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9541echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9542 no_cache=0
9543 # Check whether --enable-pnm or --disable-pnm was given.
9544if test "${enable_pnm+set}" = set; then
9545 enableval="$enable_pnm"
e6cc62c6 9546
10f2d63a
VZ
9547 if test "$enableval" = yes; then
9548 ac_cv_use_pnm='wxUSE_PNM=yes'
9549 else
9550 ac_cv_use_pnm='wxUSE_PNM=no'
9551 fi
e6cc62c6 9552
10f2d63a 9553else
e6cc62c6 9554
10f2d63a
VZ
9555 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9556 if test "x$LINE" != x ; then
9557 eval "DEFAULT_$LINE"
9558 else
9559 no_cache=1
9560 fi
9561
9562 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9563
e6cc62c6 9564fi;
10f2d63a
VZ
9565
9566 eval "$ac_cv_use_pnm"
9567 if test "$no_cache" != 1; then
9568 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9569 fi
9570
9571 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9572 echo "$as_me:$LINENO: result: yes" >&5
9573echo "${ECHO_T}yes" >&6
10f2d63a 9574 else
e6cc62c6
VS
9575 echo "$as_me:$LINENO: result: no" >&5
9576echo "${ECHO_T}no" >&6
10f2d63a 9577 fi
e6cc62c6 9578
10f2d63a 9579
5005acfe 9580 enablestring=
e6cc62c6
VS
9581 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9582echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9583 no_cache=0
69d27ff7
MB
9584 # Check whether --enable-xpm or --disable-xpm was given.
9585if test "${enable_xpm+set}" = set; then
9586 enableval="$enable_xpm"
e6cc62c6 9587
0046ff7c 9588 if test "$enableval" = yes; then
69d27ff7 9589 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9590 else
69d27ff7 9591 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9592 fi
e6cc62c6 9593
0046ff7c 9594else
e6cc62c6 9595
0046ff7c
VS
9596 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9597 if test "x$LINE" != x ; then
9598 eval "DEFAULT_$LINE"
9599 else
9600 no_cache=1
9601 fi
9602
69d27ff7 9603 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9604
e6cc62c6 9605fi;
0046ff7c 9606
69d27ff7 9607 eval "$ac_cv_use_xpm"
0046ff7c 9608 if test "$no_cache" != 1; then
69d27ff7 9609 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9610 fi
9611
9612 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9613 echo "$as_me:$LINENO: result: yes" >&5
9614echo "${ECHO_T}yes" >&6
0046ff7c 9615 else
e6cc62c6
VS
9616 echo "$as_me:$LINENO: result: no" >&5
9617echo "${ECHO_T}no" >&6
0046ff7c 9618 fi
e6cc62c6 9619
0046ff7c 9620
5005acfe 9621 enablestring=
e6cc62c6
VS
9622 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9623echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9624 no_cache=0
c7206e64
VS
9625 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9626if test "${enable_ico_cur+set}" = set; then
9627 enableval="$enable_ico_cur"
e6cc62c6 9628
658974ae 9629 if test "$enableval" = yes; then
c7206e64 9630 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9631 else
c7206e64 9632 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9633 fi
e6cc62c6 9634
658974ae 9635else
e6cc62c6 9636
658974ae
VS
9637 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9638 if test "x$LINE" != x ; then
9639 eval "DEFAULT_$LINE"
9640 else
9641 no_cache=1
9642 fi
9643
c7206e64 9644 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9645
e6cc62c6 9646fi;
658974ae 9647
c7206e64 9648 eval "$ac_cv_use_ico_cur"
658974ae 9649 if test "$no_cache" != 1; then
c7206e64 9650 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9651 fi
9652
9653 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9654 echo "$as_me:$LINENO: result: yes" >&5
9655echo "${ECHO_T}yes" >&6
658974ae 9656 else
e6cc62c6
VS
9657 echo "$as_me:$LINENO: result: no" >&5
9658echo "${ECHO_T}no" >&6
658974ae 9659 fi
e6cc62c6 9660
658974ae 9661
b12915c1
VZ
9662fi
9663
029b47ad
VS
9664
9665
9666 enablestring=
9667 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9668echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9669 no_cache=0
9670 # Check whether --enable-official_build or --disable-official_build was given.
9671if test "${enable_official_build+set}" = set; then
9672 enableval="$enable_official_build"
9673
9674 if test "$enableval" = yes; then
9675 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9676 else
9677 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9678 fi
9679
9680else
9681
9682 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9683 if test "x$LINE" != x ; then
9684 eval "DEFAULT_$LINE"
9685 else
9686 no_cache=1
9687 fi
9688
9689 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9690
9691fi;
9692
9693 eval "$ac_cv_use_official_build"
9694 if test "$no_cache" != 1; then
9695 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9696 fi
9697
9698 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9699 echo "$as_me:$LINENO: result: yes" >&5
9700echo "${ECHO_T}yes" >&6
9701 else
9702 echo "$as_me:$LINENO: result: no" >&5
9703echo "${ECHO_T}no" >&6
9704 fi
9705
9706# Check whether --enable-vendor or --disable-vendor was given.
9707if test "${enable_vendor+set}" = set; then
9708 enableval="$enable_vendor"
9709 VENDOR="$enableval"
9710fi;
9711if test "x$VENDOR" = "x"; then
9712 VENDOR="custom"
9713fi
9714
d558c907
VS
9715case "${host}" in
9716 *-pc-os2_emx | *-pc-os2-emx )
6969f178 9717 PATH_IFS=';'
d558c907
VS
9718 ;;
9719 *)
9720 PATH_IFS=':'
d558c907
VS
9721 ;;
9722esac
9723
8284b0c5
MB
9724
9725
10f2d63a
VZ
9726 echo "saving argument cache $wx_arg_cache_file"
9727 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9728
8284b0c5 9729
e6cc62c6
VS
9730
9731echo "$as_me:$LINENO: checking for toolkit" >&5
9732echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9733
9734# In Wine, we need to default to MSW, not GTK or MOTIF
9735if test "$wxUSE_WINE" = "yes"; then
9736 DEFAULT_DEFAULT_wxUSE_GTK=0
9737 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9738 DEFAULT_DEFAULT_wxUSE_MSW=1
74500461 9739 wxUSE_SHARED=no
89e6bf6d 9740fi
10f2d63a
VZ
9741
9742if test "$wxUSE_GUI" = "yes"; then
9743
3a922bb4 9744 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9745 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9746echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9747 { (exit 1); exit 1; }; }
3a922bb4 9748 fi
b12915c1 9749
3a922bb4
RL
9750 if test "$TOOLKIT_GIVEN" = 1; then
9751 for toolkit in `echo $ALL_TOOLKITS`; do
9752 var=wxUSE_$toolkit
9753 eval "value=\$${var}"
9754 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9755 done
10f2d63a 9756 else
3a922bb4
RL
9757 for toolkit in `echo $ALL_TOOLKITS`; do
9758 if test "$has_toolkit_in_cache" != 1; then
9759 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9760 else
9761 var=DEFAULT_wxUSE_$toolkit
9762 fi
9763 eval "wxUSE_$toolkit=\$${var}"
9764 done
10f2d63a 9765 fi
10f2d63a 9766
ac0c4cc3
DE
9767 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9768 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9769 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9770
d558c907 9771 case "${host}" in
6fa882bd 9772 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9773 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9774 esac
10f2d63a 9775
3a922bb4
RL
9776 case "$NUM_TOOLKITS" in
9777 1)
9778 ;;
9779 0)
e6cc62c6
VS
9780 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9781echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9782 { (exit 1); exit 1; }; }
3a922bb4
RL
9783 ;;
9784 *)
e6cc62c6
VS
9785 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9786echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9787 { (exit 1); exit 1; }; }
3a922bb4 9788 esac
10f2d63a 9789
3a922bb4
RL
9790 for toolkit in `echo $ALL_TOOLKITS`; do
9791 var=wxUSE_$toolkit
9792 eval "value=\$${var}"
9793 if test "x$value" != x; then
9794 cache_var=CACHE_$toolkit
9795 eval "cache=\$${cache_var}"
9796 if test "$cache" = 1; then
9797 echo "$var=$value" >> ${wx_arg_cache_file}
9798 fi
9799 if test "$value" = 1; then
89fe663f 9800 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
e6cc62c6
VS
9801 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9802echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9803 fi
9804 fi
9805 done
10f2d63a 9806else
9de9b8f0
VZ
9807 if test "x$host_alias" != "x"; then
9808 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9809echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9810 else
9811 echo "$as_me:$LINENO: result: base only" >&5
9812echo "${ECHO_T}base only" >&6
9813 fi
10f2d63a
VZ
9814fi
9815
43d99b6d
VS
9816wants_win32=0
9817doesnt_want_win32=0
17234b26
MB
9818case "${host}" in
9819 *-*-cygwin*)
9820 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9821 wants_win32=1
9822 else
9823 doesnt_want_win32=1
17234b26
MB
9824 fi
9825 ;;
9826 *-*-mingw*)
43d99b6d 9827 wants_win32=1
17234b26
MB
9828 ;;
9829esac
9830
89e6bf6d
VZ
9831if test "$wxUSE_WINE" = "yes"; then
9832 wants_win32=1
9833 CC=winegcc
9834 CXX=wineg++
9835 RESCOMP=wrc
9836fi
9837
43d99b6d 9838if test "$wants_win32" = 1 ; then
17234b26
MB
9839 USE_UNIX=0
9840 USE_WIN32=1
e6cc62c6 9841 cat >>confdefs.h <<\_ACEOF
17234b26 9842#define __WIN32__ 1
e6cc62c6 9843_ACEOF
17234b26 9844
e6cc62c6 9845 cat >>confdefs.h <<\_ACEOF
17234b26 9846#define __WIN95__ 1
e6cc62c6 9847_ACEOF
17234b26 9848
e6cc62c6 9849 cat >>confdefs.h <<\_ACEOF
17234b26 9850#define __WINDOWS__ 1
e6cc62c6 9851_ACEOF
17234b26 9852
e6cc62c6 9853 cat >>confdefs.h <<\_ACEOF
17234b26 9854#define __GNUWIN32__ 1
e6cc62c6 9855_ACEOF
17234b26 9856
e6cc62c6 9857 cat >>confdefs.h <<\_ACEOF
17234b26 9858#define STRICT 1
e6cc62c6 9859_ACEOF
17234b26 9860
e6cc62c6 9861 cat >>confdefs.h <<\_ACEOF
17234b26 9862#define WINVER 0x0400
e6cc62c6 9863_ACEOF
17234b26 9864
43d99b6d
VS
9865fi
9866if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9867 USE_UNIX=1
9868 USE_WIN32=0
9869fi
9870
9871if test "$USE_UNIX" = 1 ; then
9872 wxUSE_UNIX=yes
e6cc62c6 9873 cat >>confdefs.h <<\_ACEOF
17234b26 9874#define __UNIX__ 1
e6cc62c6 9875_ACEOF
17234b26
MB
9876
9877fi
9878
8284b0c5 9879
e6cc62c6 9880cat >confcache <<\_ACEOF
10f2d63a
VZ
9881# This file is a shell script that caches the results of configure
9882# tests run on this system so they can be shared between configure
e6cc62c6
VS
9883# scripts and configure runs, see configure's option --config-cache.
9884# It is not useful on other systems. If it contains results you don't
9885# want to keep, you may remove or edit it.
10f2d63a 9886#
e6cc62c6
VS
9887# config.status only pays attention to the cache file if you give it
9888# the --recheck option to rerun configure.
10f2d63a 9889#
e6cc62c6
VS
9890# `ac_cv_env_foo' variables (set or unset) will be overridden when
9891# loading this file, other *unset* `ac_cv_foo' will be assigned the
9892# following values.
9893
9894_ACEOF
9895
10f2d63a
VZ
9896# The following way of writing the cache mishandles newlines in values,
9897# but we know of no workaround that is simple, portable, and efficient.
9898# So, don't put newlines in cache variables' values.
9899# Ultrix sh set writes to stderr and can't be redirected directly,
9900# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9901{
9902 (set) 2>&1 |
9903 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9904 *ac_space=\ *)
9905 # `set' does not quote correctly, so add quotes (double-quote
9906 # substitution turns \\\\ into \\, and sed turns \\ into \).
9907 sed -n \
eea650d8
VS
9908 "s/'/'\\\\''/g;
9909 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
9910 ;;
9911 *)
9912 # `set' quotes correctly as required by POSIX, so do not add quotes.
9913 sed -n \
eea650d8 9914 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
9915 ;;
9916 esac;
9917} |
9918 sed '
9919 t clear
9920 : clear
9921 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9922 t end
9923 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9924 : end' >>confcache
9925if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9926 if test -w $cache_file; then
e6cc62c6
VS
9927 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9928 cat confcache >$cache_file
10f2d63a
VZ
9929 else
9930 echo "not updating unwritable cache $cache_file"
9931 fi
9932fi
9933rm -f confcache
9934
e59890c3 9935if test "$build" != "$host" ; then
9d353d4a 9936 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9937 CC=$host_alias-gcc
9938 CXX=$host_alias-c++
9939 AR=$host_alias-ar
9940 RANLIB=$host_alias-ranlib
9941 DLLTOOL=$host_alias-dlltool
9942 RESCOMP=$host_alias-windres
9943 LD=$host_alias-ld
9944 NM=$host_alias-nm
9945 STRIP=$host_alias-strip
9946 else
e6cc62c6
VS
9947 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9948echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9949 { (exit 1); exit 1; }; }
3a922bb4 9950 fi
10f2d63a
VZ
9951fi
9952
ec603395 9953CFLAGS=${CFLAGS:=}
e6cc62c6
VS
9954ac_ext=c
9955ac_cpp='$CPP $CPPFLAGS'
9956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9958ac_compiler_gnu=$ac_cv_c_compiler_gnu
9959if test -n "$ac_tool_prefix"; then
9960 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9961set dummy ${ac_tool_prefix}gcc; ac_word=$2
9962echo "$as_me:$LINENO: checking for $ac_word" >&5
9963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9964if test "${ac_cv_prog_CC+set}" = set; then
9965 echo $ECHO_N "(cached) $ECHO_C" >&6
9966else
9967 if test -n "$CC"; then
9968 ac_cv_prog_CC="$CC" # Let the user override the test.
9969else
9970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9971for as_dir in $PATH
9972do
9973 IFS=$as_save_IFS
9974 test -z "$as_dir" && as_dir=.
9975 for ac_exec_ext in '' $ac_executable_extensions; do
9976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9977 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9979 break 2
9980 fi
9981done
9982done
9983
9984fi
9985fi
9986CC=$ac_cv_prog_CC
9987if test -n "$CC"; then
9988 echo "$as_me:$LINENO: result: $CC" >&5
9989echo "${ECHO_T}$CC" >&6
9990else
9991 echo "$as_me:$LINENO: result: no" >&5
9992echo "${ECHO_T}no" >&6
9993fi
9994
9995fi
9996if test -z "$ac_cv_prog_CC"; then
9997 ac_ct_CC=$CC
9998 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 9999set dummy gcc; ac_word=$2
e6cc62c6
VS
10000echo "$as_me:$LINENO: checking for $ac_word" >&5
10001echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10002if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10004else
10005 if test -n "$ac_ct_CC"; then
10006 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10007else
10008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10009for as_dir in $PATH
10010do
10011 IFS=$as_save_IFS
10012 test -z "$as_dir" && as_dir=.
10013 for ac_exec_ext in '' $ac_executable_extensions; do
10014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10015 ac_cv_prog_ac_ct_CC="gcc"
10016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10017 break 2
10018 fi
10019done
10020done
10021
10022fi
10023fi
10024ac_ct_CC=$ac_cv_prog_ac_ct_CC
10025if test -n "$ac_ct_CC"; then
10026 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10027echo "${ECHO_T}$ac_ct_CC" >&6
10028else
10029 echo "$as_me:$LINENO: result: no" >&5
10030echo "${ECHO_T}no" >&6
10031fi
10032
10033 CC=$ac_ct_CC
10034else
10035 CC="$ac_cv_prog_CC"
10036fi
10037
10038if test -z "$CC"; then
10039 if test -n "$ac_tool_prefix"; then
10040 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10041set dummy ${ac_tool_prefix}cc; ac_word=$2
10042echo "$as_me:$LINENO: checking for $ac_word" >&5
10043echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10044if test "${ac_cv_prog_CC+set}" = set; then
10045 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
10046else
10047 if test -n "$CC"; then
10048 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 10049else
e6cc62c6
VS
10050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10051for as_dir in $PATH
10052do
10053 IFS=$as_save_IFS
10054 test -z "$as_dir" && as_dir=.
10055 for ac_exec_ext in '' $ac_executable_extensions; do
10056 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10057 ac_cv_prog_CC="${ac_tool_prefix}cc"
10058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10059 break 2
10060 fi
10061done
10062done
10063
10f2d63a 10064fi
6232543b 10065fi
e6cc62c6 10066CC=$ac_cv_prog_CC
6232543b 10067if test -n "$CC"; then
e6cc62c6
VS
10068 echo "$as_me:$LINENO: result: $CC" >&5
10069echo "${ECHO_T}$CC" >&6
10070else
10071 echo "$as_me:$LINENO: result: no" >&5
10072echo "${ECHO_T}no" >&6
10073fi
10074
10075fi
10076if test -z "$ac_cv_prog_CC"; then
10077 ac_ct_CC=$CC
10078 # Extract the first word of "cc", so it can be a program name with args.
10079set dummy cc; ac_word=$2
10080echo "$as_me:$LINENO: checking for $ac_word" >&5
10081echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10082if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10084else
10085 if test -n "$ac_ct_CC"; then
10086 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10087else
10088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089for as_dir in $PATH
10090do
10091 IFS=$as_save_IFS
10092 test -z "$as_dir" && as_dir=.
10093 for ac_exec_ext in '' $ac_executable_extensions; do
10094 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10095 ac_cv_prog_ac_ct_CC="cc"
10096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10097 break 2
10098 fi
10099done
10100done
10101
10102fi
10103fi
10104ac_ct_CC=$ac_cv_prog_ac_ct_CC
10105if test -n "$ac_ct_CC"; then
10106 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10107echo "${ECHO_T}$ac_ct_CC" >&6
10108else
10109 echo "$as_me:$LINENO: result: no" >&5
10110echo "${ECHO_T}no" >&6
10111fi
10112
10113 CC=$ac_ct_CC
247f5006 10114else
e6cc62c6 10115 CC="$ac_cv_prog_CC"
247f5006
VZ
10116fi
10117
e6cc62c6 10118fi
5c6fa7d2
RR
10119if test -z "$CC"; then
10120 # Extract the first word of "cc", so it can be a program name with args.
10121set dummy cc; ac_word=$2
e6cc62c6
VS
10122echo "$as_me:$LINENO: checking for $ac_word" >&5
10123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10124if test "${ac_cv_prog_CC+set}" = set; then
10125 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
10126else
10127 if test -n "$CC"; then
10128 ac_cv_prog_CC="$CC" # Let the user override the test.
10129else
10130 ac_prog_rejected=no
e6cc62c6
VS
10131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10132for as_dir in $PATH
10133do
10134 IFS=$as_save_IFS
10135 test -z "$as_dir" && as_dir=.
10136 for ac_exec_ext in '' $ac_executable_extensions; do
10137 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10138 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10139 ac_prog_rejected=yes
10140 continue
10141 fi
10142 ac_cv_prog_CC="cc"
10143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10144 break 2
10145 fi
10146done
10147done
10148
328a083c
RR
10149if test $ac_prog_rejected = yes; then
10150 # We found a bogon in the path, so make sure we never use it.
10151 set dummy $ac_cv_prog_CC
10152 shift
e6cc62c6 10153 if test $# != 0; then
328a083c 10154 # We chose a different compiler from the bogus one.
1e487827
VS
10155 # However, it has the same basename, so the bogon will be chosen
10156 # first if we set CC to just the basename; use the full file name.
10157 shift
e6cc62c6 10158 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 10159 fi
1e487827
VS
10160fi
10161fi
10162fi
e6cc62c6 10163CC=$ac_cv_prog_CC
1e487827 10164if test -n "$CC"; then
e6cc62c6
VS
10165 echo "$as_me:$LINENO: result: $CC" >&5
10166echo "${ECHO_T}$CC" >&6
703e0a69 10167else
e6cc62c6
VS
10168 echo "$as_me:$LINENO: result: no" >&5
10169echo "${ECHO_T}no" >&6
703e0a69 10170fi
1e487827 10171
e6cc62c6
VS
10172fi
10173if test -z "$CC"; then
10174 if test -n "$ac_tool_prefix"; then
10175 for ac_prog in cl
10176 do
10177 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10178set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10179echo "$as_me:$LINENO: checking for $ac_word" >&5
10180echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10181if test "${ac_cv_prog_CC+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
10183else
10184 if test -n "$CC"; then
10185 ac_cv_prog_CC="$CC" # Let the user override the test.
10186else
e6cc62c6
VS
10187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188for as_dir in $PATH
10189do
10190 IFS=$as_save_IFS
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10194 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10196 break 2
10197 fi
10198done
10199done
10200
f09359cf
VS
10201fi
10202fi
e6cc62c6 10203CC=$ac_cv_prog_CC
f09359cf 10204if test -n "$CC"; then
e6cc62c6
VS
10205 echo "$as_me:$LINENO: result: $CC" >&5
10206echo "${ECHO_T}$CC" >&6
f09359cf 10207else
e6cc62c6
VS
10208 echo "$as_me:$LINENO: result: no" >&5
10209echo "${ECHO_T}no" >&6
5c6fa7d2 10210fi
1e487827 10211
e6cc62c6
VS
10212 test -n "$CC" && break
10213 done
10214fi
10215if test -z "$CC"; then
10216 ac_ct_CC=$CC
10217 for ac_prog in cl
10218do
10219 # Extract the first word of "$ac_prog", so it can be a program name with args.
10220set dummy $ac_prog; ac_word=$2
10221echo "$as_me:$LINENO: checking for $ac_word" >&5
10222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10223if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
10225else
10226 if test -n "$ac_ct_CC"; then
10227 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10228else
10229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10230for as_dir in $PATH
10231do
10232 IFS=$as_save_IFS
10233 test -z "$as_dir" && as_dir=.
10234 for ac_exec_ext in '' $ac_executable_extensions; do
10235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10236 ac_cv_prog_ac_ct_CC="$ac_prog"
10237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10238 break 2
10239 fi
10240done
10241done
f09359cf 10242
e6cc62c6
VS
10243fi
10244fi
10245ac_ct_CC=$ac_cv_prog_ac_ct_CC
10246if test -n "$ac_ct_CC"; then
10247 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10248echo "${ECHO_T}$ac_ct_CC" >&6
10249else
10250 echo "$as_me:$LINENO: result: no" >&5
10251echo "${ECHO_T}no" >&6
10252fi
f09359cf 10253
e6cc62c6
VS
10254 test -n "$ac_ct_CC" && break
10255done
247f5006 10256
e6cc62c6
VS
10257 CC=$ac_ct_CC
10258fi
10259
10260fi
10261
10262
10263test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10264See \`config.log' for more details." >&5
10265echo "$as_me: error: no acceptable C compiler found in \$PATH
10266See \`config.log' for more details." >&2;}
10267 { (exit 1); exit 1; }; }
10268
10269# Provide some information about the compiler.
10270echo "$as_me:$LINENO:" \
10271 "checking for C compiler version" >&5
10272ac_compiler=`set X $ac_compile; echo $2`
10273{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10274 (eval $ac_compiler --version </dev/null >&5) 2>&5
10275 ac_status=$?
10276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10277 (exit $ac_status); }
10278{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10279 (eval $ac_compiler -v </dev/null >&5) 2>&5
10280 ac_status=$?
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); }
10283{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10284 (eval $ac_compiler -V </dev/null >&5) 2>&5
10285 ac_status=$?
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); }
10288
10289cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10290/* confdefs.h. */
10291_ACEOF
10292cat confdefs.h >>conftest.$ac_ext
10293cat >>conftest.$ac_ext <<_ACEOF
10294/* end confdefs.h. */
10295
10296int
10297main ()
10298{
247f5006 10299
e6cc62c6
VS
10300 ;
10301 return 0;
10302}
10303_ACEOF
10304ac_clean_files_save=$ac_clean_files
10305ac_clean_files="$ac_clean_files a.out a.exe b.out"
10306# Try to create an executable without -o first, disregard a.out.
10307# It will help us diagnose broken compilers, and finding out an intuition
10308# of exeext.
eea650d8
VS
10309echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10310echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
e6cc62c6
VS
10311ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10312if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10313 (eval $ac_link_default) 2>&5
10314 ac_status=$?
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); }; then
10317 # Find the output, starting from the most likely. This scheme is
10318# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10319# resort.
10320
10321# Be careful to initialize this variable, since it used to be cached.
10322# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10323ac_cv_exeext=
10324# b.out is created by i960 compilers.
10325for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10326do
10327 test -f "$ac_file" || continue
10328 case $ac_file in
10329 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
eea650d8 10330 ;;
e6cc62c6 10331 conftest.$ac_ext )
eea650d8
VS
10332 # This is the source file.
10333 ;;
e6cc62c6 10334 [ab].out )
eea650d8
VS
10335 # We found the default executable, but exeext='' is most
10336 # certainly right.
10337 break;;
e6cc62c6 10338 *.* )
eea650d8
VS
10339 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10340 # FIXME: I believe we export ac_cv_exeext for Libtool,
10341 # but it would be cool to find out if it's true. Does anybody
10342 # maintain Libtool? --akim.
10343 export ac_cv_exeext
10344 break;;
e6cc62c6 10345 * )
eea650d8 10346 break;;
e6cc62c6
VS
10347 esac
10348done
10349else
10350 echo "$as_me: failed program was:" >&5
10351sed 's/^/| /' conftest.$ac_ext >&5
10352
10353{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10354See \`config.log' for more details." >&5
10355echo "$as_me: error: C compiler cannot create executables
10356See \`config.log' for more details." >&2;}
10357 { (exit 77); exit 77; }; }
10358fi
10359
10360ac_exeext=$ac_cv_exeext
10361echo "$as_me:$LINENO: result: $ac_file" >&5
10362echo "${ECHO_T}$ac_file" >&6
10363
10364# Check the compiler produces executables we can run. If not, either
10365# the compiler is broken, or we cross compile.
10366echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10367echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10368# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10369# If not cross compiling, check that we can run a simple program.
10370if test "$cross_compiling" != yes; then
10371 if { ac_try='./$ac_file'
10372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10373 (eval $ac_try) 2>&5
10374 ac_status=$?
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); }; }; then
10377 cross_compiling=no
698dcdb6 10378 else
e6cc62c6
VS
10379 if test "$cross_compiling" = maybe; then
10380 cross_compiling=yes
10381 else
10382 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10383If you meant to cross compile, use \`--host'.
10384See \`config.log' for more details." >&5
10385echo "$as_me: error: cannot run C compiled programs.
10386If you meant to cross compile, use \`--host'.
10387See \`config.log' for more details." >&2;}
10388 { (exit 1); exit 1; }; }
10389 fi
698dcdb6 10390 fi
52127426 10391fi
e6cc62c6
VS
10392echo "$as_me:$LINENO: result: yes" >&5
10393echo "${ECHO_T}yes" >&6
10394
10395rm -f a.out a.exe conftest$ac_cv_exeext b.out
10396ac_clean_files=$ac_clean_files_save
10397# Check the compiler produces executables we can run. If not, either
10398# the compiler is broken, or we cross compile.
10399echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10400echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10401echo "$as_me:$LINENO: result: $cross_compiling" >&5
10402echo "${ECHO_T}$cross_compiling" >&6
10403
10404echo "$as_me:$LINENO: checking for suffix of executables" >&5
10405echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10406if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10407 (eval $ac_link) 2>&5
10408 ac_status=$?
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); }; then
10411 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10412# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10413# work properly (i.e., refer to `conftest.exe'), while it won't with
10414# `rm'.
10415for ac_file in conftest.exe conftest conftest.*; do
10416 test -f "$ac_file" || continue
10417 case $ac_file in
10418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10419 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
eea650d8
VS
10420 export ac_cv_exeext
10421 break;;
e6cc62c6
VS
10422 * ) break;;
10423 esac
10424done
5c6fa7d2 10425else
e6cc62c6
VS
10426 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10427See \`config.log' for more details." >&5
10428echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10429See \`config.log' for more details." >&2;}
10430 { (exit 1); exit 1; }; }
10431fi
10432
10433rm -f conftest$ac_cv_exeext
10434echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10435echo "${ECHO_T}$ac_cv_exeext" >&6
10436
10437rm -f conftest.$ac_ext
10438EXEEXT=$ac_cv_exeext
10439ac_exeext=$EXEEXT
10440echo "$as_me:$LINENO: checking for suffix of object files" >&5
10441echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10442if test "${ac_cv_objext+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10444else
10445 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10446/* confdefs.h. */
10447_ACEOF
10448cat confdefs.h >>conftest.$ac_ext
10449cat >>conftest.$ac_ext <<_ACEOF
10450/* end confdefs.h. */
10451
10452int
10453main ()
10454{
f09359cf 10455
e6cc62c6
VS
10456 ;
10457 return 0;
10458}
10459_ACEOF
10460rm -f conftest.o conftest.obj
10461if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10462 (eval $ac_compile) 2>&5
10463 ac_status=$?
10464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10465 (exit $ac_status); }; then
10466 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10467 case $ac_file in
10468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10469 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10470 break;;
10471 esac
10472done
a0b9e27f 10473else
e6cc62c6
VS
10474 echo "$as_me: failed program was:" >&5
10475sed 's/^/| /' conftest.$ac_ext >&5
10476
10477{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10478See \`config.log' for more details." >&5
10479echo "$as_me: error: cannot compute suffix of object files: cannot compile
10480See \`config.log' for more details." >&2;}
10481 { (exit 1); exit 1; }; }
a0b9e27f 10482fi
247f5006 10483
e6cc62c6
VS
10484rm -f conftest.$ac_cv_objext conftest.$ac_ext
10485fi
10486echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10487echo "${ECHO_T}$ac_cv_objext" >&6
10488OBJEXT=$ac_cv_objext
10489ac_objext=$OBJEXT
10490echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10491echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10492if test "${ac_cv_c_compiler_gnu+set}" = set; then
10493 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10494else
e6cc62c6 10495 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10496/* confdefs.h. */
10497_ACEOF
10498cat confdefs.h >>conftest.$ac_ext
10499cat >>conftest.$ac_ext <<_ACEOF
10500/* end confdefs.h. */
10501
10502int
10503main ()
10504{
10505#ifndef __GNUC__
10506 choke me
10507#endif
10508
10509 ;
10510 return 0;
10511}
10512_ACEOF
10513rm -f conftest.$ac_objext
10514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 10515 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10516 ac_status=$?
eea650d8
VS
10517 grep -v '^ *+' conftest.er1 >conftest.err
10518 rm -f conftest.er1
10519 cat conftest.err >&5
e6cc62c6
VS
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } &&
eea650d8
VS
10522 { ac_try='test -z "$ac_c_werror_flag"
10523 || test ! -s conftest.err'
10524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10525 (eval $ac_try) 2>&5
10526 ac_status=$?
10527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528 (exit $ac_status); }; } &&
10529 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10531 (eval $ac_try) 2>&5
10532 ac_status=$?
10533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10534 (exit $ac_status); }; }; then
10535 ac_compiler_gnu=yes
10536else
10537 echo "$as_me: failed program was:" >&5
10538sed 's/^/| /' conftest.$ac_ext >&5
10539
10540ac_compiler_gnu=no
10541fi
eea650d8 10542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10543ac_cv_c_compiler_gnu=$ac_compiler_gnu
10544
10545fi
10546echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10547echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10548GCC=`test $ac_compiler_gnu = yes && echo yes`
10549ac_test_CFLAGS=${CFLAGS+set}
10550ac_save_CFLAGS=$CFLAGS
10551CFLAGS="-g"
10552echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10553echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10554if test "${ac_cv_prog_cc_g+set}" = set; then
10555 echo $ECHO_N "(cached) $ECHO_C" >&6
10556else
10557 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10558/* confdefs.h. */
10559_ACEOF
10560cat confdefs.h >>conftest.$ac_ext
10561cat >>conftest.$ac_ext <<_ACEOF
10562/* end confdefs.h. */
10563
10564int
10565main ()
10566{
10567
10568 ;
10569 return 0;
10570}
10571_ACEOF
10572rm -f conftest.$ac_objext
10573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 10574 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10575 ac_status=$?
eea650d8
VS
10576 grep -v '^ *+' conftest.er1 >conftest.err
10577 rm -f conftest.er1
10578 cat conftest.err >&5
e6cc62c6
VS
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); } &&
eea650d8
VS
10581 { ac_try='test -z "$ac_c_werror_flag"
10582 || test ! -s conftest.err'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10585 ac_status=$?
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; } &&
10588 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10590 (eval $ac_try) 2>&5
10591 ac_status=$?
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); }; }; then
10f2d63a
VZ
10594 ac_cv_prog_cc_g=yes
10595else
e6cc62c6
VS
10596 echo "$as_me: failed program was:" >&5
10597sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10598
e6cc62c6 10599ac_cv_prog_cc_g=no
10f2d63a 10600fi
eea650d8 10601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10602fi
10603echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10604echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10605if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10606 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10607elif test $ac_cv_prog_cc_g = yes; then
10608 if test "$GCC" = yes; then
10f2d63a
VZ
10609 CFLAGS="-g -O2"
10610 else
f09359cf 10611 CFLAGS="-g"
10f2d63a 10612 fi
5c0a20c3 10613else
f09359cf
VS
10614 if test "$GCC" = yes; then
10615 CFLAGS="-O2"
10616 else
10617 CFLAGS=
10618 fi
10f2d63a 10619fi
e6cc62c6
VS
10620echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10621echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10622if test "${ac_cv_prog_cc_stdc+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10624else
10625 ac_cv_prog_cc_stdc=no
10626ac_save_CC=$CC
10627cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10628/* confdefs.h. */
10629_ACEOF
10630cat confdefs.h >>conftest.$ac_ext
10631cat >>conftest.$ac_ext <<_ACEOF
10632/* end confdefs.h. */
10633#include <stdarg.h>
10634#include <stdio.h>
10635#include <sys/types.h>
10636#include <sys/stat.h>
10637/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10638struct buf { int x; };
10639FILE * (*rcsopen) (struct buf *, struct stat *, int);
10640static char *e (p, i)
10641 char **p;
10642 int i;
10643{
10644 return p[i];
10645}
10646static char *f (char * (*g) (char **, int), char **p, ...)
10647{
10648 char *s;
10649 va_list v;
10650 va_start (v,p);
10651 s = g (p, va_arg (v,int));
10652 va_end (v);
10653 return s;
10654}
eea650d8
VS
10655
10656/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10657 function prototypes and stuff, but not '\xHH' hex character constants.
10658 These don't provoke an error unfortunately, instead are silently treated
10659 as 'x'. The following induces an error, until -std1 is added to get
10660 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10661 array size at least. It's necessary to write '\x00'==0 to get something
10662 that's true only with -std1. */
10663int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10664
e6cc62c6
VS
10665int test (int i, double x);
10666struct s1 {int (*f) (int a);};
10667struct s2 {int (*f) (double a);};
10668int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10669int argc;
10670char **argv;
10671int
10672main ()
10673{
10674return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10675 ;
10676 return 0;
10677}
10678_ACEOF
10679# Don't try gcc -ansi; that turns off useful extensions and
10680# breaks some systems' header files.
10681# AIX -qlanglvl=ansi
10682# Ultrix and OSF/1 -std1
10683# HP-UX 10.20 and later -Ae
10684# HP-UX older versions -Aa -D_HPUX_SOURCE
10685# SVR4 -Xc -D__EXTENSIONS__
10686for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10687do
10688 CC="$ac_save_CC $ac_arg"
10689 rm -f conftest.$ac_objext
10690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 10691 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10692 ac_status=$?
eea650d8
VS
10693 grep -v '^ *+' conftest.er1 >conftest.err
10694 rm -f conftest.er1
10695 cat conftest.err >&5
e6cc62c6
VS
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 (exit $ac_status); } &&
eea650d8
VS
10698 { ac_try='test -z "$ac_c_werror_flag"
10699 || test ! -s conftest.err'
10700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10701 (eval $ac_try) 2>&5
10702 ac_status=$?
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); }; } &&
10705 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10707 (eval $ac_try) 2>&5
10708 ac_status=$?
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); }; }; then
10711 ac_cv_prog_cc_stdc=$ac_arg
10712break
10713else
10714 echo "$as_me: failed program was:" >&5
10715sed 's/^/| /' conftest.$ac_ext >&5
10716
10717fi
eea650d8 10718rm -f conftest.err conftest.$ac_objext
e6cc62c6
VS
10719done
10720rm -f conftest.$ac_ext conftest.$ac_objext
10721CC=$ac_save_CC
10722
10723fi
10724
10725case "x$ac_cv_prog_cc_stdc" in
10726 x|xno)
10727 echo "$as_me:$LINENO: result: none needed" >&5
10728echo "${ECHO_T}none needed" >&6 ;;
10729 *)
10730 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10731echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10732 CC="$CC $ac_cv_prog_cc_stdc" ;;
10733esac
10734
10735# Some people use a C++ compiler to compile C. Since we use `exit',
10736# in C++ we need to declare it. In case someone uses the same compiler
10737# for both compiling C and C++ we need to have the C++ compiler decide
10738# the declaration of exit, since it's the most demanding environment.
10739cat >conftest.$ac_ext <<_ACEOF
10740#ifndef __cplusplus
10741 choke me
10742#endif
10743_ACEOF
10744rm -f conftest.$ac_objext
10745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 10746 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10747 ac_status=$?
eea650d8
VS
10748 grep -v '^ *+' conftest.er1 >conftest.err
10749 rm -f conftest.er1
10750 cat conftest.err >&5
e6cc62c6
VS
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } &&
eea650d8
VS
10753 { ac_try='test -z "$ac_c_werror_flag"
10754 || test ! -s conftest.err'
10755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10756 (eval $ac_try) 2>&5
10757 ac_status=$?
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); }; } &&
10760 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10762 (eval $ac_try) 2>&5
10763 ac_status=$?
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); }; }; then
10766 for ac_declaration in \
eea650d8 10767 '' \
e6cc62c6
VS
10768 'extern "C" void std::exit (int) throw (); using std::exit;' \
10769 'extern "C" void std::exit (int); using std::exit;' \
10770 'extern "C" void exit (int) throw ();' \
10771 'extern "C" void exit (int);' \
10772 'void exit (int);'
10773do
10774 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10775/* confdefs.h. */
10776_ACEOF
10777cat confdefs.h >>conftest.$ac_ext
10778cat >>conftest.$ac_ext <<_ACEOF
10779/* end confdefs.h. */
130711ba 10780$ac_declaration
eea650d8 10781#include <stdlib.h>
e6cc62c6
VS
10782int
10783main ()
10784{
10785exit (42);
10786 ;
10787 return 0;
10788}
10789_ACEOF
10790rm -f conftest.$ac_objext
10791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 10792 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10793 ac_status=$?
eea650d8
VS
10794 grep -v '^ *+' conftest.er1 >conftest.err
10795 rm -f conftest.er1
10796 cat conftest.err >&5
e6cc62c6
VS
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); } &&
eea650d8
VS
10799 { ac_try='test -z "$ac_c_werror_flag"
10800 || test ! -s conftest.err'
10801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10802 (eval $ac_try) 2>&5
10803 ac_status=$?
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); }; } &&
10806 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10808 (eval $ac_try) 2>&5
10809 ac_status=$?
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); }; }; then
10812 :
10813else
10814 echo "$as_me: failed program was:" >&5
10815sed 's/^/| /' conftest.$ac_ext >&5
10816
10817continue
10818fi
eea650d8 10819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 10820 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10821/* confdefs.h. */
10822_ACEOF
10823cat confdefs.h >>conftest.$ac_ext
10824cat >>conftest.$ac_ext <<_ACEOF
10825/* end confdefs.h. */
10826$ac_declaration
10827int
10828main ()
10829{
10830exit (42);
10831 ;
10832 return 0;
10833}
10834_ACEOF
10835rm -f conftest.$ac_objext
10836if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 10837 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10838 ac_status=$?
eea650d8
VS
10839 grep -v '^ *+' conftest.er1 >conftest.err
10840 rm -f conftest.er1
10841 cat conftest.err >&5
e6cc62c6
VS
10842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10843 (exit $ac_status); } &&
eea650d8
VS
10844 { ac_try='test -z "$ac_c_werror_flag"
10845 || test ! -s conftest.err'
10846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10847 (eval $ac_try) 2>&5
10848 ac_status=$?
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); }; } &&
10851 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10853 (eval $ac_try) 2>&5
10854 ac_status=$?
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); }; }; then
10857 break
10858else
10859 echo "$as_me: failed program was:" >&5
10860sed 's/^/| /' conftest.$ac_ext >&5
10861
10862fi
eea650d8 10863rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10864done
10865rm -f conftest*
10866if test -n "$ac_declaration"; then
10867 echo '#ifdef __cplusplus' >>confdefs.h
10868 echo $ac_declaration >>confdefs.h
10869 echo '#endif' >>confdefs.h
10870fi
10871
10872else
10873 echo "$as_me: failed program was:" >&5
10874sed 's/^/| /' conftest.$ac_ext >&5
10875
10876fi
eea650d8 10877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10878ac_ext=c
10879ac_cpp='$CPP $CPPFLAGS'
10880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10882ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10883
10884
e6cc62c6
VS
10885
10886ac_ext=c
10887ac_cpp='$CPP $CPPFLAGS'
10888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10890ac_compiler_gnu=$ac_cv_c_compiler_gnu
10891echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10892echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10893# On Suns, sometimes $CPP names a directory.
10894if test -n "$CPP" && test -d "$CPP"; then
10895 CPP=
10896fi
10897if test -z "$CPP"; then
e6cc62c6
VS
10898 if test "${ac_cv_prog_CPP+set}" = set; then
10899 echo $ECHO_N "(cached) $ECHO_C" >&6
10900else
10901 # Double quotes because CPP needs to be expanded
10902 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10903 do
10904 ac_preproc_ok=false
10905for ac_c_preproc_warn_flag in '' yes
10906do
10907 # Use a header file that comes with gcc, so configuring glibc
10908 # with a fresh cross-compiler works.
10909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10910 # <limits.h> exists even on freestanding compilers.
10f2d63a 10911 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10912 # not just through cpp. "Syntax error" is here to catch this case.
10913 cat >conftest.$ac_ext <<_ACEOF
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
eea650d8 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
eea650d8 10936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
10937 else
10938 ac_cpp_err=
10939 fi
10f2d63a 10940else
e6cc62c6
VS
10941 ac_cpp_err=yes
10942fi
10943if test -z "$ac_cpp_err"; then
a0b9e27f 10944 :
247f5006 10945else
e6cc62c6
VS
10946 echo "$as_me: failed program was:" >&5
10947sed 's/^/| /' conftest.$ac_ext >&5
10948
10949 # Broken: fails on valid input.
10950continue
10951fi
10952rm -f conftest.err conftest.$ac_ext
10953
10954 # OK, works on sane cases. Now check whether non-existent headers
10955 # can be detected and how.
10956 cat >conftest.$ac_ext <<_ACEOF
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
eea650d8 10974 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
10975 else
10976 ac_cpp_err=
10977 fi
10f2d63a 10978else
e6cc62c6 10979 ac_cpp_err=yes
579d8138 10980fi
e6cc62c6
VS
10981if test -z "$ac_cpp_err"; then
10982 # Broken: success on invalid input.
10983continue
10984else
10985 echo "$as_me: failed program was:" >&5
10986sed 's/^/| /' conftest.$ac_ext >&5
10987
10988 # Passes both tests.
10989ac_preproc_ok=:
10990break
52127426 10991fi
e6cc62c6
VS
10992rm -f conftest.err conftest.$ac_ext
10993
10994done
10995# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10996rm -f conftest.err conftest.$ac_ext
10997if $ac_preproc_ok; then
10998 break
8284b0c5 10999fi
e6cc62c6
VS
11000
11001 done
11002 ac_cv_prog_CPP=$CPP
11003
11004fi
11005 CPP=$ac_cv_prog_CPP
11006else
11007 ac_cv_prog_CPP=$CPP
11008fi
11009echo "$as_me:$LINENO: result: $CPP" >&5
11010echo "${ECHO_T}$CPP" >&6
11011ac_preproc_ok=false
11012for ac_c_preproc_warn_flag in '' yes
11013do
11014 # Use a header file that comes with gcc, so configuring glibc
11015 # with a fresh cross-compiler works.
11016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11017 # <limits.h> exists even on freestanding compilers.
11018 # On the NeXT, cc -E runs the code through the compiler's parser,
11019 # not just through cpp. "Syntax error" is here to catch this case.
11020 cat >conftest.$ac_ext <<_ACEOF
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
eea650d8 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
eea650d8 11043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
11044 else
11045 ac_cpp_err=
11046 fi
11047else
11048 ac_cpp_err=yes
11049fi
11050if test -z "$ac_cpp_err"; then
11051 :
11052else
11053 echo "$as_me: failed program was:" >&5
11054sed 's/^/| /' conftest.$ac_ext >&5
11055
11056 # Broken: fails on valid input.
11057continue
11058fi
11059rm -f conftest.err conftest.$ac_ext
11060
11061 # OK, works on sane cases. Now check whether non-existent headers
11062 # can be detected and how.
11063 cat >conftest.$ac_ext <<_ACEOF
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
eea650d8 11081 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
11082 else
11083 ac_cpp_err=
11084 fi
11085else
11086 ac_cpp_err=yes
11087fi
11088if test -z "$ac_cpp_err"; then
11089 # Broken: success on invalid input.
11090continue
11091else
11092 echo "$as_me: failed program was:" >&5
11093sed 's/^/| /' conftest.$ac_ext >&5
11094
11095 # Passes both tests.
11096ac_preproc_ok=:
11097break
a0b9e27f 11098fi
e6cc62c6
VS
11099rm -f conftest.err conftest.$ac_ext
11100
11101done
11102# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11103rm -f conftest.err conftest.$ac_ext
11104if $ac_preproc_ok; then
11105 :
11106else
11107 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11108See \`config.log' for more details." >&5
11109echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11110See \`config.log' for more details." >&2;}
11111 { (exit 1); exit 1; }; }
11112fi
11113
11114ac_ext=c
11115ac_cpp='$CPP $CPPFLAGS'
11116ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11117ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11118ac_compiler_gnu=$ac_cv_c_compiler_gnu
11119
11120
11121echo "$as_me:$LINENO: checking for egrep" >&5
11122echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11123if test "${ac_cv_prog_egrep+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 11125else
e6cc62c6
VS
11126 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11127 then ac_cv_prog_egrep='grep -E'
11128 else ac_cv_prog_egrep='egrep'
11129 fi
10f2d63a 11130fi
e6cc62c6
VS
11131echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11132echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11133 EGREP=$ac_cv_prog_egrep
11134
10f2d63a 11135
e6cc62c6
VS
11136if test $ac_cv_c_compiler_gnu = yes; then
11137 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11138echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11139if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11140 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11141else
11142 ac_pattern="Autoconf.*'x'"
e6cc62c6 11143 cat >conftest.$ac_ext <<_ACEOF
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
e6cc62c6
VS
11163/* confdefs.h. */
11164_ACEOF
11165cat confdefs.h >>conftest.$ac_ext
11166cat >>conftest.$ac_ext <<_ACEOF
11167/* end confdefs.h. */
10f2d63a
VZ
11168#include <termio.h>
11169Autoconf TCGETA
e6cc62c6 11170_ACEOF
10f2d63a 11171if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 11172 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11173 ac_cv_prog_gcc_traditional=yes
11174fi
11175rm -f conftest*
11176
11177 fi
11178fi
e6cc62c6
VS
11179echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11180echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
11181 if test $ac_cv_prog_gcc_traditional = yes; then
11182 CC="$CC -traditional"
11183 fi
11184fi
11185
8284b0c5
MB
11186
11187
e6cc62c6
VS
11188
11189ac_ext=cc
1e487827 11190ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
11191ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11192ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11193ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 11194
698dcdb6 11195
ec603395 11196CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
11197ac_ext=cc
11198ac_cpp='$CXXCPP $CPPFLAGS'
11199ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11200ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11201ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11202if test -n "$ac_tool_prefix"; then
11203 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11204 do
11205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11206set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11207echo "$as_me:$LINENO: checking for $ac_word" >&5
11208echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11209if test "${ac_cv_prog_CXX+set}" = set; then
11210 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11211else
11212 if test -n "$CXX"; then
11213 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11214else
e6cc62c6
VS
11215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11216for as_dir in $PATH
11217do
11218 IFS=$as_save_IFS
11219 test -z "$as_dir" && as_dir=.
11220 for ac_exec_ext in '' $ac_executable_extensions; do
11221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11222 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11224 break 2
11225 fi
11226done
11227done
11228
10f2d63a
VZ
11229fi
11230fi
e6cc62c6 11231CXX=$ac_cv_prog_CXX
10f2d63a 11232if test -n "$CXX"; then
e6cc62c6
VS
11233 echo "$as_me:$LINENO: result: $CXX" >&5
11234echo "${ECHO_T}$CXX" >&6
10f2d63a 11235else
e6cc62c6
VS
11236 echo "$as_me:$LINENO: result: no" >&5
11237echo "${ECHO_T}no" >&6
10f2d63a
VZ
11238fi
11239
e6cc62c6
VS
11240 test -n "$CXX" && break
11241 done
11242fi
11243if test -z "$CXX"; then
11244 ac_ct_CXX=$CXX
11245 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11246do
11247 # Extract the first word of "$ac_prog", so it can be a program name with args.
11248set dummy $ac_prog; ac_word=$2
11249echo "$as_me:$LINENO: checking for $ac_word" >&5
11250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11251if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11252 echo $ECHO_N "(cached) $ECHO_C" >&6
11253else
11254 if test -n "$ac_ct_CXX"; then
11255 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11256else
11257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11258for as_dir in $PATH
11259do
11260 IFS=$as_save_IFS
11261 test -z "$as_dir" && as_dir=.
11262 for ac_exec_ext in '' $ac_executable_extensions; do
11263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11264 ac_cv_prog_ac_ct_CXX="$ac_prog"
11265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11266 break 2
11267 fi
11268done
10f2d63a 11269done
a0b9e27f 11270
8284b0c5 11271fi
a0b9e27f 11272fi
e6cc62c6
VS
11273ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11274if test -n "$ac_ct_CXX"; then
11275 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11276echo "${ECHO_T}$ac_ct_CXX" >&6
11277else
11278 echo "$as_me:$LINENO: result: no" >&5
11279echo "${ECHO_T}no" >&6
a0b9e27f 11280fi
10f2d63a 11281
e6cc62c6
VS
11282 test -n "$ac_ct_CXX" && break
11283done
11284test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11285
11286 CXX=$ac_ct_CXX
11287fi
11288
11289
11290# Provide some information about the compiler.
11291echo "$as_me:$LINENO:" \
11292 "checking for C++ compiler version" >&5
11293ac_compiler=`set X $ac_compile; echo $2`
11294{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11295 (eval $ac_compiler --version </dev/null >&5) 2>&5
11296 ac_status=$?
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); }
11299{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11300 (eval $ac_compiler -v </dev/null >&5) 2>&5
11301 ac_status=$?
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }
11304{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11305 (eval $ac_compiler -V </dev/null >&5) 2>&5
11306 ac_status=$?
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }
11309
11310echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11311echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11312if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11314else
11315 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11316/* confdefs.h. */
11317_ACEOF
11318cat confdefs.h >>conftest.$ac_ext
11319cat >>conftest.$ac_ext <<_ACEOF
11320/* end confdefs.h. */
11321
11322int
11323main ()
11324{
11325#ifndef __GNUC__
11326 choke me
11327#endif
10f2d63a 11328
e6cc62c6
VS
11329 ;
11330 return 0;
11331}
11332_ACEOF
11333rm -f conftest.$ac_objext
11334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 11335 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11336 ac_status=$?
eea650d8
VS
11337 grep -v '^ *+' conftest.er1 >conftest.err
11338 rm -f conftest.er1
11339 cat conftest.err >&5
e6cc62c6
VS
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } &&
eea650d8
VS
11342 { ac_try='test -z "$ac_cxx_werror_flag"
11343 || test ! -s conftest.err'
11344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11345 (eval $ac_try) 2>&5
11346 ac_status=$?
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; } &&
11349 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11351 (eval $ac_try) 2>&5
11352 ac_status=$?
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); }; }; then
11355 ac_compiler_gnu=yes
11356else
11357 echo "$as_me: failed program was:" >&5
11358sed 's/^/| /' conftest.$ac_ext >&5
11359
11360ac_compiler_gnu=no
11361fi
eea650d8 11362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11363ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11364
11365fi
11366echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11367echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11368GXX=`test $ac_compiler_gnu = yes && echo yes`
11369ac_test_CXXFLAGS=${CXXFLAGS+set}
11370ac_save_CXXFLAGS=$CXXFLAGS
11371CXXFLAGS="-g"
11372echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11373echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11374if test "${ac_cv_prog_cxx_g+set}" = set; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11376else
11377 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11378/* confdefs.h. */
11379_ACEOF
11380cat confdefs.h >>conftest.$ac_ext
11381cat >>conftest.$ac_ext <<_ACEOF
11382/* end confdefs.h. */
11383
11384int
11385main ()
11386{
f09359cf 11387
e6cc62c6
VS
11388 ;
11389 return 0;
11390}
11391_ACEOF
11392rm -f conftest.$ac_objext
11393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 11394 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11395 ac_status=$?
eea650d8
VS
11396 grep -v '^ *+' conftest.er1 >conftest.err
11397 rm -f conftest.er1
11398 cat conftest.err >&5
e6cc62c6
VS
11399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); } &&
eea650d8
VS
11401 { ac_try='test -z "$ac_cxx_werror_flag"
11402 || test ! -s conftest.err'
11403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11404 (eval $ac_try) 2>&5
11405 ac_status=$?
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); }; } &&
11408 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11410 (eval $ac_try) 2>&5
11411 ac_status=$?
11412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11413 (exit $ac_status); }; }; then
10f2d63a
VZ
11414 ac_cv_prog_cxx_g=yes
11415else
e6cc62c6
VS
11416 echo "$as_me: failed program was:" >&5
11417sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11418
e6cc62c6 11419ac_cv_prog_cxx_g=no
10f2d63a 11420fi
eea650d8 11421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11422fi
11423echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11424echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11425if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11426 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11427elif test $ac_cv_prog_cxx_g = yes; then
11428 if test "$GXX" = yes; then
10f2d63a
VZ
11429 CXXFLAGS="-g -O2"
11430 else
f09359cf 11431 CXXFLAGS="-g"
10f2d63a 11432 fi
5c0a20c3 11433else
f09359cf
VS
11434 if test "$GXX" = yes; then
11435 CXXFLAGS="-O2"
11436 else
11437 CXXFLAGS=
11438 fi
10f2d63a 11439fi
e6cc62c6 11440for ac_declaration in \
eea650d8 11441 '' \
e6cc62c6
VS
11442 'extern "C" void std::exit (int) throw (); using std::exit;' \
11443 'extern "C" void std::exit (int); using std::exit;' \
11444 'extern "C" void exit (int) throw ();' \
11445 'extern "C" void exit (int);' \
11446 'void exit (int);'
11447do
11448 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11449/* confdefs.h. */
11450_ACEOF
11451cat confdefs.h >>conftest.$ac_ext
11452cat >>conftest.$ac_ext <<_ACEOF
11453/* end confdefs.h. */
130711ba 11454$ac_declaration
eea650d8 11455#include <stdlib.h>
e6cc62c6
VS
11456int
11457main ()
11458{
11459exit (42);
11460 ;
11461 return 0;
11462}
11463_ACEOF
11464rm -f conftest.$ac_objext
11465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 11466 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11467 ac_status=$?
eea650d8
VS
11468 grep -v '^ *+' conftest.er1 >conftest.err
11469 rm -f conftest.er1
11470 cat conftest.err >&5
e6cc62c6
VS
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); } &&
eea650d8
VS
11473 { ac_try='test -z "$ac_cxx_werror_flag"
11474 || test ! -s conftest.err'
11475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11476 (eval $ac_try) 2>&5
11477 ac_status=$?
11478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11479 (exit $ac_status); }; } &&
11480 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11482 (eval $ac_try) 2>&5
11483 ac_status=$?
11484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11485 (exit $ac_status); }; }; then
11486 :
11487else
11488 echo "$as_me: failed program was:" >&5
11489sed 's/^/| /' conftest.$ac_ext >&5
11490
11491continue
11492fi
eea650d8 11493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 11494 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11495/* confdefs.h. */
11496_ACEOF
11497cat confdefs.h >>conftest.$ac_ext
11498cat >>conftest.$ac_ext <<_ACEOF
11499/* end confdefs.h. */
11500$ac_declaration
11501int
11502main ()
11503{
11504exit (42);
11505 ;
11506 return 0;
11507}
11508_ACEOF
11509rm -f conftest.$ac_objext
11510if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 11511 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11512 ac_status=$?
eea650d8
VS
11513 grep -v '^ *+' conftest.er1 >conftest.err
11514 rm -f conftest.er1
11515 cat conftest.err >&5
e6cc62c6
VS
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } &&
eea650d8
VS
11518 { ac_try='test -z "$ac_cxx_werror_flag"
11519 || test ! -s conftest.err'
11520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11521 (eval $ac_try) 2>&5
11522 ac_status=$?
11523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524 (exit $ac_status); }; } &&
11525 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11527 (eval $ac_try) 2>&5
11528 ac_status=$?
11529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11530 (exit $ac_status); }; }; then
11531 break
11532else
11533 echo "$as_me: failed program was:" >&5
11534sed 's/^/| /' conftest.$ac_ext >&5
11535
11536fi
eea650d8 11537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11538done
11539rm -f conftest*
11540if test -n "$ac_declaration"; then
11541 echo '#ifdef __cplusplus' >>confdefs.h
11542 echo $ac_declaration >>confdefs.h
11543 echo '#endif' >>confdefs.h
11544fi
11545
11546ac_ext=cc
11547ac_cpp='$CXXCPP $CPPFLAGS'
11548ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11549ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11550ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11551
11552
10f2d63a 11553ac_ext=c
10f2d63a 11554ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11557ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11558
11559
e6cc62c6
VS
11560if test -n "$ac_tool_prefix"; then
11561 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11562set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11563echo "$as_me:$LINENO: checking for $ac_word" >&5
11564echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11565if test "${ac_cv_prog_RANLIB+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11567else
11568 if test -n "$RANLIB"; then
11569 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11570else
e6cc62c6
VS
11571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572for as_dir in $PATH
11573do
11574 IFS=$as_save_IFS
11575 test -z "$as_dir" && as_dir=.
11576 for ac_exec_ext in '' $ac_executable_extensions; do
11577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11578 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11580 break 2
11581 fi
11582done
11583done
11584
10f2d63a
VZ
11585fi
11586fi
e6cc62c6 11587RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11588if test -n "$RANLIB"; then
e6cc62c6
VS
11589 echo "$as_me:$LINENO: result: $RANLIB" >&5
11590echo "${ECHO_T}$RANLIB" >&6
11591else
11592 echo "$as_me:$LINENO: result: no" >&5
11593echo "${ECHO_T}no" >&6
11594fi
11595
11596fi
11597if test -z "$ac_cv_prog_RANLIB"; then
11598 ac_ct_RANLIB=$RANLIB
11599 # Extract the first word of "ranlib", so it can be a program name with args.
11600set dummy ranlib; ac_word=$2
11601echo "$as_me:$LINENO: checking for $ac_word" >&5
11602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11603if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11605else
e6cc62c6
VS
11606 if test -n "$ac_ct_RANLIB"; then
11607 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11608else
11609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11610for as_dir in $PATH
11611do
11612 IFS=$as_save_IFS
11613 test -z "$as_dir" && as_dir=.
11614 for ac_exec_ext in '' $ac_executable_extensions; do
11615 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11616 ac_cv_prog_ac_ct_RANLIB="ranlib"
11617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11618 break 2
11619 fi
11620done
11621done
11622
11623 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11624fi
11625fi
11626ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11627if test -n "$ac_ct_RANLIB"; then
11628 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11629echo "${ECHO_T}$ac_ct_RANLIB" >&6
11630else
11631 echo "$as_me:$LINENO: result: no" >&5
11632echo "${ECHO_T}no" >&6
11633fi
11634
11635 RANLIB=$ac_ct_RANLIB
11636else
11637 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11638fi
11639
10f2d63a
VZ
11640
11641# Extract the first word of "ar", so it can be a program name with args.
11642set dummy ar; ac_word=$2
e6cc62c6
VS
11643echo "$as_me:$LINENO: checking for $ac_word" >&5
11644echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11645if test "${ac_cv_prog_AR+set}" = set; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11647else
11648 if test -n "$AR"; then
11649 ac_cv_prog_AR="$AR" # Let the user override the test.
11650else
e6cc62c6
VS
11651as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11652for as_dir in $PATH
11653do
11654 IFS=$as_save_IFS
11655 test -z "$as_dir" && as_dir=.
11656 for ac_exec_ext in '' $ac_executable_extensions; do
11657 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11658 ac_cv_prog_AR="ar"
11659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11660 break 2
11661 fi
11662done
11663done
11664
10f2d63a
VZ
11665fi
11666fi
e6cc62c6 11667AR=$ac_cv_prog_AR
10f2d63a 11668if test -n "$AR"; then
e6cc62c6
VS
11669 echo "$as_me:$LINENO: result: $AR" >&5
11670echo "${ECHO_T}$AR" >&6
10f2d63a 11671else
e6cc62c6
VS
11672 echo "$as_me:$LINENO: result: no" >&5
11673echo "${ECHO_T}no" >&6
10f2d63a
VZ
11674fi
11675
911740e7
VS
11676if test "x$AR" = "x" ; then
11677 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11678echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11679 { (exit 1); exit 1; }; }
11680fi
8284b0c5 11681
6054113a 11682# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11683# so one script is as good as another. But avoid the broken or
11684# incompatible versions:
11685# SysV /etc/install, /usr/sbin/install
11686# SunOS /usr/etc/install
11687# IRIX /sbin/install
11688# AIX /bin/install
e6cc62c6 11689# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11690# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11691# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11692# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
eea650d8 11693# OS/2's system install, which has a completely different semantic
10f2d63a 11694# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11695echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11696echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11697if test -z "$INSTALL"; then
e6cc62c6
VS
11698if test "${ac_cv_path_install+set}" = set; then
11699 echo $ECHO_N "(cached) $ECHO_C" >&6
11700else
11701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11702for as_dir in $PATH
11703do
11704 IFS=$as_save_IFS
11705 test -z "$as_dir" && as_dir=.
11706 # Account for people who put trailing slashes in PATH elements.
11707case $as_dir/ in
11708 ./ | .// | /cC/* | \
11709 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
eea650d8 11710 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
e6cc62c6
VS
11711 /usr/ucb/* ) ;;
11712 *)
11713 # OSF1 and SCO ODT 3.0 have their own names for install.
11714 # Don't use installbsd from OSF since it installs stuff as root
11715 # by default.
11716 for ac_prog in ginstall scoinst install; do
11717 for ac_exec_ext in '' $ac_executable_extensions; do
eea650d8
VS
11718 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11719 if test $ac_prog = install &&
11720 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11721 # AIX install. It has an incompatible calling convention.
11722 :
11723 elif test $ac_prog = install &&
11724 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11725 # program-specific install script used by HP pwplus--don't use.
11726 :
11727 else
11728 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11729 break 3
11730 fi
11731 fi
10f2d63a 11732 done
e6cc62c6
VS
11733 done
11734 ;;
11735esac
11736done
11737
10f2d63a
VZ
11738
11739fi
11740 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11741 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11742 else
11743 # As a last resort, use the slow shell script. We don't cache a
11744 # path for INSTALL within a source directory, because that will
11745 # break other packages using the cache if that directory is
11746 # removed, or if the path is relative.
e6cc62c6 11747 INSTALL=$ac_install_sh
10f2d63a
VZ
11748 fi
11749fi
e6cc62c6
VS
11750echo "$as_me:$LINENO: result: $INSTALL" >&5
11751echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11752
11753# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11754# It thinks the first close brace ends the variable substitution.
11755test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11756
e6cc62c6 11757test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11758
10f2d63a
VZ
11759test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11760
8284b0c5 11761
1d1b75ac
VZ
11762case ${INSTALL} in
11763 /* ) # Absolute
11764 ;;
4f5a7f74
VZ
11765 ?:* ) # Drive letter, considered as absolute.
11766 ;;
3bd8fb5f 11767 *)
1d1b75ac
VZ
11768 INSTALL=`pwd`/${INSTALL} ;;
11769esac
11770
4f5a7f74
VZ
11771case ${host} in
11772 *-hp-hpux* )
11773 INSTALL_DIR="mkdir"
11774 ;;
11775
11776 *) INSTALL_DIR="$INSTALL -d"
11777 ;;
11778esac
11779
8284b0c5 11780
6054113a
GD
11781case "${host}" in
11782
b5853384 11783 powerpc-*-darwin* )
eb99ae0b
GD
11784 INSTALL_PROGRAM="cp -fp"
11785 INSTALL_DATA="cp -fp"
6054113a
GD
11786 ;;
11787 *)
11788 ;;
d6853540 11789esac
698dcdb6 11790
10f2d63a
VZ
11791# Extract the first word of "strip", so it can be a program name with args.
11792set dummy strip; ac_word=$2
e6cc62c6
VS
11793echo "$as_me:$LINENO: checking for $ac_word" >&5
11794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11795if test "${ac_cv_prog_STRIP+set}" = set; then
11796 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11797else
11798 if test -n "$STRIP"; then
11799 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11800else
e6cc62c6
VS
11801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11802for as_dir in $PATH
11803do
11804 IFS=$as_save_IFS
11805 test -z "$as_dir" && as_dir=.
11806 for ac_exec_ext in '' $ac_executable_extensions; do
11807 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11808 ac_cv_prog_STRIP="strip"
11809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11810 break 2
11811 fi
11812done
11813done
11814
10f2d63a
VZ
11815 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11816fi
11817fi
e6cc62c6 11818STRIP=$ac_cv_prog_STRIP
10f2d63a 11819if test -n "$STRIP"; then
e6cc62c6
VS
11820 echo "$as_me:$LINENO: result: $STRIP" >&5
11821echo "${ECHO_T}$STRIP" >&6
10f2d63a 11822else
e6cc62c6
VS
11823 echo "$as_me:$LINENO: result: no" >&5
11824echo "${ECHO_T}no" >&6
10f2d63a
VZ
11825fi
11826
5c6fa7d2 11827
e6cc62c6
VS
11828echo "$as_me:$LINENO: checking if make is GNU make" >&5
11829echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11830if test "${wx_cv_prog_makeisgnu+set}" = set; then
11831 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11832else
e6cc62c6 11833
414eab6d 11834 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11835 egrep -s GNU > /dev/null); then
414eab6d
VZ
11836 wx_cv_prog_makeisgnu="yes"
11837 else
11838 wx_cv_prog_makeisgnu="no"
11839 fi
11840
11841fi
e6cc62c6
VS
11842echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11843echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11844
11845if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11846 IF_GNU_MAKE=""
11847else
11848 IF_GNU_MAKE="#"
11849fi
11850
8284b0c5
MB
11851
11852
414eab6d 11853if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11854echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11855echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11856if test "${wx_cv_prog_makevpath+set}" = set; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11858else
e6cc62c6 11859
10f2d63a
VZ
11860cat - << EOF > confMake
11861check : file
11862 cp \$? \$@
11863 cp \$? final_file
11864EOF
11865
11866if test ! -d sub ; then
11867 mkdir sub
11868fi
11869echo dummy > sub/file
f6bcfd97 11870${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11871RESULT=$?
11872rm -f sub/file check final_file confMake
11873rmdir sub
11874if test "$RESULT" = 0; then
04e7a216 11875 wx_cv_prog_makevpath="yes"
10f2d63a 11876else
04e7a216
VZ
11877 wx_cv_prog_makevpath="no"
11878fi
11879
11880fi
e6cc62c6
VS
11881echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11882echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11883
11884if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11885{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11886You need a make-utility that is able to use the variable
11887VPATH correctly.
11888If your version of make does not support VPATH correctly,
11889please install GNU-make (possibly as gmake), and start
11890configure with the following command:
11891export MAKE=gmake; ./configure for sh-type shells
11892setenv MAKE gmake; ./configure for csh-type shells
11893Also please do remember to use gmake in this case every time
11894you are trying to compile.
e6cc62c6
VS
11895" >&5
11896echo "$as_me: error:
11897You need a make-utility that is able to use the variable
11898VPATH correctly.
11899If your version of make does not support VPATH correctly,
11900please install GNU-make (possibly as gmake), and start
11901configure with the following command:
11902export MAKE=gmake; ./configure for sh-type shells
11903setenv MAKE gmake; ./configure for csh-type shells
11904Also please do remember to use gmake in this case every time
11905you are trying to compile.
11906" >&2;}
11907 { (exit 1); exit 1; }; }
11908fi fi
e6cc62c6
VS
11909echo "$as_me:$LINENO: checking whether ln -s works" >&5
11910echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11911LN_S=$as_ln_s
11912if test "$LN_S" = "ln -s"; then
11913 echo "$as_me:$LINENO: result: yes" >&5
11914echo "${ECHO_T}yes" >&6
10f2d63a 11915else
e6cc62c6
VS
11916 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11917echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11918fi
5c6fa7d2 11919
247f5006 11920
2b5f62a0
VZ
11921case "${host}" in
11922 *-pc-os2_emx | *-pc-os2-emx )
2b5f62a0 11923 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11924 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11925echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11926if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11928else
e6cc62c6 11929 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11930LIBS="-lcExt $LIBS"
e6cc62c6 11931cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11932/* confdefs.h. */
11933_ACEOF
11934cat confdefs.h >>conftest.$ac_ext
11935cat >>conftest.$ac_ext <<_ACEOF
11936/* end confdefs.h. */
11937
2b5f62a0 11938/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11939#ifdef __cplusplus
11940extern "C"
11941#endif
2b5f62a0 11942/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11943 builtin and then its argument prototype would still apply. */
11944char drand48 ();
11945int
11946main ()
11947{
11948drand48 ();
11949 ;
11950 return 0;
11951}
11952_ACEOF
11953rm -f conftest.$ac_objext conftest$ac_exeext
11954if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 11955 (eval $ac_link) 2>conftest.er1
e6cc62c6 11956 ac_status=$?
eea650d8
VS
11957 grep -v '^ *+' conftest.er1 >conftest.err
11958 rm -f conftest.er1
11959 cat conftest.err >&5
e6cc62c6
VS
11960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11961 (exit $ac_status); } &&
eea650d8
VS
11962 { ac_try='test -z "$ac_c_werror_flag"
11963 || test ! -s conftest.err'
11964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11965 (eval $ac_try) 2>&5
11966 ac_status=$?
11967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11968 (exit $ac_status); }; } &&
11969 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
11970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11971 (eval $ac_try) 2>&5
11972 ac_status=$?
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; }; then
11975 ac_cv_lib_cExt_drand48=yes
11976else
11977 echo "$as_me: failed program was:" >&5
11978sed 's/^/| /' conftest.$ac_ext >&5
11979
11980ac_cv_lib_cExt_drand48=no
11981fi
eea650d8
VS
11982rm -f conftest.err conftest.$ac_objext \
11983 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
11984LIBS=$ac_check_lib_save_LIBS
11985fi
11986echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11987echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11988if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11989 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11990fi
11991
11992 else
11993 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11994 fi
73d617c9
MB
11995 echo "$as_me:$LINENO: checking for gcc 3 or later" >&5
11996echo $ECHO_N "checking for gcc 3 or later... $ECHO_C" >&6
11997if test "${wx_cv_gcc3+set}" = set; then
11998 echo $ECHO_N "(cached) $ECHO_C" >&6
11999else
12000
12001 cat >conftest.$ac_ext <<_ACEOF
73d617c9
MB
12002/* confdefs.h. */
12003_ACEOF
12004cat confdefs.h >>conftest.$ac_ext
12005cat >>conftest.$ac_ext <<_ACEOF
12006/* end confdefs.h. */
3527f29c 12007
73d617c9
MB
12008int
12009main ()
12010{
12011
12012 #if (__GNUC__ < 3)
12013 #error old gcc
12014 #endif
12015
12016 ;
12017 return 0;
12018}
12019_ACEOF
12020rm -f conftest.$ac_objext
12021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 12022 (eval $ac_compile) 2>conftest.er1
73d617c9 12023 ac_status=$?
eea650d8
VS
12024 grep -v '^ *+' conftest.er1 >conftest.err
12025 rm -f conftest.er1
12026 cat conftest.err >&5
73d617c9
MB
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); } &&
eea650d8
VS
12029 { ac_try='test -z "$ac_c_werror_flag"
12030 || test ! -s conftest.err'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12033 ac_status=$?
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; } &&
12036 { ac_try='test -s conftest.$ac_objext'
73d617c9
MB
12037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038 (eval $ac_try) 2>&5
12039 ac_status=$?
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042
12043 wx_cv_gcc3=yes
12044
12045else
12046 echo "$as_me: failed program was:" >&5
12047sed 's/^/| /' conftest.$ac_ext >&5
12048
12049
12050 wx_cv_gcc3=no
12051
12052
12053fi
eea650d8 12054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
73d617c9
MB
12055
12056fi
12057echo "$as_me:$LINENO: result: $wx_cv_gcc3" >&5
12058echo "${ECHO_T}$wx_cv_gcc3" >&6
12059 if test "$wx_cv_gcc3" = "no"; then
12060 LIBS="$LIBS -lstdcpp"
12061 else
12062 LIBS="$LIBS -lstdcxx"
12063 fi
2b5f62a0
VZ
12064 ;;
12065esac
12066
a0b9e27f 12067
01aa5863
VS
12068if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
12069 echo "$as_me:$LINENO: checking for strings.h" >&5
12070echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
12071if test "${ac_cv_header_strings_h+set}" = set; then
12072 echo $ECHO_N "(cached) $ECHO_C" >&6
12073else
12074 ac_cv_header_strings_h=no
12075fi
12076echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
12077echo "${ECHO_T}$ac_cv_header_strings_h" >&6
12078 if test "$ac_cv_header_strings_h" = "no"; then
12079 echo "$as_me:$LINENO: result: forced no into cache" >&5
12080echo "${ECHO_T}forced no into cache" >&6
12081 else
12082 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
12083echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
12084 fi
12085fi
12086echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
12087echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12088if test "${ac_cv_header_stdc+set}" = set; then
12089 echo $ECHO_N "(cached) $ECHO_C" >&6
12090else
12091 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12092/* confdefs.h. */
12093_ACEOF
12094cat confdefs.h >>conftest.$ac_ext
12095cat >>conftest.$ac_ext <<_ACEOF
12096/* end confdefs.h. */
12097#include <stdlib.h>
12098#include <stdarg.h>
12099#include <string.h>
12100#include <float.h>
247f5006 12101
e6cc62c6
VS
12102int
12103main ()
12104{
90dd450c 12105
e6cc62c6
VS
12106 ;
12107 return 0;
12108}
12109_ACEOF
12110rm -f conftest.$ac_objext
12111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 12112 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12113 ac_status=$?
eea650d8
VS
12114 grep -v '^ *+' conftest.er1 >conftest.err
12115 rm -f conftest.er1
12116 cat conftest.err >&5
e6cc62c6
VS
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); } &&
eea650d8
VS
12119 { ac_try='test -z "$ac_c_werror_flag"
12120 || test ! -s conftest.err'
12121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122 (eval $ac_try) 2>&5
12123 ac_status=$?
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; } &&
12126 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12128 (eval $ac_try) 2>&5
12129 ac_status=$?
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); }; }; then
12132 ac_cv_header_stdc=yes
8284b0c5 12133else
e6cc62c6
VS
12134 echo "$as_me: failed program was:" >&5
12135sed 's/^/| /' conftest.$ac_ext >&5
12136
12137ac_cv_header_stdc=no
21d1c967 12138fi
eea650d8 12139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 12140
e6cc62c6
VS
12141if test $ac_cv_header_stdc = yes; then
12142 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12143 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12144/* confdefs.h. */
12145_ACEOF
12146cat confdefs.h >>conftest.$ac_ext
12147cat >>conftest.$ac_ext <<_ACEOF
12148/* end confdefs.h. */
12149#include <string.h>
12150
12151_ACEOF
12152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12153 $EGREP "memchr" >/dev/null 2>&1; then
12154 :
12155else
12156 ac_cv_header_stdc=no
3a922bb4 12157fi
a0b9e27f 12158rm -f conftest*
e6cc62c6 12159
90dd450c 12160fi
e6cc62c6
VS
12161
12162if test $ac_cv_header_stdc = yes; then
12163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12164 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12165/* confdefs.h. */
12166_ACEOF
12167cat confdefs.h >>conftest.$ac_ext
12168cat >>conftest.$ac_ext <<_ACEOF
12169/* end confdefs.h. */
12170#include <stdlib.h>
12171
12172_ACEOF
12173if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12174 $EGREP "free" >/dev/null 2>&1; then
12175 :
a0b9e27f 12176else
e6cc62c6 12177 ac_cv_header_stdc=no
21d1c967 12178fi
e6cc62c6 12179rm -f conftest*
247f5006
VZ
12180
12181fi
e6cc62c6
VS
12182
12183if test $ac_cv_header_stdc = yes; then
12184 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12185 if test "$cross_compiling" = yes; then
12186 :
12187else
12188 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12189/* confdefs.h. */
12190_ACEOF
12191cat confdefs.h >>conftest.$ac_ext
12192cat >>conftest.$ac_ext <<_ACEOF
12193/* end confdefs.h. */
12194#include <ctype.h>
12195#if ((' ' & 0x0FF) == 0x020)
12196# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12197# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12198#else
12199# define ISLOWER(c) \
eea650d8
VS
12200 (('a' <= (c) && (c) <= 'i') \
12201 || ('j' <= (c) && (c) <= 'r') \
12202 || ('s' <= (c) && (c) <= 'z'))
e6cc62c6
VS
12203# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12204#endif
12205
12206#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12207int
12208main ()
12209{
12210 int i;
12211 for (i = 0; i < 256; i++)
12212 if (XOR (islower (i), ISLOWER (i))
eea650d8 12213 || toupper (i) != TOUPPER (i))
e6cc62c6
VS
12214 exit(2);
12215 exit (0);
12216}
12217_ACEOF
12218rm -f conftest$ac_exeext
12219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12220 (eval $ac_link) 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 :
a0b9e27f 12230else
e6cc62c6
VS
12231 echo "$as_me: program exited with status $ac_status" >&5
12232echo "$as_me: failed program was:" >&5
12233sed 's/^/| /' conftest.$ac_ext >&5
12234
12235( exit $ac_status )
12236ac_cv_header_stdc=no
12237fi
eea650d8 12238rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12239fi
12240fi
12241fi
12242echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12243echo "${ECHO_T}$ac_cv_header_stdc" >&6
12244if test $ac_cv_header_stdc = yes; then
12245
12246cat >>confdefs.h <<\_ACEOF
12247#define STDC_HEADERS 1
12248_ACEOF
12249
a0b9e27f 12250fi
e6cc62c6
VS
12251
12252# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
eea650d8 12263 inttypes.h stdint.h unistd.h
e6cc62c6
VS
12264do
12265as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12266echo "$as_me:$LINENO: checking for $ac_header" >&5
12267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12268if eval "test \"\${$as_ac_Header+set}\" = set"; then
12269 echo $ECHO_N "(cached) $ECHO_C" >&6
12270else
12271 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12272/* confdefs.h. */
12273_ACEOF
12274cat confdefs.h >>conftest.$ac_ext
12275cat >>conftest.$ac_ext <<_ACEOF
12276/* end confdefs.h. */
12277$ac_includes_default
12278
12279#include <$ac_header>
12280_ACEOF
12281rm -f conftest.$ac_objext
12282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 12283 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12284 ac_status=$?
eea650d8
VS
12285 grep -v '^ *+' conftest.er1 >conftest.err
12286 rm -f conftest.er1
12287 cat conftest.err >&5
e6cc62c6
VS
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } &&
eea650d8
VS
12290 { ac_try='test -z "$ac_c_werror_flag"
12291 || test ! -s conftest.err'
12292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12293 (eval $ac_try) 2>&5
12294 ac_status=$?
12295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12296 (exit $ac_status); }; } &&
12297 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12299 (eval $ac_try) 2>&5
12300 ac_status=$?
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); }; }; then
12303 eval "$as_ac_Header=yes"
12304else
12305 echo "$as_me: failed program was:" >&5
12306sed 's/^/| /' conftest.$ac_ext >&5
12307
12308eval "$as_ac_Header=no"
12309fi
eea650d8 12310rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12311fi
12312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12313echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12314if test `eval echo '${'$as_ac_Header'}'` = yes; then
12315 cat >>confdefs.h <<_ACEOF
12316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12317_ACEOF
12318
12319fi
12320
a0b9e27f 12321done
90dd450c 12322
e6cc62c6
VS
12323
12324
12325for ac_header in strings.h
21d1c967 12326do
e6cc62c6
VS
12327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12328if eval "test \"\${$as_ac_Header+set}\" = set"; then
12329 echo "$as_me:$LINENO: checking for $ac_header" >&5
12330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12331if eval "test \"\${$as_ac_Header+set}\" = set"; then
12332 echo $ECHO_N "(cached) $ECHO_C" >&6
12333fi
12334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12335echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12336else
12337 # Is the header compilable?
12338echo "$as_me:$LINENO: checking $ac_header usability" >&5
12339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12340cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12341/* confdefs.h. */
12342_ACEOF
12343cat confdefs.h >>conftest.$ac_ext
12344cat >>conftest.$ac_ext <<_ACEOF
12345/* end confdefs.h. */
12346$ac_includes_default
12347#include <$ac_header>
12348_ACEOF
12349rm -f conftest.$ac_objext
12350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 12351 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12352 ac_status=$?
eea650d8
VS
12353 grep -v '^ *+' conftest.er1 >conftest.err
12354 rm -f conftest.er1
12355 cat conftest.err >&5
e6cc62c6
VS
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } &&
eea650d8
VS
12358 { ac_try='test -z "$ac_c_werror_flag"
12359 || test ! -s conftest.err'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12362 ac_status=$?
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; } &&
12365 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367 (eval $ac_try) 2>&5
12368 ac_status=$?
12369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370 (exit $ac_status); }; }; then
12371 ac_header_compiler=yes
12372else
12373 echo "$as_me: failed program was:" >&5
12374sed 's/^/| /' conftest.$ac_ext >&5
12375
12376ac_header_compiler=no
12377fi
eea650d8 12378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12379echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12380echo "${ECHO_T}$ac_header_compiler" >&6
12381
12382# Is the header present?
12383echo "$as_me:$LINENO: checking $ac_header presence" >&5
12384echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12385cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12386/* confdefs.h. */
12387_ACEOF
12388cat confdefs.h >>conftest.$ac_ext
12389cat >>conftest.$ac_ext <<_ACEOF
12390/* end confdefs.h. */
12391#include <$ac_header>
12392_ACEOF
12393if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12395 ac_status=$?
12396 grep -v '^ *+' conftest.er1 >conftest.err
12397 rm -f conftest.er1
12398 cat conftest.err >&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } >/dev/null; then
12401 if test -s conftest.err; then
12402 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 12403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12404 else
12405 ac_cpp_err=
12406 fi
12407else
12408 ac_cpp_err=yes
12409fi
12410if test -z "$ac_cpp_err"; then
12411 ac_header_preproc=yes
12412else
12413 echo "$as_me: failed program was:" >&5
12414sed 's/^/| /' conftest.$ac_ext >&5
12415
12416 ac_header_preproc=no
12417fi
12418rm -f conftest.err conftest.$ac_ext
12419echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12420echo "${ECHO_T}$ac_header_preproc" >&6
12421
12422# So? What about this header?
eea650d8
VS
12423case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12424 yes:no: )
e6cc62c6
VS
12425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12426echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
12427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12428echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12429 ac_header_preproc=yes
e6cc62c6 12430 ;;
eea650d8 12431 no:yes:* )
e6cc62c6
VS
12432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12433echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
12434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12435echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12437echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12439echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12441echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
12442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12443echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12444 (
12445 cat <<\_ASBOX
eea650d8
VS
12446## ----------------------------------------- ##
12447## Report this to wx-dev@lists.wxwindows.org ##
12448## ----------------------------------------- ##
e6cc62c6
VS
12449_ASBOX
12450 ) |
12451 sed "s/^/$as_me: WARNING: /" >&2
12452 ;;
12453esac
12454echo "$as_me:$LINENO: checking for $ac_header" >&5
12455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12456if eval "test \"\${$as_ac_Header+set}\" = set"; then
12457 echo $ECHO_N "(cached) $ECHO_C" >&6
12458else
eea650d8 12459 eval "$as_ac_Header=\$ac_header_preproc"
a0b9e27f 12460fi
e6cc62c6
VS
12461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12463
a0b9e27f 12464fi
e6cc62c6
VS
12465if test `eval echo '${'$as_ac_Header'}'` = yes; then
12466 cat >>confdefs.h <<_ACEOF
12467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12468_ACEOF
12469
12470fi
12471
12472done
12473
e6cc62c6
VS
12474
12475
12476for ac_header in stdlib.h
12477do
12478as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12479if eval "test \"\${$as_ac_Header+set}\" = set"; then
12480 echo "$as_me:$LINENO: checking for $ac_header" >&5
12481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12482if eval "test \"\${$as_ac_Header+set}\" = set"; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
12484fi
12485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12487else
12488 # Is the header compilable?
12489echo "$as_me:$LINENO: checking $ac_header usability" >&5
12490echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12491cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12492/* confdefs.h. */
12493_ACEOF
12494cat confdefs.h >>conftest.$ac_ext
12495cat >>conftest.$ac_ext <<_ACEOF
12496/* end confdefs.h. */
12497$ac_includes_default
12498#include <$ac_header>
12499_ACEOF
12500rm -f conftest.$ac_objext
12501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 12502 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12503 ac_status=$?
eea650d8
VS
12504 grep -v '^ *+' conftest.er1 >conftest.err
12505 rm -f conftest.er1
12506 cat conftest.err >&5
e6cc62c6
VS
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } &&
eea650d8
VS
12509 { ac_try='test -z "$ac_c_werror_flag"
12510 || test ! -s conftest.err'
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12513 ac_status=$?
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; } &&
12516 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12518 (eval $ac_try) 2>&5
12519 ac_status=$?
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); }; }; then
12522 ac_header_compiler=yes
12523else
12524 echo "$as_me: failed program was:" >&5
12525sed 's/^/| /' conftest.$ac_ext >&5
12526
12527ac_header_compiler=no
12528fi
eea650d8 12529rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12530echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12531echo "${ECHO_T}$ac_header_compiler" >&6
12532
12533# Is the header present?
12534echo "$as_me:$LINENO: checking $ac_header presence" >&5
12535echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12536cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12537/* confdefs.h. */
12538_ACEOF
12539cat confdefs.h >>conftest.$ac_ext
12540cat >>conftest.$ac_ext <<_ACEOF
12541/* end confdefs.h. */
12542#include <$ac_header>
12543_ACEOF
12544if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12546 ac_status=$?
12547 grep -v '^ *+' conftest.er1 >conftest.err
12548 rm -f conftest.er1
12549 cat conftest.err >&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } >/dev/null; then
12552 if test -s conftest.err; then
12553 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 12554 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12555 else
12556 ac_cpp_err=
12557 fi
12558else
12559 ac_cpp_err=yes
12560fi
12561if test -z "$ac_cpp_err"; then
12562 ac_header_preproc=yes
12563else
12564 echo "$as_me: failed program was:" >&5
12565sed 's/^/| /' conftest.$ac_ext >&5
12566
12567 ac_header_preproc=no
12568fi
12569rm -f conftest.err conftest.$ac_ext
12570echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12571echo "${ECHO_T}$ac_header_preproc" >&6
12572
12573# So? What about this header?
eea650d8
VS
12574case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12575 yes:no: )
e6cc62c6
VS
12576 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12577echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
12578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12579echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12580 ac_header_preproc=yes
e6cc62c6 12581 ;;
eea650d8 12582 no:yes:* )
e6cc62c6
VS
12583 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12584echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
12585 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12586echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12587 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12588echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12589 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12590echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12592echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
12593 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12594echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12595 (
12596 cat <<\_ASBOX
eea650d8
VS
12597## ----------------------------------------- ##
12598## Report this to wx-dev@lists.wxwindows.org ##
12599## ----------------------------------------- ##
e6cc62c6
VS
12600_ASBOX
12601 ) |
12602 sed "s/^/$as_me: WARNING: /" >&2
12603 ;;
12604esac
12605echo "$as_me:$LINENO: checking for $ac_header" >&5
12606echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12607if eval "test \"\${$as_ac_Header+set}\" = set"; then
12608 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12609else
eea650d8 12610 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
12611fi
12612echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12613echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12614
21d1c967 12615fi
e6cc62c6
VS
12616if test `eval echo '${'$as_ac_Header'}'` = yes; then
12617 cat >>confdefs.h <<_ACEOF
12618#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12619_ACEOF
12620
12621fi
12622
21d1c967 12623done
4f14bcd8 12624
5c6fa7d2 12625
e6cc62c6 12626for ac_header in malloc.h
21d1c967 12627do
e6cc62c6
VS
12628as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12629if eval "test \"\${$as_ac_Header+set}\" = set"; then
12630 echo "$as_me:$LINENO: checking for $ac_header" >&5
12631echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12632if eval "test \"\${$as_ac_Header+set}\" = set"; then
12633 echo $ECHO_N "(cached) $ECHO_C" >&6
12634fi
12635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12636echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12637else
12638 # Is the header compilable?
12639echo "$as_me:$LINENO: checking $ac_header usability" >&5
12640echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12641cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12642/* confdefs.h. */
12643_ACEOF
12644cat confdefs.h >>conftest.$ac_ext
12645cat >>conftest.$ac_ext <<_ACEOF
12646/* end confdefs.h. */
12647$ac_includes_default
12648#include <$ac_header>
12649_ACEOF
12650rm -f conftest.$ac_objext
12651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 12652 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12653 ac_status=$?
eea650d8
VS
12654 grep -v '^ *+' conftest.er1 >conftest.err
12655 rm -f conftest.er1
12656 cat conftest.err >&5
e6cc62c6
VS
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } &&
eea650d8
VS
12659 { ac_try='test -z "$ac_c_werror_flag"
12660 || test ! -s conftest.err'
12661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12662 (eval $ac_try) 2>&5
12663 ac_status=$?
12664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12665 (exit $ac_status); }; } &&
12666 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12668 (eval $ac_try) 2>&5
12669 ac_status=$?
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 (exit $ac_status); }; }; then
12672 ac_header_compiler=yes
12673else
12674 echo "$as_me: failed program was:" >&5
12675sed 's/^/| /' conftest.$ac_ext >&5
12676
12677ac_header_compiler=no
12678fi
eea650d8 12679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12680echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12681echo "${ECHO_T}$ac_header_compiler" >&6
12682
12683# Is the header present?
12684echo "$as_me:$LINENO: checking $ac_header presence" >&5
12685echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12686cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12687/* confdefs.h. */
12688_ACEOF
12689cat confdefs.h >>conftest.$ac_ext
12690cat >>conftest.$ac_ext <<_ACEOF
12691/* end confdefs.h. */
12692#include <$ac_header>
12693_ACEOF
12694if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12695 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12696 ac_status=$?
12697 grep -v '^ *+' conftest.er1 >conftest.err
12698 rm -f conftest.er1
12699 cat conftest.err >&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } >/dev/null; then
12702 if test -s conftest.err; then
12703 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 12704 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12705 else
12706 ac_cpp_err=
12707 fi
12708else
12709 ac_cpp_err=yes
12710fi
12711if test -z "$ac_cpp_err"; then
12712 ac_header_preproc=yes
12713else
12714 echo "$as_me: failed program was:" >&5
12715sed 's/^/| /' conftest.$ac_ext >&5
12716
12717 ac_header_preproc=no
12718fi
12719rm -f conftest.err conftest.$ac_ext
12720echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12721echo "${ECHO_T}$ac_header_preproc" >&6
12722
12723# So? What about this header?
eea650d8
VS
12724case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12725 yes:no: )
e6cc62c6
VS
12726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12727echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
12728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12729echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12730 ac_header_preproc=yes
e6cc62c6 12731 ;;
eea650d8 12732 no:yes:* )
e6cc62c6
VS
12733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12734echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
12735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12736echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12738echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12740echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12742echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
12743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12744echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12745 (
12746 cat <<\_ASBOX
eea650d8
VS
12747## ----------------------------------------- ##
12748## Report this to wx-dev@lists.wxwindows.org ##
12749## ----------------------------------------- ##
e6cc62c6
VS
12750_ASBOX
12751 ) |
12752 sed "s/^/$as_me: WARNING: /" >&2
12753 ;;
12754esac
12755echo "$as_me:$LINENO: checking for $ac_header" >&5
12756echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12757if eval "test \"\${$as_ac_Header+set}\" = set"; then
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12759else
eea650d8 12760 eval "$as_ac_Header=\$ac_header_preproc"
d4158b5d 12761fi
e6cc62c6
VS
12762echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12763echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12764
21d1c967 12765fi
e6cc62c6
VS
12766if test `eval echo '${'$as_ac_Header'}'` = yes; then
12767 cat >>confdefs.h <<_ACEOF
12768#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12769_ACEOF
12770
12771fi
12772
12773done
12774
12775
12776for ac_header in unistd.h
12777do
12778as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12779if eval "test \"\${$as_ac_Header+set}\" = set"; then
12780 echo "$as_me:$LINENO: checking for $ac_header" >&5
12781echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12782if eval "test \"\${$as_ac_Header+set}\" = set"; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12784fi
12785echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12786echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12787else
12788 # Is the header compilable?
12789echo "$as_me:$LINENO: checking $ac_header usability" >&5
12790echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12791cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12792/* confdefs.h. */
12793_ACEOF
12794cat confdefs.h >>conftest.$ac_ext
12795cat >>conftest.$ac_ext <<_ACEOF
12796/* end confdefs.h. */
12797$ac_includes_default
12798#include <$ac_header>
12799_ACEOF
12800rm -f conftest.$ac_objext
12801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 12802 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12803 ac_status=$?
eea650d8
VS
12804 grep -v '^ *+' conftest.er1 >conftest.err
12805 rm -f conftest.er1
12806 cat conftest.err >&5
e6cc62c6
VS
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } &&
eea650d8
VS
12809 { ac_try='test -z "$ac_c_werror_flag"
12810 || test ! -s conftest.err'
12811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12812 (eval $ac_try) 2>&5
12813 ac_status=$?
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); }; } &&
12816 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12818 (eval $ac_try) 2>&5
12819 ac_status=$?
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12822 ac_header_compiler=yes
12823else
12824 echo "$as_me: failed program was:" >&5
12825sed 's/^/| /' conftest.$ac_ext >&5
12826
12827ac_header_compiler=no
12828fi
eea650d8 12829rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12830echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12831echo "${ECHO_T}$ac_header_compiler" >&6
12832
12833# Is the header present?
12834echo "$as_me:$LINENO: checking $ac_header presence" >&5
12835echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12836cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12837/* confdefs.h. */
12838_ACEOF
12839cat confdefs.h >>conftest.$ac_ext
12840cat >>conftest.$ac_ext <<_ACEOF
12841/* end confdefs.h. */
12842#include <$ac_header>
12843_ACEOF
12844if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12846 ac_status=$?
12847 grep -v '^ *+' conftest.er1 >conftest.err
12848 rm -f conftest.er1
12849 cat conftest.err >&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } >/dev/null; then
12852 if test -s conftest.err; then
12853 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 12854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12855 else
12856 ac_cpp_err=
12857 fi
a0b9e27f 12858else
e6cc62c6
VS
12859 ac_cpp_err=yes
12860fi
12861if test -z "$ac_cpp_err"; then
12862 ac_header_preproc=yes
12863else
12864 echo "$as_me: failed program was:" >&5
12865sed 's/^/| /' conftest.$ac_ext >&5
12866
12867 ac_header_preproc=no
12868fi
12869rm -f conftest.err conftest.$ac_ext
12870echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12871echo "${ECHO_T}$ac_header_preproc" >&6
12872
12873# So? What about this header?
eea650d8
VS
12874case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12875 yes:no: )
e6cc62c6
VS
12876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12877echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
12878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12879echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12880 ac_header_preproc=yes
e6cc62c6 12881 ;;
eea650d8 12882 no:yes:* )
e6cc62c6
VS
12883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12884echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
12885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12886echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12888echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12890echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12892echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
12893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12894echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12895 (
12896 cat <<\_ASBOX
eea650d8
VS
12897## ----------------------------------------- ##
12898## Report this to wx-dev@lists.wxwindows.org ##
12899## ----------------------------------------- ##
e6cc62c6
VS
12900_ASBOX
12901 ) |
12902 sed "s/^/$as_me: WARNING: /" >&2
12903 ;;
12904esac
12905echo "$as_me:$LINENO: checking for $ac_header" >&5
12906echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12907if eval "test \"\${$as_ac_Header+set}\" = set"; then
12908 echo $ECHO_N "(cached) $ECHO_C" >&6
12909else
eea650d8 12910 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
12911fi
12912echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12913echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12914
12915fi
12916if test `eval echo '${'$as_ac_Header'}'` = yes; then
12917 cat >>confdefs.h <<_ACEOF
12918#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12919_ACEOF
12920
d4158b5d 12921fi
e6cc62c6 12922
21d1c967 12923done
f6bcfd97 12924
e6cc62c6
VS
12925
12926for ac_header in wchar.h
12927do
12928as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12929if eval "test \"\${$as_ac_Header+set}\" = set"; then
12930 echo "$as_me:$LINENO: checking for $ac_header" >&5
12931echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12932if eval "test \"\${$as_ac_Header+set}\" = set"; then
12933 echo $ECHO_N "(cached) $ECHO_C" >&6
12934fi
12935echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12936echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12937else
12938 # Is the header compilable?
12939echo "$as_me:$LINENO: checking $ac_header usability" >&5
12940echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12941cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12942/* confdefs.h. */
12943_ACEOF
12944cat confdefs.h >>conftest.$ac_ext
12945cat >>conftest.$ac_ext <<_ACEOF
12946/* end confdefs.h. */
12947$ac_includes_default
12948#include <$ac_header>
12949_ACEOF
12950rm -f conftest.$ac_objext
12951if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 12952 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12953 ac_status=$?
eea650d8
VS
12954 grep -v '^ *+' conftest.er1 >conftest.err
12955 rm -f conftest.er1
12956 cat conftest.err >&5
e6cc62c6
VS
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); } &&
eea650d8
VS
12959 { ac_try='test -z "$ac_c_werror_flag"
12960 || test ! -s conftest.err'
12961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12962 (eval $ac_try) 2>&5
12963 ac_status=$?
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); }; } &&
12966 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12968 (eval $ac_try) 2>&5
12969 ac_status=$?
12970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12971 (exit $ac_status); }; }; then
12972 ac_header_compiler=yes
12973else
12974 echo "$as_me: failed program was:" >&5
12975sed 's/^/| /' conftest.$ac_ext >&5
12976
12977ac_header_compiler=no
12978fi
eea650d8 12979rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12980echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12981echo "${ECHO_T}$ac_header_compiler" >&6
12982
12983# Is the header present?
12984echo "$as_me:$LINENO: checking $ac_header presence" >&5
12985echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12986cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12987/* confdefs.h. */
12988_ACEOF
12989cat confdefs.h >>conftest.$ac_ext
12990cat >>conftest.$ac_ext <<_ACEOF
12991/* end confdefs.h. */
12992#include <$ac_header>
12993_ACEOF
12994if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12995 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12996 ac_status=$?
12997 grep -v '^ *+' conftest.er1 >conftest.err
12998 rm -f conftest.er1
12999 cat conftest.err >&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } >/dev/null; then
13002 if test -s conftest.err; then
13003 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 13004 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13005 else
13006 ac_cpp_err=
13007 fi
13008else
13009 ac_cpp_err=yes
13010fi
13011if test -z "$ac_cpp_err"; then
13012 ac_header_preproc=yes
13013else
13014 echo "$as_me: failed program was:" >&5
13015sed 's/^/| /' conftest.$ac_ext >&5
13016
13017 ac_header_preproc=no
13018fi
13019rm -f conftest.err conftest.$ac_ext
13020echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13021echo "${ECHO_T}$ac_header_preproc" >&6
13022
13023# So? What about this header?
eea650d8
VS
13024case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13025 yes:no: )
e6cc62c6
VS
13026 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13027echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
13028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13029echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13030 ac_header_preproc=yes
e6cc62c6 13031 ;;
eea650d8 13032 no:yes:* )
e6cc62c6
VS
13033 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13034echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
13035 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13036echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13037 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13038echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13039 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13040echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13042echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
13043 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13044echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13045 (
13046 cat <<\_ASBOX
eea650d8
VS
13047## ----------------------------------------- ##
13048## Report this to wx-dev@lists.wxwindows.org ##
13049## ----------------------------------------- ##
e6cc62c6
VS
13050_ASBOX
13051 ) |
13052 sed "s/^/$as_me: WARNING: /" >&2
13053 ;;
13054esac
13055echo "$as_me:$LINENO: checking for $ac_header" >&5
13056echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13057if eval "test \"\${$as_ac_Header+set}\" = set"; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13059else
eea650d8 13060 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
13061fi
13062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13063echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13064
90dd450c 13065fi
e6cc62c6
VS
13066if test `eval echo '${'$as_ac_Header'}'` = yes; then
13067 cat >>confdefs.h <<_ACEOF
13068#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13069_ACEOF
13070
13071fi
13072
13073done
90dd450c 13074
e6cc62c6
VS
13075
13076if test "$ac_cv_header_wchar_h" != "yes"; then
13077
13078for ac_header in wcstr.h
21d1c967 13079do
e6cc62c6
VS
13080as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13081if eval "test \"\${$as_ac_Header+set}\" = set"; then
13082 echo "$as_me:$LINENO: checking for $ac_header" >&5
13083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13084if eval "test \"\${$as_ac_Header+set}\" = set"; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
13086fi
13087echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13088echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13089else
13090 # Is the header compilable?
13091echo "$as_me:$LINENO: checking $ac_header usability" >&5
13092echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13093cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13094/* confdefs.h. */
13095_ACEOF
13096cat confdefs.h >>conftest.$ac_ext
13097cat >>conftest.$ac_ext <<_ACEOF
13098/* end confdefs.h. */
13099$ac_includes_default
13100#include <$ac_header>
13101_ACEOF
13102rm -f conftest.$ac_objext
13103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 13104 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13105 ac_status=$?
eea650d8
VS
13106 grep -v '^ *+' conftest.er1 >conftest.err
13107 rm -f conftest.er1
13108 cat conftest.err >&5
e6cc62c6
VS
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } &&
eea650d8
VS
13111 { ac_try='test -z "$ac_c_werror_flag"
13112 || test ! -s conftest.err'
13113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13114 (eval $ac_try) 2>&5
13115 ac_status=$?
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }; } &&
13118 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13120 (eval $ac_try) 2>&5
13121 ac_status=$?
13122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13123 (exit $ac_status); }; }; then
13124 ac_header_compiler=yes
13125else
13126 echo "$as_me: failed program was:" >&5
13127sed 's/^/| /' conftest.$ac_ext >&5
13128
13129ac_header_compiler=no
13130fi
eea650d8 13131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13132echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13133echo "${ECHO_T}$ac_header_compiler" >&6
13134
13135# Is the header present?
13136echo "$as_me:$LINENO: checking $ac_header presence" >&5
13137echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13138cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13139/* confdefs.h. */
13140_ACEOF
13141cat confdefs.h >>conftest.$ac_ext
13142cat >>conftest.$ac_ext <<_ACEOF
13143/* end confdefs.h. */
13144#include <$ac_header>
13145_ACEOF
13146if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13147 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13148 ac_status=$?
13149 grep -v '^ *+' conftest.er1 >conftest.err
13150 rm -f conftest.er1
13151 cat conftest.err >&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); } >/dev/null; then
13154 if test -s conftest.err; then
13155 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 13156 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13157 else
13158 ac_cpp_err=
13159 fi
13160else
13161 ac_cpp_err=yes
13162fi
13163if test -z "$ac_cpp_err"; then
13164 ac_header_preproc=yes
13165else
13166 echo "$as_me: failed program was:" >&5
13167sed 's/^/| /' conftest.$ac_ext >&5
13168
13169 ac_header_preproc=no
13170fi
13171rm -f conftest.err conftest.$ac_ext
13172echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13173echo "${ECHO_T}$ac_header_preproc" >&6
13174
13175# So? What about this header?
eea650d8
VS
13176case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13177 yes:no: )
e6cc62c6
VS
13178 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13179echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
13180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13181echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13182 ac_header_preproc=yes
e6cc62c6 13183 ;;
eea650d8 13184 no:yes:* )
e6cc62c6
VS
13185 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13186echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
13187 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13188echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13189 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13190echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13191 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13192echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13193 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13194echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
13195 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13196echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13197 (
13198 cat <<\_ASBOX
eea650d8
VS
13199## ----------------------------------------- ##
13200## Report this to wx-dev@lists.wxwindows.org ##
13201## ----------------------------------------- ##
e6cc62c6
VS
13202_ASBOX
13203 ) |
13204 sed "s/^/$as_me: WARNING: /" >&2
13205 ;;
13206esac
13207echo "$as_me:$LINENO: checking for $ac_header" >&5
13208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13209if eval "test \"\${$as_ac_Header+set}\" = set"; then
13210 echo $ECHO_N "(cached) $ECHO_C" >&6
13211else
eea650d8 13212 eval "$as_ac_Header=\$ac_header_preproc"
3a922bb4 13213fi
e6cc62c6
VS
13214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13215echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13216
4f14bcd8 13217fi
e6cc62c6
VS
13218if test `eval echo '${'$as_ac_Header'}'` = yes; then
13219 cat >>confdefs.h <<_ACEOF
13220#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13221_ACEOF
13222
13223fi
13224
13225done
13226
13227fi
13228
13229
13230for ac_header in fnmatch.h
13231do
13232as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13233if eval "test \"\${$as_ac_Header+set}\" = set"; then
13234 echo "$as_me:$LINENO: checking for $ac_header" >&5
13235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13236if eval "test \"\${$as_ac_Header+set}\" = set"; then
13237 echo $ECHO_N "(cached) $ECHO_C" >&6
13238fi
13239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13240echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13241else
13242 # Is the header compilable?
13243echo "$as_me:$LINENO: checking $ac_header usability" >&5
13244echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13245cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13246/* confdefs.h. */
13247_ACEOF
13248cat confdefs.h >>conftest.$ac_ext
13249cat >>conftest.$ac_ext <<_ACEOF
13250/* end confdefs.h. */
13251$ac_includes_default
13252#include <$ac_header>
13253_ACEOF
13254rm -f conftest.$ac_objext
13255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 13256 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13257 ac_status=$?
eea650d8
VS
13258 grep -v '^ *+' conftest.er1 >conftest.err
13259 rm -f conftest.er1
13260 cat conftest.err >&5
e6cc62c6
VS
13261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13262 (exit $ac_status); } &&
eea650d8
VS
13263 { ac_try='test -z "$ac_c_werror_flag"
13264 || test ! -s conftest.err'
13265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13266 (eval $ac_try) 2>&5
13267 ac_status=$?
13268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269 (exit $ac_status); }; } &&
13270 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13272 (eval $ac_try) 2>&5
13273 ac_status=$?
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); }; }; then
13276 ac_header_compiler=yes
13277else
13278 echo "$as_me: failed program was:" >&5
13279sed 's/^/| /' conftest.$ac_ext >&5
13280
13281ac_header_compiler=no
13282fi
eea650d8 13283rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13284echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13285echo "${ECHO_T}$ac_header_compiler" >&6
13286
13287# Is the header present?
13288echo "$as_me:$LINENO: checking $ac_header presence" >&5
13289echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13290cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13291/* confdefs.h. */
13292_ACEOF
13293cat confdefs.h >>conftest.$ac_ext
13294cat >>conftest.$ac_ext <<_ACEOF
13295/* end confdefs.h. */
13296#include <$ac_header>
13297_ACEOF
13298if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13299 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13300 ac_status=$?
13301 grep -v '^ *+' conftest.er1 >conftest.err
13302 rm -f conftest.er1
13303 cat conftest.err >&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } >/dev/null; then
13306 if test -s conftest.err; then
13307 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 13308 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13309 else
13310 ac_cpp_err=
13311 fi
13312else
13313 ac_cpp_err=yes
13314fi
13315if test -z "$ac_cpp_err"; then
13316 ac_header_preproc=yes
13317else
13318 echo "$as_me: failed program was:" >&5
13319sed 's/^/| /' conftest.$ac_ext >&5
13320
13321 ac_header_preproc=no
13322fi
13323rm -f conftest.err conftest.$ac_ext
13324echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13325echo "${ECHO_T}$ac_header_preproc" >&6
13326
13327# So? What about this header?
eea650d8
VS
13328case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13329 yes:no: )
e6cc62c6
VS
13330 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13331echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
13332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13333echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13334 ac_header_preproc=yes
e6cc62c6 13335 ;;
eea650d8 13336 no:yes:* )
e6cc62c6
VS
13337 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13338echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
13339 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13340echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13341 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13342echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13343 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13344echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13346echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
13347 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13348echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13349 (
13350 cat <<\_ASBOX
eea650d8
VS
13351## ----------------------------------------- ##
13352## Report this to wx-dev@lists.wxwindows.org ##
13353## ----------------------------------------- ##
e6cc62c6
VS
13354_ASBOX
13355 ) |
13356 sed "s/^/$as_me: WARNING: /" >&2
13357 ;;
13358esac
13359echo "$as_me:$LINENO: checking for $ac_header" >&5
13360echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13361if eval "test \"\${$as_ac_Header+set}\" = set"; then
13362 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13363else
eea650d8 13364 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
13365fi
13366echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13367echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13368
21d1c967 13369fi
e6cc62c6
VS
13370if test `eval echo '${'$as_ac_Header'}'` = yes; then
13371 cat >>confdefs.h <<_ACEOF
13372#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13373_ACEOF
13374
13375fi
13376
21d1c967 13377done
90dd450c 13378
5c6fa7d2 13379
a0b9e27f 13380if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13381
13382for ac_func in fnmatch
21d1c967 13383do
e6cc62c6
VS
13384as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13385echo "$as_me:$LINENO: checking for $ac_func" >&5
13386echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13387if eval "test \"\${$as_ac_var+set}\" = set"; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13389else
13390 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13391/* confdefs.h. */
13392_ACEOF
13393cat confdefs.h >>conftest.$ac_ext
13394cat >>conftest.$ac_ext <<_ACEOF
13395/* end confdefs.h. */
eea650d8
VS
13396/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13398#define $ac_func innocuous_$ac_func
13399
a0b9e27f 13400/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13401 which can conflict with char $ac_func (); below.
13402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13403 <limits.h> exists even on freestanding compilers. */
eea650d8 13404
e6cc62c6
VS
13405#ifdef __STDC__
13406# include <limits.h>
13407#else
13408# include <assert.h>
13409#endif
eea650d8
VS
13410
13411#undef $ac_func
13412
a0b9e27f 13413/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13414#ifdef __cplusplus
13415extern "C"
13416{
13417#endif
a0b9e27f 13418/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13419 builtin and then its argument prototype would still apply. */
13420char $ac_func ();
a0b9e27f
MB
13421/* The GNU C library defines this for functions which it implements
13422 to always fail with ENOSYS. Some functions are actually named
13423 something starting with __ and the normal name is an alias. */
13424#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13425choke me
13426#else
e6cc62c6
VS
13427char (*f) () = $ac_func;
13428#endif
13429#ifdef __cplusplus
13430}
a0b9e27f
MB
13431#endif
13432
e6cc62c6
VS
13433int
13434main ()
13435{
13436return f != $ac_func;
13437 ;
13438 return 0;
13439}
13440_ACEOF
13441rm -f conftest.$ac_objext conftest$ac_exeext
13442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 13443 (eval $ac_link) 2>conftest.er1
e6cc62c6 13444 ac_status=$?
eea650d8
VS
13445 grep -v '^ *+' conftest.er1 >conftest.err
13446 rm -f conftest.er1
13447 cat conftest.err >&5
e6cc62c6
VS
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } &&
eea650d8
VS
13450 { ac_try='test -z "$ac_c_werror_flag"
13451 || test ! -s conftest.err'
13452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13453 (eval $ac_try) 2>&5
13454 ac_status=$?
13455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13456 (exit $ac_status); }; } &&
13457 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
13458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13459 (eval $ac_try) 2>&5
13460 ac_status=$?
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; }; then
13463 eval "$as_ac_var=yes"
13464else
13465 echo "$as_me: failed program was:" >&5
13466sed 's/^/| /' conftest.$ac_ext >&5
13467
13468eval "$as_ac_var=no"
13469fi
eea650d8
VS
13470rm -f conftest.err conftest.$ac_objext \
13471 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
13472fi
13473echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13474echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13475if test `eval echo '${'$as_ac_var'}'` = yes; then
13476 cat >>confdefs.h <<_ACEOF
13477#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13478_ACEOF
32832908 13479
21d1c967
GD
13480fi
13481done
90dd450c 13482
a0b9e27f 13483fi
90dd450c 13484
e6cc62c6
VS
13485
13486for ac_header in langinfo.h
21d1c967 13487do
e6cc62c6
VS
13488as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13489if eval "test \"\${$as_ac_Header+set}\" = set"; then
13490 echo "$as_me:$LINENO: checking for $ac_header" >&5
13491echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13492if eval "test \"\${$as_ac_Header+set}\" = set"; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13494fi
13495echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13496echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13497else
13498 # Is the header compilable?
13499echo "$as_me:$LINENO: checking $ac_header usability" >&5
13500echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13501cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13502/* confdefs.h. */
13503_ACEOF
13504cat confdefs.h >>conftest.$ac_ext
13505cat >>conftest.$ac_ext <<_ACEOF
13506/* end confdefs.h. */
13507$ac_includes_default
13508#include <$ac_header>
13509_ACEOF
13510rm -f conftest.$ac_objext
13511if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 13512 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13513 ac_status=$?
eea650d8
VS
13514 grep -v '^ *+' conftest.er1 >conftest.err
13515 rm -f conftest.er1
13516 cat conftest.err >&5
e6cc62c6
VS
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); } &&
eea650d8
VS
13519 { ac_try='test -z "$ac_c_werror_flag"
13520 || test ! -s conftest.err'
13521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13522 (eval $ac_try) 2>&5
13523 ac_status=$?
13524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13525 (exit $ac_status); }; } &&
13526 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13528 (eval $ac_try) 2>&5
13529 ac_status=$?
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); }; }; then
13532 ac_header_compiler=yes
13533else
13534 echo "$as_me: failed program was:" >&5
13535sed 's/^/| /' conftest.$ac_ext >&5
13536
13537ac_header_compiler=no
13538fi
eea650d8 13539rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13540echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13541echo "${ECHO_T}$ac_header_compiler" >&6
13542
13543# Is the header present?
13544echo "$as_me:$LINENO: checking $ac_header presence" >&5
13545echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13546cat >conftest.$ac_ext <<_ACEOF
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
eea650d8 13564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13565 else
13566 ac_cpp_err=
13567 fi
13568else
13569 ac_cpp_err=yes
13570fi
13571if test -z "$ac_cpp_err"; then
13572 ac_header_preproc=yes
13573else
13574 echo "$as_me: failed program was:" >&5
13575sed 's/^/| /' conftest.$ac_ext >&5
13576
13577 ac_header_preproc=no
13578fi
13579rm -f conftest.err conftest.$ac_ext
13580echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13581echo "${ECHO_T}$ac_header_preproc" >&6
13582
13583# So? What about this header?
eea650d8
VS
13584case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13585 yes:no: )
e6cc62c6
VS
13586 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13587echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
13588 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13589echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13590 ac_header_preproc=yes
e6cc62c6 13591 ;;
eea650d8 13592 no:yes:* )
e6cc62c6
VS
13593 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13594echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
13595 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13596echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13597 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13598echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13599 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13600echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13602echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
13603 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13604echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13605 (
13606 cat <<\_ASBOX
eea650d8
VS
13607## ----------------------------------------- ##
13608## Report this to wx-dev@lists.wxwindows.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
eea650d8 13620 eval "$as_ac_Header=\$ac_header_preproc"
90dd450c 13621fi
e6cc62c6
VS
13622echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13623echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13624
4f14bcd8 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
21d1c967 13631fi
e6cc62c6 13632
21d1c967 13633done
3a922bb4 13634
8284b0c5 13635
4f5a7f74
VZ
13636case "${host}" in
13637 *-pc-os2_emx | *-pc-os2-emx )
13638 if test $ac_cv_header_langinfo_h = "yes"; then
13639 LIBS="$LIBS -lintl"
13640 fi
13641 ;;
13642esac
1542ea39 13643
a0b9e27f 13644if test "$wxUSE_GUI" = "yes"; then
73d617c9 13645 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
e6cc62c6 13646
eb69fda5 13647for ac_header in X11/Xlib.h
21d1c967 13648do
e6cc62c6
VS
13649as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13650if eval "test \"\${$as_ac_Header+set}\" = set"; then
13651 echo "$as_me:$LINENO: checking for $ac_header" >&5
13652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13653if eval "test \"\${$as_ac_Header+set}\" = set"; then
13654 echo $ECHO_N "(cached) $ECHO_C" >&6
13655fi
13656echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13657echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13658else
13659 # Is the header compilable?
13660echo "$as_me:$LINENO: checking $ac_header usability" >&5
13661echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13662cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13663/* confdefs.h. */
13664_ACEOF
13665cat confdefs.h >>conftest.$ac_ext
13666cat >>conftest.$ac_ext <<_ACEOF
13667/* end confdefs.h. */
13668$ac_includes_default
13669#include <$ac_header>
13670_ACEOF
13671rm -f conftest.$ac_objext
13672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 13673 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13674 ac_status=$?
eea650d8
VS
13675 grep -v '^ *+' conftest.er1 >conftest.err
13676 rm -f conftest.er1
13677 cat conftest.err >&5
e6cc62c6
VS
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 (exit $ac_status); } &&
eea650d8
VS
13680 { ac_try='test -z "$ac_c_werror_flag"
13681 || test ! -s conftest.err'
13682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13683 (eval $ac_try) 2>&5
13684 ac_status=$?
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); }; } &&
13687 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13689 (eval $ac_try) 2>&5
13690 ac_status=$?
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); }; }; then
13693 ac_header_compiler=yes
13694else
13695 echo "$as_me: failed program was:" >&5
13696sed 's/^/| /' conftest.$ac_ext >&5
13697
13698ac_header_compiler=no
13699fi
eea650d8 13700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13701echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13702echo "${ECHO_T}$ac_header_compiler" >&6
13703
13704# Is the header present?
13705echo "$as_me:$LINENO: checking $ac_header presence" >&5
13706echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13707cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13708/* confdefs.h. */
13709_ACEOF
13710cat confdefs.h >>conftest.$ac_ext
13711cat >>conftest.$ac_ext <<_ACEOF
13712/* end confdefs.h. */
13713#include <$ac_header>
13714_ACEOF
13715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13716 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13717 ac_status=$?
13718 grep -v '^ *+' conftest.er1 >conftest.err
13719 rm -f conftest.er1
13720 cat conftest.err >&5
13721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13722 (exit $ac_status); } >/dev/null; then
13723 if test -s conftest.err; then
13724 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 13725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13726 else
13727 ac_cpp_err=
13728 fi
13729else
13730 ac_cpp_err=yes
13731fi
13732if test -z "$ac_cpp_err"; then
13733 ac_header_preproc=yes
13734else
13735 echo "$as_me: failed program was:" >&5
13736sed 's/^/| /' conftest.$ac_ext >&5
13737
13738 ac_header_preproc=no
13739fi
13740rm -f conftest.err conftest.$ac_ext
13741echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13742echo "${ECHO_T}$ac_header_preproc" >&6
13743
13744# So? What about this header?
eea650d8
VS
13745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13746 yes:no: )
e6cc62c6
VS
13747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13748echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
13749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13750echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13751 ac_header_preproc=yes
e6cc62c6 13752 ;;
eea650d8 13753 no:yes:* )
e6cc62c6
VS
13754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13755echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
13756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13757echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13759echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13761echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13763echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
13764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13765echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13766 (
13767 cat <<\_ASBOX
eea650d8
VS
13768## ----------------------------------------- ##
13769## Report this to wx-dev@lists.wxwindows.org ##
13770## ----------------------------------------- ##
e6cc62c6
VS
13771_ASBOX
13772 ) |
13773 sed "s/^/$as_me: WARNING: /" >&2
13774 ;;
13775esac
13776echo "$as_me:$LINENO: checking for $ac_header" >&5
13777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13778if eval "test \"\${$as_ac_Header+set}\" = set"; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13780else
eea650d8 13781 eval "$as_ac_Header=\$ac_header_preproc"
3a922bb4 13782fi
e6cc62c6
VS
13783echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13784echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13785
90dd450c 13786fi
e6cc62c6
VS
13787if test `eval echo '${'$as_ac_Header'}'` = yes; then
13788 cat >>confdefs.h <<_ACEOF
13789#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13790_ACEOF
13791
247f5006 13792fi
e6cc62c6 13793
eb69fda5
VS
13794done
13795
13796
13797for ac_header in X11/XKBlib.h
13798do
13799as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13800echo "$as_me:$LINENO: checking for $ac_header" >&5
13801echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13802if eval "test \"\${$as_ac_Header+set}\" = set"; then
13803 echo $ECHO_N "(cached) $ECHO_C" >&6
13804else
13805 cat >conftest.$ac_ext <<_ACEOF
eb69fda5
VS
13806/* confdefs.h. */
13807_ACEOF
13808cat confdefs.h >>conftest.$ac_ext
13809cat >>conftest.$ac_ext <<_ACEOF
13810/* end confdefs.h. */
13811
13812 #if HAVE_X11_XLIB_H
13813 #include <X11/Xlib.h>
13814 #endif
13815
13816
13817#include <$ac_header>
13818_ACEOF
13819rm -f conftest.$ac_objext
13820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 13821 (eval $ac_compile) 2>conftest.er1
eb69fda5 13822 ac_status=$?
eea650d8
VS
13823 grep -v '^ *+' conftest.er1 >conftest.err
13824 rm -f conftest.er1
13825 cat conftest.err >&5
eb69fda5
VS
13826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13827 (exit $ac_status); } &&
eea650d8
VS
13828 { ac_try='test -z "$ac_c_werror_flag"
13829 || test ! -s conftest.err'
13830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13831 (eval $ac_try) 2>&5
13832 ac_status=$?
13833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13834 (exit $ac_status); }; } &&
13835 { ac_try='test -s conftest.$ac_objext'
eb69fda5
VS
13836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837 (eval $ac_try) 2>&5
13838 ac_status=$?
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; }; then
13841 eval "$as_ac_Header=yes"
13842else
13843 echo "$as_me: failed program was:" >&5
13844sed 's/^/| /' conftest.$ac_ext >&5
13845
13846eval "$as_ac_Header=no"
13847fi
eea650d8 13848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
eb69fda5
VS
13849fi
13850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13851echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13852if test `eval echo '${'$as_ac_Header'}'` = yes; then
13853 cat >>confdefs.h <<_ACEOF
13854#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13855_ACEOF
13856
13857fi
13858
247f5006
VZ
13859done
13860
a0b9e27f
MB
13861 fi
13862fi
247f5006 13863
247f5006 13864
e6cc62c6
VS
13865echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13866echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13867if test "${ac_cv_c_const+set}" = set; then
13868 echo $ECHO_N "(cached) $ECHO_C" >&6
13869else
13870 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13871/* confdefs.h. */
13872_ACEOF
13873cat confdefs.h >>conftest.$ac_ext
13874cat >>conftest.$ac_ext <<_ACEOF
13875/* end confdefs.h. */
13876
13877int
13878main ()
13879{
13880/* FIXME: Include the comments suggested by Paul. */
13881#ifndef __cplusplus
13882 /* Ultrix mips cc rejects this. */
13883 typedef int charset[2];
13884 const charset x;
13885 /* SunOS 4.1.1 cc rejects this. */
13886 char const *const *ccp;
13887 char **p;
13888 /* NEC SVR4.0.2 mips cc rejects this. */
13889 struct point {int x, y;};
13890 static struct point const zero = {0,0};
13891 /* AIX XL C 1.02.0.0 rejects this.
13892 It does not let you subtract one const X* pointer from another in
13893 an arm of an if-expression whose if-part is not a constant
13894 expression */
13895 const char *g = "string";
13896 ccp = &g + (g ? g-g : 0);
13897 /* HPUX 7.0 cc rejects these. */
13898 ++ccp;
13899 p = (char**) ccp;
13900 ccp = (char const *const *) p;
13901 { /* SCO 3.2v4 cc rejects this. */
13902 char *t;
13903 char const *s = 0 ? (char *) 0 : (char const *) 0;
13904
13905 *t++ = 0;
13906 }
13907 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13908 int x[] = {25, 17};
13909 const int *foo = &x[0];
13910 ++foo;
13911 }
13912 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13913 typedef const int *iptr;
13914 iptr p = 0;
13915 ++p;
13916 }
13917 { /* AIX XL C 1.02.0.0 rejects this saying
13918 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13919 struct s { int j; const int *ap[3]; };
13920 struct s *b; b->j = 5;
13921 }
13922 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13923 const int foo = 10;
13924 }
13925#endif
13926
13927 ;
13928 return 0;
13929}
13930_ACEOF
13931rm -f conftest.$ac_objext
13932if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 13933 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13934 ac_status=$?
eea650d8
VS
13935 grep -v '^ *+' conftest.er1 >conftest.err
13936 rm -f conftest.er1
13937 cat conftest.err >&5
e6cc62c6
VS
13938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939 (exit $ac_status); } &&
eea650d8
VS
13940 { ac_try='test -z "$ac_c_werror_flag"
13941 || test ! -s conftest.err'
13942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13943 (eval $ac_try) 2>&5
13944 ac_status=$?
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; } &&
13947 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949 (eval $ac_try) 2>&5
13950 ac_status=$?
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; }; then
a0b9e27f 13953 ac_cv_c_const=yes
247f5006 13954else
e6cc62c6
VS
13955 echo "$as_me: failed program was:" >&5
13956sed 's/^/| /' conftest.$ac_ext >&5
13957
13958ac_cv_c_const=no
247f5006 13959fi
eea650d8 13960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967 13961fi
e6cc62c6
VS
13962echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13963echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13964if test $ac_cv_c_const = no; then
e6cc62c6
VS
13965
13966cat >>confdefs.h <<\_ACEOF
13967#define const
13968_ACEOF
10f2d63a 13969
90dd450c 13970fi
81809c07 13971
e6cc62c6
VS
13972echo "$as_me:$LINENO: checking for inline" >&5
13973echo $ECHO_N "checking for inline... $ECHO_C" >&6
13974if test "${ac_cv_c_inline+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13976else
a0b9e27f
MB
13977 ac_cv_c_inline=no
13978for ac_kw in inline __inline__ __inline; do
e6cc62c6 13979 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13980/* confdefs.h. */
13981_ACEOF
13982cat confdefs.h >>conftest.$ac_ext
13983cat >>conftest.$ac_ext <<_ACEOF
13984/* end confdefs.h. */
13985#ifndef __cplusplus
13986typedef int foo_t;
13987static $ac_kw foo_t static_foo () {return 0; }
13988$ac_kw foo_t foo () {return 0; }
13989#endif
a0b9e27f 13990
e6cc62c6
VS
13991_ACEOF
13992rm -f conftest.$ac_objext
13993if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 13994 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13995 ac_status=$?
eea650d8
VS
13996 grep -v '^ *+' conftest.er1 >conftest.err
13997 rm -f conftest.er1
13998 cat conftest.err >&5
e6cc62c6
VS
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); } &&
eea650d8
VS
14001 { ac_try='test -z "$ac_c_werror_flag"
14002 || test ! -s conftest.err'
14003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14004 (eval $ac_try) 2>&5
14005 ac_status=$?
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }; } &&
14008 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14010 (eval $ac_try) 2>&5
14011 ac_status=$?
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 (exit $ac_status); }; }; then
a0b9e27f 14014 ac_cv_c_inline=$ac_kw; break
247f5006 14015else
e6cc62c6
VS
14016 echo "$as_me: failed program was:" >&5
14017sed 's/^/| /' conftest.$ac_ext >&5
14018
247f5006 14019fi
eea650d8 14020rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 14021done
247f5006
VZ
14022
14023fi
e6cc62c6
VS
14024echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14025echo "${ECHO_T}$ac_cv_c_inline" >&6
eea650d8
VS
14026
14027
e6cc62c6 14028case $ac_cv_c_inline in
a0b9e27f 14029 inline | yes) ;;
eea650d8
VS
14030 *)
14031 case $ac_cv_c_inline in
14032 no) ac_val=;;
14033 *) ac_val=$ac_cv_c_inline;;
14034 esac
14035 cat >>confdefs.h <<_ACEOF
14036#ifndef __cplusplus
14037#define inline $ac_val
14038#endif
e6cc62c6 14039_ACEOF
eea650d8 14040 ;;
a0b9e27f 14041esac
247f5006 14042
247f5006 14043
e6cc62c6
VS
14044echo "$as_me:$LINENO: checking for char" >&5
14045echo $ECHO_N "checking for char... $ECHO_C" >&6
14046if test "${ac_cv_type_char+set}" = set; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14048else
14049 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14050/* confdefs.h. */
14051_ACEOF
14052cat confdefs.h >>conftest.$ac_ext
14053cat >>conftest.$ac_ext <<_ACEOF
14054/* end confdefs.h. */
14055$ac_includes_default
14056int
14057main ()
14058{
14059if ((char *) 0)
14060 return 0;
14061if (sizeof (char))
14062 return 0;
14063 ;
14064 return 0;
14065}
14066_ACEOF
14067rm -f conftest.$ac_objext
14068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14069 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14070 ac_status=$?
eea650d8
VS
14071 grep -v '^ *+' conftest.er1 >conftest.err
14072 rm -f conftest.er1
14073 cat conftest.err >&5
e6cc62c6
VS
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); } &&
eea650d8
VS
14076 { ac_try='test -z "$ac_c_werror_flag"
14077 || test ! -s conftest.err'
14078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14079 (eval $ac_try) 2>&5
14080 ac_status=$?
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); }; } &&
14083 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085 (eval $ac_try) 2>&5
14086 ac_status=$?
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; }; then
14089 ac_cv_type_char=yes
14090else
14091 echo "$as_me: failed program was:" >&5
14092sed 's/^/| /' conftest.$ac_ext >&5
14093
14094ac_cv_type_char=no
14095fi
eea650d8 14096rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14097fi
14098echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14099echo "${ECHO_T}$ac_cv_type_char" >&6
14100
14101echo "$as_me:$LINENO: checking size of char" >&5
14102echo $ECHO_N "checking size of char... $ECHO_C" >&6
14103if test "${ac_cv_sizeof_char+set}" = set; then
14104 echo $ECHO_N "(cached) $ECHO_C" >&6
14105else
14106 if test "$ac_cv_type_char" = yes; then
14107 # The cast to unsigned long works around a bug in the HP C Compiler
14108 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14109 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14110 # This bug is HP SR number 8606223364.
a0b9e27f 14111 if test "$cross_compiling" = yes; then
e6cc62c6
VS
14112 # Depending upon the size, compute the lo and hi bounds.
14113cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14114/* confdefs.h. */
14115_ACEOF
14116cat confdefs.h >>conftest.$ac_ext
14117cat >>conftest.$ac_ext <<_ACEOF
14118/* end confdefs.h. */
14119$ac_includes_default
14120int
14121main ()
14122{
14123static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14124test_array [0] = 0
14125
14126 ;
14127 return 0;
14128}
14129_ACEOF
14130rm -f conftest.$ac_objext
14131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14132 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14133 ac_status=$?
eea650d8
VS
14134 grep -v '^ *+' conftest.er1 >conftest.err
14135 rm -f conftest.er1
14136 cat conftest.err >&5
e6cc62c6
VS
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); } &&
eea650d8
VS
14139 { ac_try='test -z "$ac_c_werror_flag"
14140 || test ! -s conftest.err'
14141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14142 (eval $ac_try) 2>&5
14143 ac_status=$?
14144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); }; } &&
14146 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14148 (eval $ac_try) 2>&5
14149 ac_status=$?
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); }; }; then
14152 ac_lo=0 ac_mid=0
14153 while :; do
14154 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14155/* confdefs.h. */
14156_ACEOF
14157cat confdefs.h >>conftest.$ac_ext
14158cat >>conftest.$ac_ext <<_ACEOF
14159/* end confdefs.h. */
14160$ac_includes_default
14161int
14162main ()
14163{
14164static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14165test_array [0] = 0
14166
14167 ;
14168 return 0;
14169}
14170_ACEOF
14171rm -f conftest.$ac_objext
14172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14173 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14174 ac_status=$?
eea650d8
VS
14175 grep -v '^ *+' conftest.er1 >conftest.err
14176 rm -f conftest.er1
14177 cat conftest.err >&5
e6cc62c6
VS
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); } &&
eea650d8
VS
14180 { ac_try='test -z "$ac_c_werror_flag"
14181 || test ! -s conftest.err'
14182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14183 (eval $ac_try) 2>&5
14184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; } &&
14187 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14189 (eval $ac_try) 2>&5
14190 ac_status=$?
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; }; then
14193 ac_hi=$ac_mid; break
14194else
14195 echo "$as_me: failed program was:" >&5
14196sed 's/^/| /' conftest.$ac_ext >&5
14197
14198ac_lo=`expr $ac_mid + 1`
eea650d8
VS
14199 if test $ac_lo -le $ac_mid; then
14200 ac_lo= ac_hi=
14201 break
14202 fi
14203 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 14204fi
eea650d8 14205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14206 done
a0b9e27f 14207else
e6cc62c6
VS
14208 echo "$as_me: failed program was:" >&5
14209sed 's/^/| /' conftest.$ac_ext >&5
14210
14211cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14212/* confdefs.h. */
14213_ACEOF
14214cat confdefs.h >>conftest.$ac_ext
14215cat >>conftest.$ac_ext <<_ACEOF
14216/* end confdefs.h. */
14217$ac_includes_default
14218int
14219main ()
14220{
14221static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14222test_array [0] = 0
14223
14224 ;
14225 return 0;
14226}
14227_ACEOF
14228rm -f conftest.$ac_objext
14229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14230 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14231 ac_status=$?
eea650d8
VS
14232 grep -v '^ *+' conftest.er1 >conftest.err
14233 rm -f conftest.er1
14234 cat conftest.err >&5
e6cc62c6
VS
14235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14236 (exit $ac_status); } &&
eea650d8
VS
14237 { ac_try='test -z "$ac_c_werror_flag"
14238 || test ! -s conftest.err'
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14241 ac_status=$?
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; } &&
14244 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14246 (eval $ac_try) 2>&5
14247 ac_status=$?
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); }; }; then
14250 ac_hi=-1 ac_mid=-1
14251 while :; do
14252 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14253/* confdefs.h. */
14254_ACEOF
14255cat confdefs.h >>conftest.$ac_ext
14256cat >>conftest.$ac_ext <<_ACEOF
14257/* end confdefs.h. */
14258$ac_includes_default
14259int
14260main ()
14261{
14262static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14263test_array [0] = 0
14264
14265 ;
14266 return 0;
14267}
14268_ACEOF
14269rm -f conftest.$ac_objext
14270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14271 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14272 ac_status=$?
eea650d8
VS
14273 grep -v '^ *+' conftest.er1 >conftest.err
14274 rm -f conftest.er1
14275 cat conftest.err >&5
e6cc62c6
VS
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } &&
eea650d8
VS
14278 { ac_try='test -z "$ac_c_werror_flag"
14279 || test ! -s conftest.err'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14282 ac_status=$?
14283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; } &&
14285 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14287 (eval $ac_try) 2>&5
14288 ac_status=$?
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); }; }; then
14291 ac_lo=$ac_mid; break
14292else
14293 echo "$as_me: failed program was:" >&5
14294sed 's/^/| /' conftest.$ac_ext >&5
14295
14296ac_hi=`expr '(' $ac_mid ')' - 1`
eea650d8
VS
14297 if test $ac_mid -le $ac_hi; then
14298 ac_lo= ac_hi=
14299 break
14300 fi
14301 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14302fi
eea650d8 14303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14304 done
14305else
14306 echo "$as_me: failed program was:" >&5
14307sed 's/^/| /' conftest.$ac_ext >&5
14308
14309ac_lo= ac_hi=
14310fi
eea650d8 14311rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14312fi
eea650d8 14313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14314# Binary search between lo and hi bounds.
14315while test "x$ac_lo" != "x$ac_hi"; do
14316 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14317 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14318/* confdefs.h. */
14319_ACEOF
14320cat confdefs.h >>conftest.$ac_ext
14321cat >>conftest.$ac_ext <<_ACEOF
14322/* end confdefs.h. */
14323$ac_includes_default
14324int
14325main ()
14326{
14327static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14328test_array [0] = 0
14329
14330 ;
14331 return 0;
14332}
14333_ACEOF
14334rm -f conftest.$ac_objext
14335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14336 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14337 ac_status=$?
eea650d8
VS
14338 grep -v '^ *+' conftest.er1 >conftest.err
14339 rm -f conftest.er1
14340 cat conftest.err >&5
e6cc62c6
VS
14341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342 (exit $ac_status); } &&
eea650d8
VS
14343 { ac_try='test -z "$ac_c_werror_flag"
14344 || test ! -s conftest.err'
14345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14346 (eval $ac_try) 2>&5
14347 ac_status=$?
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); }; } &&
14350 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14352 (eval $ac_try) 2>&5
14353 ac_status=$?
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); }; }; then
14356 ac_hi=$ac_mid
14357else
14358 echo "$as_me: failed program was:" >&5
14359sed 's/^/| /' conftest.$ac_ext >&5
14360
14361ac_lo=`expr '(' $ac_mid ')' + 1`
14362fi
eea650d8 14363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14364done
14365case $ac_lo in
14366?*) ac_cv_sizeof_char=$ac_lo;;
14367'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14368See \`config.log' for more details." >&5
14369echo "$as_me: error: cannot compute sizeof (char), 77
14370See \`config.log' for more details." >&2;}
14371 { (exit 1); exit 1; }; } ;;
14372esac
14373else
14374 if test "$cross_compiling" = yes; then
14375 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14376See \`config.log' for more details." >&5
14377echo "$as_me: error: cannot run test program while cross compiling
14378See \`config.log' for more details." >&2;}
14379 { (exit 1); exit 1; }; }
14380else
14381 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14382/* confdefs.h. */
14383_ACEOF
14384cat confdefs.h >>conftest.$ac_ext
14385cat >>conftest.$ac_ext <<_ACEOF
14386/* end confdefs.h. */
14387$ac_includes_default
14388long longval () { return (long) (sizeof (char)); }
14389unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 14390#include <stdio.h>
e6cc62c6
VS
14391#include <stdlib.h>
14392int
14393main ()
247f5006 14394{
e6cc62c6
VS
14395
14396 FILE *f = fopen ("conftest.val", "w");
14397 if (! f)
14398 exit (1);
14399 if (((long) (sizeof (char))) < 0)
14400 {
14401 long i = longval ();
14402 if (i != ((long) (sizeof (char))))
14403 exit (1);
14404 fprintf (f, "%ld\n", i);
14405 }
14406 else
14407 {
14408 unsigned long i = ulongval ();
14409 if (i != ((long) (sizeof (char))))
14410 exit (1);
14411 fprintf (f, "%lu\n", i);
14412 }
14413 exit (ferror (f) || fclose (f) != 0);
14414
14415 ;
14416 return 0;
52127426 14417}
e6cc62c6
VS
14418_ACEOF
14419rm -f conftest$ac_exeext
14420if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14421 (eval $ac_link) 2>&5
14422 ac_status=$?
14423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14426 (eval $ac_try) 2>&5
14427 ac_status=$?
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; }; then
14430 ac_cv_sizeof_char=`cat conftest.val`
14431else
14432 echo "$as_me: program exited with status $ac_status" >&5
14433echo "$as_me: failed program was:" >&5
14434sed 's/^/| /' conftest.$ac_ext >&5
14435
14436( exit $ac_status )
14437{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14438See \`config.log' for more details." >&5
14439echo "$as_me: error: cannot compute sizeof (char), 77
14440See \`config.log' for more details." >&2;}
14441 { (exit 1); exit 1; }; }
14442fi
eea650d8 14443rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14444fi
14445fi
14446rm -f conftest.val
247f5006 14447else
a0b9e27f 14448 ac_cv_sizeof_char=0
247f5006 14449fi
247f5006 14450fi
e6cc62c6
VS
14451echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14452echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14453cat >>confdefs.h <<_ACEOF
14454#define SIZEOF_CHAR $ac_cv_sizeof_char
14455_ACEOF
14456
14457
14458echo "$as_me:$LINENO: checking for short" >&5
14459echo $ECHO_N "checking for short... $ECHO_C" >&6
14460if test "${ac_cv_type_short+set}" = set; then
14461 echo $ECHO_N "(cached) $ECHO_C" >&6
14462else
14463 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14464/* confdefs.h. */
14465_ACEOF
14466cat confdefs.h >>conftest.$ac_ext
14467cat >>conftest.$ac_ext <<_ACEOF
14468/* end confdefs.h. */
14469$ac_includes_default
14470int
14471main ()
14472{
14473if ((short *) 0)
14474 return 0;
14475if (sizeof (short))
14476 return 0;
14477 ;
14478 return 0;
14479}
14480_ACEOF
14481rm -f conftest.$ac_objext
14482if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14483 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14484 ac_status=$?
eea650d8
VS
14485 grep -v '^ *+' conftest.er1 >conftest.err
14486 rm -f conftest.er1
14487 cat conftest.err >&5
e6cc62c6
VS
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } &&
eea650d8
VS
14490 { ac_try='test -z "$ac_c_werror_flag"
14491 || test ! -s conftest.err'
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14494 ac_status=$?
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; } &&
14497 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499 (eval $ac_try) 2>&5
14500 ac_status=$?
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; }; then
14503 ac_cv_type_short=yes
14504else
14505 echo "$as_me: failed program was:" >&5
14506sed 's/^/| /' conftest.$ac_ext >&5
14507
14508ac_cv_type_short=no
14509fi
eea650d8 14510rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14511fi
14512echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14513echo "${ECHO_T}$ac_cv_type_short" >&6
14514
14515echo "$as_me:$LINENO: checking size of short" >&5
14516echo $ECHO_N "checking size of short... $ECHO_C" >&6
14517if test "${ac_cv_sizeof_short+set}" = set; then
14518 echo $ECHO_N "(cached) $ECHO_C" >&6
14519else
14520 if test "$ac_cv_type_short" = yes; then
14521 # The cast to unsigned long works around a bug in the HP C Compiler
14522 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14523 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14524 # This bug is HP SR number 8606223364.
14525 if test "$cross_compiling" = yes; then
14526 # Depending upon the size, compute the lo and hi bounds.
14527cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14528/* confdefs.h. */
14529_ACEOF
14530cat confdefs.h >>conftest.$ac_ext
14531cat >>conftest.$ac_ext <<_ACEOF
14532/* end confdefs.h. */
14533$ac_includes_default
14534int
14535main ()
14536{
14537static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14538test_array [0] = 0
247f5006 14539
e6cc62c6
VS
14540 ;
14541 return 0;
14542}
14543_ACEOF
14544rm -f conftest.$ac_objext
14545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14546 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14547 ac_status=$?
eea650d8
VS
14548 grep -v '^ *+' conftest.er1 >conftest.err
14549 rm -f conftest.er1
14550 cat conftest.err >&5
e6cc62c6
VS
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } &&
eea650d8
VS
14553 { ac_try='test -z "$ac_c_werror_flag"
14554 || test ! -s conftest.err'
14555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14556 (eval $ac_try) 2>&5
14557 ac_status=$?
14558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14559 (exit $ac_status); }; } &&
14560 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14563 ac_status=$?
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
14566 ac_lo=0 ac_mid=0
14567 while :; do
14568 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14569/* confdefs.h. */
14570_ACEOF
14571cat confdefs.h >>conftest.$ac_ext
14572cat >>conftest.$ac_ext <<_ACEOF
14573/* end confdefs.h. */
14574$ac_includes_default
14575int
14576main ()
14577{
14578static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14579test_array [0] = 0
14580
14581 ;
14582 return 0;
14583}
14584_ACEOF
14585rm -f conftest.$ac_objext
14586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14587 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14588 ac_status=$?
eea650d8
VS
14589 grep -v '^ *+' conftest.er1 >conftest.err
14590 rm -f conftest.er1
14591 cat conftest.err >&5
e6cc62c6
VS
14592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14593 (exit $ac_status); } &&
eea650d8
VS
14594 { ac_try='test -z "$ac_c_werror_flag"
14595 || test ! -s conftest.err'
14596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14597 (eval $ac_try) 2>&5
14598 ac_status=$?
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); }; } &&
14601 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14603 (eval $ac_try) 2>&5
14604 ac_status=$?
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); }; }; then
14607 ac_hi=$ac_mid; break
14608else
14609 echo "$as_me: failed program was:" >&5
14610sed 's/^/| /' conftest.$ac_ext >&5
14611
14612ac_lo=`expr $ac_mid + 1`
eea650d8
VS
14613 if test $ac_lo -le $ac_mid; then
14614 ac_lo= ac_hi=
14615 break
14616 fi
14617 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14618fi
eea650d8 14619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14620 done
14621else
14622 echo "$as_me: failed program was:" >&5
14623sed 's/^/| /' conftest.$ac_ext >&5
14624
14625cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14626/* confdefs.h. */
14627_ACEOF
14628cat confdefs.h >>conftest.$ac_ext
14629cat >>conftest.$ac_ext <<_ACEOF
14630/* end confdefs.h. */
14631$ac_includes_default
14632int
14633main ()
14634{
14635static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14636test_array [0] = 0
247f5006 14637
e6cc62c6
VS
14638 ;
14639 return 0;
14640}
14641_ACEOF
14642rm -f conftest.$ac_objext
14643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14644 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14645 ac_status=$?
eea650d8
VS
14646 grep -v '^ *+' conftest.er1 >conftest.err
14647 rm -f conftest.er1
14648 cat conftest.err >&5
e6cc62c6
VS
14649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14650 (exit $ac_status); } &&
eea650d8
VS
14651 { ac_try='test -z "$ac_c_werror_flag"
14652 || test ! -s conftest.err'
14653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14655 ac_status=$?
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; } &&
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_hi=-1 ac_mid=-1
14665 while :; do
14666 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14667/* confdefs.h. */
14668_ACEOF
14669cat confdefs.h >>conftest.$ac_ext
14670cat >>conftest.$ac_ext <<_ACEOF
14671/* end confdefs.h. */
14672$ac_includes_default
14673int
14674main ()
14675{
14676static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14677test_array [0] = 0
247f5006 14678
e6cc62c6
VS
14679 ;
14680 return 0;
14681}
14682_ACEOF
14683rm -f conftest.$ac_objext
14684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14685 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14686 ac_status=$?
eea650d8
VS
14687 grep -v '^ *+' conftest.er1 >conftest.err
14688 rm -f conftest.er1
14689 cat conftest.err >&5
e6cc62c6
VS
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); } &&
eea650d8
VS
14692 { ac_try='test -z "$ac_c_werror_flag"
14693 || test ! -s conftest.err'
14694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14695 (eval $ac_try) 2>&5
14696 ac_status=$?
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); }; } &&
14699 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14701 (eval $ac_try) 2>&5
14702 ac_status=$?
14703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14704 (exit $ac_status); }; }; then
14705 ac_lo=$ac_mid; break
14706else
14707 echo "$as_me: failed program was:" >&5
14708sed 's/^/| /' conftest.$ac_ext >&5
14709
14710ac_hi=`expr '(' $ac_mid ')' - 1`
eea650d8
VS
14711 if test $ac_mid -le $ac_hi; then
14712 ac_lo= ac_hi=
14713 break
14714 fi
14715 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14716fi
eea650d8 14717rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14718 done
247f5006 14719else
e6cc62c6
VS
14720 echo "$as_me: failed program was:" >&5
14721sed 's/^/| /' conftest.$ac_ext >&5
14722
14723ac_lo= ac_hi=
14724fi
eea650d8 14725rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14726fi
eea650d8 14727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14728# Binary search between lo and hi bounds.
14729while test "x$ac_lo" != "x$ac_hi"; do
14730 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14731 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14732/* confdefs.h. */
14733_ACEOF
14734cat confdefs.h >>conftest.$ac_ext
14735cat >>conftest.$ac_ext <<_ACEOF
14736/* end confdefs.h. */
14737$ac_includes_default
14738int
14739main ()
14740{
14741static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14742test_array [0] = 0
14743
14744 ;
14745 return 0;
14746}
14747_ACEOF
14748rm -f conftest.$ac_objext
14749if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14750 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14751 ac_status=$?
eea650d8
VS
14752 grep -v '^ *+' conftest.er1 >conftest.err
14753 rm -f conftest.er1
14754 cat conftest.err >&5
e6cc62c6
VS
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); } &&
eea650d8
VS
14757 { ac_try='test -z "$ac_c_werror_flag"
14758 || test ! -s conftest.err'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14761 ac_status=$?
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; } &&
14764 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14766 (eval $ac_try) 2>&5
14767 ac_status=$?
14768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14769 (exit $ac_status); }; }; then
14770 ac_hi=$ac_mid
14771else
14772 echo "$as_me: failed program was:" >&5
14773sed 's/^/| /' conftest.$ac_ext >&5
14774
14775ac_lo=`expr '(' $ac_mid ')' + 1`
14776fi
eea650d8 14777rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14778done
14779case $ac_lo in
14780?*) ac_cv_sizeof_short=$ac_lo;;
14781'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14782See \`config.log' for more details." >&5
14783echo "$as_me: error: cannot compute sizeof (short), 77
14784See \`config.log' for more details." >&2;}
14785 { (exit 1); exit 1; }; } ;;
14786esac
247f5006 14787else
e6cc62c6
VS
14788 if test "$cross_compiling" = yes; then
14789 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14790See \`config.log' for more details." >&5
14791echo "$as_me: error: cannot run test program while cross compiling
14792See \`config.log' for more details." >&2;}
14793 { (exit 1); exit 1; }; }
14794else
14795 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14796/* confdefs.h. */
14797_ACEOF
14798cat confdefs.h >>conftest.$ac_ext
14799cat >>conftest.$ac_ext <<_ACEOF
14800/* end confdefs.h. */
14801$ac_includes_default
14802long longval () { return (long) (sizeof (short)); }
14803unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14804#include <stdio.h>
e6cc62c6
VS
14805#include <stdlib.h>
14806int
14807main ()
a0b9e27f 14808{
e6cc62c6
VS
14809
14810 FILE *f = fopen ("conftest.val", "w");
14811 if (! f)
14812 exit (1);
14813 if (((long) (sizeof (short))) < 0)
14814 {
14815 long i = longval ();
14816 if (i != ((long) (sizeof (short))))
14817 exit (1);
14818 fprintf (f, "%ld\n", i);
14819 }
14820 else
14821 {
14822 unsigned long i = ulongval ();
14823 if (i != ((long) (sizeof (short))))
14824 exit (1);
14825 fprintf (f, "%lu\n", i);
14826 }
14827 exit (ferror (f) || fclose (f) != 0);
14828
14829 ;
14830 return 0;
a0b9e27f 14831}
e6cc62c6
VS
14832_ACEOF
14833rm -f conftest$ac_exeext
14834if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14835 (eval $ac_link) 2>&5
14836 ac_status=$?
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14840 (eval $ac_try) 2>&5
14841 ac_status=$?
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); }; }; then
14844 ac_cv_sizeof_short=`cat conftest.val`
14845else
14846 echo "$as_me: program exited with status $ac_status" >&5
14847echo "$as_me: failed program was:" >&5
14848sed 's/^/| /' conftest.$ac_ext >&5
14849
14850( exit $ac_status )
14851{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14852See \`config.log' for more details." >&5
14853echo "$as_me: error: cannot compute sizeof (short), 77
14854See \`config.log' for more details." >&2;}
14855 { (exit 1); exit 1; }; }
14856fi
eea650d8 14857rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14858fi
14859fi
14860rm -f conftest.val
247f5006 14861else
a0b9e27f 14862 ac_cv_sizeof_short=0
247f5006 14863fi
247f5006 14864fi
e6cc62c6
VS
14865echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14866echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14867cat >>confdefs.h <<_ACEOF
14868#define SIZEOF_SHORT $ac_cv_sizeof_short
14869_ACEOF
14870
14871
14872echo "$as_me:$LINENO: checking for void *" >&5
14873echo $ECHO_N "checking for void *... $ECHO_C" >&6
14874if test "${ac_cv_type_void_p+set}" = set; then
14875 echo $ECHO_N "(cached) $ECHO_C" >&6
14876else
14877 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14878/* confdefs.h. */
14879_ACEOF
14880cat confdefs.h >>conftest.$ac_ext
14881cat >>conftest.$ac_ext <<_ACEOF
14882/* end confdefs.h. */
14883$ac_includes_default
14884int
14885main ()
14886{
14887if ((void * *) 0)
14888 return 0;
14889if (sizeof (void *))
14890 return 0;
14891 ;
14892 return 0;
14893}
14894_ACEOF
14895rm -f conftest.$ac_objext
14896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14897 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14898 ac_status=$?
eea650d8
VS
14899 grep -v '^ *+' conftest.er1 >conftest.err
14900 rm -f conftest.er1
14901 cat conftest.err >&5
e6cc62c6
VS
14902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14903 (exit $ac_status); } &&
eea650d8
VS
14904 { ac_try='test -z "$ac_c_werror_flag"
14905 || test ! -s conftest.err'
14906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14907 (eval $ac_try) 2>&5
14908 ac_status=$?
14909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14910 (exit $ac_status); }; } &&
14911 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14913 (eval $ac_try) 2>&5
14914 ac_status=$?
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; }; then
14917 ac_cv_type_void_p=yes
14918else
14919 echo "$as_me: failed program was:" >&5
14920sed 's/^/| /' conftest.$ac_ext >&5
14921
14922ac_cv_type_void_p=no
14923fi
eea650d8 14924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14925fi
14926echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14927echo "${ECHO_T}$ac_cv_type_void_p" >&6
14928
14929echo "$as_me:$LINENO: checking size of void *" >&5
14930echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14931if test "${ac_cv_sizeof_void_p+set}" = set; then
14932 echo $ECHO_N "(cached) $ECHO_C" >&6
14933else
14934 if test "$ac_cv_type_void_p" = yes; then
14935 # The cast to unsigned long works around a bug in the HP C Compiler
14936 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14937 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14938 # This bug is HP SR number 8606223364.
14939 if test "$cross_compiling" = yes; then
14940 # Depending upon the size, compute the lo and hi bounds.
14941cat >conftest.$ac_ext <<_ACEOF
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{
14951static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14952test_array [0] = 0
14953
14954 ;
14955 return 0;
14956}
14957_ACEOF
14958rm -f conftest.$ac_objext
14959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 14960 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14961 ac_status=$?
eea650d8
VS
14962 grep -v '^ *+' conftest.er1 >conftest.err
14963 rm -f conftest.er1
14964 cat conftest.err >&5
e6cc62c6
VS
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); } &&
eea650d8
VS
14967 { ac_try='test -z "$ac_c_werror_flag"
14968 || test ! -s conftest.err'
14969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14970 (eval $ac_try) 2>&5
14971 ac_status=$?
14972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); }; } &&
14974 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14976 (eval $ac_try) 2>&5
14977 ac_status=$?
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); }; }; then
14980 ac_lo=0 ac_mid=0
14981 while :; do
14982 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14983/* confdefs.h. */
14984_ACEOF
14985cat confdefs.h >>conftest.$ac_ext
14986cat >>conftest.$ac_ext <<_ACEOF
14987/* end confdefs.h. */
14988$ac_includes_default
14989int
14990main ()
14991{
14992static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14993test_array [0] = 0
247f5006 14994
e6cc62c6
VS
14995 ;
14996 return 0;
14997}
14998_ACEOF
14999rm -f conftest.$ac_objext
15000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15001 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15002 ac_status=$?
eea650d8
VS
15003 grep -v '^ *+' conftest.er1 >conftest.err
15004 rm -f conftest.er1
15005 cat conftest.err >&5
e6cc62c6
VS
15006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15007 (exit $ac_status); } &&
eea650d8
VS
15008 { ac_try='test -z "$ac_c_werror_flag"
15009 || test ! -s conftest.err'
15010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15011 (eval $ac_try) 2>&5
15012 ac_status=$?
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); }; } &&
15015 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017 (eval $ac_try) 2>&5
15018 ac_status=$?
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; }; then
15021 ac_hi=$ac_mid; break
15022else
15023 echo "$as_me: failed program was:" >&5
15024sed 's/^/| /' conftest.$ac_ext >&5
15025
15026ac_lo=`expr $ac_mid + 1`
eea650d8
VS
15027 if test $ac_lo -le $ac_mid; then
15028 ac_lo= ac_hi=
15029 break
15030 fi
15031 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 15032fi
eea650d8 15033rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15034 done
15035else
15036 echo "$as_me: failed program was:" >&5
15037sed 's/^/| /' conftest.$ac_ext >&5
15038
15039cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15040/* confdefs.h. */
15041_ACEOF
15042cat confdefs.h >>conftest.$ac_ext
15043cat >>conftest.$ac_ext <<_ACEOF
15044/* end confdefs.h. */
15045$ac_includes_default
15046int
15047main ()
15048{
15049static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15050test_array [0] = 0
247f5006 15051
e6cc62c6
VS
15052 ;
15053 return 0;
15054}
15055_ACEOF
15056rm -f conftest.$ac_objext
15057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15058 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15059 ac_status=$?
eea650d8
VS
15060 grep -v '^ *+' conftest.er1 >conftest.err
15061 rm -f conftest.er1
15062 cat conftest.err >&5
e6cc62c6
VS
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } &&
eea650d8
VS
15065 { ac_try='test -z "$ac_c_werror_flag"
15066 || test ! -s conftest.err'
15067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15068 (eval $ac_try) 2>&5
15069 ac_status=$?
15070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071 (exit $ac_status); }; } &&
15072 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15074 (eval $ac_try) 2>&5
15075 ac_status=$?
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); }; }; then
15078 ac_hi=-1 ac_mid=-1
15079 while :; do
15080 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15081/* confdefs.h. */
15082_ACEOF
15083cat confdefs.h >>conftest.$ac_ext
15084cat >>conftest.$ac_ext <<_ACEOF
15085/* end confdefs.h. */
15086$ac_includes_default
15087int
15088main ()
15089{
15090static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15091test_array [0] = 0
247f5006 15092
e6cc62c6
VS
15093 ;
15094 return 0;
15095}
15096_ACEOF
15097rm -f conftest.$ac_objext
15098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15099 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15100 ac_status=$?
eea650d8
VS
15101 grep -v '^ *+' conftest.er1 >conftest.err
15102 rm -f conftest.er1
15103 cat conftest.err >&5
e6cc62c6
VS
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } &&
eea650d8
VS
15106 { ac_try='test -z "$ac_c_werror_flag"
15107 || test ! -s conftest.err'
15108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109 (eval $ac_try) 2>&5
15110 ac_status=$?
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); }; } &&
15113 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15115 (eval $ac_try) 2>&5
15116 ac_status=$?
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); }; }; then
15119 ac_lo=$ac_mid; break
15120else
15121 echo "$as_me: failed program was:" >&5
15122sed 's/^/| /' conftest.$ac_ext >&5
15123
15124ac_hi=`expr '(' $ac_mid ')' - 1`
eea650d8
VS
15125 if test $ac_mid -le $ac_hi; then
15126 ac_lo= ac_hi=
15127 break
15128 fi
15129 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15130fi
eea650d8 15131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15132 done
a0b9e27f 15133else
e6cc62c6
VS
15134 echo "$as_me: failed program was:" >&5
15135sed 's/^/| /' conftest.$ac_ext >&5
15136
15137ac_lo= ac_hi=
15138fi
eea650d8 15139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15140fi
eea650d8 15141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15142# Binary search between lo and hi bounds.
15143while test "x$ac_lo" != "x$ac_hi"; do
15144 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15145 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15146/* confdefs.h. */
15147_ACEOF
15148cat confdefs.h >>conftest.$ac_ext
15149cat >>conftest.$ac_ext <<_ACEOF
15150/* end confdefs.h. */
15151$ac_includes_default
15152int
15153main ()
15154{
15155static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15156test_array [0] = 0
15157
15158 ;
15159 return 0;
15160}
15161_ACEOF
15162rm -f conftest.$ac_objext
15163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15164 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15165 ac_status=$?
eea650d8
VS
15166 grep -v '^ *+' conftest.er1 >conftest.err
15167 rm -f conftest.er1
15168 cat conftest.err >&5
e6cc62c6
VS
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); } &&
eea650d8
VS
15171 { ac_try='test -z "$ac_c_werror_flag"
15172 || test ! -s conftest.err'
15173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15174 (eval $ac_try) 2>&5
15175 ac_status=$?
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; } &&
15178 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15180 (eval $ac_try) 2>&5
15181 ac_status=$?
15182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); }; }; then
15184 ac_hi=$ac_mid
15185else
15186 echo "$as_me: failed program was:" >&5
15187sed 's/^/| /' conftest.$ac_ext >&5
15188
15189ac_lo=`expr '(' $ac_mid ')' + 1`
15190fi
eea650d8 15191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15192done
15193case $ac_lo in
15194?*) ac_cv_sizeof_void_p=$ac_lo;;
15195'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15196See \`config.log' for more details." >&5
15197echo "$as_me: error: cannot compute sizeof (void *), 77
15198See \`config.log' for more details." >&2;}
15199 { (exit 1); exit 1; }; } ;;
15200esac
247f5006 15201else
e6cc62c6
VS
15202 if test "$cross_compiling" = yes; then
15203 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15204See \`config.log' for more details." >&5
15205echo "$as_me: error: cannot run test program while cross compiling
15206See \`config.log' for more details." >&2;}
15207 { (exit 1); exit 1; }; }
15208else
15209 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15210/* confdefs.h. */
15211_ACEOF
15212cat confdefs.h >>conftest.$ac_ext
15213cat >>conftest.$ac_ext <<_ACEOF
15214/* end confdefs.h. */
15215$ac_includes_default
15216long longval () { return (long) (sizeof (void *)); }
15217unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 15218#include <stdio.h>
e6cc62c6
VS
15219#include <stdlib.h>
15220int
15221main ()
247f5006 15222{
e6cc62c6
VS
15223
15224 FILE *f = fopen ("conftest.val", "w");
15225 if (! f)
15226 exit (1);
15227 if (((long) (sizeof (void *))) < 0)
15228 {
15229 long i = longval ();
15230 if (i != ((long) (sizeof (void *))))
15231 exit (1);
15232 fprintf (f, "%ld\n", i);
15233 }
15234 else
15235 {
15236 unsigned long i = ulongval ();
15237 if (i != ((long) (sizeof (void *))))
15238 exit (1);
15239 fprintf (f, "%lu\n", i);
15240 }
15241 exit (ferror (f) || fclose (f) != 0);
15242
15243 ;
15244 return 0;
5c6fa7d2 15245}
e6cc62c6
VS
15246_ACEOF
15247rm -f conftest$ac_exeext
15248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15249 (eval $ac_link) 2>&5
15250 ac_status=$?
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15254 (eval $ac_try) 2>&5
15255 ac_status=$?
15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15257 (exit $ac_status); }; }; then
15258 ac_cv_sizeof_void_p=`cat conftest.val`
15259else
15260 echo "$as_me: program exited with status $ac_status" >&5
15261echo "$as_me: failed program was:" >&5
15262sed 's/^/| /' conftest.$ac_ext >&5
15263
15264( exit $ac_status )
15265{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15266See \`config.log' for more details." >&5
15267echo "$as_me: error: cannot compute sizeof (void *), 77
15268See \`config.log' for more details." >&2;}
15269 { (exit 1); exit 1; }; }
15270fi
eea650d8 15271rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15272fi
15273fi
15274rm -f conftest.val
a0b9e27f 15275else
a0b9e27f
MB
15276 ac_cv_sizeof_void_p=0
15277fi
a0b9e27f 15278fi
e6cc62c6
VS
15279echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15280echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15281cat >>confdefs.h <<_ACEOF
15282#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15283_ACEOF
15284
15285
15286echo "$as_me:$LINENO: checking for int" >&5
15287echo $ECHO_N "checking for int... $ECHO_C" >&6
15288if test "${ac_cv_type_int+set}" = set; then
15289 echo $ECHO_N "(cached) $ECHO_C" >&6
15290else
15291 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15292/* confdefs.h. */
15293_ACEOF
15294cat confdefs.h >>conftest.$ac_ext
15295cat >>conftest.$ac_ext <<_ACEOF
15296/* end confdefs.h. */
15297$ac_includes_default
15298int
15299main ()
15300{
15301if ((int *) 0)
15302 return 0;
15303if (sizeof (int))
15304 return 0;
15305 ;
15306 return 0;
15307}
15308_ACEOF
15309rm -f conftest.$ac_objext
15310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15311 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15312 ac_status=$?
eea650d8
VS
15313 grep -v '^ *+' conftest.er1 >conftest.err
15314 rm -f conftest.er1
15315 cat conftest.err >&5
e6cc62c6
VS
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } &&
eea650d8
VS
15318 { ac_try='test -z "$ac_c_werror_flag"
15319 || test ! -s conftest.err'
15320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15321 (eval $ac_try) 2>&5
15322 ac_status=$?
15323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15324 (exit $ac_status); }; } &&
15325 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15327 (eval $ac_try) 2>&5
15328 ac_status=$?
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); }; }; then
15331 ac_cv_type_int=yes
15332else
15333 echo "$as_me: failed program was:" >&5
15334sed 's/^/| /' conftest.$ac_ext >&5
15335
15336ac_cv_type_int=no
15337fi
eea650d8 15338rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15339fi
15340echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15341echo "${ECHO_T}$ac_cv_type_int" >&6
15342
15343echo "$as_me:$LINENO: checking size of int" >&5
15344echo $ECHO_N "checking size of int... $ECHO_C" >&6
15345if test "${ac_cv_sizeof_int+set}" = set; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15347else
15348 if test "$ac_cv_type_int" = yes; then
15349 # The cast to unsigned long works around a bug in the HP C Compiler
15350 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15351 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15352 # This bug is HP SR number 8606223364.
15353 if test "$cross_compiling" = yes; then
15354 # Depending upon the size, compute the lo and hi bounds.
15355cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15356/* confdefs.h. */
15357_ACEOF
15358cat confdefs.h >>conftest.$ac_ext
15359cat >>conftest.$ac_ext <<_ACEOF
15360/* end confdefs.h. */
15361$ac_includes_default
15362int
15363main ()
15364{
15365static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15366test_array [0] = 0
8284b0c5 15367
e6cc62c6
VS
15368 ;
15369 return 0;
15370}
15371_ACEOF
15372rm -f conftest.$ac_objext
15373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15374 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15375 ac_status=$?
eea650d8
VS
15376 grep -v '^ *+' conftest.er1 >conftest.err
15377 rm -f conftest.er1
15378 cat conftest.err >&5
e6cc62c6
VS
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); } &&
eea650d8
VS
15381 { ac_try='test -z "$ac_c_werror_flag"
15382 || test ! -s conftest.err'
15383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384 (eval $ac_try) 2>&5
15385 ac_status=$?
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; } &&
15388 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15390 (eval $ac_try) 2>&5
15391 ac_status=$?
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); }; }; then
15394 ac_lo=0 ac_mid=0
15395 while :; do
15396 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15397/* confdefs.h. */
15398_ACEOF
15399cat confdefs.h >>conftest.$ac_ext
15400cat >>conftest.$ac_ext <<_ACEOF
15401/* end confdefs.h. */
15402$ac_includes_default
15403int
15404main ()
15405{
15406static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15407test_array [0] = 0
15408
15409 ;
15410 return 0;
15411}
15412_ACEOF
15413rm -f conftest.$ac_objext
15414if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15415 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15416 ac_status=$?
eea650d8
VS
15417 grep -v '^ *+' conftest.er1 >conftest.err
15418 rm -f conftest.er1
15419 cat conftest.err >&5
e6cc62c6
VS
15420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15421 (exit $ac_status); } &&
eea650d8
VS
15422 { ac_try='test -z "$ac_c_werror_flag"
15423 || test ! -s conftest.err'
15424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15425 (eval $ac_try) 2>&5
15426 ac_status=$?
15427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15428 (exit $ac_status); }; } &&
15429 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15431 (eval $ac_try) 2>&5
15432 ac_status=$?
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); }; }; then
15435 ac_hi=$ac_mid; break
15436else
15437 echo "$as_me: failed program was:" >&5
15438sed 's/^/| /' conftest.$ac_ext >&5
15439
15440ac_lo=`expr $ac_mid + 1`
eea650d8
VS
15441 if test $ac_lo -le $ac_mid; then
15442 ac_lo= ac_hi=
15443 break
15444 fi
15445 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 15446fi
eea650d8 15447rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15448 done
15449else
15450 echo "$as_me: failed program was:" >&5
15451sed 's/^/| /' conftest.$ac_ext >&5
15452
15453cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15454/* confdefs.h. */
15455_ACEOF
15456cat confdefs.h >>conftest.$ac_ext
15457cat >>conftest.$ac_ext <<_ACEOF
15458/* end confdefs.h. */
15459$ac_includes_default
15460int
15461main ()
15462{
15463static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15464test_array [0] = 0
247f5006 15465
e6cc62c6
VS
15466 ;
15467 return 0;
15468}
15469_ACEOF
15470rm -f conftest.$ac_objext
15471if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15472 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15473 ac_status=$?
eea650d8
VS
15474 grep -v '^ *+' conftest.er1 >conftest.err
15475 rm -f conftest.er1
15476 cat conftest.err >&5
e6cc62c6
VS
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } &&
eea650d8
VS
15479 { ac_try='test -z "$ac_c_werror_flag"
15480 || test ! -s conftest.err'
15481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15482 (eval $ac_try) 2>&5
15483 ac_status=$?
15484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15485 (exit $ac_status); }; } &&
15486 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15488 (eval $ac_try) 2>&5
15489 ac_status=$?
15490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491 (exit $ac_status); }; }; then
15492 ac_hi=-1 ac_mid=-1
15493 while :; do
15494 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15495/* confdefs.h. */
15496_ACEOF
15497cat confdefs.h >>conftest.$ac_ext
15498cat >>conftest.$ac_ext <<_ACEOF
15499/* end confdefs.h. */
15500$ac_includes_default
15501int
15502main ()
15503{
15504static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15505test_array [0] = 0
247f5006 15506
e6cc62c6
VS
15507 ;
15508 return 0;
15509}
15510_ACEOF
15511rm -f conftest.$ac_objext
15512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15513 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15514 ac_status=$?
eea650d8
VS
15515 grep -v '^ *+' conftest.er1 >conftest.err
15516 rm -f conftest.er1
15517 cat conftest.err >&5
e6cc62c6
VS
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } &&
eea650d8
VS
15520 { ac_try='test -z "$ac_c_werror_flag"
15521 || test ! -s conftest.err'
15522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15523 (eval $ac_try) 2>&5
15524 ac_status=$?
15525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526 (exit $ac_status); }; } &&
15527 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15529 (eval $ac_try) 2>&5
15530 ac_status=$?
15531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532 (exit $ac_status); }; }; then
15533 ac_lo=$ac_mid; break
15534else
15535 echo "$as_me: failed program was:" >&5
15536sed 's/^/| /' conftest.$ac_ext >&5
15537
15538ac_hi=`expr '(' $ac_mid ')' - 1`
eea650d8
VS
15539 if test $ac_mid -le $ac_hi; then
15540 ac_lo= ac_hi=
15541 break
15542 fi
15543 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15544fi
eea650d8 15545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15546 done
247f5006 15547else
e6cc62c6
VS
15548 echo "$as_me: failed program was:" >&5
15549sed 's/^/| /' conftest.$ac_ext >&5
15550
15551ac_lo= ac_hi=
15552fi
eea650d8 15553rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15554fi
eea650d8 15555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15556# Binary search between lo and hi bounds.
15557while test "x$ac_lo" != "x$ac_hi"; do
15558 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15559 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15560/* confdefs.h. */
15561_ACEOF
15562cat confdefs.h >>conftest.$ac_ext
15563cat >>conftest.$ac_ext <<_ACEOF
15564/* end confdefs.h. */
15565$ac_includes_default
15566int
15567main ()
15568{
15569static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15570test_array [0] = 0
15571
15572 ;
15573 return 0;
15574}
15575_ACEOF
15576rm -f conftest.$ac_objext
15577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15578 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15579 ac_status=$?
eea650d8
VS
15580 grep -v '^ *+' conftest.er1 >conftest.err
15581 rm -f conftest.er1
15582 cat conftest.err >&5
e6cc62c6
VS
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } &&
eea650d8
VS
15585 { ac_try='test -z "$ac_c_werror_flag"
15586 || test ! -s conftest.err'
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15589 ac_status=$?
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; } &&
15592 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15594 (eval $ac_try) 2>&5
15595 ac_status=$?
15596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15597 (exit $ac_status); }; }; then
15598 ac_hi=$ac_mid
15599else
15600 echo "$as_me: failed program was:" >&5
15601sed 's/^/| /' conftest.$ac_ext >&5
15602
15603ac_lo=`expr '(' $ac_mid ')' + 1`
15604fi
eea650d8 15605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15606done
15607case $ac_lo in
15608?*) ac_cv_sizeof_int=$ac_lo;;
15609'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15610See \`config.log' for more details." >&5
15611echo "$as_me: error: cannot compute sizeof (int), 77
15612See \`config.log' for more details." >&2;}
15613 { (exit 1); exit 1; }; } ;;
15614esac
a0b9e27f 15615else
e6cc62c6
VS
15616 if test "$cross_compiling" = yes; then
15617 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15618See \`config.log' for more details." >&5
15619echo "$as_me: error: cannot run test program while cross compiling
15620See \`config.log' for more details." >&2;}
15621 { (exit 1); exit 1; }; }
15622else
15623 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15624/* confdefs.h. */
15625_ACEOF
15626cat confdefs.h >>conftest.$ac_ext
15627cat >>conftest.$ac_ext <<_ACEOF
15628/* end confdefs.h. */
15629$ac_includes_default
15630long longval () { return (long) (sizeof (int)); }
15631unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15632#include <stdio.h>
e6cc62c6
VS
15633#include <stdlib.h>
15634int
15635main ()
247f5006 15636{
e6cc62c6
VS
15637
15638 FILE *f = fopen ("conftest.val", "w");
15639 if (! f)
15640 exit (1);
15641 if (((long) (sizeof (int))) < 0)
15642 {
15643 long i = longval ();
15644 if (i != ((long) (sizeof (int))))
15645 exit (1);
15646 fprintf (f, "%ld\n", i);
15647 }
15648 else
15649 {
15650 unsigned long i = ulongval ();
15651 if (i != ((long) (sizeof (int))))
15652 exit (1);
15653 fprintf (f, "%lu\n", i);
15654 }
15655 exit (ferror (f) || fclose (f) != 0);
15656
15657 ;
15658 return 0;
247f5006 15659}
e6cc62c6
VS
15660_ACEOF
15661rm -f conftest$ac_exeext
15662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15663 (eval $ac_link) 2>&5
15664 ac_status=$?
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15668 (eval $ac_try) 2>&5
15669 ac_status=$?
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); }; }; then
15672 ac_cv_sizeof_int=`cat conftest.val`
15673else
15674 echo "$as_me: program exited with status $ac_status" >&5
15675echo "$as_me: failed program was:" >&5
15676sed 's/^/| /' conftest.$ac_ext >&5
15677
15678( exit $ac_status )
15679{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15680See \`config.log' for more details." >&5
15681echo "$as_me: error: cannot compute sizeof (int), 77
15682See \`config.log' for more details." >&2;}
15683 { (exit 1); exit 1; }; }
15684fi
eea650d8 15685rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15686fi
15687fi
15688rm -f conftest.val
6f72b082 15689else
a0b9e27f 15690 ac_cv_sizeof_int=0
21d1c967 15691fi
698dcdb6 15692fi
e6cc62c6
VS
15693echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15694echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15695cat >>confdefs.h <<_ACEOF
15696#define SIZEOF_INT $ac_cv_sizeof_int
15697_ACEOF
15698
15699
15700echo "$as_me:$LINENO: checking for long" >&5
15701echo $ECHO_N "checking for long... $ECHO_C" >&6
15702if test "${ac_cv_type_long+set}" = set; then
15703 echo $ECHO_N "(cached) $ECHO_C" >&6
15704else
15705 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15706/* confdefs.h. */
15707_ACEOF
15708cat confdefs.h >>conftest.$ac_ext
15709cat >>conftest.$ac_ext <<_ACEOF
15710/* end confdefs.h. */
15711$ac_includes_default
15712int
15713main ()
15714{
15715if ((long *) 0)
15716 return 0;
15717if (sizeof (long))
15718 return 0;
15719 ;
15720 return 0;
15721}
15722_ACEOF
15723rm -f conftest.$ac_objext
15724if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15725 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15726 ac_status=$?
eea650d8
VS
15727 grep -v '^ *+' conftest.er1 >conftest.err
15728 rm -f conftest.er1
15729 cat conftest.err >&5
e6cc62c6
VS
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } &&
eea650d8
VS
15732 { ac_try='test -z "$ac_c_werror_flag"
15733 || test ! -s conftest.err'
15734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15735 (eval $ac_try) 2>&5
15736 ac_status=$?
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); }; } &&
15739 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741 (eval $ac_try) 2>&5
15742 ac_status=$?
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; }; then
15745 ac_cv_type_long=yes
15746else
15747 echo "$as_me: failed program was:" >&5
15748sed 's/^/| /' conftest.$ac_ext >&5
15749
15750ac_cv_type_long=no
15751fi
eea650d8 15752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15753fi
15754echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15755echo "${ECHO_T}$ac_cv_type_long" >&6
15756
15757echo "$as_me:$LINENO: checking size of long" >&5
15758echo $ECHO_N "checking size of long... $ECHO_C" >&6
15759if test "${ac_cv_sizeof_long+set}" = set; then
15760 echo $ECHO_N "(cached) $ECHO_C" >&6
15761else
15762 if test "$ac_cv_type_long" = yes; then
15763 # The cast to unsigned long works around a bug in the HP C Compiler
15764 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15765 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15766 # This bug is HP SR number 8606223364.
15767 if test "$cross_compiling" = yes; then
15768 # Depending upon the size, compute the lo and hi bounds.
15769cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15770/* confdefs.h. */
15771_ACEOF
15772cat confdefs.h >>conftest.$ac_ext
15773cat >>conftest.$ac_ext <<_ACEOF
15774/* end confdefs.h. */
15775$ac_includes_default
15776int
15777main ()
15778{
15779static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15780test_array [0] = 0
15781
15782 ;
15783 return 0;
15784}
15785_ACEOF
15786rm -f conftest.$ac_objext
15787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15788 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15789 ac_status=$?
eea650d8
VS
15790 grep -v '^ *+' conftest.er1 >conftest.err
15791 rm -f conftest.er1
15792 cat conftest.err >&5
e6cc62c6
VS
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
eea650d8
VS
15795 { ac_try='test -z "$ac_c_werror_flag"
15796 || test ! -s conftest.err'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15799 ac_status=$?
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; } &&
15802 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15804 (eval $ac_try) 2>&5
15805 ac_status=$?
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; }; then
15808 ac_lo=0 ac_mid=0
15809 while :; do
15810 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15811/* confdefs.h. */
15812_ACEOF
15813cat confdefs.h >>conftest.$ac_ext
15814cat >>conftest.$ac_ext <<_ACEOF
15815/* end confdefs.h. */
15816$ac_includes_default
15817int
15818main ()
15819{
15820static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15821test_array [0] = 0
4f14bcd8 15822
e6cc62c6
VS
15823 ;
15824 return 0;
15825}
15826_ACEOF
15827rm -f conftest.$ac_objext
15828if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15829 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15830 ac_status=$?
eea650d8
VS
15831 grep -v '^ *+' conftest.er1 >conftest.err
15832 rm -f conftest.er1
15833 cat conftest.err >&5
e6cc62c6
VS
15834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835 (exit $ac_status); } &&
eea650d8
VS
15836 { ac_try='test -z "$ac_c_werror_flag"
15837 || test ! -s conftest.err'
15838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15839 (eval $ac_try) 2>&5
15840 ac_status=$?
15841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15842 (exit $ac_status); }; } &&
15843 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15845 (eval $ac_try) 2>&5
15846 ac_status=$?
15847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15848 (exit $ac_status); }; }; then
15849 ac_hi=$ac_mid; break
15850else
15851 echo "$as_me: failed program was:" >&5
15852sed 's/^/| /' conftest.$ac_ext >&5
15853
15854ac_lo=`expr $ac_mid + 1`
eea650d8
VS
15855 if test $ac_lo -le $ac_mid; then
15856 ac_lo= ac_hi=
15857 break
15858 fi
15859 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15860fi
eea650d8 15861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15862 done
15863else
15864 echo "$as_me: failed program was:" >&5
15865sed 's/^/| /' conftest.$ac_ext >&5
15866
15867cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15868/* confdefs.h. */
15869_ACEOF
15870cat confdefs.h >>conftest.$ac_ext
15871cat >>conftest.$ac_ext <<_ACEOF
15872/* end confdefs.h. */
15873$ac_includes_default
15874int
15875main ()
15876{
15877static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15878test_array [0] = 0
4f14bcd8 15879
e6cc62c6
VS
15880 ;
15881 return 0;
15882}
15883_ACEOF
15884rm -f conftest.$ac_objext
15885if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15886 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15887 ac_status=$?
eea650d8
VS
15888 grep -v '^ *+' conftest.er1 >conftest.err
15889 rm -f conftest.er1
15890 cat conftest.err >&5
e6cc62c6
VS
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } &&
eea650d8
VS
15893 { ac_try='test -z "$ac_c_werror_flag"
15894 || test ! -s conftest.err'
15895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896 (eval $ac_try) 2>&5
15897 ac_status=$?
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); }; } &&
15900 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15903 ac_status=$?
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; }; then
15906 ac_hi=-1 ac_mid=-1
15907 while :; do
15908 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15909/* confdefs.h. */
15910_ACEOF
15911cat confdefs.h >>conftest.$ac_ext
15912cat >>conftest.$ac_ext <<_ACEOF
15913/* end confdefs.h. */
15914$ac_includes_default
15915int
15916main ()
15917{
15918static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15919test_array [0] = 0
5c6fa7d2 15920
e6cc62c6
VS
15921 ;
15922 return 0;
15923}
15924_ACEOF
15925rm -f conftest.$ac_objext
15926if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15927 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15928 ac_status=$?
eea650d8
VS
15929 grep -v '^ *+' conftest.er1 >conftest.err
15930 rm -f conftest.er1
15931 cat conftest.err >&5
e6cc62c6
VS
15932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15933 (exit $ac_status); } &&
eea650d8
VS
15934 { ac_try='test -z "$ac_c_werror_flag"
15935 || test ! -s conftest.err'
15936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15937 (eval $ac_try) 2>&5
15938 ac_status=$?
15939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15940 (exit $ac_status); }; } &&
15941 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943 (eval $ac_try) 2>&5
15944 ac_status=$?
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; }; then
15947 ac_lo=$ac_mid; break
15948else
15949 echo "$as_me: failed program was:" >&5
15950sed 's/^/| /' conftest.$ac_ext >&5
15951
15952ac_hi=`expr '(' $ac_mid ')' - 1`
eea650d8
VS
15953 if test $ac_mid -le $ac_hi; then
15954 ac_lo= ac_hi=
15955 break
15956 fi
15957 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15958fi
eea650d8 15959rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15960 done
247f5006 15961else
e6cc62c6
VS
15962 echo "$as_me: failed program was:" >&5
15963sed 's/^/| /' conftest.$ac_ext >&5
15964
15965ac_lo= ac_hi=
15966fi
eea650d8 15967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15968fi
eea650d8 15969rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15970# Binary search between lo and hi bounds.
15971while test "x$ac_lo" != "x$ac_hi"; do
15972 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15973 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15974/* confdefs.h. */
15975_ACEOF
15976cat confdefs.h >>conftest.$ac_ext
15977cat >>conftest.$ac_ext <<_ACEOF
15978/* end confdefs.h. */
15979$ac_includes_default
15980int
15981main ()
15982{
15983static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15984test_array [0] = 0
15985
15986 ;
15987 return 0;
15988}
15989_ACEOF
15990rm -f conftest.$ac_objext
15991if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 15992 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15993 ac_status=$?
eea650d8
VS
15994 grep -v '^ *+' conftest.er1 >conftest.err
15995 rm -f conftest.er1
15996 cat conftest.err >&5
e6cc62c6
VS
15997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15998 (exit $ac_status); } &&
eea650d8
VS
15999 { ac_try='test -z "$ac_c_werror_flag"
16000 || test ! -s conftest.err'
16001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16002 (eval $ac_try) 2>&5
16003 ac_status=$?
16004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16005 (exit $ac_status); }; } &&
16006 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16008 (eval $ac_try) 2>&5
16009 ac_status=$?
16010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16011 (exit $ac_status); }; }; then
16012 ac_hi=$ac_mid
16013else
16014 echo "$as_me: failed program was:" >&5
16015sed 's/^/| /' conftest.$ac_ext >&5
16016
16017ac_lo=`expr '(' $ac_mid ')' + 1`
16018fi
eea650d8 16019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16020done
16021case $ac_lo in
16022?*) ac_cv_sizeof_long=$ac_lo;;
16023'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16024See \`config.log' for more details." >&5
16025echo "$as_me: error: cannot compute sizeof (long), 77
16026See \`config.log' for more details." >&2;}
16027 { (exit 1); exit 1; }; } ;;
16028esac
247f5006 16029else
e6cc62c6
VS
16030 if test "$cross_compiling" = yes; then
16031 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16032See \`config.log' for more details." >&5
16033echo "$as_me: error: cannot run test program while cross compiling
16034See \`config.log' for more details." >&2;}
16035 { (exit 1); exit 1; }; }
16036else
16037 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16038/* confdefs.h. */
16039_ACEOF
16040cat confdefs.h >>conftest.$ac_ext
16041cat >>conftest.$ac_ext <<_ACEOF
16042/* end confdefs.h. */
16043$ac_includes_default
16044long longval () { return (long) (sizeof (long)); }
16045unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 16046#include <stdio.h>
e6cc62c6
VS
16047#include <stdlib.h>
16048int
16049main ()
247f5006 16050{
e6cc62c6
VS
16051
16052 FILE *f = fopen ("conftest.val", "w");
16053 if (! f)
16054 exit (1);
16055 if (((long) (sizeof (long))) < 0)
16056 {
16057 long i = longval ();
16058 if (i != ((long) (sizeof (long))))
16059 exit (1);
16060 fprintf (f, "%ld\n", i);
16061 }
16062 else
16063 {
16064 unsigned long i = ulongval ();
16065 if (i != ((long) (sizeof (long))))
16066 exit (1);
16067 fprintf (f, "%lu\n", i);
16068 }
16069 exit (ferror (f) || fclose (f) != 0);
16070
16071 ;
16072 return 0;
247f5006 16073}
e6cc62c6
VS
16074_ACEOF
16075rm -f conftest$ac_exeext
16076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16077 (eval $ac_link) 2>&5
16078 ac_status=$?
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16082 (eval $ac_try) 2>&5
16083 ac_status=$?
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; }; then
16086 ac_cv_sizeof_long=`cat conftest.val`
16087else
16088 echo "$as_me: program exited with status $ac_status" >&5
16089echo "$as_me: failed program was:" >&5
16090sed 's/^/| /' conftest.$ac_ext >&5
16091
16092( exit $ac_status )
16093{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16094See \`config.log' for more details." >&5
16095echo "$as_me: error: cannot compute sizeof (long), 77
16096See \`config.log' for more details." >&2;}
16097 { (exit 1); exit 1; }; }
16098fi
eea650d8 16099rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16100fi
16101fi
16102rm -f conftest.val
247f5006 16103else
a0b9e27f 16104 ac_cv_sizeof_long=0
247f5006 16105fi
247f5006 16106fi
e6cc62c6
VS
16107echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16108echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16109cat >>confdefs.h <<_ACEOF
a0b9e27f 16110#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 16111_ACEOF
247f5006 16112
a0b9e27f
MB
16113
16114
16115case "${host}" in
16116 arm-*-linux* )
e6cc62c6
VS
16117 echo "$as_me:$LINENO: checking for long long" >&5
16118echo $ECHO_N "checking for long long... $ECHO_C" >&6
16119if test "${ac_cv_type_long_long+set}" = set; then
16120 echo $ECHO_N "(cached) $ECHO_C" >&6
16121else
16122 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16123/* confdefs.h. */
16124_ACEOF
16125cat confdefs.h >>conftest.$ac_ext
16126cat >>conftest.$ac_ext <<_ACEOF
16127/* end confdefs.h. */
16128$ac_includes_default
16129int
16130main ()
16131{
16132if ((long long *) 0)
16133 return 0;
16134if (sizeof (long long))
16135 return 0;
16136 ;
16137 return 0;
16138}
16139_ACEOF
16140rm -f conftest.$ac_objext
16141if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16142 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16143 ac_status=$?
eea650d8
VS
16144 grep -v '^ *+' conftest.er1 >conftest.err
16145 rm -f conftest.er1
16146 cat conftest.err >&5
e6cc62c6
VS
16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16148 (exit $ac_status); } &&
eea650d8
VS
16149 { ac_try='test -z "$ac_c_werror_flag"
16150 || test ! -s conftest.err'
16151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16152 (eval $ac_try) 2>&5
16153 ac_status=$?
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); }; } &&
16156 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16158 (eval $ac_try) 2>&5
16159 ac_status=$?
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); }; }; then
16162 ac_cv_type_long_long=yes
16163else
16164 echo "$as_me: failed program was:" >&5
16165sed 's/^/| /' conftest.$ac_ext >&5
16166
16167ac_cv_type_long_long=no
16168fi
eea650d8 16169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16170fi
16171echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16172echo "${ECHO_T}$ac_cv_type_long_long" >&6
16173
16174echo "$as_me:$LINENO: checking size of long long" >&5
16175echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16176if test "${ac_cv_sizeof_long_long+set}" = set; then
16177 echo $ECHO_N "(cached) $ECHO_C" >&6
16178else
16179 if test "$ac_cv_type_long_long" = yes; then
16180 # The cast to unsigned long works around a bug in the HP C Compiler
16181 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16182 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16183 # This bug is HP SR number 8606223364.
a0b9e27f 16184 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16185 # Depending upon the size, compute the lo and hi bounds.
16186cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16187/* confdefs.h. */
16188_ACEOF
16189cat confdefs.h >>conftest.$ac_ext
16190cat >>conftest.$ac_ext <<_ACEOF
16191/* end confdefs.h. */
16192$ac_includes_default
16193int
16194main ()
16195{
16196static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16197test_array [0] = 0
16198
16199 ;
16200 return 0;
16201}
16202_ACEOF
16203rm -f conftest.$ac_objext
16204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16205 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16206 ac_status=$?
eea650d8
VS
16207 grep -v '^ *+' conftest.er1 >conftest.err
16208 rm -f conftest.er1
16209 cat conftest.err >&5
e6cc62c6
VS
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } &&
eea650d8
VS
16212 { ac_try='test -z "$ac_c_werror_flag"
16213 || test ! -s conftest.err'
16214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16215 (eval $ac_try) 2>&5
16216 ac_status=$?
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; } &&
16219 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221 (eval $ac_try) 2>&5
16222 ac_status=$?
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); }; }; then
16225 ac_lo=0 ac_mid=0
16226 while :; do
16227 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16228/* confdefs.h. */
16229_ACEOF
16230cat confdefs.h >>conftest.$ac_ext
16231cat >>conftest.$ac_ext <<_ACEOF
16232/* end confdefs.h. */
16233$ac_includes_default
16234int
16235main ()
16236{
16237static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16238test_array [0] = 0
16239
16240 ;
16241 return 0;
16242}
16243_ACEOF
16244rm -f conftest.$ac_objext
16245if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16246 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16247 ac_status=$?
eea650d8
VS
16248 grep -v '^ *+' conftest.er1 >conftest.err
16249 rm -f conftest.er1
16250 cat conftest.err >&5
e6cc62c6
VS
16251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16252 (exit $ac_status); } &&
eea650d8
VS
16253 { ac_try='test -z "$ac_c_werror_flag"
16254 || test ! -s conftest.err'
16255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16256 (eval $ac_try) 2>&5
16257 ac_status=$?
16258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16259 (exit $ac_status); }; } &&
16260 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16262 (eval $ac_try) 2>&5
16263 ac_status=$?
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); }; }; then
16266 ac_hi=$ac_mid; break
16267else
16268 echo "$as_me: failed program was:" >&5
16269sed 's/^/| /' conftest.$ac_ext >&5
16270
16271ac_lo=`expr $ac_mid + 1`
eea650d8
VS
16272 if test $ac_lo -le $ac_mid; then
16273 ac_lo= ac_hi=
16274 break
16275 fi
16276 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 16277fi
eea650d8 16278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16279 done
16280else
16281 echo "$as_me: failed program was:" >&5
16282sed 's/^/| /' conftest.$ac_ext >&5
16283
16284cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16285/* confdefs.h. */
16286_ACEOF
16287cat confdefs.h >>conftest.$ac_ext
16288cat >>conftest.$ac_ext <<_ACEOF
16289/* end confdefs.h. */
16290$ac_includes_default
16291int
16292main ()
16293{
16294static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16295test_array [0] = 0
16296
16297 ;
16298 return 0;
16299}
16300_ACEOF
16301rm -f conftest.$ac_objext
16302if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16303 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16304 ac_status=$?
eea650d8
VS
16305 grep -v '^ *+' conftest.er1 >conftest.err
16306 rm -f conftest.er1
16307 cat conftest.err >&5
e6cc62c6
VS
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } &&
eea650d8
VS
16310 { ac_try='test -z "$ac_c_werror_flag"
16311 || test ! -s conftest.err'
16312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16313 (eval $ac_try) 2>&5
16314 ac_status=$?
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; } &&
16317 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319 (eval $ac_try) 2>&5
16320 ac_status=$?
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); }; }; then
16323 ac_hi=-1 ac_mid=-1
16324 while :; do
16325 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16326/* confdefs.h. */
16327_ACEOF
16328cat confdefs.h >>conftest.$ac_ext
16329cat >>conftest.$ac_ext <<_ACEOF
16330/* end confdefs.h. */
16331$ac_includes_default
16332int
16333main ()
16334{
16335static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16336test_array [0] = 0
16337
16338 ;
16339 return 0;
16340}
16341_ACEOF
16342rm -f conftest.$ac_objext
16343if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16344 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16345 ac_status=$?
eea650d8
VS
16346 grep -v '^ *+' conftest.er1 >conftest.err
16347 rm -f conftest.er1
16348 cat conftest.err >&5
e6cc62c6
VS
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } &&
eea650d8
VS
16351 { ac_try='test -z "$ac_c_werror_flag"
16352 || test ! -s conftest.err'
16353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16354 (eval $ac_try) 2>&5
16355 ac_status=$?
16356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16357 (exit $ac_status); }; } &&
16358 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16360 (eval $ac_try) 2>&5
16361 ac_status=$?
16362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16363 (exit $ac_status); }; }; then
16364 ac_lo=$ac_mid; break
16365else
16366 echo "$as_me: failed program was:" >&5
16367sed 's/^/| /' conftest.$ac_ext >&5
16368
16369ac_hi=`expr '(' $ac_mid ')' - 1`
eea650d8
VS
16370 if test $ac_mid -le $ac_hi; then
16371 ac_lo= ac_hi=
16372 break
16373 fi
16374 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16375fi
eea650d8 16376rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16377 done
16378else
16379 echo "$as_me: failed program was:" >&5
16380sed 's/^/| /' conftest.$ac_ext >&5
16381
16382ac_lo= ac_hi=
16383fi
eea650d8 16384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16385fi
eea650d8 16386rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16387# Binary search between lo and hi bounds.
16388while test "x$ac_lo" != "x$ac_hi"; do
16389 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16390 cat >conftest.$ac_ext <<_ACEOF
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{
16400static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16401test_array [0] = 0
16402
16403 ;
16404 return 0;
16405}
16406_ACEOF
16407rm -f conftest.$ac_objext
16408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16409 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16410 ac_status=$?
eea650d8
VS
16411 grep -v '^ *+' conftest.er1 >conftest.err
16412 rm -f conftest.er1
16413 cat conftest.err >&5
e6cc62c6
VS
16414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415 (exit $ac_status); } &&
eea650d8
VS
16416 { ac_try='test -z "$ac_c_werror_flag"
16417 || test ! -s conftest.err'
16418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16419 (eval $ac_try) 2>&5
16420 ac_status=$?
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); }; } &&
16423 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16425 (eval $ac_try) 2>&5
16426 ac_status=$?
16427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428 (exit $ac_status); }; }; then
16429 ac_hi=$ac_mid
16430else
16431 echo "$as_me: failed program was:" >&5
16432sed 's/^/| /' conftest.$ac_ext >&5
16433
16434ac_lo=`expr '(' $ac_mid ')' + 1`
16435fi
eea650d8 16436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16437done
16438case $ac_lo in
16439?*) ac_cv_sizeof_long_long=$ac_lo;;
16440'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16441See \`config.log' for more details." >&5
16442echo "$as_me: error: cannot compute sizeof (long long), 77
16443See \`config.log' for more details." >&2;}
16444 { (exit 1); exit 1; }; } ;;
16445esac
a0b9e27f 16446else
e6cc62c6
VS
16447 if test "$cross_compiling" = yes; then
16448 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16449See \`config.log' for more details." >&5
16450echo "$as_me: error: cannot run test program while cross compiling
16451See \`config.log' for more details." >&2;}
16452 { (exit 1); exit 1; }; }
16453else
16454 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16455/* confdefs.h. */
16456_ACEOF
16457cat confdefs.h >>conftest.$ac_ext
16458cat >>conftest.$ac_ext <<_ACEOF
16459/* end confdefs.h. */
16460$ac_includes_default
16461long longval () { return (long) (sizeof (long long)); }
16462unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 16463#include <stdio.h>
e6cc62c6
VS
16464#include <stdlib.h>
16465int
16466main ()
247f5006 16467{
e6cc62c6
VS
16468
16469 FILE *f = fopen ("conftest.val", "w");
16470 if (! f)
16471 exit (1);
16472 if (((long) (sizeof (long long))) < 0)
16473 {
16474 long i = longval ();
16475 if (i != ((long) (sizeof (long long))))
16476 exit (1);
16477 fprintf (f, "%ld\n", i);
16478 }
16479 else
16480 {
16481 unsigned long i = ulongval ();
16482 if (i != ((long) (sizeof (long long))))
16483 exit (1);
16484 fprintf (f, "%lu\n", i);
16485 }
16486 exit (ferror (f) || fclose (f) != 0);
16487
16488 ;
16489 return 0;
247f5006 16490}
e6cc62c6
VS
16491_ACEOF
16492rm -f conftest$ac_exeext
16493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16494 (eval $ac_link) 2>&5
16495 ac_status=$?
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16499 (eval $ac_try) 2>&5
16500 ac_status=$?
16501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16502 (exit $ac_status); }; }; then
16503 ac_cv_sizeof_long_long=`cat conftest.val`
16504else
16505 echo "$as_me: program exited with status $ac_status" >&5
16506echo "$as_me: failed program was:" >&5
16507sed 's/^/| /' conftest.$ac_ext >&5
16508
16509( exit $ac_status )
16510{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16511See \`config.log' for more details." >&5
16512echo "$as_me: error: cannot compute sizeof (long long), 77
16513See \`config.log' for more details." >&2;}
16514 { (exit 1); exit 1; }; }
16515fi
eea650d8 16516rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16517fi
16518fi
16519rm -f conftest.val
7b4a847f 16520else
a0b9e27f 16521 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
16522fi
16523fi
e6cc62c6
VS
16524echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16525echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16526cat >>confdefs.h <<_ACEOF
16527#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16528_ACEOF
16529
16530
16531 ;;
16532 *-hp-hpux* )
16533 echo "$as_me:$LINENO: checking for long long" >&5
16534echo $ECHO_N "checking for long long... $ECHO_C" >&6
16535if test "${ac_cv_type_long_long+set}" = set; then
16536 echo $ECHO_N "(cached) $ECHO_C" >&6
16537else
16538 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16539/* confdefs.h. */
16540_ACEOF
16541cat confdefs.h >>conftest.$ac_ext
16542cat >>conftest.$ac_ext <<_ACEOF
16543/* end confdefs.h. */
16544$ac_includes_default
16545int
16546main ()
16547{
16548if ((long long *) 0)
16549 return 0;
16550if (sizeof (long long))
16551 return 0;
16552 ;
16553 return 0;
16554}
16555_ACEOF
16556rm -f conftest.$ac_objext
16557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16558 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16559 ac_status=$?
eea650d8
VS
16560 grep -v '^ *+' conftest.er1 >conftest.err
16561 rm -f conftest.er1
16562 cat conftest.err >&5
e6cc62c6
VS
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); } &&
eea650d8
VS
16565 { ac_try='test -z "$ac_c_werror_flag"
16566 || test ! -s conftest.err'
16567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16568 (eval $ac_try) 2>&5
16569 ac_status=$?
16570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16571 (exit $ac_status); }; } &&
16572 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16574 (eval $ac_try) 2>&5
16575 ac_status=$?
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); }; }; then
16578 ac_cv_type_long_long=yes
16579else
16580 echo "$as_me: failed program was:" >&5
16581sed 's/^/| /' conftest.$ac_ext >&5
16582
16583ac_cv_type_long_long=no
16584fi
eea650d8 16585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16586fi
16587echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16588echo "${ECHO_T}$ac_cv_type_long_long" >&6
16589
16590echo "$as_me:$LINENO: checking size of long long" >&5
16591echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16592if test "${ac_cv_sizeof_long_long+set}" = set; then
16593 echo $ECHO_N "(cached) $ECHO_C" >&6
16594else
16595 if test "$ac_cv_type_long_long" = yes; then
16596 # The cast to unsigned long works around a bug in the HP C Compiler
16597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16599 # This bug is HP SR number 8606223364.
16600 if test "$cross_compiling" = yes; then
16601 # Depending upon the size, compute the lo and hi bounds.
16602cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16603/* confdefs.h. */
16604_ACEOF
16605cat confdefs.h >>conftest.$ac_ext
16606cat >>conftest.$ac_ext <<_ACEOF
16607/* end confdefs.h. */
16608$ac_includes_default
16609int
16610main ()
16611{
16612static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16613test_array [0] = 0
16614
16615 ;
16616 return 0;
16617}
16618_ACEOF
16619rm -f conftest.$ac_objext
16620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16621 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16622 ac_status=$?
eea650d8
VS
16623 grep -v '^ *+' conftest.er1 >conftest.err
16624 rm -f conftest.er1
16625 cat conftest.err >&5
e6cc62c6
VS
16626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16627 (exit $ac_status); } &&
eea650d8
VS
16628 { ac_try='test -z "$ac_c_werror_flag"
16629 || test ! -s conftest.err'
16630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16631 (eval $ac_try) 2>&5
16632 ac_status=$?
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); }; } &&
16635 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16637 (eval $ac_try) 2>&5
16638 ac_status=$?
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); }; }; then
16641 ac_lo=0 ac_mid=0
16642 while :; do
16643 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16644/* confdefs.h. */
16645_ACEOF
16646cat confdefs.h >>conftest.$ac_ext
16647cat >>conftest.$ac_ext <<_ACEOF
16648/* end confdefs.h. */
16649$ac_includes_default
16650int
16651main ()
16652{
16653static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16654test_array [0] = 0
8284b0c5 16655
e6cc62c6
VS
16656 ;
16657 return 0;
16658}
16659_ACEOF
16660rm -f conftest.$ac_objext
16661if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16662 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16663 ac_status=$?
eea650d8
VS
16664 grep -v '^ *+' conftest.er1 >conftest.err
16665 rm -f conftest.er1
16666 cat conftest.err >&5
e6cc62c6
VS
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); } &&
eea650d8
VS
16669 { ac_try='test -z "$ac_c_werror_flag"
16670 || test ! -s conftest.err'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16673 ac_status=$?
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; } &&
16676 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678 (eval $ac_try) 2>&5
16679 ac_status=$?
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; }; then
16682 ac_hi=$ac_mid; break
16683else
16684 echo "$as_me: failed program was:" >&5
16685sed 's/^/| /' conftest.$ac_ext >&5
16686
16687ac_lo=`expr $ac_mid + 1`
eea650d8
VS
16688 if test $ac_lo -le $ac_mid; then
16689 ac_lo= ac_hi=
16690 break
16691 fi
16692 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 16693fi
eea650d8 16694rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16695 done
16696else
16697 echo "$as_me: failed program was:" >&5
16698sed 's/^/| /' conftest.$ac_ext >&5
16699
16700cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16701/* confdefs.h. */
16702_ACEOF
16703cat confdefs.h >>conftest.$ac_ext
16704cat >>conftest.$ac_ext <<_ACEOF
16705/* end confdefs.h. */
16706$ac_includes_default
16707int
16708main ()
16709{
16710static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16711test_array [0] = 0
a0b9e27f 16712
e6cc62c6
VS
16713 ;
16714 return 0;
16715}
16716_ACEOF
16717rm -f conftest.$ac_objext
16718if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16719 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16720 ac_status=$?
eea650d8
VS
16721 grep -v '^ *+' conftest.er1 >conftest.err
16722 rm -f conftest.er1
16723 cat conftest.err >&5
e6cc62c6
VS
16724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16725 (exit $ac_status); } &&
eea650d8
VS
16726 { ac_try='test -z "$ac_c_werror_flag"
16727 || test ! -s conftest.err'
16728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16729 (eval $ac_try) 2>&5
16730 ac_status=$?
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; } &&
16733 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16735 (eval $ac_try) 2>&5
16736 ac_status=$?
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); }; }; then
16739 ac_hi=-1 ac_mid=-1
16740 while :; do
16741 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16742/* confdefs.h. */
16743_ACEOF
16744cat confdefs.h >>conftest.$ac_ext
16745cat >>conftest.$ac_ext <<_ACEOF
16746/* end confdefs.h. */
16747$ac_includes_default
16748int
16749main ()
16750{
16751static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16752test_array [0] = 0
a0b9e27f 16753
e6cc62c6
VS
16754 ;
16755 return 0;
16756}
16757_ACEOF
16758rm -f conftest.$ac_objext
16759if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16760 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16761 ac_status=$?
eea650d8
VS
16762 grep -v '^ *+' conftest.er1 >conftest.err
16763 rm -f conftest.er1
16764 cat conftest.err >&5
e6cc62c6
VS
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } &&
eea650d8
VS
16767 { ac_try='test -z "$ac_c_werror_flag"
16768 || test ! -s conftest.err'
16769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16770 (eval $ac_try) 2>&5
16771 ac_status=$?
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; } &&
16774 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16776 (eval $ac_try) 2>&5
16777 ac_status=$?
16778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779 (exit $ac_status); }; }; then
16780 ac_lo=$ac_mid; break
16781else
16782 echo "$as_me: failed program was:" >&5
16783sed 's/^/| /' conftest.$ac_ext >&5
16784
16785ac_hi=`expr '(' $ac_mid ')' - 1`
eea650d8
VS
16786 if test $ac_mid -le $ac_hi; then
16787 ac_lo= ac_hi=
16788 break
16789 fi
16790 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16791fi
eea650d8 16792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16793 done
8284b0c5 16794else
e6cc62c6
VS
16795 echo "$as_me: failed program was:" >&5
16796sed 's/^/| /' conftest.$ac_ext >&5
16797
16798ac_lo= ac_hi=
16799fi
eea650d8 16800rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16801fi
eea650d8 16802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16803# Binary search between lo and hi bounds.
16804while test "x$ac_lo" != "x$ac_hi"; do
16805 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16806 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16807/* confdefs.h. */
16808_ACEOF
16809cat confdefs.h >>conftest.$ac_ext
16810cat >>conftest.$ac_ext <<_ACEOF
16811/* end confdefs.h. */
16812$ac_includes_default
16813int
16814main ()
16815{
16816static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16817test_array [0] = 0
16818
16819 ;
16820 return 0;
16821}
16822_ACEOF
16823rm -f conftest.$ac_objext
16824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16825 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16826 ac_status=$?
eea650d8
VS
16827 grep -v '^ *+' conftest.er1 >conftest.err
16828 rm -f conftest.er1
16829 cat conftest.err >&5
e6cc62c6
VS
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); } &&
eea650d8
VS
16832 { ac_try='test -z "$ac_c_werror_flag"
16833 || test ! -s conftest.err'
16834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16835 (eval $ac_try) 2>&5
16836 ac_status=$?
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }; } &&
16839 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16841 (eval $ac_try) 2>&5
16842 ac_status=$?
16843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16844 (exit $ac_status); }; }; then
16845 ac_hi=$ac_mid
16846else
16847 echo "$as_me: failed program was:" >&5
16848sed 's/^/| /' conftest.$ac_ext >&5
16849
16850ac_lo=`expr '(' $ac_mid ')' + 1`
16851fi
eea650d8 16852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16853done
16854case $ac_lo in
16855?*) ac_cv_sizeof_long_long=$ac_lo;;
16856'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16857See \`config.log' for more details." >&5
16858echo "$as_me: error: cannot compute sizeof (long long), 77
16859See \`config.log' for more details." >&2;}
16860 { (exit 1); exit 1; }; } ;;
16861esac
8284b0c5 16862else
e6cc62c6
VS
16863 if test "$cross_compiling" = yes; then
16864 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16865See \`config.log' for more details." >&5
16866echo "$as_me: error: cannot run test program while cross compiling
16867See \`config.log' for more details." >&2;}
16868 { (exit 1); exit 1; }; }
16869else
16870 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16871/* confdefs.h. */
16872_ACEOF
16873cat confdefs.h >>conftest.$ac_ext
16874cat >>conftest.$ac_ext <<_ACEOF
16875/* end confdefs.h. */
16876$ac_includes_default
16877long longval () { return (long) (sizeof (long long)); }
16878unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16879#include <stdio.h>
e6cc62c6
VS
16880#include <stdlib.h>
16881int
16882main ()
8284b0c5 16883{
e6cc62c6
VS
16884
16885 FILE *f = fopen ("conftest.val", "w");
16886 if (! f)
16887 exit (1);
16888 if (((long) (sizeof (long long))) < 0)
16889 {
16890 long i = longval ();
16891 if (i != ((long) (sizeof (long long))))
16892 exit (1);
16893 fprintf (f, "%ld\n", i);
16894 }
16895 else
16896 {
16897 unsigned long i = ulongval ();
16898 if (i != ((long) (sizeof (long long))))
16899 exit (1);
16900 fprintf (f, "%lu\n", i);
16901 }
16902 exit (ferror (f) || fclose (f) != 0);
16903
16904 ;
16905 return 0;
8284b0c5 16906}
e6cc62c6
VS
16907_ACEOF
16908rm -f conftest$ac_exeext
16909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16910 (eval $ac_link) 2>&5
16911 ac_status=$?
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16915 (eval $ac_try) 2>&5
16916 ac_status=$?
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; }; then
16919 ac_cv_sizeof_long_long=`cat conftest.val`
16920else
16921 echo "$as_me: program exited with status $ac_status" >&5
16922echo "$as_me: failed program was:" >&5
16923sed 's/^/| /' conftest.$ac_ext >&5
16924
16925( exit $ac_status )
16926{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16927See \`config.log' for more details." >&5
16928echo "$as_me: error: cannot compute sizeof (long long), 77
16929See \`config.log' for more details." >&2;}
16930 { (exit 1); exit 1; }; }
16931fi
eea650d8 16932rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16933fi
16934fi
16935rm -f conftest.val
5c6fa7d2
RR
16936else
16937 ac_cv_sizeof_long_long=0
52127426 16938fi
4f57cf11 16939fi
e6cc62c6
VS
16940echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16941echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16942cat >>confdefs.h <<_ACEOF
4f57cf11 16943#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16944_ACEOF
4f57cf11
GD
16945
16946
16947 if test "$ac_cv_sizeof_long_long" != "0"; then
16948 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16949 fi
16950 ;;
16951 * )
e6cc62c6
VS
16952 echo "$as_me:$LINENO: checking for long long" >&5
16953echo $ECHO_N "checking for long long... $ECHO_C" >&6
16954if test "${ac_cv_type_long_long+set}" = set; then
16955 echo $ECHO_N "(cached) $ECHO_C" >&6
16956else
16957 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16958/* confdefs.h. */
16959_ACEOF
16960cat confdefs.h >>conftest.$ac_ext
16961cat >>conftest.$ac_ext <<_ACEOF
16962/* end confdefs.h. */
16963$ac_includes_default
16964int
16965main ()
16966{
16967if ((long long *) 0)
16968 return 0;
16969if (sizeof (long long))
16970 return 0;
16971 ;
16972 return 0;
16973}
16974_ACEOF
16975rm -f conftest.$ac_objext
16976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 16977 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16978 ac_status=$?
eea650d8
VS
16979 grep -v '^ *+' conftest.er1 >conftest.err
16980 rm -f conftest.er1
16981 cat conftest.err >&5
e6cc62c6
VS
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } &&
eea650d8
VS
16984 { ac_try='test -z "$ac_c_werror_flag"
16985 || test ! -s conftest.err'
16986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16988 ac_status=$?
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; } &&
16991 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16993 (eval $ac_try) 2>&5
16994 ac_status=$?
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); }; }; then
16997 ac_cv_type_long_long=yes
16998else
16999 echo "$as_me: failed program was:" >&5
17000sed 's/^/| /' conftest.$ac_ext >&5
17001
17002ac_cv_type_long_long=no
17003fi
eea650d8 17004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17005fi
17006echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17007echo "${ECHO_T}$ac_cv_type_long_long" >&6
17008
17009echo "$as_me:$LINENO: checking size of long long" >&5
17010echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17011if test "${ac_cv_sizeof_long_long+set}" = set; then
17012 echo $ECHO_N "(cached) $ECHO_C" >&6
17013else
17014 if test "$ac_cv_type_long_long" = yes; then
17015 # The cast to unsigned long works around a bug in the HP C Compiler
17016 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17017 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17018 # This bug is HP SR number 8606223364.
4f57cf11 17019 if test "$cross_compiling" = yes; then
e6cc62c6
VS
17020 # Depending upon the size, compute the lo and hi bounds.
17021cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17022/* confdefs.h. */
17023_ACEOF
17024cat confdefs.h >>conftest.$ac_ext
17025cat >>conftest.$ac_ext <<_ACEOF
17026/* end confdefs.h. */
17027$ac_includes_default
17028int
17029main ()
17030{
17031static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17032test_array [0] = 0
17033
17034 ;
17035 return 0;
17036}
17037_ACEOF
17038rm -f conftest.$ac_objext
17039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17040 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17041 ac_status=$?
eea650d8
VS
17042 grep -v '^ *+' conftest.er1 >conftest.err
17043 rm -f conftest.er1
17044 cat conftest.err >&5
e6cc62c6
VS
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); } &&
eea650d8
VS
17047 { ac_try='test -z "$ac_c_werror_flag"
17048 || test ! -s conftest.err'
17049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17050 (eval $ac_try) 2>&5
17051 ac_status=$?
17052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17053 (exit $ac_status); }; } &&
17054 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17056 (eval $ac_try) 2>&5
17057 ac_status=$?
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); }; }; then
17060 ac_lo=0 ac_mid=0
17061 while :; do
17062 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17063/* confdefs.h. */
17064_ACEOF
17065cat confdefs.h >>conftest.$ac_ext
17066cat >>conftest.$ac_ext <<_ACEOF
17067/* end confdefs.h. */
17068$ac_includes_default
17069int
17070main ()
17071{
17072static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17073test_array [0] = 0
17074
17075 ;
17076 return 0;
17077}
17078_ACEOF
17079rm -f conftest.$ac_objext
17080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17081 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17082 ac_status=$?
eea650d8
VS
17083 grep -v '^ *+' conftest.er1 >conftest.err
17084 rm -f conftest.er1
17085 cat conftest.err >&5
e6cc62c6
VS
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); } &&
eea650d8
VS
17088 { ac_try='test -z "$ac_c_werror_flag"
17089 || test ! -s conftest.err'
17090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17091 (eval $ac_try) 2>&5
17092 ac_status=$?
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 (exit $ac_status); }; } &&
17095 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17097 (eval $ac_try) 2>&5
17098 ac_status=$?
17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17100 (exit $ac_status); }; }; then
17101 ac_hi=$ac_mid; break
17102else
17103 echo "$as_me: failed program was:" >&5
17104sed 's/^/| /' conftest.$ac_ext >&5
17105
17106ac_lo=`expr $ac_mid + 1`
eea650d8
VS
17107 if test $ac_lo -le $ac_mid; then
17108 ac_lo= ac_hi=
17109 break
17110 fi
17111 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 17112fi
eea650d8 17113rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17114 done
17115else
17116 echo "$as_me: failed program was:" >&5
17117sed 's/^/| /' conftest.$ac_ext >&5
17118
17119cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17120/* confdefs.h. */
17121_ACEOF
17122cat confdefs.h >>conftest.$ac_ext
17123cat >>conftest.$ac_ext <<_ACEOF
17124/* end confdefs.h. */
17125$ac_includes_default
17126int
17127main ()
17128{
17129static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17130test_array [0] = 0
17131
17132 ;
17133 return 0;
17134}
17135_ACEOF
17136rm -f conftest.$ac_objext
17137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17138 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17139 ac_status=$?
eea650d8
VS
17140 grep -v '^ *+' conftest.er1 >conftest.err
17141 rm -f conftest.er1
17142 cat conftest.err >&5
e6cc62c6
VS
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); } &&
eea650d8
VS
17145 { ac_try='test -z "$ac_c_werror_flag"
17146 || test ! -s conftest.err'
17147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17148 (eval $ac_try) 2>&5
17149 ac_status=$?
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); }; } &&
17152 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17154 (eval $ac_try) 2>&5
17155 ac_status=$?
17156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157 (exit $ac_status); }; }; then
17158 ac_hi=-1 ac_mid=-1
17159 while :; do
17160 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17161/* confdefs.h. */
17162_ACEOF
17163cat confdefs.h >>conftest.$ac_ext
17164cat >>conftest.$ac_ext <<_ACEOF
17165/* end confdefs.h. */
17166$ac_includes_default
17167int
17168main ()
17169{
17170static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17171test_array [0] = 0
17172
17173 ;
17174 return 0;
17175}
17176_ACEOF
17177rm -f conftest.$ac_objext
17178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17179 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17180 ac_status=$?
eea650d8
VS
17181 grep -v '^ *+' conftest.er1 >conftest.err
17182 rm -f conftest.er1
17183 cat conftest.err >&5
e6cc62c6
VS
17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17185 (exit $ac_status); } &&
eea650d8
VS
17186 { ac_try='test -z "$ac_c_werror_flag"
17187 || test ! -s conftest.err'
17188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17189 (eval $ac_try) 2>&5
17190 ac_status=$?
17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17192 (exit $ac_status); }; } &&
17193 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17195 (eval $ac_try) 2>&5
17196 ac_status=$?
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); }; }; then
17199 ac_lo=$ac_mid; break
17200else
17201 echo "$as_me: failed program was:" >&5
17202sed 's/^/| /' conftest.$ac_ext >&5
17203
17204ac_hi=`expr '(' $ac_mid ')' - 1`
eea650d8
VS
17205 if test $ac_mid -le $ac_hi; then
17206 ac_lo= ac_hi=
17207 break
17208 fi
17209 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 17210fi
eea650d8 17211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17212 done
4f57cf11 17213else
e6cc62c6
VS
17214 echo "$as_me: failed program was:" >&5
17215sed 's/^/| /' conftest.$ac_ext >&5
17216
17217ac_lo= ac_hi=
17218fi
eea650d8 17219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17220fi
eea650d8 17221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17222# Binary search between lo and hi bounds.
17223while test "x$ac_lo" != "x$ac_hi"; do
17224 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17225 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17226/* confdefs.h. */
17227_ACEOF
17228cat confdefs.h >>conftest.$ac_ext
17229cat >>conftest.$ac_ext <<_ACEOF
17230/* end confdefs.h. */
17231$ac_includes_default
17232int
17233main ()
17234{
17235static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17236test_array [0] = 0
17237
17238 ;
17239 return 0;
17240}
17241_ACEOF
17242rm -f conftest.$ac_objext
17243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17244 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17245 ac_status=$?
eea650d8
VS
17246 grep -v '^ *+' conftest.er1 >conftest.err
17247 rm -f conftest.er1
17248 cat conftest.err >&5
e6cc62c6
VS
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); } &&
eea650d8
VS
17251 { ac_try='test -z "$ac_c_werror_flag"
17252 || test ! -s conftest.err'
17253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17254 (eval $ac_try) 2>&5
17255 ac_status=$?
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; } &&
17258 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17261 ac_status=$?
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; }; then
17264 ac_hi=$ac_mid
17265else
17266 echo "$as_me: failed program was:" >&5
17267sed 's/^/| /' conftest.$ac_ext >&5
17268
17269ac_lo=`expr '(' $ac_mid ')' + 1`
17270fi
eea650d8 17271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17272done
17273case $ac_lo in
17274?*) ac_cv_sizeof_long_long=$ac_lo;;
17275'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17276See \`config.log' for more details." >&5
17277echo "$as_me: error: cannot compute sizeof (long long), 77
17278See \`config.log' for more details." >&2;}
17279 { (exit 1); exit 1; }; } ;;
17280esac
17281else
17282 if test "$cross_compiling" = yes; then
17283 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17284See \`config.log' for more details." >&5
17285echo "$as_me: error: cannot run test program while cross compiling
17286See \`config.log' for more details." >&2;}
17287 { (exit 1); exit 1; }; }
17288else
17289 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17290/* confdefs.h. */
17291_ACEOF
17292cat confdefs.h >>conftest.$ac_ext
17293cat >>conftest.$ac_ext <<_ACEOF
17294/* end confdefs.h. */
17295$ac_includes_default
17296long longval () { return (long) (sizeof (long long)); }
17297unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 17298#include <stdio.h>
e6cc62c6
VS
17299#include <stdlib.h>
17300int
17301main ()
4f57cf11 17302{
e6cc62c6
VS
17303
17304 FILE *f = fopen ("conftest.val", "w");
17305 if (! f)
17306 exit (1);
17307 if (((long) (sizeof (long long))) < 0)
17308 {
17309 long i = longval ();
17310 if (i != ((long) (sizeof (long long))))
17311 exit (1);
17312 fprintf (f, "%ld\n", i);
17313 }
17314 else
17315 {
17316 unsigned long i = ulongval ();
17317 if (i != ((long) (sizeof (long long))))
17318 exit (1);
17319 fprintf (f, "%lu\n", i);
17320 }
17321 exit (ferror (f) || fclose (f) != 0);
17322
17323 ;
17324 return 0;
4f57cf11 17325}
e6cc62c6
VS
17326_ACEOF
17327rm -f conftest$ac_exeext
17328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17329 (eval $ac_link) 2>&5
17330 ac_status=$?
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17334 (eval $ac_try) 2>&5
17335 ac_status=$?
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); }; }; then
17338 ac_cv_sizeof_long_long=`cat conftest.val`
17339else
17340 echo "$as_me: program exited with status $ac_status" >&5
17341echo "$as_me: failed program was:" >&5
17342sed 's/^/| /' conftest.$ac_ext >&5
17343
17344( exit $ac_status )
17345{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17346See \`config.log' for more details." >&5
17347echo "$as_me: error: cannot compute sizeof (long long), 77
17348See \`config.log' for more details." >&2;}
17349 { (exit 1); exit 1; }; }
17350fi
eea650d8 17351rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17352fi
17353fi
17354rm -f conftest.val
4f57cf11 17355else
4f57cf11
GD
17356 ac_cv_sizeof_long_long=0
17357fi
7b4a847f 17358fi
e6cc62c6
VS
17359echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17360echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17361cat >>confdefs.h <<_ACEOF
21d1c967 17362#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 17363_ACEOF
9e691f46 17364
8284b0c5 17365
21d1c967
GD
17366esac
17367
e6cc62c6
VS
17368echo "$as_me:$LINENO: checking size of wchar_t" >&5
17369echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
17370if test "${wx_cv_sizeof_wchar_t+set}" = set; then
17371 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 17372else
e6cc62c6 17373
21d1c967 17374 if test "$cross_compiling" = yes; then
e6cc62c6 17375
2b5f62a0
VZ
17376 case "${host}" in
17377 *-pc-msdosdjgpp )
17378 wx_cv_sizeof_wchar_t=0
17379 ;;
17380 * )
17381 wx_cv_sizeof_wchar_t=4
17382 ;;
17383 esac
e6cc62c6
VS
17384
17385
6f72b082 17386else
e6cc62c6 17387 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17388/* confdefs.h. */
17389_ACEOF
17390cat confdefs.h >>conftest.$ac_ext
17391cat >>conftest.$ac_ext <<_ACEOF
17392/* end confdefs.h. */
21d1c967 17393
2b5f62a0
VZ
17394 /* DJGPP only has fake wchar_t: */
17395 #ifdef __DJGPP__
17396 # error "fake wchar_t"
17397 #endif
21d1c967
GD
17398 #ifdef HAVE_WCHAR_H
17399 # ifdef __CYGWIN__
17400 # include <stddef.h>
17401 # endif
17402 # include <wchar.h>
17403 #endif
17404 #ifdef HAVE_STDLIB_H
17405 # include <stdlib.h>
17406 #endif
17407 #include <stdio.h>
17408 int main()
17409 {
17410 FILE *f=fopen("conftestval", "w");
17411 if (!f) exit(1);
17412 fprintf(f, "%i", sizeof(wchar_t));
17413 exit(0);
17414 }
e6cc62c6
VS
17415
17416_ACEOF
17417rm -f conftest$ac_exeext
17418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17419 (eval $ac_link) 2>&5
17420 ac_status=$?
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17425 ac_status=$?
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; }; then
21d1c967 17428 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 17429else
e6cc62c6
VS
17430 echo "$as_me: program exited with status $ac_status" >&5
17431echo "$as_me: failed program was:" >&5
17432sed 's/^/| /' conftest.$ac_ext >&5
17433
17434( exit $ac_status )
17435wx_cv_sizeof_wchar_t=0
6f72b082 17436fi
eea650d8 17437rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 17438fi
6f72b082 17439
3f345b47 17440fi
e6cc62c6
VS
17441echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
17442echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 17443
e6cc62c6 17444cat >>confdefs.h <<_ACEOF
21d1c967 17445#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 17446_ACEOF
90dd450c 17447
8284b0c5 17448
21d1c967
GD
17449# Check whether --enable-largefile or --disable-largefile was given.
17450if test "${enable_largefile+set}" = set; then
17451 enableval="$enable_largefile"
3f345b47 17452
e6cc62c6 17453fi;
21d1c967
GD
17454if test "$enable_largefile" != no; then
17455 wx_largefile=no
e6cc62c6
VS
17456
17457 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17458echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
17459if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17460 echo $ECHO_N "(cached) $ECHO_C" >&6
17461else
17462
17463 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17464/* confdefs.h. */
17465_ACEOF
17466cat confdefs.h >>conftest.$ac_ext
17467cat >>conftest.$ac_ext <<_ACEOF
17468/* end confdefs.h. */
21d1c967
GD
17469#define _FILE_OFFSET_BITS 64
17470 #include <sys/types.h>
e6cc62c6
VS
17471int
17472main ()
17473{
21d1c967
GD
17474typedef struct {
17475 unsigned int field: sizeof(off_t) == 8;
17476} wxlf;
17477
e6cc62c6
VS
17478 ;
17479 return 0;
17480}
17481_ACEOF
17482rm -f conftest.$ac_objext
17483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17484 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17485 ac_status=$?
eea650d8
VS
17486 grep -v '^ *+' conftest.er1 >conftest.err
17487 rm -f conftest.er1
17488 cat conftest.err >&5
e6cc62c6
VS
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } &&
eea650d8
VS
17491 { ac_try='test -z "$ac_c_werror_flag"
17492 || test ! -s conftest.err'
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; } &&
17498 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500 (eval $ac_try) 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; }; then
21d1c967 17504 ac_cv_sys_file_offset_bits=64
f6bcfd97 17505else
e6cc62c6
VS
17506 echo "$as_me: failed program was:" >&5
17507sed 's/^/| /' conftest.$ac_ext >&5
17508
17509ac_cv_sys_file_offset_bits=no
247f5006 17510fi
eea650d8 17511rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17512
a0b9e27f 17513
e6cc62c6
VS
17514fi
17515echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17516echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
17517
17518 if test "$ac_cv_sys_file_offset_bits" != no; then
17519 wx_largefile=yes
e6cc62c6 17520 cat >>confdefs.h <<_ACEOF
21d1c967 17521#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 17522_ACEOF
21d1c967
GD
17523
17524 fi
17525
17526 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
17527
17528 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17529echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
17530if test "${ac_cv_sys_large_files+set}" = set; then
17531 echo $ECHO_N "(cached) $ECHO_C" >&6
17532else
17533
17534 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17535/* confdefs.h. */
17536_ACEOF
17537cat confdefs.h >>conftest.$ac_ext
17538cat >>conftest.$ac_ext <<_ACEOF
17539/* end confdefs.h. */
21d1c967
GD
17540#define _LARGE_FILES 1
17541 #include <sys/types.h>
e6cc62c6
VS
17542int
17543main ()
17544{
21d1c967
GD
17545typedef struct {
17546 unsigned int field: sizeof(off_t) == 8;
17547} wxlf;
17548
e6cc62c6
VS
17549 ;
17550 return 0;
17551}
17552_ACEOF
17553rm -f conftest.$ac_objext
17554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17555 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17556 ac_status=$?
eea650d8
VS
17557 grep -v '^ *+' conftest.er1 >conftest.err
17558 rm -f conftest.er1
17559 cat conftest.err >&5
e6cc62c6
VS
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); } &&
eea650d8
VS
17562 { ac_try='test -z "$ac_c_werror_flag"
17563 || test ! -s conftest.err'
17564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17565 (eval $ac_try) 2>&5
17566 ac_status=$?
17567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17568 (exit $ac_status); }; } &&
17569 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17571 (eval $ac_try) 2>&5
17572 ac_status=$?
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; }; then
21d1c967 17575 ac_cv_sys_large_files=1
f6bcfd97 17576else
e6cc62c6
VS
17577 echo "$as_me: failed program was:" >&5
17578sed 's/^/| /' conftest.$ac_ext >&5
17579
17580ac_cv_sys_large_files=no
247f5006 17581fi
eea650d8 17582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 17583
e6cc62c6
VS
17584
17585fi
17586echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17587echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 17588
21d1c967
GD
17589 if test "$ac_cv_sys_large_files" != no; then
17590 wx_largefile=yes
e6cc62c6 17591 cat >>confdefs.h <<_ACEOF
21d1c967 17592#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 17593_ACEOF
90dd450c 17594
90dd450c
VZ
17595 fi
17596
90dd450c 17597 fi
90dd450c 17598
e6cc62c6
VS
17599 echo "$as_me:$LINENO: checking if large file support is available" >&5
17600echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 17601 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 17602 cat >>confdefs.h <<\_ACEOF
21d1c967 17603#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 17604_ACEOF
90dd450c 17605
90dd450c 17606 fi
e6cc62c6
VS
17607 echo "$as_me:$LINENO: result: $wx_largefile" >&5
17608echo "${ECHO_T}$wx_largefile" >&6
21d1c967 17609fi
90dd450c 17610
8284b0c5 17611
f02444d0 17612if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
17613 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
17614 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 17615 else
e26c13cf 17616 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 17617 fi
e26c13cf 17618 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
17619fi
17620
e6cc62c6
VS
17621echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17622echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17623if test "${ac_cv_c_bigendian+set}" = set; then
17624 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 17625else
21d1c967
GD
17626 ac_cv_c_bigendian=unknown
17627# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6 17628cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17629/* confdefs.h. */
17630_ACEOF
17631cat confdefs.h >>conftest.$ac_ext
17632cat >>conftest.$ac_ext <<_ACEOF
17633/* end confdefs.h. */
21d1c967
GD
17634#include <sys/types.h>
17635#include <sys/param.h>
e6cc62c6
VS
17636int
17637main ()
17638{
21d1c967
GD
17639
17640#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17641 bogus endian macros
17642#endif
e6cc62c6
VS
17643 ;
17644 return 0;
17645}
17646_ACEOF
17647rm -f conftest.$ac_objext
17648if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17649 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17650 ac_status=$?
eea650d8
VS
17651 grep -v '^ *+' conftest.er1 >conftest.err
17652 rm -f conftest.er1
17653 cat conftest.err >&5
e6cc62c6
VS
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } &&
eea650d8
VS
17656 { ac_try='test -z "$ac_c_werror_flag"
17657 || test ! -s conftest.err'
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17660 ac_status=$?
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; } &&
17663 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665 (eval $ac_try) 2>&5
17666 ac_status=$?
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; }; then
21d1c967 17669 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6 17670cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17671/* confdefs.h. */
17672_ACEOF
17673cat confdefs.h >>conftest.$ac_ext
17674cat >>conftest.$ac_ext <<_ACEOF
17675/* end confdefs.h. */
21d1c967
GD
17676#include <sys/types.h>
17677#include <sys/param.h>
e6cc62c6
VS
17678int
17679main ()
17680{
21d1c967
GD
17681
17682#if BYTE_ORDER != BIG_ENDIAN
17683 not big endian
17684#endif
e6cc62c6
VS
17685 ;
17686 return 0;
17687}
17688_ACEOF
17689rm -f conftest.$ac_objext
17690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 17691 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17692 ac_status=$?
eea650d8
VS
17693 grep -v '^ *+' conftest.er1 >conftest.err
17694 rm -f conftest.er1
17695 cat conftest.err >&5
e6cc62c6
VS
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); } &&
eea650d8
VS
17698 { ac_try='test -z "$ac_c_werror_flag"
17699 || test ! -s conftest.err'
17700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701 (eval $ac_try) 2>&5
17702 ac_status=$?
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; } &&
17705 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17707 (eval $ac_try) 2>&5
17708 ac_status=$?
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 (exit $ac_status); }; }; then
21d1c967 17711 ac_cv_c_bigendian=yes
3f345b47 17712else
e6cc62c6
VS
17713 echo "$as_me: failed program was:" >&5
17714sed 's/^/| /' conftest.$ac_ext >&5
17715
17716ac_cv_c_bigendian=no
3f345b47 17717fi
eea650d8 17718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f345b47 17719else
e6cc62c6
VS
17720 echo "$as_me: failed program was:" >&5
17721sed 's/^/| /' conftest.$ac_ext >&5
17722
3f345b47 17723fi
eea650d8 17724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17725if test $ac_cv_c_bigendian = unknown; then
17726if test "$cross_compiling" = yes; then
17727 ac_cv_c_bigendian=unknown
10f2d63a 17728else
e6cc62c6 17729 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17730/* confdefs.h. */
17731_ACEOF
17732cat confdefs.h >>conftest.$ac_ext
17733cat >>conftest.$ac_ext <<_ACEOF
17734/* end confdefs.h. */
21d1c967
GD
17735main () {
17736 /* Are we little or big endian? From Harbison&Steele. */
17737 union
17738 {
17739 long l;
17740 char c[sizeof (long)];
17741 } u;
17742 u.l = 1;
17743 exit (u.c[sizeof (long) - 1] == 1);
17744}
e6cc62c6
VS
17745_ACEOF
17746rm -f conftest$ac_exeext
17747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17748 (eval $ac_link) 2>&5
17749 ac_status=$?
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17753 (eval $ac_try) 2>&5
17754 ac_status=$?
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; }; then
21d1c967 17757 ac_cv_c_bigendian=no
3f345b47 17758else
e6cc62c6
VS
17759 echo "$as_me: program exited with status $ac_status" >&5
17760echo "$as_me: failed program was:" >&5
17761sed 's/^/| /' conftest.$ac_ext >&5
17762
17763( exit $ac_status )
17764ac_cv_c_bigendian=yes
247f5006 17765fi
eea650d8 17766rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 17767fi
3f345b47 17768fi
8168de4c 17769fi
e6cc62c6
VS
17770echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17771echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 17772if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
17773 { 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
17774echo "$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
17775fi
17776if test $ac_cv_c_bigendian = yes; then
e6cc62c6 17777 cat >>confdefs.h <<\_ACEOF
247f5006 17778#define WORDS_BIGENDIAN 1
e6cc62c6 17779_ACEOF
247f5006
VZ
17780
17781fi
17782
17783
e6cc62c6
VS
17784
17785ac_ext=cc
17786ac_cpp='$CXXCPP $CPPFLAGS'
17787ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17788ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17789ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17790echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
17791echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 17792if test -z "$CXXCPP"; then
e6cc62c6
VS
17793 if test "${ac_cv_prog_CXXCPP+set}" = set; then
17794 echo $ECHO_N "(cached) $ECHO_C" >&6
17795else
17796 # Double quotes because CXXCPP needs to be expanded
17797 for CXXCPP in "$CXX -E" "/lib/cpp"
17798 do
17799 ac_preproc_ok=false
17800for ac_cxx_preproc_warn_flag in '' yes
17801do
17802 # Use a header file that comes with gcc, so configuring glibc
17803 # with a fresh cross-compiler works.
17804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17805 # <limits.h> exists even on freestanding compilers.
17806 # On the NeXT, cc -E runs the code through the compiler's parser,
17807 # not just through cpp. "Syntax error" is here to catch this case.
17808 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17809/* confdefs.h. */
17810_ACEOF
17811cat confdefs.h >>conftest.$ac_ext
17812cat >>conftest.$ac_ext <<_ACEOF
17813/* end confdefs.h. */
17814#ifdef __STDC__
17815# include <limits.h>
17816#else
17817# include <assert.h>
17818#endif
eea650d8 17819 Syntax error
e6cc62c6
VS
17820_ACEOF
17821if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17822 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17823 ac_status=$?
17824 grep -v '^ *+' conftest.er1 >conftest.err
17825 rm -f conftest.er1
17826 cat conftest.err >&5
17827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17828 (exit $ac_status); } >/dev/null; then
17829 if test -s conftest.err; then
17830 ac_cpp_err=$ac_cxx_preproc_warn_flag
eea650d8 17831 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
17832 else
17833 ac_cpp_err=
17834 fi
247f5006 17835else
e6cc62c6
VS
17836 ac_cpp_err=yes
17837fi
17838if test -z "$ac_cpp_err"; then
17839 :
17840else
17841 echo "$as_me: failed program was:" >&5
17842sed 's/^/| /' conftest.$ac_ext >&5
17843
17844 # Broken: fails on valid input.
17845continue
17846fi
17847rm -f conftest.err conftest.$ac_ext
17848
17849 # OK, works on sane cases. Now check whether non-existent headers
17850 # can be detected and how.
17851 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17852/* confdefs.h. */
17853_ACEOF
17854cat confdefs.h >>conftest.$ac_ext
17855cat >>conftest.$ac_ext <<_ACEOF
17856/* end confdefs.h. */
17857#include <ac_nonexistent.h>
17858_ACEOF
17859if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17860 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17861 ac_status=$?
17862 grep -v '^ *+' conftest.er1 >conftest.err
17863 rm -f conftest.er1
17864 cat conftest.err >&5
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 (exit $ac_status); } >/dev/null; then
17867 if test -s conftest.err; then
17868 ac_cpp_err=$ac_cxx_preproc_warn_flag
eea650d8 17869 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
17870 else
17871 ac_cpp_err=
17872 fi
17873else
17874 ac_cpp_err=yes
17875fi
17876if test -z "$ac_cpp_err"; then
17877 # Broken: success on invalid input.
17878continue
17879else
17880 echo "$as_me: failed program was:" >&5
17881sed 's/^/| /' conftest.$ac_ext >&5
17882
17883 # Passes both tests.
17884ac_preproc_ok=:
17885break
17886fi
17887rm -f conftest.err conftest.$ac_ext
17888
17889done
17890# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17891rm -f conftest.err conftest.$ac_ext
17892if $ac_preproc_ok; then
17893 break
17894fi
17895
17896 done
17897 ac_cv_prog_CXXCPP=$CXXCPP
17898
17899fi
17900 CXXCPP=$ac_cv_prog_CXXCPP
17901else
17902 ac_cv_prog_CXXCPP=$CXXCPP
17903fi
17904echo "$as_me:$LINENO: result: $CXXCPP" >&5
17905echo "${ECHO_T}$CXXCPP" >&6
17906ac_preproc_ok=false
17907for ac_cxx_preproc_warn_flag in '' yes
17908do
17909 # Use a header file that comes with gcc, so configuring glibc
17910 # with a fresh cross-compiler works.
17911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17912 # <limits.h> exists even on freestanding compilers.
17913 # On the NeXT, cc -E runs the code through the compiler's parser,
17914 # not just through cpp. "Syntax error" is here to catch this case.
17915 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17916/* confdefs.h. */
17917_ACEOF
17918cat confdefs.h >>conftest.$ac_ext
17919cat >>conftest.$ac_ext <<_ACEOF
17920/* end confdefs.h. */
17921#ifdef __STDC__
17922# include <limits.h>
17923#else
17924# include <assert.h>
17925#endif
eea650d8 17926 Syntax error
e6cc62c6
VS
17927_ACEOF
17928if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17930 ac_status=$?
17931 grep -v '^ *+' conftest.er1 >conftest.err
17932 rm -f conftest.er1
17933 cat conftest.err >&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } >/dev/null; then
17936 if test -s conftest.err; then
17937 ac_cpp_err=$ac_cxx_preproc_warn_flag
eea650d8 17938 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
17939 else
17940 ac_cpp_err=
17941 fi
17942else
17943 ac_cpp_err=yes
17944fi
17945if test -z "$ac_cpp_err"; then
21d1c967 17946 :
698dcdb6 17947else
e6cc62c6
VS
17948 echo "$as_me: failed program was:" >&5
17949sed 's/^/| /' conftest.$ac_ext >&5
17950
17951 # Broken: fails on valid input.
17952continue
17953fi
17954rm -f conftest.err conftest.$ac_ext
17955
17956 # OK, works on sane cases. Now check whether non-existent headers
17957 # can be detected and how.
17958 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17959/* confdefs.h. */
17960_ACEOF
17961cat confdefs.h >>conftest.$ac_ext
17962cat >>conftest.$ac_ext <<_ACEOF
17963/* end confdefs.h. */
17964#include <ac_nonexistent.h>
17965_ACEOF
17966if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17968 ac_status=$?
17969 grep -v '^ *+' conftest.er1 >conftest.err
17970 rm -f conftest.er1
17971 cat conftest.err >&5
17972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17973 (exit $ac_status); } >/dev/null; then
17974 if test -s conftest.err; then
17975 ac_cpp_err=$ac_cxx_preproc_warn_flag
eea650d8 17976 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
17977 else
17978 ac_cpp_err=
17979 fi
17980else
17981 ac_cpp_err=yes
247f5006 17982fi
e6cc62c6
VS
17983if test -z "$ac_cpp_err"; then
17984 # Broken: success on invalid input.
17985continue
17986else
17987 echo "$as_me: failed program was:" >&5
17988sed 's/^/| /' conftest.$ac_ext >&5
17989
17990 # Passes both tests.
17991ac_preproc_ok=:
17992break
328a083c 17993fi
e6cc62c6
VS
17994rm -f conftest.err conftest.$ac_ext
17995
17996done
17997# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17998rm -f conftest.err conftest.$ac_ext
17999if $ac_preproc_ok; then
18000 :
18001else
18002 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18003See \`config.log' for more details." >&5
18004echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18005See \`config.log' for more details." >&2;}
18006 { (exit 1); exit 1; }; }
90dd450c 18007fi
e6cc62c6
VS
18008
18009ac_ext=cc
18010ac_cpp='$CXXCPP $CPPFLAGS'
18011ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18012ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18013ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18014
1e6feb95 18015
1725144d 18016
21d1c967 18017 if test "$cross_compiling" = "yes"; then
e6cc62c6 18018 cat >>confdefs.h <<\_ACEOF
21d1c967 18019#define wxUSE_IOSTREAMH 1
e6cc62c6 18020_ACEOF
ab9b9eab 18021
21d1c967 18022 else
e6cc62c6
VS
18023
18024
18025 ac_ext=cc
5c6fa7d2 18026ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18030
52127426 18031
247f5006 18032
e6cc62c6 18033for ac_header in iostream
21d1c967 18034do
e6cc62c6
VS
18035as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18036if eval "test \"\${$as_ac_Header+set}\" = set"; then
18037 echo "$as_me:$LINENO: checking for $ac_header" >&5
18038echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18039if eval "test \"\${$as_ac_Header+set}\" = set"; then
18040 echo $ECHO_N "(cached) $ECHO_C" >&6
18041fi
18042echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18043echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18044else
18045 # Is the header compilable?
18046echo "$as_me:$LINENO: checking $ac_header usability" >&5
18047echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18048cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18049/* confdefs.h. */
18050_ACEOF
18051cat confdefs.h >>conftest.$ac_ext
18052cat >>conftest.$ac_ext <<_ACEOF
18053/* end confdefs.h. */
18054$ac_includes_default
18055#include <$ac_header>
18056_ACEOF
18057rm -f conftest.$ac_objext
18058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18059 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18060 ac_status=$?
eea650d8
VS
18061 grep -v '^ *+' conftest.er1 >conftest.err
18062 rm -f conftest.er1
18063 cat conftest.err >&5
e6cc62c6
VS
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); } &&
eea650d8
VS
18066 { ac_try='test -z "$ac_cxx_werror_flag"
18067 || test ! -s conftest.err'
18068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18069 (eval $ac_try) 2>&5
18070 ac_status=$?
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; } &&
18073 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18075 (eval $ac_try) 2>&5
18076 ac_status=$?
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); }; }; then
18079 ac_header_compiler=yes
18080else
18081 echo "$as_me: failed program was:" >&5
18082sed 's/^/| /' conftest.$ac_ext >&5
18083
18084ac_header_compiler=no
18085fi
eea650d8 18086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
18087echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18088echo "${ECHO_T}$ac_header_compiler" >&6
18089
18090# Is the header present?
18091echo "$as_me:$LINENO: checking $ac_header presence" >&5
18092echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18093cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18094/* confdefs.h. */
18095_ACEOF
18096cat confdefs.h >>conftest.$ac_ext
18097cat >>conftest.$ac_ext <<_ACEOF
18098/* end confdefs.h. */
18099#include <$ac_header>
18100_ACEOF
18101if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18103 ac_status=$?
18104 grep -v '^ *+' conftest.er1 >conftest.err
18105 rm -f conftest.er1
18106 cat conftest.err >&5
18107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18108 (exit $ac_status); } >/dev/null; then
18109 if test -s conftest.err; then
18110 ac_cpp_err=$ac_cxx_preproc_warn_flag
eea650d8 18111 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18112 else
18113 ac_cpp_err=
18114 fi
18115else
18116 ac_cpp_err=yes
18117fi
18118if test -z "$ac_cpp_err"; then
18119 ac_header_preproc=yes
18120else
18121 echo "$as_me: failed program was:" >&5
18122sed 's/^/| /' conftest.$ac_ext >&5
18123
18124 ac_header_preproc=no
18125fi
18126rm -f conftest.err conftest.$ac_ext
18127echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18128echo "${ECHO_T}$ac_header_preproc" >&6
18129
18130# So? What about this header?
eea650d8
VS
18131case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18132 yes:no: )
e6cc62c6
VS
18133 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18134echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
18135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18136echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18137 ac_header_preproc=yes
e6cc62c6 18138 ;;
eea650d8 18139 no:yes:* )
e6cc62c6
VS
18140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18141echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
18142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18143echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18144 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18145echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18146 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18147echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
18148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18149echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
18150 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18151echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
18152 (
18153 cat <<\_ASBOX
eea650d8
VS
18154## ----------------------------------------- ##
18155## Report this to wx-dev@lists.wxwindows.org ##
18156## ----------------------------------------- ##
e6cc62c6
VS
18157_ASBOX
18158 ) |
18159 sed "s/^/$as_me: WARNING: /" >&2
18160 ;;
18161esac
18162echo "$as_me:$LINENO: checking for $ac_header" >&5
18163echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18164if eval "test \"\${$as_ac_Header+set}\" = set"; then
18165 echo $ECHO_N "(cached) $ECHO_C" >&6
18166else
eea650d8 18167 eval "$as_ac_Header=\$ac_header_preproc"
ab9b9eab 18168fi
e6cc62c6
VS
18169echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18170echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18171
90dd450c 18172fi
e6cc62c6
VS
18173if test `eval echo '${'$as_ac_Header'}'` = yes; then
18174 cat >>confdefs.h <<_ACEOF
18175#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18176_ACEOF
18177
90dd450c 18178fi
e6cc62c6 18179
21d1c967 18180done
10f2d63a 18181
8284b0c5 18182
21d1c967
GD
18183 if test "$ac_cv_header_iostream" = "yes" ; then
18184 :
18185 else
e6cc62c6 18186 cat >>confdefs.h <<\_ACEOF
21d1c967 18187#define wxUSE_IOSTREAMH 1
e6cc62c6 18188_ACEOF
788deba1 18189
90dd450c 18190 fi
ab9b9eab 18191
21d1c967 18192 ac_ext=c
21d1c967 18193ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18196ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 18197
21d1c967 18198 fi
ab9b9eab 18199
52127426 18200
8284b0c5 18201
e6cc62c6
VS
18202 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18203echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18204if test "${wx_cv_cpp_bool+set}" = set; then
18205 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 18206else
e6cc62c6
VS
18207
18208
18209
18210 ac_ext=cc
5c6fa7d2 18211ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18212ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18213ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18214ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 18215
8284b0c5 18216
e6cc62c6 18217 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18218/* confdefs.h. */
18219_ACEOF
18220cat confdefs.h >>conftest.$ac_ext
18221cat >>conftest.$ac_ext <<_ACEOF
18222/* end confdefs.h. */
21d1c967 18223
e6cc62c6
VS
18224
18225int
18226main ()
18227{
21d1c967
GD
18228
18229 bool b = true;
18230
18231 return 0;
e6cc62c6
VS
18232
18233 ;
18234 return 0;
18235}
18236_ACEOF
18237rm -f conftest.$ac_objext
18238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18239 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18240 ac_status=$?
eea650d8
VS
18241 grep -v '^ *+' conftest.er1 >conftest.err
18242 rm -f conftest.er1
18243 cat conftest.err >&5
e6cc62c6
VS
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); } &&
eea650d8
VS
18246 { ac_try='test -z "$ac_cxx_werror_flag"
18247 || test ! -s conftest.err'
18248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18249 (eval $ac_try) 2>&5
18250 ac_status=$?
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); }; } &&
18253 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18255 (eval $ac_try) 2>&5
18256 ac_status=$?
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); }; }; then
18259
21d1c967 18260 wx_cv_cpp_bool=yes
e6cc62c6 18261
698dcdb6 18262else
e6cc62c6
VS
18263 echo "$as_me: failed program was:" >&5
18264sed 's/^/| /' conftest.$ac_ext >&5
18265
18266
21d1c967 18267 wx_cv_cpp_bool=no
e6cc62c6
VS
18268
18269
698dcdb6 18270fi
eea650d8 18271rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
18272
18273 ac_ext=c
21d1c967 18274ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18277ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 18278
a0b9e27f 18279
e6cc62c6
VS
18280fi
18281echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18282echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
18283
18284 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 18285 cat >>confdefs.h <<\_ACEOF
21d1c967 18286#define HAVE_BOOL 1
e6cc62c6 18287_ACEOF
ab9b9eab 18288
21d1c967
GD
18289 fi
18290
52127426 18291
8284b0c5 18292
e6cc62c6
VS
18293 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18294echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18295if test "${wx_cv_explicit+set}" = set; then
18296 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 18297else
e6cc62c6
VS
18298
18299
18300
18301 ac_ext=cc
5c6fa7d2 18302ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18303ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18304ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18305ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 18306
8284b0c5 18307
e6cc62c6 18308 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18309/* confdefs.h. */
18310_ACEOF
18311cat confdefs.h >>conftest.$ac_ext
18312cat >>conftest.$ac_ext <<_ACEOF
18313/* end confdefs.h. */
986ecc86
VZ
18314
18315 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
18316
18317int
18318main ()
18319{
986ecc86
VZ
18320
18321 return 0;
e6cc62c6
VS
18322
18323 ;
18324 return 0;
18325}
18326_ACEOF
18327rm -f conftest.$ac_objext
18328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18329 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18330 ac_status=$?
eea650d8
VS
18331 grep -v '^ *+' conftest.er1 >conftest.err
18332 rm -f conftest.er1
18333 cat conftest.err >&5
e6cc62c6
VS
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } &&
eea650d8
VS
18336 { ac_try='test -z "$ac_cxx_werror_flag"
18337 || test ! -s conftest.err'
18338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339 (eval $ac_try) 2>&5
18340 ac_status=$?
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; } &&
18343 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18346 ac_status=$?
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; }; then
18349
18350 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18351/* confdefs.h. */
18352_ACEOF
18353cat confdefs.h >>conftest.$ac_ext
18354cat >>conftest.$ac_ext <<_ACEOF
18355/* end confdefs.h. */
986ecc86
VZ
18356
18357 class Foo { public: explicit Foo(int) {} };
18358 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
18359
18360int
18361main ()
18362{
986ecc86
VZ
18363
18364 TakeFoo(17);
18365 return 0;
e6cc62c6
VS
18366
18367 ;
18368 return 0;
18369}
18370_ACEOF
18371rm -f conftest.$ac_objext
18372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18373 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18374 ac_status=$?
eea650d8
VS
18375 grep -v '^ *+' conftest.er1 >conftest.err
18376 rm -f conftest.er1
18377 cat conftest.err >&5
e6cc62c6
VS
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); } &&
eea650d8
VS
18380 { ac_try='test -z "$ac_cxx_werror_flag"
18381 || test ! -s conftest.err'
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); }; } &&
18387 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18389 (eval $ac_try) 2>&5
18390 ac_status=$?
18391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18392 (exit $ac_status); }; }; then
986ecc86
VZ
18393 wx_cv_explicit=no
18394else
e6cc62c6
VS
18395 echo "$as_me: failed program was:" >&5
18396sed 's/^/| /' conftest.$ac_ext >&5
18397
18398wx_cv_explicit=yes
18399
986ecc86 18400fi
eea650d8 18401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 18402
986ecc86 18403else
e6cc62c6
VS
18404 echo "$as_me: failed program was:" >&5
18405sed 's/^/| /' conftest.$ac_ext >&5
18406
18407wx_cv_explicit=no
18408
986ecc86 18409fi
eea650d8 18410rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
18411
18412 ac_ext=c
986ecc86 18413ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18416ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 18417
a0b9e27f 18418
e6cc62c6
VS
18419fi
18420echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
18421echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
18422
18423 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 18424 cat >>confdefs.h <<\_ACEOF
986ecc86 18425#define HAVE_EXPLICIT 1
e6cc62c6 18426_ACEOF
986ecc86
VZ
18427
18428 fi
18429
8284b0c5 18430
e6cc62c6
VS
18431echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
18432echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
18433if test "${ac_cv_cxx_const_cast+set}" = set; then
18434 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 18435else
521196a2 18436
521196a2 18437
e6cc62c6
VS
18438 ac_ext=cc
18439ac_cpp='$CXXCPP $CPPFLAGS'
18440ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18441ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18442ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18443
18444 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18445/* confdefs.h. */
18446_ACEOF
18447cat confdefs.h >>conftest.$ac_ext
18448cat >>conftest.$ac_ext <<_ACEOF
18449/* end confdefs.h. */
18450
18451int
18452main ()
18453{
521196a2 18454int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
18455 ;
18456 return 0;
18457}
18458_ACEOF
18459rm -f conftest.$ac_objext
18460if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18461 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18462 ac_status=$?
eea650d8
VS
18463 grep -v '^ *+' conftest.er1 >conftest.err
18464 rm -f conftest.er1
18465 cat conftest.err >&5
e6cc62c6
VS
18466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18467 (exit $ac_status); } &&
eea650d8
VS
18468 { ac_try='test -z "$ac_cxx_werror_flag"
18469 || test ! -s conftest.err'
18470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18471 (eval $ac_try) 2>&5
18472 ac_status=$?
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; } &&
18475 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18477 (eval $ac_try) 2>&5
18478 ac_status=$?
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); }; }; then
521196a2
MB
18481 ac_cv_cxx_const_cast=yes
18482else
e6cc62c6
VS
18483 echo "$as_me: failed program was:" >&5
18484sed 's/^/| /' conftest.$ac_ext >&5
18485
18486ac_cv_cxx_const_cast=no
521196a2 18487fi
eea650d8 18488rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
521196a2 18489 ac_ext=c
521196a2 18490ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18493ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
18494
18495
18496fi
e6cc62c6
VS
18497echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
18498echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 18499if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
18500
18501cat >>confdefs.h <<\_ACEOF
18502#define HAVE_CONST_CAST
18503_ACEOF
521196a2
MB
18504
18505fi
18506
18507
e87b7833
MB
18508if test "$wxUSE_STL" = "yes"; then
18509 ac_ext=cc
18510ac_cpp='$CXXCPP $CPPFLAGS'
18511ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18512ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18513ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18514
18515
18516 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
18517echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
18518 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
18519/* confdefs.h. */
18520_ACEOF
18521cat confdefs.h >>conftest.$ac_ext
18522cat >>conftest.$ac_ext <<_ACEOF
18523/* end confdefs.h. */
18524#include <string>
18525 #include <functional>
18526 #include <algorithm>
18527 #include <vector>
18528 #include <list>
18529int
18530main ()
18531{
18532std::vector<int> moo;
18533 std::list<int> foo;
18534 std::vector<int>::iterator it =
18535 std::find_if(moo.begin(), moo.end(),
18536 std::bind2nd(std::less<int>(), 3));
18537 ;
18538 return 0;
18539}
18540_ACEOF
18541rm -f conftest.$ac_objext
18542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18543 (eval $ac_compile) 2>conftest.er1
e87b7833 18544 ac_status=$?
eea650d8
VS
18545 grep -v '^ *+' conftest.er1 >conftest.err
18546 rm -f conftest.er1
18547 cat conftest.err >&5
e87b7833
MB
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); } &&
eea650d8
VS
18550 { ac_try='test -z "$ac_cxx_werror_flag"
18551 || test ! -s conftest.err'
18552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18553 (eval $ac_try) 2>&5
18554 ac_status=$?
18555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18556 (exit $ac_status); }; } &&
18557 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
18558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18559 (eval $ac_try) 2>&5
18560 ac_status=$?
18561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562 (exit $ac_status); }; }; then
18563 echo "$as_me:$LINENO: result: yes" >&5
18564echo "${ECHO_T}yes" >&6
18565else
18566 echo "$as_me: failed program was:" >&5
18567sed 's/^/| /' conftest.$ac_ext >&5
18568
18569echo "$as_me:$LINENO: result: no" >&5
18570echo "${ECHO_T}no" >&6
18571 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
18572echo "$as_me: error: Basic STL functionality missing" >&2;}
18573 { (exit 1); exit 1; }; }
18574fi
eea650d8 18575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
18576
18577 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
18578echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
18579 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
18580/* confdefs.h. */
18581_ACEOF
18582cat confdefs.h >>conftest.$ac_ext
18583cat >>conftest.$ac_ext <<_ACEOF
18584/* end confdefs.h. */
18585#include <string>
18586int
18587main ()
18588{
18589std::wstring foo;
18590 ;
18591 return 0;
18592}
18593_ACEOF
18594rm -f conftest.$ac_objext
18595if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18596 (eval $ac_compile) 2>conftest.er1
e87b7833 18597 ac_status=$?
eea650d8
VS
18598 grep -v '^ *+' conftest.er1 >conftest.err
18599 rm -f conftest.er1
18600 cat conftest.err >&5
e87b7833
MB
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); } &&
eea650d8
VS
18603 { ac_try='test -z "$ac_cxx_werror_flag"
18604 || test ! -s conftest.err'
18605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18606 (eval $ac_try) 2>&5
18607 ac_status=$?
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); }; } &&
18610 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
18611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18612 (eval $ac_try) 2>&5
18613 ac_status=$?
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); }; }; then
18616 echo "$as_me:$LINENO: result: yes" >&5
18617echo "${ECHO_T}yes" >&6
18618 cat >>confdefs.h <<\_ACEOF
18619#define HAVE_STD_WSTRING 1
18620_ACEOF
18621
18622else
18623 echo "$as_me: failed program was:" >&5
18624sed 's/^/| /' conftest.$ac_ext >&5
18625
18626echo "$as_me:$LINENO: result: no" >&5
18627echo "${ECHO_T}no" >&6
18628fi
eea650d8 18629rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
18630
18631 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
18632echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
18633 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
18634/* confdefs.h. */
18635_ACEOF
18636cat confdefs.h >>conftest.$ac_ext
18637cat >>conftest.$ac_ext <<_ACEOF
18638/* end confdefs.h. */
18639#include <string>
18640int
18641main ()
18642{
18643std::string foo, bar;
18644 foo.compare(bar);
18645 foo.compare(1, 1, bar);
18646 foo.compare(1, 1, bar, 1, 1);
18647 foo.compare("");
18648 foo.compare(1, 1, "");
18649 foo.compare(1, 1, "", 2);
18650 ;
18651 return 0;
18652}
18653_ACEOF
18654rm -f conftest.$ac_objext
18655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18656 (eval $ac_compile) 2>conftest.er1
e87b7833 18657 ac_status=$?
eea650d8
VS
18658 grep -v '^ *+' conftest.er1 >conftest.err
18659 rm -f conftest.er1
18660 cat conftest.err >&5
e87b7833
MB
18661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18662 (exit $ac_status); } &&
eea650d8
VS
18663 { ac_try='test -z "$ac_cxx_werror_flag"
18664 || test ! -s conftest.err'
18665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18666 (eval $ac_try) 2>&5
18667 ac_status=$?
18668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18669 (exit $ac_status); }; } &&
18670 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
18671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18672 (eval $ac_try) 2>&5
18673 ac_status=$?
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); }; }; then
18676 echo "$as_me:$LINENO: result: yes" >&5
18677echo "${ECHO_T}yes" >&6
18678 cat >>confdefs.h <<\_ACEOF
18679#define HAVE_STD_STRING_COMPARE 1
18680_ACEOF
18681
18682else
18683 echo "$as_me: failed program was:" >&5
18684sed 's/^/| /' conftest.$ac_ext >&5
18685
18686echo "$as_me:$LINENO: result: no" >&5
18687echo "${ECHO_T}no" >&6
18688fi
eea650d8 18689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
18690
18691 ac_ext=c
18692ac_cpp='$CPP $CPPFLAGS'
18693ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18694ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18695ac_compiler_gnu=$ac_cv_c_compiler_gnu
18696
18697fi
18698
8284b0c5 18699
21d1c967
GD
18700SEARCH_INCLUDE="\
18701 /usr/local/include \
18702 \
18703 /usr/Motif-1.2/include \
18704 /usr/Motif-2.1/include \
18705 \
18706 /usr/include/Motif1.2 \
18707 /opt/xpm/include/X11 \
18708 /opt/GBxpm/include/ \
18709 /opt/GBxpm/X11/include/ \
18710 \
18711 /usr/Motif1.2/include \
18712 /usr/dt/include \
18713 /usr/openwin/include \
18714 \
18715 /usr/include/Xm \
18716 \
18717 /usr/X11R6/include \
18718 /usr/X11R6.4/include \
18719 /usr/X11R5/include \
18720 /usr/X11R4/include \
18721 \
18722 /usr/include/X11R6 \
18723 /usr/include/X11R5 \
18724 /usr/include/X11R4 \
18725 \
18726 /usr/local/X11R6/include \
18727 /usr/local/X11R5/include \
18728 /usr/local/X11R4/include \
18729 \
18730 /usr/local/include/X11R6 \
18731 /usr/local/include/X11R5 \
18732 /usr/local/include/X11R4 \
18733 \
18734 /usr/X11/include \
18735 /usr/include/X11 \
18736 /usr/local/X11/include \
18737 /usr/local/include/X11 \
18738 \
18739 /usr/X386/include \
18740 /usr/x386/include \
18741 /usr/XFree86/include/X11 \
18742 \
18743 X:/XFree86/include \
18744 X:/XFree86/include/X11 \
18745 \
18746 /usr/include/gtk \
18747 /usr/local/include/gtk \
18748 /usr/include/glib \
18749 /usr/local/include/glib \
18750 \
18751 /usr/include/qt \
18752 /usr/local/include/qt \
18753 \
18754 /usr/include/windows \
18755 /usr/include/wine \
18756 /usr/local/include/wine \
18757 \
18758 /usr/unsupported/include \
18759 /usr/athena/include \
18760 /usr/local/x11r5/include \
18761 /usr/lpp/Xamples/include \
18762 \
2b5f62a0 18763 /usr/openwin/share/include"
21d1c967
GD
18764
18765SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
18766
8284b0c5 18767
e6cc62c6 18768cat >confcache <<\_ACEOF
21d1c967
GD
18769# This file is a shell script that caches the results of configure
18770# tests run on this system so they can be shared between configure
e6cc62c6
VS
18771# scripts and configure runs, see configure's option --config-cache.
18772# It is not useful on other systems. If it contains results you don't
18773# want to keep, you may remove or edit it.
21d1c967 18774#
e6cc62c6
VS
18775# config.status only pays attention to the cache file if you give it
18776# the --recheck option to rerun configure.
21d1c967 18777#
e6cc62c6
VS
18778# `ac_cv_env_foo' variables (set or unset) will be overridden when
18779# loading this file, other *unset* `ac_cv_foo' will be assigned the
18780# following values.
18781
18782_ACEOF
18783
21d1c967
GD
18784# The following way of writing the cache mishandles newlines in values,
18785# but we know of no workaround that is simple, portable, and efficient.
18786# So, don't put newlines in cache variables' values.
18787# Ultrix sh set writes to stderr and can't be redirected directly,
18788# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
18789{
18790 (set) 2>&1 |
18791 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18792 *ac_space=\ *)
18793 # `set' does not quote correctly, so add quotes (double-quote
18794 # substitution turns \\\\ into \\, and sed turns \\ into \).
18795 sed -n \
eea650d8
VS
18796 "s/'/'\\\\''/g;
18797 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
18798 ;;
18799 *)
18800 # `set' quotes correctly as required by POSIX, so do not add quotes.
18801 sed -n \
eea650d8 18802 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
18803 ;;
18804 esac;
18805} |
18806 sed '
18807 t clear
18808 : clear
18809 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18810 t end
18811 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18812 : end' >>confcache
18813if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 18814 if test -w $cache_file; then
e6cc62c6
VS
18815 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18816 cat confcache >$cache_file
21d1c967
GD
18817 else
18818 echo "not updating unwritable cache $cache_file"
18819 fi
ab9b9eab 18820fi
21d1c967 18821rm -f confcache
ab9b9eab 18822
fe0895cf 18823if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
18824 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
18825echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
18826if test "${wx_cv_lib_glibc21+set}" = set; then
18827 echo $ECHO_N "(cached) $ECHO_C" >&6
18828else
18829
18830 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18831/* confdefs.h. */
18832_ACEOF
18833cat confdefs.h >>conftest.$ac_ext
18834cat >>conftest.$ac_ext <<_ACEOF
18835/* end confdefs.h. */
21d1c967 18836#include <features.h>
e6cc62c6
VS
18837int
18838main ()
18839{
ab9b9eab 18840
21d1c967
GD
18841 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
18842 #error not glibc2.1
18843 #endif
e6cc62c6
VS
18844
18845 ;
18846 return 0;
18847}
18848_ACEOF
18849rm -f conftest.$ac_objext
18850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18851 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18852 ac_status=$?
eea650d8
VS
18853 grep -v '^ *+' conftest.er1 >conftest.err
18854 rm -f conftest.er1
18855 cat conftest.err >&5
e6cc62c6
VS
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); } &&
eea650d8
VS
18858 { ac_try='test -z "$ac_c_werror_flag"
18859 || test ! -s conftest.err'
18860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18861 (eval $ac_try) 2>&5
18862 ac_status=$?
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); }; } &&
18865 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18867 (eval $ac_try) 2>&5
18868 ac_status=$?
18869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18870 (exit $ac_status); }; }; then
18871
21d1c967 18872 wx_cv_lib_glibc21=yes
e6cc62c6 18873
698dcdb6 18874else
e6cc62c6
VS
18875 echo "$as_me: failed program was:" >&5
18876sed 's/^/| /' conftest.$ac_ext >&5
18877
18878
21d1c967 18879 wx_cv_lib_glibc21=no
e6cc62c6
VS
18880
18881
247f5006 18882fi
eea650d8 18883rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 18884
e6cc62c6
VS
18885fi
18886echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
18887echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 18888 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 18889 cat >>confdefs.h <<\_ACEOF
21d1c967 18890#define wxHAVE_GLIBC2 1
e6cc62c6 18891_ACEOF
1e487827 18892
90dd450c 18893 fi
ab9b9eab
VZ
18894fi
18895
5c0a20c3
VZ
18896if test "x$wx_cv_lib_glibc21" = "xyes"; then
18897 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 18898 cat >>confdefs.h <<\_ACEOF
5c0a20c3 18899#define _GNU_SOURCE 1
e6cc62c6 18900_ACEOF
5c0a20c3
VZ
18901
18902 fi
18903fi
18904
8284b0c5
MB
18905
18906
21d1c967 18907if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 18908 cat >>confdefs.h <<\_ACEOF
21d1c967 18909#define wxUSE_REGEX 1
e6cc62c6 18910_ACEOF
698dcdb6 18911
8284b0c5 18912
21d1c967 18913 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
18914 if test "${ac_cv_header_regex_h+set}" = set; then
18915 echo "$as_me:$LINENO: checking for regex.h" >&5
18916echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18917if test "${ac_cv_header_regex_h+set}" = set; then
18918 echo $ECHO_N "(cached) $ECHO_C" >&6
18919fi
18920echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18921echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18922else
18923 # Is the header compilable?
18924echo "$as_me:$LINENO: checking regex.h usability" >&5
18925echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
18926cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18927/* confdefs.h. */
18928_ACEOF
18929cat confdefs.h >>conftest.$ac_ext
18930cat >>conftest.$ac_ext <<_ACEOF
18931/* end confdefs.h. */
18932$ac_includes_default
247f5006 18933#include <regex.h>
e6cc62c6
VS
18934_ACEOF
18935rm -f conftest.$ac_objext
18936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 18937 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18938 ac_status=$?
eea650d8
VS
18939 grep -v '^ *+' conftest.er1 >conftest.err
18940 rm -f conftest.er1
18941 cat conftest.err >&5
e6cc62c6
VS
18942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943 (exit $ac_status); } &&
eea650d8
VS
18944 { ac_try='test -z "$ac_c_werror_flag"
18945 || test ! -s conftest.err'
18946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18947 (eval $ac_try) 2>&5
18948 ac_status=$?
18949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18950 (exit $ac_status); }; } &&
18951 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953 (eval $ac_try) 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; }; then
18957 ac_header_compiler=yes
18958else
18959 echo "$as_me: failed program was:" >&5
18960sed 's/^/| /' conftest.$ac_ext >&5
18961
18962ac_header_compiler=no
18963fi
eea650d8 18964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
18965echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18966echo "${ECHO_T}$ac_header_compiler" >&6
18967
18968# Is the header present?
18969echo "$as_me:$LINENO: checking regex.h presence" >&5
18970echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
18971cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18972/* confdefs.h. */
18973_ACEOF
18974cat confdefs.h >>conftest.$ac_ext
18975cat >>conftest.$ac_ext <<_ACEOF
18976/* end confdefs.h. */
18977#include <regex.h>
18978_ACEOF
18979if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18980 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18981 ac_status=$?
18982 grep -v '^ *+' conftest.er1 >conftest.err
18983 rm -f conftest.er1
18984 cat conftest.err >&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); } >/dev/null; then
18987 if test -s conftest.err; then
18988 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 18989 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
18990 else
18991 ac_cpp_err=
18992 fi
18993else
18994 ac_cpp_err=yes
18995fi
18996if test -z "$ac_cpp_err"; then
18997 ac_header_preproc=yes
18998else
18999 echo "$as_me: failed program was:" >&5
19000sed 's/^/| /' conftest.$ac_ext >&5
19001
19002 ac_header_preproc=no
19003fi
19004rm -f conftest.err conftest.$ac_ext
19005echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19006echo "${ECHO_T}$ac_header_preproc" >&6
19007
19008# So? What about this header?
eea650d8
VS
19009case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19010 yes:no: )
e6cc62c6
VS
19011 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
19012echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
19013 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
19014echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
19015 ac_header_preproc=yes
e6cc62c6 19016 ;;
eea650d8 19017 no:yes:* )
e6cc62c6
VS
19018 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
19019echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
eea650d8
VS
19020 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
19021echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
19022 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
19023echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
19024 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
19025echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
19026 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
19027echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
19028 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
19029echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
19030 (
19031 cat <<\_ASBOX
eea650d8
VS
19032## ----------------------------------------- ##
19033## Report this to wx-dev@lists.wxwindows.org ##
19034## ----------------------------------------- ##
e6cc62c6
VS
19035_ASBOX
19036 ) |
19037 sed "s/^/$as_me: WARNING: /" >&2
19038 ;;
19039esac
19040echo "$as_me:$LINENO: checking for regex.h" >&5
19041echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19042if test "${ac_cv_header_regex_h+set}" = set; then
19043 echo $ECHO_N "(cached) $ECHO_C" >&6
19044else
19045 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 19046fi
e6cc62c6
VS
19047echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19048echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19049
698dcdb6 19050fi
e6cc62c6
VS
19051if test $ac_cv_header_regex_h = yes; then
19052
19053for ac_func in regcomp
21d1c967 19054do
e6cc62c6
VS
19055as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19056echo "$as_me:$LINENO: checking for $ac_func" >&5
19057echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19058if eval "test \"\${$as_ac_var+set}\" = set"; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19060else
19061 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19062/* confdefs.h. */
19063_ACEOF
19064cat confdefs.h >>conftest.$ac_ext
19065cat >>conftest.$ac_ext <<_ACEOF
19066/* end confdefs.h. */
eea650d8
VS
19067/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19069#define $ac_func innocuous_$ac_func
19070
a0b9e27f 19071/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
19072 which can conflict with char $ac_func (); below.
19073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19074 <limits.h> exists even on freestanding compilers. */
eea650d8 19075
e6cc62c6
VS
19076#ifdef __STDC__
19077# include <limits.h>
19078#else
19079# include <assert.h>
19080#endif
eea650d8
VS
19081
19082#undef $ac_func
19083
21d1c967 19084/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19085#ifdef __cplusplus
19086extern "C"
19087{
19088#endif
21d1c967 19089/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19090 builtin and then its argument prototype would still apply. */
19091char $ac_func ();
21d1c967
GD
19092/* The GNU C library defines this for functions which it implements
19093 to always fail with ENOSYS. Some functions are actually named
19094 something starting with __ and the normal name is an alias. */
19095#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19096choke me
19097#else
e6cc62c6
VS
19098char (*f) () = $ac_func;
19099#endif
19100#ifdef __cplusplus
19101}
21d1c967 19102#endif
90dd450c 19103
e6cc62c6
VS
19104int
19105main ()
19106{
19107return f != $ac_func;
19108 ;
19109 return 0;
19110}
19111_ACEOF
19112rm -f conftest.$ac_objext conftest$ac_exeext
19113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 19114 (eval $ac_link) 2>conftest.er1
e6cc62c6 19115 ac_status=$?
eea650d8
VS
19116 grep -v '^ *+' conftest.er1 >conftest.err
19117 rm -f conftest.er1
19118 cat conftest.err >&5
e6cc62c6
VS
19119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19120 (exit $ac_status); } &&
eea650d8
VS
19121 { ac_try='test -z "$ac_c_werror_flag"
19122 || test ! -s conftest.err'
19123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19124 (eval $ac_try) 2>&5
19125 ac_status=$?
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; } &&
19128 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19130 (eval $ac_try) 2>&5
19131 ac_status=$?
19132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19133 (exit $ac_status); }; }; then
19134 eval "$as_ac_var=yes"
19135else
19136 echo "$as_me: failed program was:" >&5
19137sed 's/^/| /' conftest.$ac_ext >&5
19138
19139eval "$as_ac_var=no"
19140fi
eea650d8
VS
19141rm -f conftest.err conftest.$ac_objext \
19142 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19143fi
19144echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19145echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19146if test `eval echo '${'$as_ac_var'}'` = yes; then
19147 cat >>confdefs.h <<_ACEOF
19148#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19149_ACEOF
5c6fa7d2 19150
698dcdb6 19151fi
21d1c967
GD
19152done
19153
ab9b9eab
VZ
19154fi
19155
8284b0c5 19156
e6cc62c6 19157
21d1c967
GD
19158 if test "x$ac_cv_func_regcomp" != "xyes"; then
19159 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
19160 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
19161echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
19162 { (exit 1); exit 1; }; }
21d1c967 19163 else
e6cc62c6
VS
19164 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
19165echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
19166 wxUSE_REGEX=builtin
19167 fi
19168 else
19169 wxUSE_REGEX=sys
19170 fi
ab9b9eab 19171 fi
21d1c967 19172fi
90dd450c 19173
8284b0c5 19174
21d1c967
GD
19175ZLIB_LINK=
19176if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 19177 cat >>confdefs.h <<\_ACEOF
21d1c967 19178#define wxUSE_ZLIB 1
e6cc62c6 19179_ACEOF
21d1c967 19180
8284b0c5 19181
21d1c967 19182 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
19183 if test "$USE_DARWIN" = 1; then
19184 system_zlib_h_ok="yes"
19185 else
e6cc62c6
VS
19186 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
19187echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
19188if test "${ac_cv_header_zlib_h+set}" = set; then
19189 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
19190else
19191 if test "$cross_compiling" = yes; then
89e6bf6d 19192 unset ac_cv_header_zlib_h
e6cc62c6 19193
d643b80e 19194else
e6cc62c6 19195 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19196/* confdefs.h. */
19197_ACEOF
19198cat confdefs.h >>conftest.$ac_ext
19199cat >>conftest.$ac_ext <<_ACEOF
19200/* end confdefs.h. */
19201
ef33c576 19202 #include <zlib.h>
d775acfa 19203 #include <stdio.h>
d643b80e 19204
d775acfa
VZ
19205 int main()
19206 {
19207 FILE *f=fopen("conftestval", "w");
19208 if (!f) exit(1);
19209 fprintf(f, "%s",
19210 ZLIB_VERSION[0] == '1' &&
19211 (ZLIB_VERSION[2] > '1' ||
19212 (ZLIB_VERSION[2] == '1' &&
19213 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
19214 exit(0);
19215 }
e6cc62c6
VS
19216
19217_ACEOF
19218rm -f conftest$ac_exeext
19219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19220 (eval $ac_link) 2>&5
19221 ac_status=$?
19222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19225 (eval $ac_try) 2>&5
19226 ac_status=$?
19227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19228 (exit $ac_status); }; }; then
d643b80e
VZ
19229 ac_cv_header_zlib_h=`cat conftestval`
19230else
e6cc62c6
VS
19231 echo "$as_me: program exited with status $ac_status" >&5
19232echo "$as_me: failed program was:" >&5
19233sed 's/^/| /' conftest.$ac_ext >&5
19234
19235( exit $ac_status )
19236ac_cv_header_zlib_h=no
d643b80e 19237fi
eea650d8 19238rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
19239fi
19240
d643b80e 19241fi
e6cc62c6
VS
19242echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19243echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19244 if test "${ac_cv_header_zlib_h+set}" = set; then
19245 echo "$as_me:$LINENO: checking for zlib.h" >&5
19246echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19247if test "${ac_cv_header_zlib_h+set}" = set; then
19248 echo $ECHO_N "(cached) $ECHO_C" >&6
19249fi
19250echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19251echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 19252else
e6cc62c6
VS
19253 # Is the header compilable?
19254echo "$as_me:$LINENO: checking zlib.h usability" >&5
19255echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
19256cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19257/* confdefs.h. */
19258_ACEOF
19259cat confdefs.h >>conftest.$ac_ext
19260cat >>conftest.$ac_ext <<_ACEOF
19261/* end confdefs.h. */
19262$ac_includes_default
89e6bf6d 19263#include <zlib.h>
e6cc62c6
VS
19264_ACEOF
19265rm -f conftest.$ac_objext
19266if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 19267 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19268 ac_status=$?
eea650d8
VS
19269 grep -v '^ *+' conftest.er1 >conftest.err
19270 rm -f conftest.er1
19271 cat conftest.err >&5
e6cc62c6
VS
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); } &&
eea650d8
VS
19274 { ac_try='test -z "$ac_c_werror_flag"
19275 || test ! -s conftest.err'
19276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19277 (eval $ac_try) 2>&5
19278 ac_status=$?
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); }; } &&
19281 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19283 (eval $ac_try) 2>&5
19284 ac_status=$?
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); }; }; then
19287 ac_header_compiler=yes
19288else
19289 echo "$as_me: failed program was:" >&5
19290sed 's/^/| /' conftest.$ac_ext >&5
19291
19292ac_header_compiler=no
19293fi
eea650d8 19294rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19295echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19296echo "${ECHO_T}$ac_header_compiler" >&6
19297
19298# Is the header present?
19299echo "$as_me:$LINENO: checking zlib.h presence" >&5
19300echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
19301cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19302/* confdefs.h. */
19303_ACEOF
19304cat confdefs.h >>conftest.$ac_ext
19305cat >>conftest.$ac_ext <<_ACEOF
19306/* end confdefs.h. */
19307#include <zlib.h>
19308_ACEOF
19309if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19310 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19311 ac_status=$?
19312 grep -v '^ *+' conftest.er1 >conftest.err
19313 rm -f conftest.er1
19314 cat conftest.err >&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); } >/dev/null; then
19317 if test -s conftest.err; then
19318 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 19319 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
19320 else
19321 ac_cpp_err=
19322 fi
19323else
19324 ac_cpp_err=yes
19325fi
19326if test -z "$ac_cpp_err"; then
19327 ac_header_preproc=yes
19328else
19329 echo "$as_me: failed program was:" >&5
19330sed 's/^/| /' conftest.$ac_ext >&5
19331
19332 ac_header_preproc=no
19333fi
19334rm -f conftest.err conftest.$ac_ext
19335echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19336echo "${ECHO_T}$ac_header_preproc" >&6
19337
19338# So? What about this header?
eea650d8
VS
19339case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19340 yes:no: )
e6cc62c6
VS
19341 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19342echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
19343 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
19344echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
19345 ac_header_preproc=yes
e6cc62c6 19346 ;;
eea650d8 19347 no:yes:* )
e6cc62c6
VS
19348 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19349echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
eea650d8
VS
19350 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
19351echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
19352 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
19353echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
19354 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
19355echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
19356 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19357echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
19358 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
19359echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
19360 (
19361 cat <<\_ASBOX
eea650d8
VS
19362## ----------------------------------------- ##
19363## Report this to wx-dev@lists.wxwindows.org ##
19364## ----------------------------------------- ##
e6cc62c6
VS
19365_ASBOX
19366 ) |
19367 sed "s/^/$as_me: WARNING: /" >&2
19368 ;;
19369esac
19370echo "$as_me:$LINENO: checking for zlib.h" >&5
19371echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19372if test "${ac_cv_header_zlib_h+set}" = set; then
19373 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 19374else
e6cc62c6
VS
19375 ac_cv_header_zlib_h=$ac_header_preproc
19376fi
19377echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19378echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19379
89e6bf6d
VZ
19380fi
19381
d643b80e 19382
e6cc62c6 19383
d775acfa
VZ
19384 system_zlib_h_ok=$ac_cv_header_zlib_h
19385 fi
19386
19387 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
19388 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19389echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19390if test "${ac_cv_lib_z_deflate+set}" = set; then
19391 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19392else
e6cc62c6 19393 ac_check_lib_save_LIBS=$LIBS
21d1c967 19394LIBS="-lz $LIBS"
e6cc62c6 19395cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19396/* confdefs.h. */
19397_ACEOF
19398cat confdefs.h >>conftest.$ac_ext
19399cat >>conftest.$ac_ext <<_ACEOF
19400/* end confdefs.h. */
19401
21d1c967 19402/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19403#ifdef __cplusplus
19404extern "C"
19405#endif
21d1c967 19406/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19407 builtin and then its argument prototype would still apply. */
19408char deflate ();
19409int
19410main ()
19411{
19412deflate ();
19413 ;
19414 return 0;
19415}
19416_ACEOF
19417rm -f conftest.$ac_objext conftest$ac_exeext
19418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 19419 (eval $ac_link) 2>conftest.er1
e6cc62c6 19420 ac_status=$?
eea650d8
VS
19421 grep -v '^ *+' conftest.er1 >conftest.err
19422 rm -f conftest.er1
19423 cat conftest.err >&5
e6cc62c6
VS
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); } &&
eea650d8
VS
19426 { ac_try='test -z "$ac_c_werror_flag"
19427 || test ! -s conftest.err'
19428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19429 (eval $ac_try) 2>&5
19430 ac_status=$?
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; } &&
19433 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19435 (eval $ac_try) 2>&5
19436 ac_status=$?
19437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438 (exit $ac_status); }; }; then
19439 ac_cv_lib_z_deflate=yes
19440else
19441 echo "$as_me: failed program was:" >&5
19442sed 's/^/| /' conftest.$ac_ext >&5
19443
19444ac_cv_lib_z_deflate=no
19445fi
eea650d8
VS
19446rm -f conftest.err conftest.$ac_objext \
19447 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19448LIBS=$ac_check_lib_save_LIBS
19449fi
19450echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19451echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
19452if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 19453 ZLIB_LINK=" -lz"
a0b9e27f 19454fi
698dcdb6 19455
d643b80e 19456 fi
247f5006 19457
21d1c967
GD
19458 if test "x$ZLIB_LINK" = "x" ; then
19459 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
19460 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
19461echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
19462 { (exit 1); exit 1; }; }
21d1c967 19463 else
e6cc62c6
VS
19464 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
19465echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
19466 wxUSE_ZLIB=builtin
19467 fi
19468 else
19469 wxUSE_ZLIB=sys
19470 fi
19471 fi
ab9b9eab
VZ
19472fi
19473
8284b0c5 19474
21d1c967
GD
19475PNG_LINK=
19476if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 19477 cat >>confdefs.h <<\_ACEOF
21d1c967 19478#define wxUSE_LIBPNG 1
e6cc62c6 19479_ACEOF
90dd450c 19480
8284b0c5 19481
21d1c967 19482 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
19483 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
19484echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
19485 wxUSE_LIBPNG=sys
19486 fi
90dd450c 19487
21d1c967 19488 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
19489 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
19490echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
19491 wxUSE_LIBPNG=builtin
19492 fi
19493
19494 if test "$wxUSE_MGL" != 1 ; then
19495 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
19496 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
19497echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
19498if test "${ac_cv_header_png_h+set}" = set; then
19499 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
19500else
19501 if test "$cross_compiling" = yes; then
89e6bf6d 19502 unset ac_cv_header_png_h
e6cc62c6 19503
5d3f766d 19504else
e6cc62c6 19505 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19506/* confdefs.h. */
19507_ACEOF
19508cat confdefs.h >>conftest.$ac_ext
19509cat >>conftest.$ac_ext <<_ACEOF
19510/* end confdefs.h. */
19511
ef33c576 19512 #include <png.h>
5d3f766d
VZ
19513 #include <stdio.h>
19514
19515 int main()
19516 {
19517 FILE *f=fopen("conftestval", "w");
19518 if (!f) exit(1);
19519 fprintf(f, "%s",
19520 PNG_LIBPNG_VER > 90 ? "yes" : "no");
19521 exit(0);
19522 }
e6cc62c6
VS
19523
19524_ACEOF
19525rm -f conftest$ac_exeext
19526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19527 (eval $ac_link) 2>&5
19528 ac_status=$?
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19532 (eval $ac_try) 2>&5
19533 ac_status=$?
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); }; }; then
5d3f766d
VZ
19536 ac_cv_header_png_h=`cat conftestval`
19537else
e6cc62c6
VS
19538 echo "$as_me: program exited with status $ac_status" >&5
19539echo "$as_me: failed program was:" >&5
19540sed 's/^/| /' conftest.$ac_ext >&5
19541
19542( exit $ac_status )
19543ac_cv_header_png_h=no
5d3f766d 19544fi
eea650d8 19545rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
19546fi
19547
5d3f766d 19548fi
e6cc62c6
VS
19549echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19550echo "${ECHO_T}$ac_cv_header_png_h" >&6
19551 if test "${ac_cv_header_png_h+set}" = set; then
19552 echo "$as_me:$LINENO: checking for png.h" >&5
19553echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19554if test "${ac_cv_header_png_h+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
19556fi
19557echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19558echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 19559else
e6cc62c6
VS
19560 # Is the header compilable?
19561echo "$as_me:$LINENO: checking png.h usability" >&5
19562echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
19563cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19564/* confdefs.h. */
19565_ACEOF
19566cat confdefs.h >>conftest.$ac_ext
19567cat >>conftest.$ac_ext <<_ACEOF
19568/* end confdefs.h. */
19569$ac_includes_default
89e6bf6d 19570#include <png.h>
e6cc62c6
VS
19571_ACEOF
19572rm -f conftest.$ac_objext
19573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 19574 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19575 ac_status=$?
eea650d8
VS
19576 grep -v '^ *+' conftest.er1 >conftest.err
19577 rm -f conftest.er1
19578 cat conftest.err >&5
e6cc62c6
VS
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); } &&
eea650d8
VS
19581 { ac_try='test -z "$ac_c_werror_flag"
19582 || test ! -s conftest.err'
19583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19584 (eval $ac_try) 2>&5
19585 ac_status=$?
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); }; } &&
19588 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19590 (eval $ac_try) 2>&5
19591 ac_status=$?
19592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19593 (exit $ac_status); }; }; then
19594 ac_header_compiler=yes
19595else
19596 echo "$as_me: failed program was:" >&5
19597sed 's/^/| /' conftest.$ac_ext >&5
19598
19599ac_header_compiler=no
19600fi
eea650d8 19601rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19602echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19603echo "${ECHO_T}$ac_header_compiler" >&6
19604
19605# Is the header present?
19606echo "$as_me:$LINENO: checking png.h presence" >&5
19607echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
19608cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19609/* confdefs.h. */
19610_ACEOF
19611cat confdefs.h >>conftest.$ac_ext
19612cat >>conftest.$ac_ext <<_ACEOF
19613/* end confdefs.h. */
19614#include <png.h>
19615_ACEOF
19616if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19617 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19618 ac_status=$?
19619 grep -v '^ *+' conftest.er1 >conftest.err
19620 rm -f conftest.er1
19621 cat conftest.err >&5
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); } >/dev/null; then
19624 if test -s conftest.err; then
19625 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 19626 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
19627 else
19628 ac_cpp_err=
19629 fi
19630else
19631 ac_cpp_err=yes
19632fi
19633if test -z "$ac_cpp_err"; then
19634 ac_header_preproc=yes
19635else
19636 echo "$as_me: failed program was:" >&5
19637sed 's/^/| /' conftest.$ac_ext >&5
19638
19639 ac_header_preproc=no
19640fi
19641rm -f conftest.err conftest.$ac_ext
19642echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19643echo "${ECHO_T}$ac_header_preproc" >&6
19644
19645# So? What about this header?
eea650d8
VS
19646case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19647 yes:no: )
e6cc62c6
VS
19648 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19649echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
19650 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
19651echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
19652 ac_header_preproc=yes
e6cc62c6 19653 ;;
eea650d8 19654 no:yes:* )
e6cc62c6
VS
19655 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19656echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
eea650d8
VS
19657 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
19658echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
19659 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
19660echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
19661 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
19662echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
19663 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19664echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
19665 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
19666echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
19667 (
19668 cat <<\_ASBOX
eea650d8
VS
19669## ----------------------------------------- ##
19670## Report this to wx-dev@lists.wxwindows.org ##
19671## ----------------------------------------- ##
e6cc62c6
VS
19672_ASBOX
19673 ) |
19674 sed "s/^/$as_me: WARNING: /" >&2
19675 ;;
19676esac
19677echo "$as_me:$LINENO: checking for png.h" >&5
19678echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19679if test "${ac_cv_header_png_h+set}" = set; then
19680 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 19681else
e6cc62c6
VS
19682 ac_cv_header_png_h=$ac_header_preproc
19683fi
19684echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19685echo "${ECHO_T}$ac_cv_header_png_h" >&6
19686
89e6bf6d
VZ
19687fi
19688
5d3f766d 19689
e6cc62c6 19690
5d3f766d 19691 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
19692 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
19693echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
19694if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
19695 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19696else
e6cc62c6 19697 ac_check_lib_save_LIBS=$LIBS
21d1c967 19698LIBS="-lpng -lz -lm $LIBS"
e6cc62c6 19699cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19700/* confdefs.h. */
19701_ACEOF
19702cat confdefs.h >>conftest.$ac_ext
19703cat >>conftest.$ac_ext <<_ACEOF
19704/* end confdefs.h. */
19705
21d1c967 19706/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19707#ifdef __cplusplus
19708extern "C"
19709#endif
21d1c967 19710/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19711 builtin and then its argument prototype would still apply. */
19712char png_check_sig ();
19713int
19714main ()
19715{
19716png_check_sig ();
19717 ;
19718 return 0;
19719}
19720_ACEOF
19721rm -f conftest.$ac_objext conftest$ac_exeext
19722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 19723 (eval $ac_link) 2>conftest.er1
e6cc62c6 19724 ac_status=$?
eea650d8
VS
19725 grep -v '^ *+' conftest.er1 >conftest.err
19726 rm -f conftest.er1
19727 cat conftest.err >&5
e6cc62c6
VS
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); } &&
eea650d8
VS
19730 { ac_try='test -z "$ac_c_werror_flag"
19731 || test ! -s conftest.err'
19732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733 (eval $ac_try) 2>&5
19734 ac_status=$?
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; } &&
19737 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19739 (eval $ac_try) 2>&5
19740 ac_status=$?
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); }; }; then
19743 ac_cv_lib_png_png_check_sig=yes
19744else
19745 echo "$as_me: failed program was:" >&5
19746sed 's/^/| /' conftest.$ac_ext >&5
19747
19748ac_cv_lib_png_png_check_sig=no
19749fi
eea650d8
VS
19750rm -f conftest.err conftest.$ac_objext \
19751 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19752LIBS=$ac_check_lib_save_LIBS
19753fi
19754echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
19755echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
19756if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 19757 PNG_LINK=" -lpng"
a0b9e27f 19758fi
90dd450c 19759
5d3f766d 19760 fi
247f5006 19761
21d1c967
GD
19762 if test "x$PNG_LINK" = "x" ; then
19763 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
19764 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
19765echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
19766 { (exit 1); exit 1; }; }
21d1c967 19767 else
e6cc62c6
VS
19768 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
19769echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
19770 wxUSE_LIBPNG=builtin
19771 fi
19772 else
2b5f62a0 19773 wxUSE_LIBPNG=sys
21d1c967
GD
19774 fi
19775 fi
19776 fi
90dd450c 19777
21d1c967 19778 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
19779fi
19780
8284b0c5 19781
21d1c967
GD
19782JPEG_LINK=
19783if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 19784 cat >>confdefs.h <<\_ACEOF
21d1c967 19785#define wxUSE_LIBJPEG 1
e6cc62c6 19786_ACEOF
90dd450c 19787
8284b0c5 19788
21d1c967 19789 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
19790 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
19791echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
19792 wxUSE_LIBJPEG=sys
19793 fi
90dd450c 19794
21d1c967
GD
19795 if test "$wxUSE_MGL" != 1 ; then
19796 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
19797 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
19798echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
19799 if test "${ac_cv_header_jpeglib_h+set}" = set; then
19800 echo $ECHO_N "(cached) $ECHO_C" >&6
19801else
19802 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19803/* confdefs.h. */
19804_ACEOF
19805cat confdefs.h >>conftest.$ac_ext
19806cat >>conftest.$ac_ext <<_ACEOF
19807/* end confdefs.h. */
90dd450c 19808
21d1c967
GD
19809 #undef HAVE_STDLIB_H
19810 #include <stdio.h>
19811 #include <jpeglib.h>
90dd450c 19812
e6cc62c6
VS
19813int
19814main ()
19815{
19816
19817
19818 ;
19819 return 0;
19820}
19821_ACEOF
19822rm -f conftest.$ac_objext
19823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 19824 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19825 ac_status=$?
eea650d8
VS
19826 grep -v '^ *+' conftest.er1 >conftest.err
19827 rm -f conftest.er1
19828 cat conftest.err >&5
e6cc62c6
VS
19829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); } &&
eea650d8
VS
19831 { ac_try='test -z "$ac_c_werror_flag"
19832 || test ! -s conftest.err'
19833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19834 (eval $ac_try) 2>&5
19835 ac_status=$?
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); }; } &&
19838 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19840 (eval $ac_try) 2>&5
19841 ac_status=$?
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; }; then
21d1c967 19844 ac_cv_header_jpeglib_h=yes
90dd450c 19845else
e6cc62c6
VS
19846 echo "$as_me: failed program was:" >&5
19847sed 's/^/| /' conftest.$ac_ext >&5
19848
19849ac_cv_header_jpeglib_h=no
19850
90dd450c 19851fi
eea650d8 19852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 19853
90dd450c
VZ
19854fi
19855
e6cc62c6
VS
19856 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
19857echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 19858
21d1c967 19859 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
19860 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
19861echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
19862if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
19863 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19864else
e6cc62c6 19865 ac_check_lib_save_LIBS=$LIBS
21d1c967 19866LIBS="-ljpeg $LIBS"
e6cc62c6 19867cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19868/* confdefs.h. */
19869_ACEOF
19870cat confdefs.h >>conftest.$ac_ext
19871cat >>conftest.$ac_ext <<_ACEOF
19872/* end confdefs.h. */
19873
21d1c967 19874/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19875#ifdef __cplusplus
19876extern "C"
19877#endif
21d1c967 19878/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19879 builtin and then its argument prototype would still apply. */
19880char jpeg_read_header ();
19881int
19882main ()
19883{
19884jpeg_read_header ();
19885 ;
19886 return 0;
19887}
19888_ACEOF
19889rm -f conftest.$ac_objext conftest$ac_exeext
19890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 19891 (eval $ac_link) 2>conftest.er1
e6cc62c6 19892 ac_status=$?
eea650d8
VS
19893 grep -v '^ *+' conftest.er1 >conftest.err
19894 rm -f conftest.er1
19895 cat conftest.err >&5
e6cc62c6
VS
19896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19897 (exit $ac_status); } &&
eea650d8
VS
19898 { ac_try='test -z "$ac_c_werror_flag"
19899 || test ! -s conftest.err'
19900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19901 (eval $ac_try) 2>&5
19902 ac_status=$?
19903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19904 (exit $ac_status); }; } &&
19905 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19907 (eval $ac_try) 2>&5
19908 ac_status=$?
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); }; }; then
19911 ac_cv_lib_jpeg_jpeg_read_header=yes
19912else
19913 echo "$as_me: failed program was:" >&5
19914sed 's/^/| /' conftest.$ac_ext >&5
19915
19916ac_cv_lib_jpeg_jpeg_read_header=no
19917fi
eea650d8
VS
19918rm -f conftest.err conftest.$ac_objext \
19919 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19920LIBS=$ac_check_lib_save_LIBS
19921fi
19922echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
19923echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
19924if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 19925 JPEG_LINK=" -ljpeg"
90dd450c
VZ
19926fi
19927
21d1c967 19928 fi
90dd450c 19929
21d1c967
GD
19930 if test "x$JPEG_LINK" = "x" ; then
19931 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
19932 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
19933echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
19934 { (exit 1); exit 1; }; }
21d1c967 19935 else
e6cc62c6
VS
19936 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
19937echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
19938 wxUSE_LIBJPEG=builtin
19939 fi
19940 else
19941 wxUSE_LIBJPEG=sys
19942 fi
19943 fi
19944 fi
21d1c967 19945fi
90dd450c 19946
8284b0c5 19947
21d1c967 19948TIFF_LINK=
2b5f62a0 19949TIFF_PREREQ_LINKS=-lm
21d1c967 19950if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 19951 cat >>confdefs.h <<\_ACEOF
21d1c967 19952#define wxUSE_LIBTIFF 1
e6cc62c6 19953_ACEOF
21d1c967 19954
8284b0c5 19955
21d1c967 19956 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
19957 if test "$wxUSE_LIBJPEG" = "sys"; then
19958 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
19959 fi
19960 if test "$wxUSE_ZLIB" = "sys"; then
19961 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
19962 fi
e6cc62c6
VS
19963 if test "${ac_cv_header_tiffio_h+set}" = set; then
19964 echo "$as_me:$LINENO: checking for tiffio.h" >&5
19965echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19966if test "${ac_cv_header_tiffio_h+set}" = set; then
19967 echo $ECHO_N "(cached) $ECHO_C" >&6
19968fi
19969echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19970echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19971else
19972 # Is the header compilable?
19973echo "$as_me:$LINENO: checking tiffio.h usability" >&5
19974echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
19975cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19976/* confdefs.h. */
19977_ACEOF
19978cat confdefs.h >>conftest.$ac_ext
19979cat >>conftest.$ac_ext <<_ACEOF
19980/* end confdefs.h. */
19981$ac_includes_default
247f5006 19982#include <tiffio.h>
e6cc62c6
VS
19983_ACEOF
19984rm -f conftest.$ac_objext
19985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 19986 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19987 ac_status=$?
eea650d8
VS
19988 grep -v '^ *+' conftest.er1 >conftest.err
19989 rm -f conftest.er1
19990 cat conftest.err >&5
e6cc62c6
VS
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } &&
eea650d8
VS
19993 { ac_try='test -z "$ac_c_werror_flag"
19994 || test ! -s conftest.err'
19995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19996 (eval $ac_try) 2>&5
19997 ac_status=$?
19998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); }; } &&
20000 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20002 (eval $ac_try) 2>&5
20003 ac_status=$?
20004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); }; }; then
20006 ac_header_compiler=yes
20007else
20008 echo "$as_me: failed program was:" >&5
20009sed 's/^/| /' conftest.$ac_ext >&5
20010
20011ac_header_compiler=no
20012fi
eea650d8 20013rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20014echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20015echo "${ECHO_T}$ac_header_compiler" >&6
20016
20017# Is the header present?
20018echo "$as_me:$LINENO: checking tiffio.h presence" >&5
20019echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
20020cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20021/* confdefs.h. */
20022_ACEOF
20023cat confdefs.h >>conftest.$ac_ext
20024cat >>conftest.$ac_ext <<_ACEOF
20025/* end confdefs.h. */
20026#include <tiffio.h>
20027_ACEOF
20028if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20030 ac_status=$?
20031 grep -v '^ *+' conftest.er1 >conftest.err
20032 rm -f conftest.er1
20033 cat conftest.err >&5
20034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035 (exit $ac_status); } >/dev/null; then
20036 if test -s conftest.err; then
20037 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 20038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
20039 else
20040 ac_cpp_err=
20041 fi
20042else
20043 ac_cpp_err=yes
20044fi
20045if test -z "$ac_cpp_err"; then
20046 ac_header_preproc=yes
20047else
20048 echo "$as_me: failed program was:" >&5
20049sed 's/^/| /' conftest.$ac_ext >&5
20050
20051 ac_header_preproc=no
20052fi
20053rm -f conftest.err conftest.$ac_ext
20054echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20055echo "${ECHO_T}$ac_header_preproc" >&6
20056
20057# So? What about this header?
eea650d8
VS
20058case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20059 yes:no: )
e6cc62c6
VS
20060 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
20061echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
20062 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
20063echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
20064 ac_header_preproc=yes
e6cc62c6 20065 ;;
eea650d8 20066 no:yes:* )
e6cc62c6
VS
20067 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
20068echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
eea650d8
VS
20069 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
20070echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
20071 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
20072echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
20073 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
20074echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
20075 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
20076echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
20077 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
20078echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
20079 (
20080 cat <<\_ASBOX
eea650d8
VS
20081## ----------------------------------------- ##
20082## Report this to wx-dev@lists.wxwindows.org ##
20083## ----------------------------------------- ##
e6cc62c6
VS
20084_ASBOX
20085 ) |
20086 sed "s/^/$as_me: WARNING: /" >&2
20087 ;;
20088esac
20089echo "$as_me:$LINENO: checking for tiffio.h" >&5
20090echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20091if test "${ac_cv_header_tiffio_h+set}" = set; then
20092 echo $ECHO_N "(cached) $ECHO_C" >&6
20093else
20094 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 20095fi
e6cc62c6
VS
20096echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20097echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20098
21d1c967 20099fi
e6cc62c6 20100if test $ac_cv_header_tiffio_h = yes; then
0e012a93
VZ
20101
20102 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
e6cc62c6
VS
20103echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
20104if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
20105 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 20106else
e6cc62c6 20107 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 20108LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6 20109cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20110/* confdefs.h. */
20111_ACEOF
20112cat confdefs.h >>conftest.$ac_ext
20113cat >>conftest.$ac_ext <<_ACEOF
20114/* end confdefs.h. */
20115
ab9b9eab 20116/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20117#ifdef __cplusplus
20118extern "C"
20119#endif
ab9b9eab 20120/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20121 builtin and then its argument prototype would still apply. */
20122char TIFFError ();
20123int
20124main ()
20125{
20126TIFFError ();
20127 ;
20128 return 0;
20129}
20130_ACEOF
20131rm -f conftest.$ac_objext conftest$ac_exeext
20132if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 20133 (eval $ac_link) 2>conftest.er1
e6cc62c6 20134 ac_status=$?
eea650d8
VS
20135 grep -v '^ *+' conftest.er1 >conftest.err
20136 rm -f conftest.er1
20137 cat conftest.err >&5
e6cc62c6
VS
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); } &&
eea650d8
VS
20140 { ac_try='test -z "$ac_c_werror_flag"
20141 || test ! -s conftest.err'
20142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20143 (eval $ac_try) 2>&5
20144 ac_status=$?
20145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20146 (exit $ac_status); }; } &&
20147 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20149 (eval $ac_try) 2>&5
20150 ac_status=$?
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); }; }; then
20153 ac_cv_lib_tiff_TIFFError=yes
20154else
20155 echo "$as_me: failed program was:" >&5
20156sed 's/^/| /' conftest.$ac_ext >&5
20157
20158ac_cv_lib_tiff_TIFFError=no
20159fi
eea650d8
VS
20160rm -f conftest.err conftest.$ac_objext \
20161 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
20162LIBS=$ac_check_lib_save_LIBS
20163fi
20164echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
20165echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
20166if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 20167 TIFF_LINK=" -ltiff"
a0b9e27f 20168fi
cd6d6d5b 20169
e6cc62c6 20170
0e012a93 20171
a0b9e27f 20172fi
8284b0c5 20173
247f5006 20174
e6cc62c6 20175
21d1c967
GD
20176 if test "x$TIFF_LINK" = "x" ; then
20177 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
20178 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
20179echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
20180 { (exit 1); exit 1; }; }
90dd450c 20181 else
e6cc62c6
VS
20182 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
20183echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 20184 wxUSE_LIBTIFF=builtin
d8356fa3 20185 fi
d8356fa3 20186 else
21d1c967 20187 wxUSE_LIBTIFF=sys
d8356fa3 20188 fi
21d1c967 20189 fi
21d1c967 20190fi
10f2d63a 20191
8284b0c5 20192
672abd7a 20193if test "$wxUSE_EXPAT" != "no"; then
e06468e8 20194 wxUSE_XML=yes
672abd7a
VS
20195 cat >>confdefs.h <<\_ACEOF
20196#define wxUSE_EXPAT 1
20197_ACEOF
20198
20199 cat >>confdefs.h <<\_ACEOF
20200#define wxUSE_XML 1
20201_ACEOF
20202
20203
20204 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
20205 if test "${ac_cv_header_expat_h+set}" = set; then
20206 echo "$as_me:$LINENO: checking for expat.h" >&5
20207echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20208if test "${ac_cv_header_expat_h+set}" = set; then
20209 echo $ECHO_N "(cached) $ECHO_C" >&6
20210fi
20211echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20212echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20213else
20214 # Is the header compilable?
20215echo "$as_me:$LINENO: checking expat.h usability" >&5
20216echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
20217cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
20218/* confdefs.h. */
20219_ACEOF
20220cat confdefs.h >>conftest.$ac_ext
20221cat >>conftest.$ac_ext <<_ACEOF
20222/* end confdefs.h. */
20223$ac_includes_default
20224#include <expat.h>
20225_ACEOF
20226rm -f conftest.$ac_objext
20227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 20228 (eval $ac_compile) 2>conftest.er1
672abd7a 20229 ac_status=$?
eea650d8
VS
20230 grep -v '^ *+' conftest.er1 >conftest.err
20231 rm -f conftest.er1
20232 cat conftest.err >&5
672abd7a
VS
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } &&
eea650d8
VS
20235 { ac_try='test -z "$ac_c_werror_flag"
20236 || test ! -s conftest.err'
20237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20238 (eval $ac_try) 2>&5
20239 ac_status=$?
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); }; } &&
20242 { ac_try='test -s conftest.$ac_objext'
672abd7a
VS
20243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244 (eval $ac_try) 2>&5
20245 ac_status=$?
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; }; then
20248 ac_header_compiler=yes
20249else
20250 echo "$as_me: failed program was:" >&5
20251sed 's/^/| /' conftest.$ac_ext >&5
20252
20253ac_header_compiler=no
20254fi
eea650d8 20255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
672abd7a
VS
20256echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20257echo "${ECHO_T}$ac_header_compiler" >&6
20258
20259# Is the header present?
20260echo "$as_me:$LINENO: checking expat.h presence" >&5
20261echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
20262cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
20263/* confdefs.h. */
20264_ACEOF
20265cat confdefs.h >>conftest.$ac_ext
20266cat >>conftest.$ac_ext <<_ACEOF
20267/* end confdefs.h. */
20268#include <expat.h>
20269_ACEOF
20270if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20271 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20272 ac_status=$?
20273 grep -v '^ *+' conftest.er1 >conftest.err
20274 rm -f conftest.er1
20275 cat conftest.err >&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); } >/dev/null; then
20278 if test -s conftest.err; then
20279 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 20280 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
672abd7a
VS
20281 else
20282 ac_cpp_err=
20283 fi
20284else
20285 ac_cpp_err=yes
20286fi
20287if test -z "$ac_cpp_err"; then
20288 ac_header_preproc=yes
20289else
20290 echo "$as_me: failed program was:" >&5
20291sed 's/^/| /' conftest.$ac_ext >&5
20292
20293 ac_header_preproc=no
20294fi
20295rm -f conftest.err conftest.$ac_ext
20296echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20297echo "${ECHO_T}$ac_header_preproc" >&6
20298
20299# So? What about this header?
eea650d8
VS
20300case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20301 yes:no: )
672abd7a
VS
20302 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
20303echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
20304 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
20305echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
20306 ac_header_preproc=yes
672abd7a 20307 ;;
eea650d8 20308 no:yes:* )
672abd7a
VS
20309 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
20310echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
eea650d8
VS
20311 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
20312echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
20313 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
20314echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
20315 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
20316echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
672abd7a
VS
20317 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
20318echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
20319 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
20320echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
672abd7a
VS
20321 (
20322 cat <<\_ASBOX
eea650d8
VS
20323## ----------------------------------------- ##
20324## Report this to wx-dev@lists.wxwindows.org ##
20325## ----------------------------------------- ##
672abd7a
VS
20326_ASBOX
20327 ) |
20328 sed "s/^/$as_me: WARNING: /" >&2
20329 ;;
20330esac
20331echo "$as_me:$LINENO: checking for expat.h" >&5
20332echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20333if test "${ac_cv_header_expat_h+set}" = set; then
20334 echo $ECHO_N "(cached) $ECHO_C" >&6
20335else
20336 ac_cv_header_expat_h=$ac_header_preproc
20337fi
20338echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20339echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20340
20341fi
5f0b6dff
VS
20342if test $ac_cv_header_expat_h = yes; then
20343 found_expat_h=1
20344fi
20345
20346
20347 if test "x$found_expat_h" = "x1"; then
20348 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
20349echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
20350if test "${wx_cv_expat_is_not_broken+set}" = set; then
20351 echo $ECHO_N "(cached) $ECHO_C" >&6
20352else
20353
20354
672abd7a 20355
5f0b6dff
VS
20356 ac_ext=cc
20357ac_cpp='$CXXCPP $CPPFLAGS'
20358ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20359ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20360ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20361
20362 cat >conftest.$ac_ext <<_ACEOF
5f0b6dff
VS
20363/* confdefs.h. */
20364_ACEOF
20365cat confdefs.h >>conftest.$ac_ext
20366cat >>conftest.$ac_ext <<_ACEOF
20367/* end confdefs.h. */
20368#include <expat.h>
20369int
20370main ()
20371{
672abd7a 20372
5f0b6dff
VS
20373 ;
20374 return 0;
20375}
20376_ACEOF
20377rm -f conftest.$ac_objext
20378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 20379 (eval $ac_compile) 2>conftest.er1
5f0b6dff 20380 ac_status=$?
eea650d8
VS
20381 grep -v '^ *+' conftest.er1 >conftest.err
20382 rm -f conftest.er1
20383 cat conftest.err >&5
5f0b6dff
VS
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); } &&
eea650d8
VS
20386 { ac_try='test -z "$ac_cxx_werror_flag"
20387 || test ! -s conftest.err'
20388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20389 (eval $ac_try) 2>&5
20390 ac_status=$?
20391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); }; } &&
20393 { ac_try='test -s conftest.$ac_objext'
5f0b6dff
VS
20394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20395 (eval $ac_try) 2>&5
20396 ac_status=$?
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); }; }; then
20399 wx_cv_expat_is_not_broken=yes
20400else
20401 echo "$as_me: failed program was:" >&5
20402sed 's/^/| /' conftest.$ac_ext >&5
20403
20404wx_cv_expat_is_not_broken=no
20405
20406fi
eea650d8 20407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5f0b6dff
VS
20408 ac_ext=c
20409ac_cpp='$CPP $CPPFLAGS'
20410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20412ac_compiler_gnu=$ac_cv_c_compiler_gnu
20413
20414
20415
20416fi
20417echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
20418echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
20419 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
20420 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
20421echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
20422if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
20423 echo $ECHO_N "(cached) $ECHO_C" >&6
20424else
20425 ac_check_lib_save_LIBS=$LIBS
20426LIBS="-lexpat $LIBS"
20427cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
20428/* confdefs.h. */
20429_ACEOF
20430cat confdefs.h >>conftest.$ac_ext
20431cat >>conftest.$ac_ext <<_ACEOF
20432/* end confdefs.h. */
20433
20434/* Override any gcc2 internal prototype to avoid an error. */
20435#ifdef __cplusplus
20436extern "C"
20437#endif
20438/* We use char because int might match the return type of a gcc2
20439 builtin and then its argument prototype would still apply. */
20440char XML_ParserCreate ();
20441int
20442main ()
20443{
20444XML_ParserCreate ();
20445 ;
20446 return 0;
20447}
20448_ACEOF
20449rm -f conftest.$ac_objext conftest$ac_exeext
20450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 20451 (eval $ac_link) 2>conftest.er1
672abd7a 20452 ac_status=$?
eea650d8
VS
20453 grep -v '^ *+' conftest.er1 >conftest.err
20454 rm -f conftest.er1
20455 cat conftest.err >&5
672abd7a
VS
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } &&
eea650d8
VS
20458 { ac_try='test -z "$ac_c_werror_flag"
20459 || test ! -s conftest.err'
20460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20461 (eval $ac_try) 2>&5
20462 ac_status=$?
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; } &&
20465 { ac_try='test -s conftest$ac_exeext'
672abd7a
VS
20466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20467 (eval $ac_try) 2>&5
20468 ac_status=$?
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); }; }; then
20471 ac_cv_lib_expat_XML_ParserCreate=yes
20472else
20473 echo "$as_me: failed program was:" >&5
20474sed 's/^/| /' conftest.$ac_ext >&5
20475
20476ac_cv_lib_expat_XML_ParserCreate=no
20477fi
eea650d8
VS
20478rm -f conftest.err conftest.$ac_objext \
20479 conftest$ac_exeext conftest.$ac_ext
672abd7a
VS
20480LIBS=$ac_check_lib_save_LIBS
20481fi
20482echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
20483echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
20484if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
20485 EXPAT_LINK=" -lexpat"
20486fi
20487
5f0b6dff 20488 fi
672abd7a
VS
20489 fi
20490 if test "x$EXPAT_LINK" = "x" ; then
20491 if test "$wxUSE_EXPAT" = "sys" ; then
20492 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
20493echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
20494 { (exit 1); exit 1; }; }
20495 else
20496 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
20497echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
20498 wxUSE_EXPAT=builtin
20499 fi
20500 else
20501 wxUSE_EXPAT=sys
20502 fi
20503 fi
20504 if test "$wxUSE_EXPAT" = "builtin" ; then
20505
20506
20507subdirs="$subdirs src/expat"
20508
20509 fi
20510fi
20511
20512
20513
3527f29c
VS
20514if test "$wxUSE_LIBMSPACK" != "no"; then
20515
20516 if test "${ac_cv_header_mspack_h+set}" = set; then
20517 echo "$as_me:$LINENO: checking for mspack.h" >&5
20518echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20519if test "${ac_cv_header_mspack_h+set}" = set; then
20520 echo $ECHO_N "(cached) $ECHO_C" >&6
20521fi
20522echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20523echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20524else
20525 # Is the header compilable?
20526echo "$as_me:$LINENO: checking mspack.h usability" >&5
20527echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
20528cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
20529/* confdefs.h. */
20530_ACEOF
20531cat confdefs.h >>conftest.$ac_ext
20532cat >>conftest.$ac_ext <<_ACEOF
20533/* end confdefs.h. */
20534$ac_includes_default
20535#include <mspack.h>
20536_ACEOF
20537rm -f conftest.$ac_objext
20538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 20539 (eval $ac_compile) 2>conftest.er1
3527f29c 20540 ac_status=$?
eea650d8
VS
20541 grep -v '^ *+' conftest.er1 >conftest.err
20542 rm -f conftest.er1
20543 cat conftest.err >&5
3527f29c
VS
20544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20545 (exit $ac_status); } &&
eea650d8
VS
20546 { ac_try='test -z "$ac_c_werror_flag"
20547 || test ! -s conftest.err'
20548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20549 (eval $ac_try) 2>&5
20550 ac_status=$?
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); }; } &&
20553 { ac_try='test -s conftest.$ac_objext'
3527f29c
VS
20554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20555 (eval $ac_try) 2>&5
20556 ac_status=$?
20557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558 (exit $ac_status); }; }; then
20559 ac_header_compiler=yes
20560else
20561 echo "$as_me: failed program was:" >&5
20562sed 's/^/| /' conftest.$ac_ext >&5
20563
20564ac_header_compiler=no
20565fi
eea650d8 20566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3527f29c
VS
20567echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20568echo "${ECHO_T}$ac_header_compiler" >&6
20569
20570# Is the header present?
20571echo "$as_me:$LINENO: checking mspack.h presence" >&5
20572echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
20573cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
20574/* confdefs.h. */
20575_ACEOF
20576cat confdefs.h >>conftest.$ac_ext
20577cat >>conftest.$ac_ext <<_ACEOF
20578/* end confdefs.h. */
20579#include <mspack.h>
20580_ACEOF
20581if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20582 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20583 ac_status=$?
20584 grep -v '^ *+' conftest.er1 >conftest.err
20585 rm -f conftest.er1
20586 cat conftest.err >&5
20587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20588 (exit $ac_status); } >/dev/null; then
20589 if test -s conftest.err; then
20590 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 20591 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3527f29c
VS
20592 else
20593 ac_cpp_err=
20594 fi
20595else
20596 ac_cpp_err=yes
20597fi
20598if test -z "$ac_cpp_err"; then
20599 ac_header_preproc=yes
20600else
20601 echo "$as_me: failed program was:" >&5
20602sed 's/^/| /' conftest.$ac_ext >&5
20603
20604 ac_header_preproc=no
20605fi
20606rm -f conftest.err conftest.$ac_ext
20607echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20608echo "${ECHO_T}$ac_header_preproc" >&6
20609
20610# So? What about this header?
eea650d8
VS
20611case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20612 yes:no: )
3527f29c
VS
20613 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
20614echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
20615 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
20616echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
20617 ac_header_preproc=yes
3527f29c 20618 ;;
eea650d8 20619 no:yes:* )
3527f29c
VS
20620 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
20621echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
eea650d8
VS
20622 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
20623echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
20624 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
20625echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
20626 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
20627echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
3527f29c
VS
20628 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
20629echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
20630 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
20631echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
3527f29c
VS
20632 (
20633 cat <<\_ASBOX
eea650d8
VS
20634## ----------------------------------------- ##
20635## Report this to wx-dev@lists.wxwindows.org ##
20636## ----------------------------------------- ##
3527f29c
VS
20637_ASBOX
20638 ) |
20639 sed "s/^/$as_me: WARNING: /" >&2
20640 ;;
20641esac
20642echo "$as_me:$LINENO: checking for mspack.h" >&5
20643echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20644if test "${ac_cv_header_mspack_h+set}" = set; then
20645 echo $ECHO_N "(cached) $ECHO_C" >&6
20646else
20647 ac_cv_header_mspack_h=$ac_header_preproc
20648fi
20649echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20650echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20651
20652fi
20653if test $ac_cv_header_mspack_h = yes; then
20654 found_mspack_h=1
20655fi
20656
20657
20658 if test "x$found_mspack_h" = "x1"; then
20659 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
20660echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
20661if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
20662 echo $ECHO_N "(cached) $ECHO_C" >&6
20663else
20664 ac_check_lib_save_LIBS=$LIBS
20665LIBS="-lmspack $LIBS"
20666cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
20667/* confdefs.h. */
20668_ACEOF
20669cat confdefs.h >>conftest.$ac_ext
20670cat >>conftest.$ac_ext <<_ACEOF
20671/* end confdefs.h. */
20672
20673/* Override any gcc2 internal prototype to avoid an error. */
20674#ifdef __cplusplus
20675extern "C"
20676#endif
20677/* We use char because int might match the return type of a gcc2
20678 builtin and then its argument prototype would still apply. */
20679char mspack_create_chm_decompressor ();
20680int
20681main ()
20682{
20683mspack_create_chm_decompressor ();
20684 ;
20685 return 0;
20686}
20687_ACEOF
20688rm -f conftest.$ac_objext conftest$ac_exeext
20689if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 20690 (eval $ac_link) 2>conftest.er1
3527f29c 20691 ac_status=$?
eea650d8
VS
20692 grep -v '^ *+' conftest.er1 >conftest.err
20693 rm -f conftest.er1
20694 cat conftest.err >&5
3527f29c
VS
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); } &&
eea650d8
VS
20697 { ac_try='test -z "$ac_c_werror_flag"
20698 || test ! -s conftest.err'
20699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20700 (eval $ac_try) 2>&5
20701 ac_status=$?
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); }; } &&
20704 { ac_try='test -s conftest$ac_exeext'
3527f29c
VS
20705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20706 (eval $ac_try) 2>&5
20707 ac_status=$?
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); }; }; then
20710 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
20711else
20712 echo "$as_me: failed program was:" >&5
20713sed 's/^/| /' conftest.$ac_ext >&5
20714
20715ac_cv_lib_mspack_mspack_create_chm_decompressor=no
20716fi
eea650d8
VS
20717rm -f conftest.err conftest.$ac_objext \
20718 conftest$ac_exeext conftest.$ac_ext
3527f29c
VS
20719LIBS=$ac_check_lib_save_LIBS
20720fi
20721echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
20722echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
20723if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
20724 MSPACK_LINK=" -lmspack"
20725fi
20726
20727 fi
20728 if test "x$MSPACK_LINK" = "x" ; then
20729 wxUSE_LIBMSPACK=no
20730 else
20731 cat >>confdefs.h <<\_ACEOF
20732#define wxUSE_LIBMSPACK 1
20733_ACEOF
20734
20735 fi
20736fi
20737
20738
20739
21d1c967 20740AFMINSTALL=
2b5f62a0 20741WIN32INSTALL=
90dd450c 20742
21d1c967
GD
20743TOOLKIT=
20744TOOLKIT_INCLUDE=
20745WIDGET_SET=
20746
20747if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
20748
20749for ac_header in w32api.h
21d1c967 20750do
e6cc62c6
VS
20751as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20752if eval "test \"\${$as_ac_Header+set}\" = set"; then
20753 echo "$as_me:$LINENO: checking for $ac_header" >&5
20754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20755if eval "test \"\${$as_ac_Header+set}\" = set"; then
20756 echo $ECHO_N "(cached) $ECHO_C" >&6
20757fi
20758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20759echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20760else
20761 # Is the header compilable?
20762echo "$as_me:$LINENO: checking $ac_header usability" >&5
20763echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20764cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20765/* confdefs.h. */
20766_ACEOF
20767cat confdefs.h >>conftest.$ac_ext
20768cat >>conftest.$ac_ext <<_ACEOF
20769/* end confdefs.h. */
20770$ac_includes_default
20771#include <$ac_header>
20772_ACEOF
20773rm -f conftest.$ac_objext
20774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 20775 (eval $ac_compile) 2>conftest.er1
e6cc62c6 20776 ac_status=$?
eea650d8
VS
20777 grep -v '^ *+' conftest.er1 >conftest.err
20778 rm -f conftest.er1
20779 cat conftest.err >&5
e6cc62c6
VS
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); } &&
eea650d8
VS
20782 { ac_try='test -z "$ac_c_werror_flag"
20783 || test ! -s conftest.err'
20784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20785 (eval $ac_try) 2>&5
20786 ac_status=$?
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); }; } &&
20789 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20791 (eval $ac_try) 2>&5
20792 ac_status=$?
20793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20794 (exit $ac_status); }; }; then
20795 ac_header_compiler=yes
20796else
20797 echo "$as_me: failed program was:" >&5
20798sed 's/^/| /' conftest.$ac_ext >&5
20799
20800ac_header_compiler=no
20801fi
eea650d8 20802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20803echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20804echo "${ECHO_T}$ac_header_compiler" >&6
20805
20806# Is the header present?
20807echo "$as_me:$LINENO: checking $ac_header presence" >&5
20808echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20809cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20810/* confdefs.h. */
20811_ACEOF
20812cat confdefs.h >>conftest.$ac_ext
20813cat >>conftest.$ac_ext <<_ACEOF
20814/* end confdefs.h. */
20815#include <$ac_header>
20816_ACEOF
20817if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20818 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20819 ac_status=$?
20820 grep -v '^ *+' conftest.er1 >conftest.err
20821 rm -f conftest.er1
20822 cat conftest.err >&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); } >/dev/null; then
20825 if test -s conftest.err; then
20826 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 20827 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
20828 else
20829 ac_cpp_err=
20830 fi
20831else
20832 ac_cpp_err=yes
20833fi
20834if test -z "$ac_cpp_err"; then
20835 ac_header_preproc=yes
20836else
20837 echo "$as_me: failed program was:" >&5
20838sed 's/^/| /' conftest.$ac_ext >&5
20839
20840 ac_header_preproc=no
20841fi
20842rm -f conftest.err conftest.$ac_ext
20843echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20844echo "${ECHO_T}$ac_header_preproc" >&6
20845
20846# So? What about this header?
eea650d8
VS
20847case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20848 yes:no: )
e6cc62c6
VS
20849 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20850echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
20851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20852echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20853 ac_header_preproc=yes
e6cc62c6 20854 ;;
eea650d8 20855 no:yes:* )
e6cc62c6
VS
20856 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20857echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
20858 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20859echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20860 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20861echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20862 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20863echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
20864 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20865echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
20866 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20867echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
20868 (
20869 cat <<\_ASBOX
eea650d8
VS
20870## ----------------------------------------- ##
20871## Report this to wx-dev@lists.wxwindows.org ##
20872## ----------------------------------------- ##
e6cc62c6
VS
20873_ASBOX
20874 ) |
20875 sed "s/^/$as_me: WARNING: /" >&2
20876 ;;
20877esac
20878echo "$as_me:$LINENO: checking for $ac_header" >&5
20879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20880if eval "test \"\${$as_ac_Header+set}\" = set"; then
20881 echo $ECHO_N "(cached) $ECHO_C" >&6
20882else
eea650d8 20883 eval "$as_ac_Header=\$ac_header_preproc"
f79bd02d 20884fi
e6cc62c6
VS
20885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20886echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20887
21d1c967 20888fi
e6cc62c6
VS
20889if test `eval echo '${'$as_ac_Header'}'` = yes; then
20890 cat >>confdefs.h <<_ACEOF
20891#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20892_ACEOF
20893
21d1c967 20894fi
e6cc62c6 20895
21d1c967 20896done
f79bd02d 20897
e6cc62c6
VS
20898 if test "${ac_cv_header_windows_h+set}" = set; then
20899 echo "$as_me:$LINENO: checking for windows.h" >&5
20900echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
20901if test "${ac_cv_header_windows_h+set}" = set; then
20902 echo $ECHO_N "(cached) $ECHO_C" >&6
20903fi
20904echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20905echo "${ECHO_T}$ac_cv_header_windows_h" >&6
20906else
20907 # Is the header compilable?
20908echo "$as_me:$LINENO: checking windows.h usability" >&5
20909echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
20910cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20911/* confdefs.h. */
20912_ACEOF
20913cat confdefs.h >>conftest.$ac_ext
20914cat >>conftest.$ac_ext <<_ACEOF
20915/* end confdefs.h. */
20916$ac_includes_default
247f5006 20917#include <windows.h>
e6cc62c6
VS
20918_ACEOF
20919rm -f conftest.$ac_objext
20920if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 20921 (eval $ac_compile) 2>conftest.er1
e6cc62c6 20922 ac_status=$?
eea650d8
VS
20923 grep -v '^ *+' conftest.er1 >conftest.err
20924 rm -f conftest.er1
20925 cat conftest.err >&5
e6cc62c6
VS
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); } &&
eea650d8
VS
20928 { ac_try='test -z "$ac_c_werror_flag"
20929 || test ! -s conftest.err'
20930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20931 (eval $ac_try) 2>&5
20932 ac_status=$?
20933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20934 (exit $ac_status); }; } &&
20935 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20937 (eval $ac_try) 2>&5
20938 ac_status=$?
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); }; }; then
20941 ac_header_compiler=yes
20942else
20943 echo "$as_me: failed program was:" >&5
20944sed 's/^/| /' conftest.$ac_ext >&5
20945
20946ac_header_compiler=no
20947fi
eea650d8 20948rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20949echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20950echo "${ECHO_T}$ac_header_compiler" >&6
20951
20952# Is the header present?
20953echo "$as_me:$LINENO: checking windows.h presence" >&5
20954echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
20955cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20956/* confdefs.h. */
20957_ACEOF
20958cat confdefs.h >>conftest.$ac_ext
20959cat >>conftest.$ac_ext <<_ACEOF
20960/* end confdefs.h. */
20961#include <windows.h>
20962_ACEOF
20963if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20964 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20965 ac_status=$?
20966 grep -v '^ *+' conftest.er1 >conftest.err
20967 rm -f conftest.er1
20968 cat conftest.err >&5
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); } >/dev/null; then
20971 if test -s conftest.err; then
20972 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 20973 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
20974 else
20975 ac_cpp_err=
20976 fi
20977else
20978 ac_cpp_err=yes
20979fi
20980if test -z "$ac_cpp_err"; then
20981 ac_header_preproc=yes
20982else
20983 echo "$as_me: failed program was:" >&5
20984sed 's/^/| /' conftest.$ac_ext >&5
20985
20986 ac_header_preproc=no
20987fi
20988rm -f conftest.err conftest.$ac_ext
20989echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20990echo "${ECHO_T}$ac_header_preproc" >&6
20991
20992# So? What about this header?
eea650d8
VS
20993case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20994 yes:no: )
e6cc62c6
VS
20995 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
20996echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
20997 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
20998echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
20999 ac_header_preproc=yes
e6cc62c6 21000 ;;
eea650d8 21001 no:yes:* )
e6cc62c6
VS
21002 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21003echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
eea650d8
VS
21004 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21005echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
21006 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21007echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21008 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
21009echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
21010 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21011echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
21012 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21013echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
21014 (
21015 cat <<\_ASBOX
eea650d8
VS
21016## ----------------------------------------- ##
21017## Report this to wx-dev@lists.wxwindows.org ##
21018## ----------------------------------------- ##
e6cc62c6
VS
21019_ASBOX
21020 ) |
21021 sed "s/^/$as_me: WARNING: /" >&2
21022 ;;
21023esac
21024echo "$as_me:$LINENO: checking for windows.h" >&5
21025echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21026if test "${ac_cv_header_windows_h+set}" = set; then
21027 echo $ECHO_N "(cached) $ECHO_C" >&6
21028else
21029 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 21030fi
e6cc62c6
VS
21031echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21032echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21033
90dd450c 21034fi
e6cc62c6 21035if test $ac_cv_header_windows_h = yes; then
21d1c967 21036 :
90dd450c 21037else
21d1c967 21038
e6cc62c6
VS
21039 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
21040echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
21041 { (exit 1); exit 1; }; }
21042
5c6fa7d2 21043fi
7b4a847f 21044
5c6fa7d2 21045
e6cc62c6 21046
b3dfbbc9 21047 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 21048
7bb2947d
MB
21049 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
21050 LIBS="$LIBS -loleacc"
21051 fi
21052
21d1c967
GD
21053 case "${host}" in
21054 *-*-cygwin* )
b3dfbbc9 21055 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 21056 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 21057 esac
f79bd02d 21058
8647bec6
RG
21059 if test "$wxUSE_ODBC" = "sys" ; then
21060 wxUSE_ODBC = "yes"
21d1c967 21061 fi
8647bec6
RG
21062 if test "$wxUSE_ODBC" = "yes" ; then
21063 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 21064 cat >>confdefs.h <<\_ACEOF
8647bec6 21065#define wxUSE_ODBC 1
e6cc62c6 21066_ACEOF
f79bd02d 21067
8647bec6 21068 fi
e6cc62c6 21069
21d1c967
GD
21070 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
21071 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
21072
21073 WIN32INSTALL=win32install
f79bd02d 21074fi
f79bd02d 21075
21d1c967
GD
21076if test "$wxUSE_GUI" = "yes"; then
21077 USE_GUI=1
f79bd02d 21078
21d1c967 21079 GUI_TK_LIBRARY=
f79bd02d 21080
21d1c967
GD
21081 WXGTK12=
21082 WXGTK127=
21083 WXGTK20=
f79bd02d 21084
21d1c967
GD
21085 if test "$wxUSE_MSW" = 1 ; then
21086 TOOLKIT=MSW
21087 GUIDIST=MSW_DIST
ffef10f6
VS
21088
21089 case "${host}" in
21090 *-*-mingw32* )
21091 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
21092 esac
f79bd02d
JS
21093 fi
21094
21d1c967 21095 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
21096 echo "$as_me:$LINENO: checking for GTK+ version" >&5
21097echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
21098
21099 gtk_version_cached=1
e6cc62c6
VS
21100 if test "${wx_cv_lib_gtk+set}" = set; then
21101 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 21102else
e6cc62c6 21103
21d1c967 21104 gtk_version_cached=0
e6cc62c6
VS
21105 echo "$as_me:$LINENO: result: " >&5
21106echo "${ECHO_T}" >&6
f79bd02d 21107
21d1c967
GD
21108 GTK_MODULES=
21109 if test "$wxUSE_THREADS" = "yes"; then
21110 GTK_MODULES=gthread
21111 fi
f79bd02d 21112
2b5f62a0 21113 wx_cv_lib_gtk=
21d1c967
GD
21114 if test "x$wxUSE_GTK2" = "xyes"; then
21115 # Check whether --enable-gtktest or --disable-gtktest was given.
21116if test "${enable_gtktest+set}" = set; then
21117 enableval="$enable_gtktest"
e6cc62c6 21118
f79bd02d 21119else
21d1c967 21120 enable_gtktest=yes
e6cc62c6 21121fi;
f79bd02d 21122
21d1c967
GD
21123 pkg_config_args=gtk+-2.0
21124 for module in . $GTK_MODULES
21125 do
21126 case "$module" in
e6cc62c6 21127 gthread)
21d1c967
GD
21128 pkg_config_args="$pkg_config_args gthread-2.0"
21129 ;;
21130 esac
21131 done
21132
21133 no_gtk=""
f79bd02d 21134
21d1c967
GD
21135 # Extract the first word of "pkg-config", so it can be a program name with args.
21136set dummy pkg-config; ac_word=$2
e6cc62c6
VS
21137echo "$as_me:$LINENO: checking for $ac_word" >&5
21138echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21139if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21140 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 21141else
e6cc62c6
VS
21142 case $PKG_CONFIG in
21143 [\\/]* | ?:[\\/]*)
21d1c967
GD
21144 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21145 ;;
21d1c967 21146 *)
e6cc62c6
VS
21147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21148for as_dir in $PATH
21149do
21150 IFS=$as_save_IFS
21151 test -z "$as_dir" && as_dir=.
21152 for ac_exec_ext in '' $ac_executable_extensions; do
21153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21154 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21156 break 2
21157 fi
21158done
21159done
21160
21d1c967
GD
21161 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21162 ;;
21163esac
f79bd02d 21164fi
e6cc62c6
VS
21165PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21166
21d1c967 21167if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
21168 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21169echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 21170else
e6cc62c6
VS
21171 echo "$as_me:$LINENO: result: no" >&5
21172echo "${ECHO_T}no" >&6
f79bd02d
JS
21173fi
21174
8284b0c5 21175
21d1c967
GD
21176 if test x$PKG_CONFIG != xno ; then
21177 if pkg-config --atleast-pkgconfig-version 0.7 ; then
21178 :
21179 else
21180 echo *** pkg-config too old; version 0.7 or better required.
21181 no_gtk=yes
21182 PKG_CONFIG=no
21183 fi
21184 else
21185 no_gtk=yes
21186 fi
f79bd02d 21187
21d1c967 21188 min_gtk_version=2.0.0
e6cc62c6
VS
21189 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
21190echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 21191
21d1c967
GD
21192 if test x$PKG_CONFIG != xno ; then
21193 ## don't try to run the test against uninstalled libtool libs
21194 if $PKG_CONFIG --uninstalled $pkg_config_args; then
21195 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
21196 enable_gtktest=no
21197 fi
f79bd02d 21198
21d1c967
GD
21199 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
21200 :
21201 else
21202 no_gtk=yes
21203 fi
21204 fi
f79bd02d 21205
21d1c967
GD
21206 if test x"$no_gtk" = x ; then
21207 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
21208 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
21209 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21210 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21211 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21212 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21213 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21214 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21215 if test "x$enable_gtktest" = "xyes" ; then
21216 ac_save_CFLAGS="$CFLAGS"
21217 ac_save_LIBS="$LIBS"
21218 CFLAGS="$CFLAGS $GTK_CFLAGS"
21219 LIBS="$GTK_LIBS $LIBS"
21220 rm -f conf.gtktest
21221 if test "$cross_compiling" = yes; then
21222 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 21223else
e6cc62c6 21224 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21225/* confdefs.h. */
21226_ACEOF
21227cat confdefs.h >>conftest.$ac_ext
21228cat >>conftest.$ac_ext <<_ACEOF
21229/* end confdefs.h. */
f79bd02d 21230
21d1c967
GD
21231#include <gtk/gtk.h>
21232#include <stdio.h>
21233#include <stdlib.h>
f79bd02d 21234
e6cc62c6 21235int
21d1c967
GD
21236main ()
21237{
21238 int major, minor, micro;
21239 char *tmp_version;
f79bd02d 21240
21d1c967 21241 system ("touch conf.gtktest");
f79bd02d 21242
21d1c967
GD
21243 /* HP/UX 9 (%@#!) writes to sscanf strings */
21244 tmp_version = g_strdup("$min_gtk_version");
21245 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21246 printf("%s, bad version string\n", "$min_gtk_version");
21247 exit(1);
21248 }
f79bd02d 21249
21d1c967
GD
21250 if ((gtk_major_version != $gtk_config_major_version) ||
21251 (gtk_minor_version != $gtk_config_minor_version) ||
21252 (gtk_micro_version != $gtk_config_micro_version))
21253 {
e6cc62c6 21254 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
21255 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21256 gtk_major_version, gtk_minor_version, gtk_micro_version);
21257 printf ("*** was found! If pkg-config was correct, then it is best\n");
21258 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21259 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21260 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21261 printf("*** required on your system.\n");
21262 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
21263 printf("*** to point to the correct configuration files\n");
e6cc62c6 21264 }
21d1c967
GD
21265 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21266 (gtk_minor_version != GTK_MINOR_VERSION) ||
21267 (gtk_micro_version != GTK_MICRO_VERSION))
21268 {
21269 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21270 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21271 printf("*** library (version %d.%d.%d)\n",
21272 gtk_major_version, gtk_minor_version, gtk_micro_version);
21273 }
21274 else
21275 {
21276 if ((gtk_major_version > major) ||
21277 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21278 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21279 {
21280 return 0;
21281 }
21282 else
21283 {
21284 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21285 gtk_major_version, gtk_minor_version, gtk_micro_version);
21286 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21287 major, minor, micro);
21288 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21289 printf("***\n");
21290 printf("*** If you have already installed a sufficiently new version, this error\n");
21291 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
21292 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21293 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
21294 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
21295 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21296 printf("*** so that the correct libraries are found at run-time))\n");
21297 }
21298 }
21299 return 1;
21300}
f79bd02d 21301
e6cc62c6
VS
21302_ACEOF
21303rm -f conftest$ac_exeext
21304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21305 (eval $ac_link) 2>&5
21306 ac_status=$?
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21310 (eval $ac_try) 2>&5
21311 ac_status=$?
21312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21313 (exit $ac_status); }; }; then
21d1c967 21314 :
f79bd02d 21315else
e6cc62c6
VS
21316 echo "$as_me: program exited with status $ac_status" >&5
21317echo "$as_me: failed program was:" >&5
21318sed 's/^/| /' conftest.$ac_ext >&5
21319
21320( exit $ac_status )
21321no_gtk=yes
f79bd02d 21322fi
eea650d8 21323rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 21324fi
21d1c967
GD
21325 CFLAGS="$ac_save_CFLAGS"
21326 LIBS="$ac_save_LIBS"
21327 fi
21328 fi
21329 if test "x$no_gtk" = x ; then
e6cc62c6
VS
21330 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
21331echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
21332 wx_cv_lib_gtk=2.0
21d1c967 21333 else
e6cc62c6
VS
21334 echo "$as_me:$LINENO: result: no" >&5
21335echo "${ECHO_T}no" >&6
21d1c967
GD
21336 if test "$PKG_CONFIG" = "no" ; then
21337 echo "*** A new enough version of pkg-config was not found."
21338 echo "*** See http://pkgconfig.sourceforge.net"
21339 else
21340 if test -f conf.gtktest ; then
21341 :
21342 else
21343 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
21344 ac_save_CFLAGS="$CFLAGS"
21345 ac_save_LIBS="$LIBS"
21d1c967
GD
21346 CFLAGS="$CFLAGS $GTK_CFLAGS"
21347 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 21348 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21349/* confdefs.h. */
21350_ACEOF
21351cat confdefs.h >>conftest.$ac_ext
21352cat >>conftest.$ac_ext <<_ACEOF
21353/* end confdefs.h. */
21d1c967
GD
21354
21355#include <gtk/gtk.h>
21356#include <stdio.h>
f79bd02d 21357
e6cc62c6
VS
21358int
21359main ()
21360{
21361 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21362 ;
21363 return 0;
21364}
21365_ACEOF
21366rm -f conftest.$ac_objext conftest$ac_exeext
21367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 21368 (eval $ac_link) 2>conftest.er1
e6cc62c6 21369 ac_status=$?
eea650d8
VS
21370 grep -v '^ *+' conftest.er1 >conftest.err
21371 rm -f conftest.er1
21372 cat conftest.err >&5
e6cc62c6
VS
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); } &&
eea650d8
VS
21375 { ac_try='test -z "$ac_c_werror_flag"
21376 || test ! -s conftest.err'
21377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21378 (eval $ac_try) 2>&5
21379 ac_status=$?
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); }; } &&
21382 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21384 (eval $ac_try) 2>&5
21385 ac_status=$?
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); }; }; then
21d1c967
GD
21388 echo "*** The test program compiled, but did not run. This usually means"
21389 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
21390 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
21391 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21392 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21393 echo "*** is required on your system"
21394 echo "***"
21395 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 21396 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 21397else
e6cc62c6
VS
21398 echo "$as_me: failed program was:" >&5
21399sed 's/^/| /' conftest.$ac_ext >&5
21400
21401 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 21402 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 21403fi
eea650d8
VS
21404rm -f conftest.err conftest.$ac_objext \
21405 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
21406 CFLAGS="$ac_save_CFLAGS"
21407 LIBS="$ac_save_LIBS"
21408 fi
21409 fi
21410 GTK_CFLAGS=""
21411 GTK_LIBS=""
21412 :
21413 fi
e6cc62c6
VS
21414
21415
21d1c967 21416 rm -f conf.gtktest
f79bd02d 21417
2b5f62a0 21418 else
e6cc62c6
VS
21419
21420# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
21421if test "${with_gtk_prefix+set}" = set; then
21422 withval="$with_gtk_prefix"
21423 gtk_config_prefix="$withval"
21424else
21425 gtk_config_prefix=""
e6cc62c6 21426fi;
f79bd02d 21427
21d1c967
GD
21428# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21429if test "${with_gtk_exec_prefix+set}" = set; then
21430 withval="$with_gtk_exec_prefix"
21431 gtk_config_exec_prefix="$withval"
21432else
21433 gtk_config_exec_prefix=""
e6cc62c6 21434fi;
21d1c967
GD
21435# Check whether --enable-gtktest or --disable-gtktest was given.
21436if test "${enable_gtktest+set}" = set; then
21437 enableval="$enable_gtktest"
e6cc62c6 21438
21d1c967
GD
21439else
21440 enable_gtktest=yes
e6cc62c6 21441fi;
21d1c967
GD
21442
21443 for module in . $GTK_MODULES
21444 do
21445 case "$module" in
e6cc62c6 21446 gthread)
21d1c967
GD
21447 gtk_config_args="$gtk_config_args gthread"
21448 ;;
21449 esac
21450 done
21451
21452 if test x$gtk_config_exec_prefix != x ; then
21453 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
21454 if test x${GTK_CONFIG+set} != xset ; then
21455 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
21456 fi
21457 fi
21458 if test x$gtk_config_prefix != x ; then
21459 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
21460 if test x${GTK_CONFIG+set} != xset ; then
21461 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
21462 fi
21463 fi
21464
21465 # Extract the first word of "gtk-config", so it can be a program name with args.
21466set dummy gtk-config; ac_word=$2
e6cc62c6
VS
21467echo "$as_me:$LINENO: checking for $ac_word" >&5
21468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21469if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
21470 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 21471else
e6cc62c6
VS
21472 case $GTK_CONFIG in
21473 [\\/]* | ?:[\\/]*)
21d1c967
GD
21474 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
21475 ;;
21d1c967 21476 *)
e6cc62c6
VS
21477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21478for as_dir in $PATH
21479do
21480 IFS=$as_save_IFS
21481 test -z "$as_dir" && as_dir=.
21482 for ac_exec_ext in '' $ac_executable_extensions; do
21483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21484 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21486 break 2
21487 fi
21488done
21489done
21490
21d1c967
GD
21491 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21492 ;;
21493esac
21494fi
e6cc62c6
VS
21495GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21496
21d1c967 21497if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
21498 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21499echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 21500else
e6cc62c6
VS
21501 echo "$as_me:$LINENO: result: no" >&5
21502echo "${ECHO_T}no" >&6
21d1c967
GD
21503fi
21504
21505 min_gtk_version=1.2.7
e6cc62c6
VS
21506 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21507echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
21508 no_gtk=""
21509 if test "$GTK_CONFIG" = "no" ; then
21510 no_gtk=yes
21511 else
21512 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21513 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21514 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21515 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21516 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21517 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21518 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21519 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21520 if test "x$enable_gtktest" = "xyes" ; then
21521 ac_save_CFLAGS="$CFLAGS"
21522 ac_save_LIBS="$LIBS"
21523 CFLAGS="$CFLAGS $GTK_CFLAGS"
21524 LIBS="$GTK_LIBS $LIBS"
21525 rm -f conf.gtktest
21526 if test "$cross_compiling" = yes; then
21527 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 21528else
e6cc62c6 21529 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21530/* confdefs.h. */
21531_ACEOF
21532cat confdefs.h >>conftest.$ac_ext
21533cat >>conftest.$ac_ext <<_ACEOF
21534/* end confdefs.h. */
f79bd02d 21535
21d1c967
GD
21536#include <gtk/gtk.h>
21537#include <stdio.h>
21538#include <stdlib.h>
f79bd02d 21539
e6cc62c6 21540int
21d1c967
GD
21541main ()
21542{
21543 int major, minor, micro;
21544 char *tmp_version;
21545
21546 system ("touch conf.gtktest");
21547
21548 /* HP/UX 9 (%@#!) writes to sscanf strings */
21549 tmp_version = g_strdup("$min_gtk_version");
21550 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21551 printf("%s, bad version string\n", "$min_gtk_version");
21552 exit(1);
21553 }
90dd450c 21554
21d1c967
GD
21555 if ((gtk_major_version != $gtk_config_major_version) ||
21556 (gtk_minor_version != $gtk_config_minor_version) ||
21557 (gtk_micro_version != $gtk_config_micro_version))
21558 {
e6cc62c6 21559 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
21560 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21561 gtk_major_version, gtk_minor_version, gtk_micro_version);
21562 printf ("*** was found! If gtk-config was correct, then it is best\n");
21563 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21564 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21565 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21566 printf("*** required on your system.\n");
21567 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21568 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21569 printf("*** before re-running configure\n");
e6cc62c6 21570 }
21d1c967
GD
21571#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21572 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21573 (gtk_minor_version != GTK_MINOR_VERSION) ||
21574 (gtk_micro_version != GTK_MICRO_VERSION))
21575 {
21576 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21577 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21578 printf("*** library (version %d.%d.%d)\n",
21579 gtk_major_version, gtk_minor_version, gtk_micro_version);
21580 }
21581#endif /* defined (GTK_MAJOR_VERSION) ... */
21582 else
21583 {
21584 if ((gtk_major_version > major) ||
21585 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21586 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21587 {
21588 return 0;
21589 }
21590 else
21591 {
21592 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21593 gtk_major_version, gtk_minor_version, gtk_micro_version);
21594 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21595 major, minor, micro);
21596 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21597 printf("***\n");
21598 printf("*** If you have already installed a sufficiently new version, this error\n");
21599 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21600 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21601 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21602 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21603 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21604 printf("*** so that the correct libraries are found at run-time))\n");
21605 }
21606 }
21607 return 1;
21608}
21609
e6cc62c6
VS
21610_ACEOF
21611rm -f conftest$ac_exeext
21612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21613 (eval $ac_link) 2>&5
21614 ac_status=$?
21615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21616 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618 (eval $ac_try) 2>&5
21619 ac_status=$?
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); }; }; then
21d1c967
GD
21622 :
21623else
e6cc62c6
VS
21624 echo "$as_me: program exited with status $ac_status" >&5
21625echo "$as_me: failed program was:" >&5
21626sed 's/^/| /' conftest.$ac_ext >&5
21627
21628( exit $ac_status )
21629no_gtk=yes
21d1c967 21630fi
eea650d8 21631rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 21632fi
21d1c967
GD
21633 CFLAGS="$ac_save_CFLAGS"
21634 LIBS="$ac_save_LIBS"
21635 fi
21636 fi
21637 if test "x$no_gtk" = x ; then
e6cc62c6
VS
21638 echo "$as_me:$LINENO: result: yes" >&5
21639echo "${ECHO_T}yes" >&6
21640 wx_cv_lib_gtk=1.2.7
21d1c967 21641 else
e6cc62c6
VS
21642 echo "$as_me:$LINENO: result: no" >&5
21643echo "${ECHO_T}no" >&6
21d1c967
GD
21644 if test "$GTK_CONFIG" = "no" ; then
21645 echo "*** The gtk-config script installed by GTK could not be found"
21646 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21647 echo "*** your path, or set the GTK_CONFIG environment variable to the"
21648 echo "*** full path to gtk-config."
21649 else
21650 if test -f conf.gtktest ; then
21651 :
21652 else
21653 echo "*** Could not run GTK test program, checking why..."
21654 CFLAGS="$CFLAGS $GTK_CFLAGS"
21655 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 21656 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21657/* confdefs.h. */
21658_ACEOF
21659cat confdefs.h >>conftest.$ac_ext
21660cat >>conftest.$ac_ext <<_ACEOF
21661/* end confdefs.h. */
21d1c967
GD
21662
21663#include <gtk/gtk.h>
21664#include <stdio.h>
21665
e6cc62c6
VS
21666int
21667main ()
21668{
21669 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21670 ;
21671 return 0;
21672}
21673_ACEOF
21674rm -f conftest.$ac_objext conftest$ac_exeext
21675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 21676 (eval $ac_link) 2>conftest.er1
e6cc62c6 21677 ac_status=$?
eea650d8
VS
21678 grep -v '^ *+' conftest.er1 >conftest.err
21679 rm -f conftest.er1
21680 cat conftest.err >&5
e6cc62c6
VS
21681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21682 (exit $ac_status); } &&
eea650d8
VS
21683 { ac_try='test -z "$ac_c_werror_flag"
21684 || test ! -s conftest.err'
21685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21686 (eval $ac_try) 2>&5
21687 ac_status=$?
21688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); }; } &&
21690 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21692 (eval $ac_try) 2>&5
21693 ac_status=$?
21694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21695 (exit $ac_status); }; }; then
21d1c967
GD
21696 echo "*** The test program compiled, but did not run. This usually means"
21697 echo "*** that the run-time linker is not finding GTK or finding the wrong"
21698 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
21699 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21700 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21701 echo "*** is required on your system"
21702 echo "***"
21703 echo "*** If you have an old version installed, it is best to remove it, although"
21704 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21705 echo "***"
21706 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
21707 echo "*** came with the system with the command"
21708 echo "***"
e6cc62c6 21709 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 21710else
e6cc62c6
VS
21711 echo "$as_me: failed program was:" >&5
21712sed 's/^/| /' conftest.$ac_ext >&5
21713
21714 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
21715 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
21716 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 21717 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 21718fi
eea650d8
VS
21719rm -f conftest.err conftest.$ac_objext \
21720 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
21721 CFLAGS="$ac_save_CFLAGS"
21722 LIBS="$ac_save_LIBS"
21723 fi
21724 fi
21725 GTK_CFLAGS=""
21726 GTK_LIBS=""
21727 :
21728 fi
e6cc62c6
VS
21729
21730
21d1c967
GD
21731 rm -f conf.gtktest
21732
21d1c967 21733
2b5f62a0 21734 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
21735
21736# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
21737if test "${with_gtk_prefix+set}" = set; then
21738 withval="$with_gtk_prefix"
21739 gtk_config_prefix="$withval"
21740else
21741 gtk_config_prefix=""
e6cc62c6 21742fi;
f79bd02d 21743
21d1c967
GD
21744# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21745if test "${with_gtk_exec_prefix+set}" = set; then
21746 withval="$with_gtk_exec_prefix"
21747 gtk_config_exec_prefix="$withval"
21748else
21749 gtk_config_exec_prefix=""
e6cc62c6 21750fi;
21d1c967
GD
21751# Check whether --enable-gtktest or --disable-gtktest was given.
21752if test "${enable_gtktest+set}" = set; then
21753 enableval="$enable_gtktest"
e6cc62c6 21754
90dd450c 21755else
21d1c967 21756 enable_gtktest=yes
e6cc62c6 21757fi;
21d1c967
GD
21758
21759 for module in . $GTK_MODULES
21760 do
21761 case "$module" in
e6cc62c6 21762 gthread)
21d1c967
GD
21763 gtk_config_args="$gtk_config_args gthread"
21764 ;;
21765 esac
21766 done
21767
21768 if test x$gtk_config_exec_prefix != x ; then
21769 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
21770 if test x${GTK_CONFIG+set} != xset ; then
21771 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
21772 fi
21773 fi
21774 if test x$gtk_config_prefix != x ; then
21775 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
21776 if test x${GTK_CONFIG+set} != xset ; then
21777 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
21778 fi
21779 fi
21780
21781 # Extract the first word of "gtk-config", so it can be a program name with args.
21782set dummy gtk-config; ac_word=$2
e6cc62c6
VS
21783echo "$as_me:$LINENO: checking for $ac_word" >&5
21784echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21785if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
21786 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21787else
e6cc62c6
VS
21788 case $GTK_CONFIG in
21789 [\\/]* | ?:[\\/]*)
21d1c967
GD
21790 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
21791 ;;
21d1c967 21792 *)
e6cc62c6
VS
21793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21794for as_dir in $PATH
21795do
21796 IFS=$as_save_IFS
21797 test -z "$as_dir" && as_dir=.
21798 for ac_exec_ext in '' $ac_executable_extensions; do
21799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21800 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21802 break 2
21803 fi
21804done
21805done
21806
21d1c967
GD
21807 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21808 ;;
21809esac
21810fi
e6cc62c6
VS
21811GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21812
21d1c967 21813if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
21814 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21815echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 21816else
e6cc62c6
VS
21817 echo "$as_me:$LINENO: result: no" >&5
21818echo "${ECHO_T}no" >&6
21d1c967
GD
21819fi
21820
21821 min_gtk_version=1.2.3
e6cc62c6
VS
21822 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21823echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
21824 no_gtk=""
21825 if test "$GTK_CONFIG" = "no" ; then
21826 no_gtk=yes
21827 else
21828 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21829 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21830 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21831 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21832 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21833 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21834 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21835 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21836 if test "x$enable_gtktest" = "xyes" ; then
21837 ac_save_CFLAGS="$CFLAGS"
21838 ac_save_LIBS="$LIBS"
21839 CFLAGS="$CFLAGS $GTK_CFLAGS"
21840 LIBS="$GTK_LIBS $LIBS"
21841 rm -f conf.gtktest
21842 if test "$cross_compiling" = yes; then
21843 echo $ac_n "cross compiling; assumed OK... $ac_c"
21844else
e6cc62c6 21845 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21846/* confdefs.h. */
21847_ACEOF
21848cat confdefs.h >>conftest.$ac_ext
21849cat >>conftest.$ac_ext <<_ACEOF
21850/* end confdefs.h. */
21d1c967
GD
21851
21852#include <gtk/gtk.h>
21853#include <stdio.h>
21854#include <stdlib.h>
21855
e6cc62c6 21856int
21d1c967
GD
21857main ()
21858{
21859 int major, minor, micro;
21860 char *tmp_version;
21861
21862 system ("touch conf.gtktest");
21863
21864 /* HP/UX 9 (%@#!) writes to sscanf strings */
21865 tmp_version = g_strdup("$min_gtk_version");
21866 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21867 printf("%s, bad version string\n", "$min_gtk_version");
21868 exit(1);
21869 }
21870
21871 if ((gtk_major_version != $gtk_config_major_version) ||
21872 (gtk_minor_version != $gtk_config_minor_version) ||
21873 (gtk_micro_version != $gtk_config_micro_version))
21874 {
e6cc62c6 21875 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
21876 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21877 gtk_major_version, gtk_minor_version, gtk_micro_version);
21878 printf ("*** was found! If gtk-config was correct, then it is best\n");
21879 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21880 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21881 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21882 printf("*** required on your system.\n");
21883 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21884 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21885 printf("*** before re-running configure\n");
e6cc62c6 21886 }
21d1c967
GD
21887#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21888 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21889 (gtk_minor_version != GTK_MINOR_VERSION) ||
21890 (gtk_micro_version != GTK_MICRO_VERSION))
21891 {
21892 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21893 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21894 printf("*** library (version %d.%d.%d)\n",
21895 gtk_major_version, gtk_minor_version, gtk_micro_version);
21896 }
21897#endif /* defined (GTK_MAJOR_VERSION) ... */
21898 else
21899 {
21900 if ((gtk_major_version > major) ||
21901 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21902 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21903 {
21904 return 0;
21905 }
21906 else
21907 {
21908 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21909 gtk_major_version, gtk_minor_version, gtk_micro_version);
21910 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21911 major, minor, micro);
21912 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21913 printf("***\n");
21914 printf("*** If you have already installed a sufficiently new version, this error\n");
21915 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21916 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21917 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21918 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21919 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21920 printf("*** so that the correct libraries are found at run-time))\n");
21921 }
21922 }
21923 return 1;
21924}
21925
e6cc62c6
VS
21926_ACEOF
21927rm -f conftest$ac_exeext
21928if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21929 (eval $ac_link) 2>&5
21930 ac_status=$?
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934 (eval $ac_try) 2>&5
21935 ac_status=$?
21936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937 (exit $ac_status); }; }; then
21d1c967
GD
21938 :
21939else
e6cc62c6
VS
21940 echo "$as_me: program exited with status $ac_status" >&5
21941echo "$as_me: failed program was:" >&5
21942sed 's/^/| /' conftest.$ac_ext >&5
21943
21944( exit $ac_status )
21945no_gtk=yes
21d1c967 21946fi
eea650d8 21947rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 21948fi
21d1c967
GD
21949 CFLAGS="$ac_save_CFLAGS"
21950 LIBS="$ac_save_LIBS"
21951 fi
21952 fi
21953 if test "x$no_gtk" = x ; then
e6cc62c6
VS
21954 echo "$as_me:$LINENO: result: yes" >&5
21955echo "${ECHO_T}yes" >&6
21956 wx_cv_lib_gtk=1.2.3
21d1c967 21957 else
e6cc62c6
VS
21958 echo "$as_me:$LINENO: result: no" >&5
21959echo "${ECHO_T}no" >&6
21d1c967
GD
21960 if test "$GTK_CONFIG" = "no" ; then
21961 echo "*** The gtk-config script installed by GTK could not be found"
21962 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21963 echo "*** your path, or set the GTK_CONFIG environment variable to the"
21964 echo "*** full path to gtk-config."
21965 else
21966 if test -f conf.gtktest ; then
21967 :
21968 else
21969 echo "*** Could not run GTK test program, checking why..."
21970 CFLAGS="$CFLAGS $GTK_CFLAGS"
21971 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 21972 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21973/* confdefs.h. */
21974_ACEOF
21975cat confdefs.h >>conftest.$ac_ext
21976cat >>conftest.$ac_ext <<_ACEOF
21977/* end confdefs.h. */
21d1c967
GD
21978
21979#include <gtk/gtk.h>
21980#include <stdio.h>
f79bd02d 21981
e6cc62c6
VS
21982int
21983main ()
21984{
21985 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21986 ;
21987 return 0;
21988}
21989_ACEOF
21990rm -f conftest.$ac_objext conftest$ac_exeext
21991if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 21992 (eval $ac_link) 2>conftest.er1
e6cc62c6 21993 ac_status=$?
eea650d8
VS
21994 grep -v '^ *+' conftest.er1 >conftest.err
21995 rm -f conftest.er1
21996 cat conftest.err >&5
e6cc62c6
VS
21997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); } &&
eea650d8
VS
21999 { ac_try='test -z "$ac_c_werror_flag"
22000 || test ! -s conftest.err'
22001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22002 (eval $ac_try) 2>&5
22003 ac_status=$?
22004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22005 (exit $ac_status); }; } &&
22006 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22008 (eval $ac_try) 2>&5
22009 ac_status=$?
22010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011 (exit $ac_status); }; }; then
21d1c967
GD
22012 echo "*** The test program compiled, but did not run. This usually means"
22013 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22014 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22015 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22016 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22017 echo "*** is required on your system"
22018 echo "***"
22019 echo "*** If you have an old version installed, it is best to remove it, although"
22020 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22021 echo "***"
22022 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22023 echo "*** came with the system with the command"
22024 echo "***"
e6cc62c6 22025 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 22026else
e6cc62c6
VS
22027 echo "$as_me: failed program was:" >&5
22028sed 's/^/| /' conftest.$ac_ext >&5
22029
22030 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
22031 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22032 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 22033 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 22034fi
eea650d8
VS
22035rm -f conftest.err conftest.$ac_objext \
22036 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
22037 CFLAGS="$ac_save_CFLAGS"
22038 LIBS="$ac_save_LIBS"
22039 fi
22040 fi
22041 GTK_CFLAGS=""
22042 GTK_LIBS=""
22043 :
22044 fi
e6cc62c6
VS
22045
22046
21d1c967 22047 rm -f conf.gtktest
f79bd02d 22048
2b5f62a0 22049 fi
21d1c967
GD
22050 fi
22051
22052 if test -z "$wx_cv_lib_gtk"; then
22053 wx_cv_lib_gtk=none
22054 else
22055 wx_cv_cflags_gtk=$GTK_CFLAGS
22056 wx_cv_libs_gtk=$GTK_LIBS
22057 fi
e6cc62c6
VS
22058
22059
5c6fa7d2 22060fi
52127426 22061
8284b0c5 22062
21d1c967 22063 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
22064 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
22065echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
22066 fi
22067
22068 case "$wx_cv_lib_gtk" in
22069 2.0) WXGTK20=1
2b5f62a0 22070 TOOLKIT_VERSION=2
21d1c967
GD
22071 ;;
22072 1.2.7) WXGTK127=1
22073 WXGTK12=1
22074 ;;
22075 1.2.3) WXGTK12=1
22076 ;;
e6cc62c6
VS
22077 *) { { echo "$as_me:$LINENO: error:
22078Please check that gtk-config is in path, the directory
22079where GTK+ libraries are installed (returned by
22080'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22081equivalent variable and GTK+ is version 1.2.3 or above.
22082 " >&5
22083echo "$as_me: error:
247f5006
VZ
22084Please check that gtk-config is in path, the directory
22085where GTK+ libraries are installed (returned by
22086'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22087equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
22088 " >&2;}
22089 { (exit 1); exit 1; }; }
21d1c967
GD
22090 ;;
22091 esac
22092
b13cd66e
VZ
22093 if test "$WXGTK20" = 1; then
22094 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 22095
f09359cf
VS
22096 succeeded=no
22097
22098 if test -z "$PKG_CONFIG"; then
22099 # Extract the first word of "pkg-config", so it can be a program name with args.
22100set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22101echo "$as_me:$LINENO: checking for $ac_word" >&5
22102echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22103if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22104 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 22105else
e6cc62c6
VS
22106 case $PKG_CONFIG in
22107 [\\/]* | ?:[\\/]*)
f09359cf
VS
22108 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22109 ;;
f09359cf 22110 *)
e6cc62c6
VS
22111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22112for as_dir in $PATH
22113do
22114 IFS=$as_save_IFS
22115 test -z "$as_dir" && as_dir=.
22116 for ac_exec_ext in '' $ac_executable_extensions; do
22117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22118 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22120 break 2
22121 fi
22122done
22123done
22124
f09359cf
VS
22125 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22126 ;;
22127esac
22128fi
e6cc62c6
VS
22129PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22130
f09359cf 22131if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22132 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22133echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 22134else
e6cc62c6
VS
22135 echo "$as_me:$LINENO: result: no" >&5
22136echo "${ECHO_T}no" >&6
f09359cf
VS
22137fi
22138
22139 fi
22140
22141 if test "$PKG_CONFIG" = "no" ; then
22142 echo "*** The pkg-config script could not be found. Make sure it is"
22143 echo "*** in your path, or set the PKG_CONFIG environment variable"
22144 echo "*** to the full path to pkg-config."
22145 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22146 else
22147 PKG_CONFIG_MIN_VERSION=0.9.0
22148 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22149 echo "$as_me:$LINENO: checking for pangoft2" >&5
22150echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
22151
22152 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22153 echo "$as_me:$LINENO: result: yes" >&5
22154echo "${ECHO_T}yes" >&6
f09359cf
VS
22155 succeeded=yes
22156
e6cc62c6
VS
22157 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22158echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 22159 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22160 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22161echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 22162
e6cc62c6
VS
22163 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22164echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 22165 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22166 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22167echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
22168 else
22169 PANGOFT2_CFLAGS=""
22170 PANGOFT2_LIBS=""
e6cc62c6 22171 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
22172 ## do set a variable so people can do so.
22173 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22174
f09359cf
VS
22175 fi
22176
e6cc62c6
VS
22177
22178
f09359cf
VS
22179 else
22180 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22181 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22182 fi
22183 fi
22184
22185 if test $succeeded = yes; then
e6cc62c6 22186
b13cd66e 22187 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22188 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22189
f09359cf 22190 else
e6cc62c6
VS
22191
22192 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22193echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 22194 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22195
22196
f09359cf
VS
22197 fi
22198
b13cd66e 22199 fi
2b5f62a0
VZ
22200 else
22201 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
22202 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
22203echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
22204 wxUSE_UNICODE=no
22205 fi
22206 fi
22207
22208 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
22209
22210for ac_func in poll
2b5f62a0 22211do
e6cc62c6
VS
22212as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22213echo "$as_me:$LINENO: checking for $ac_func" >&5
22214echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22215if eval "test \"\${$as_ac_var+set}\" = set"; then
22216 echo $ECHO_N "(cached) $ECHO_C" >&6
22217else
22218 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22219/* confdefs.h. */
22220_ACEOF
22221cat confdefs.h >>conftest.$ac_ext
22222cat >>conftest.$ac_ext <<_ACEOF
22223/* end confdefs.h. */
eea650d8
VS
22224/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22226#define $ac_func innocuous_$ac_func
22227
2b5f62a0 22228/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22229 which can conflict with char $ac_func (); below.
22230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22231 <limits.h> exists even on freestanding compilers. */
eea650d8 22232
e6cc62c6
VS
22233#ifdef __STDC__
22234# include <limits.h>
22235#else
22236# include <assert.h>
22237#endif
eea650d8
VS
22238
22239#undef $ac_func
22240
2b5f62a0 22241/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22242#ifdef __cplusplus
22243extern "C"
22244{
22245#endif
2b5f62a0 22246/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22247 builtin and then its argument prototype would still apply. */
22248char $ac_func ();
2b5f62a0
VZ
22249/* The GNU C library defines this for functions which it implements
22250 to always fail with ENOSYS. Some functions are actually named
22251 something starting with __ and the normal name is an alias. */
22252#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22253choke me
22254#else
e6cc62c6
VS
22255char (*f) () = $ac_func;
22256#endif
22257#ifdef __cplusplus
22258}
2b5f62a0
VZ
22259#endif
22260
e6cc62c6
VS
22261int
22262main ()
22263{
22264return f != $ac_func;
22265 ;
22266 return 0;
22267}
22268_ACEOF
22269rm -f conftest.$ac_objext conftest$ac_exeext
22270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 22271 (eval $ac_link) 2>conftest.er1
e6cc62c6 22272 ac_status=$?
eea650d8
VS
22273 grep -v '^ *+' conftest.er1 >conftest.err
22274 rm -f conftest.er1
22275 cat conftest.err >&5
e6cc62c6
VS
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); } &&
eea650d8
VS
22278 { ac_try='test -z "$ac_c_werror_flag"
22279 || test ! -s conftest.err'
22280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22281 (eval $ac_try) 2>&5
22282 ac_status=$?
22283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22284 (exit $ac_status); }; } &&
22285 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22287 (eval $ac_try) 2>&5
22288 ac_status=$?
22289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22290 (exit $ac_status); }; }; then
22291 eval "$as_ac_var=yes"
22292else
22293 echo "$as_me: failed program was:" >&5
22294sed 's/^/| /' conftest.$ac_ext >&5
22295
22296eval "$as_ac_var=no"
22297fi
eea650d8
VS
22298rm -f conftest.err conftest.$ac_objext \
22299 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22300fi
22301echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22302echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22303if test `eval echo '${'$as_ac_var'}'` = yes; then
22304 cat >>confdefs.h <<_ACEOF
22305#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22306_ACEOF
2b5f62a0 22307
2b5f62a0
VZ
22308fi
22309done
22310
f09359cf
VS
22311 fi
22312
21d1c967 22313 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 22314 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
22315
22316 AFMINSTALL=afminstall
22317 TOOLKIT=GTK
22318 GUIDIST=GTK_DIST
22319
e6cc62c6
VS
22320 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
22321echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
22322if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
22323 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22324else
e6cc62c6 22325 ac_check_lib_save_LIBS=$LIBS
21d1c967 22326LIBS="-lgdk $LIBS"
e6cc62c6 22327cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22328/* confdefs.h. */
22329_ACEOF
22330cat confdefs.h >>conftest.$ac_ext
22331cat >>conftest.$ac_ext <<_ACEOF
22332/* end confdefs.h. */
22333
5c6fa7d2 22334/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22335#ifdef __cplusplus
22336extern "C"
22337#endif
5c6fa7d2 22338/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22339 builtin and then its argument prototype would still apply. */
22340char gdk_im_open ();
22341int
22342main ()
22343{
22344gdk_im_open ();
22345 ;
22346 return 0;
22347}
22348_ACEOF
22349rm -f conftest.$ac_objext conftest$ac_exeext
22350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 22351 (eval $ac_link) 2>conftest.er1
e6cc62c6 22352 ac_status=$?
eea650d8
VS
22353 grep -v '^ *+' conftest.er1 >conftest.err
22354 rm -f conftest.er1
22355 cat conftest.err >&5
e6cc62c6
VS
22356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22357 (exit $ac_status); } &&
eea650d8
VS
22358 { ac_try='test -z "$ac_c_werror_flag"
22359 || test ! -s conftest.err'
22360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22361 (eval $ac_try) 2>&5
22362 ac_status=$?
22363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22364 (exit $ac_status); }; } &&
22365 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22367 (eval $ac_try) 2>&5
22368 ac_status=$?
22369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22370 (exit $ac_status); }; }; then
22371 ac_cv_lib_gdk_gdk_im_open=yes
22372else
22373 echo "$as_me: failed program was:" >&5
22374sed 's/^/| /' conftest.$ac_ext >&5
22375
22376ac_cv_lib_gdk_gdk_im_open=no
22377fi
eea650d8
VS
22378rm -f conftest.err conftest.$ac_objext \
22379 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22380LIBS=$ac_check_lib_save_LIBS
22381fi
22382echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
22383echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
22384if test $ac_cv_lib_gdk_gdk_im_open = yes; then
22385 cat >>confdefs.h <<\_ACEOF
21d1c967 22386#define HAVE_XIM 1
e6cc62c6 22387_ACEOF
21d1c967 22388
90dd450c 22389fi
1e6feb95 22390
21d1c967 22391 fi
1e6feb95 22392
21d1c967 22393 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
22394 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
22395echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 22396 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
22397 echo "$as_me:$LINENO: result: not found" >&5
22398echo "${ECHO_T}not found" >&6
22399 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
22400echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
22401 { (exit 1); exit 1; }; }
21d1c967 22402 else
e6cc62c6
VS
22403 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
22404echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
22405 fi
22406
e6cc62c6
VS
22407 echo "$as_me:$LINENO: checking for libmgl location" >&5
22408echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
e46d2a18 22409 case "${host}" in
21d1c967 22410 *-*-linux* )
e46d2a18
VS
22411 if test "x$wxUSE_SHARED" = xyes ; then
22412 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
63a76696 22413 else
e46d2a18 22414 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
63a76696 22415 fi
21d1c967
GD
22416 ;;
22417 *-pc-msdosdjgpp )
63a76696 22418 mgl_os_candidates="dos32/dj2"
21d1c967
GD
22419 ;;
22420 *)
e6cc62c6
VS
22421 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
22422echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
22423 { (exit 1); exit 1; }; }
21d1c967 22424 esac
1e6feb95 22425
21d1c967 22426 mgl_lib_type=""
63a76696
VS
22427 mgl_os=""
22428
22429 for mgl_os_i in $mgl_os_candidates ; do
22430 if test "x$mgl_os" = x ; then
22431 if test "$wxUSE_DEBUG_FLAG" = yes ; then
22432 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
22433 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
22434 mgl_lib_type=debug
22435 mgl_os=$mgl_os_i
22436 fi
22437 fi
22438 if test "x$mgl_lib_type" = x ; then
22439 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
22440 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
22441 mgl_lib_type=release
22442 mgl_os=$mgl_os_i
22443 fi
22444 fi
21d1c967 22445 fi
63a76696 22446 done
2224580a 22447
63a76696 22448 if test "x$mgl_os" = x ; then
e6cc62c6
VS
22449 echo "$as_me:$LINENO: result: not found" >&5
22450echo "${ECHO_T}not found" >&6
22451 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
22452echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
22453 { (exit 1); exit 1; }; }
63a76696 22454 fi
e6cc62c6
VS
22455 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
22456echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 22457
1d1b75ac
VZ
22458 wxUSE_UNIVERSAL="yes"
22459
21d1c967
GD
22460 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
22461 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
22462
90dd450c 22463 AFMINSTALL=afminstall
21d1c967
GD
22464 TOOLKIT=MGL
22465 GUIDIST=MGL_DIST
22466 fi
dad6c0ea 22467
21d1c967 22468 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
22469 echo "$as_me:$LINENO: checking for MicroWindows" >&5
22470echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 22471 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
22472 echo "$as_me:$LINENO: result: not found" >&5
22473echo "${ECHO_T}not found" >&6
22474 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
22475echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
22476 { (exit 1); exit 1; }; }
21d1c967 22477 else
e6cc62c6
VS
22478 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
22479echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 22480 fi
f6bcfd97 22481
21d1c967 22482 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
22483 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
22484echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 22485 else
e6cc62c6
VS
22486 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
22487echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
22488 { (exit 1); exit 1; }; }
90dd450c 22489 fi
0b2effe9 22490
21d1c967
GD
22491 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
22492 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
22493
1d1b75ac
VZ
22494 wxUSE_UNIVERSAL="yes"
22495
21d1c967
GD
22496 AFMINSTALL=afminstall
22497 TOOLKIT=MICROWIN
22498 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
22499
22500 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 22501 fi
f6bcfd97 22502
21d1c967 22503 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
22504 echo "$as_me:$LINENO: checking for X" >&5
22505echo $ECHO_N "checking for X... $ECHO_C" >&6
22506
d8356fa3 22507
21d1c967
GD
22508# Check whether --with-x or --without-x was given.
22509if test "${with_x+set}" = set; then
22510 withval="$with_x"
2224580a 22511
e6cc62c6 22512fi;
21d1c967
GD
22513# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22514if test "x$with_x" = xno; then
22515 # The user explicitly disabled X.
22516 have_x=disabled
22517else
22518 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22519 # Both variables are already set.
22520 have_x=yes
22521 else
e6cc62c6
VS
22522 if test "${ac_cv_have_x+set}" = set; then
22523 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
22524else
22525 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
22526ac_x_includes=no ac_x_libraries=no
22527rm -fr conftest.dir
22528if mkdir conftest.dir; then
22529 cd conftest.dir
21d1c967 22530 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 22531 cat >Imakefile <<'_ACEOF'
21d1c967
GD
22532acfindx:
22533 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 22534_ACEOF
21d1c967
GD
22535 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
22536 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22537 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22538 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22539 for ac_extension in a so sl; do
22540 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
eea650d8
VS
22541 test -f $ac_im_libdir/libX11.$ac_extension; then
22542 ac_im_usrlibdir=$ac_im_libdir; break
21d1c967
GD
22543 fi
22544 done
22545 # Screen out bogus values from the imake configuration. They are
22546 # bogus both because they are the default anyway, and because
22547 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 22548 case $ac_im_incroot in
21d1c967 22549 /usr/include) ;;
e6cc62c6 22550 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 22551 esac
e6cc62c6 22552 case $ac_im_usrlibdir in
21d1c967 22553 /usr/lib | /lib) ;;
e6cc62c6 22554 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
22555 esac
22556 fi
22557 cd ..
e6cc62c6 22558 rm -fr conftest.dir
21d1c967 22559fi
10f2d63a 22560
e6cc62c6
VS
22561# Standard set of common directories for X headers.
22562# Check X11 before X11Rn because it is often a symlink to the current release.
22563ac_x_header_dirs='
22564/usr/X11/include
22565/usr/X11R6/include
22566/usr/X11R5/include
22567/usr/X11R4/include
22568
22569/usr/include/X11
22570/usr/include/X11R6
22571/usr/include/X11R5
22572/usr/include/X11R4
22573
22574/usr/local/X11/include
22575/usr/local/X11R6/include
22576/usr/local/X11R5/include
22577/usr/local/X11R4/include
22578
22579/usr/local/include/X11
22580/usr/local/include/X11R6
22581/usr/local/include/X11R5
22582/usr/local/include/X11R4
22583
22584/usr/X386/include
22585/usr/x386/include
22586/usr/XFree86/include/X11
22587
22588/usr/include
22589/usr/local/include
22590/usr/unsupported/include
22591/usr/athena/include
22592/usr/local/x11r5/include
22593/usr/lpp/Xamples/include
22594
22595/usr/openwin/include
22596/usr/openwin/share/include'
22597
22598if test "$ac_x_includes" = no; then
22599 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 22600 # First, try using that file with no special directory specified.
e6cc62c6 22601 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22602/* confdefs.h. */
22603_ACEOF
22604cat confdefs.h >>conftest.$ac_ext
22605cat >>conftest.$ac_ext <<_ACEOF
22606/* end confdefs.h. */
22607#include <X11/Intrinsic.h>
22608_ACEOF
22609if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22610 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22611 ac_status=$?
22612 grep -v '^ *+' conftest.er1 >conftest.err
22613 rm -f conftest.er1
22614 cat conftest.err >&5
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); } >/dev/null; then
22617 if test -s conftest.err; then
22618 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 22619 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
22620 else
22621 ac_cpp_err=
22622 fi
22623else
22624 ac_cpp_err=yes
22625fi
22626if test -z "$ac_cpp_err"; then
21d1c967
GD
22627 # We can compile using X headers with no special include directory.
22628ac_x_includes=
90dd450c 22629else
e6cc62c6
VS
22630 echo "$as_me: failed program was:" >&5
22631sed 's/^/| /' conftest.$ac_ext >&5
22632
22633 for ac_dir in $ac_x_header_dirs; do
22634 if test -r "$ac_dir/X11/Intrinsic.h"; then
22635 ac_x_includes=$ac_dir
22636 break
22637 fi
22638done
3a922bb4 22639fi
e6cc62c6
VS
22640rm -f conftest.err conftest.$ac_ext
22641fi # $ac_x_includes = no
10f2d63a 22642
e6cc62c6 22643if test "$ac_x_libraries" = no; then
21d1c967 22644 # Check for the libraries.
21d1c967
GD
22645 # See if we find them without any special options.
22646 # Don't add to $LIBS permanently.
e6cc62c6
VS
22647 ac_save_LIBS=$LIBS
22648 LIBS="-lXt $LIBS"
22649 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22650/* confdefs.h. */
22651_ACEOF
22652cat confdefs.h >>conftest.$ac_ext
22653cat >>conftest.$ac_ext <<_ACEOF
22654/* end confdefs.h. */
22655#include <X11/Intrinsic.h>
22656int
22657main ()
22658{
22659XtMalloc (0)
22660 ;
22661 return 0;
22662}
22663_ACEOF
22664rm -f conftest.$ac_objext conftest$ac_exeext
22665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 22666 (eval $ac_link) 2>conftest.er1
e6cc62c6 22667 ac_status=$?
eea650d8
VS
22668 grep -v '^ *+' conftest.er1 >conftest.err
22669 rm -f conftest.er1
22670 cat conftest.err >&5
e6cc62c6
VS
22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); } &&
eea650d8
VS
22673 { ac_try='test -z "$ac_c_werror_flag"
22674 || test ! -s conftest.err'
22675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22676 (eval $ac_try) 2>&5
22677 ac_status=$?
22678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679 (exit $ac_status); }; } &&
22680 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22682 (eval $ac_try) 2>&5
22683 ac_status=$?
22684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22685 (exit $ac_status); }; }; then
22686 LIBS=$ac_save_LIBS
21d1c967
GD
22687# We can link X programs with no special library path.
22688ac_x_libraries=
3a922bb4 22689else
e6cc62c6
VS
22690 echo "$as_me: failed program was:" >&5
22691sed 's/^/| /' conftest.$ac_ext >&5
22692
22693LIBS=$ac_save_LIBS
22694for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 22695do
e6cc62c6 22696 # Don't even attempt the hair of trying to link an X program!
21d1c967 22697 for ac_extension in a so sl; do
e6cc62c6 22698 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
22699 ac_x_libraries=$ac_dir
22700 break 2
22701 fi
22702 done
22703done
3a922bb4 22704fi
eea650d8
VS
22705rm -f conftest.err conftest.$ac_objext \
22706 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 22707fi # $ac_x_libraries = no
90dd450c 22708
e6cc62c6 22709if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
22710 # Didn't find X anywhere. Cache the known absence of X.
22711 ac_cv_have_x="have_x=no"
22712else
22713 # Record where we found X for the cache.
22714 ac_cv_have_x="have_x=yes \
eea650d8 22715 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 22716fi
21d1c967 22717fi
e6cc62c6 22718
21d1c967
GD
22719 fi
22720 eval "$ac_cv_have_x"
22721fi # $with_x != no
90dd450c 22722
21d1c967 22723if test "$have_x" != yes; then
e6cc62c6
VS
22724 echo "$as_me:$LINENO: result: $have_x" >&5
22725echo "${ECHO_T}$have_x" >&6
21d1c967
GD
22726 no_x=yes
22727else
22728 # If each of the values was on the command line, it overrides each guess.
22729 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22730 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22731 # Update the cache value to reflect the command line values.
22732 ac_cv_have_x="have_x=yes \
22733 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
22734 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22735echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 22736fi
90dd450c 22737
21d1c967 22738if test "$no_x" = yes; then
90dd450c 22739 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
22740
22741cat >>confdefs.h <<\_ACEOF
90dd450c 22742#define X_DISPLAY_MISSING 1
e6cc62c6 22743_ACEOF
90dd450c
VZ
22744
22745 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22746else
22747 if test -n "$x_includes"; then
22748 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 22749 fi
3a922bb4 22750
90dd450c
VZ
22751 # It would also be nice to do this for all -L options, not just this one.
22752 if test -n "$x_libraries"; then
22753 X_LIBS="$X_LIBS -L$x_libraries"
22754 # For Solaris; some versions of Sun CC require a space after -R and
22755 # others require no space. Words are not sufficient . . . .
e6cc62c6 22756 case `(uname -sr) 2>/dev/null` in
90dd450c 22757 "SunOS 5"*)
e6cc62c6
VS
22758 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22759echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22760 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22761 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22762/* confdefs.h. */
22763_ACEOF
22764cat confdefs.h >>conftest.$ac_ext
22765cat >>conftest.$ac_ext <<_ACEOF
22766/* end confdefs.h. */
22767
22768int
22769main ()
22770{
90dd450c 22771
e6cc62c6
VS
22772 ;
22773 return 0;
22774}
22775_ACEOF
22776rm -f conftest.$ac_objext conftest$ac_exeext
22777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 22778 (eval $ac_link) 2>conftest.er1
e6cc62c6 22779 ac_status=$?
eea650d8
VS
22780 grep -v '^ *+' conftest.er1 >conftest.err
22781 rm -f conftest.er1
22782 cat conftest.err >&5
e6cc62c6
VS
22783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22784 (exit $ac_status); } &&
eea650d8
VS
22785 { ac_try='test -z "$ac_c_werror_flag"
22786 || test ! -s conftest.err'
22787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22788 (eval $ac_try) 2>&5
22789 ac_status=$?
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); }; } &&
22792 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22794 (eval $ac_try) 2>&5
22795 ac_status=$?
22796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22797 (exit $ac_status); }; }; then
90dd450c 22798 ac_R_nospace=yes
3a922bb4 22799else
e6cc62c6
VS
22800 echo "$as_me: failed program was:" >&5
22801sed 's/^/| /' conftest.$ac_ext >&5
22802
22803ac_R_nospace=no
3a922bb4 22804fi
eea650d8
VS
22805rm -f conftest.err conftest.$ac_objext \
22806 conftest$ac_exeext conftest.$ac_ext
90dd450c 22807 if test $ac_R_nospace = yes; then
e6cc62c6
VS
22808 echo "$as_me:$LINENO: result: no" >&5
22809echo "${ECHO_T}no" >&6
90dd450c
VZ
22810 X_LIBS="$X_LIBS -R$x_libraries"
22811 else
22812 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 22813 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22814/* confdefs.h. */
22815_ACEOF
22816cat confdefs.h >>conftest.$ac_ext
22817cat >>conftest.$ac_ext <<_ACEOF
22818/* end confdefs.h. */
22819
22820int
22821main ()
22822{
6f754473 22823
e6cc62c6
VS
22824 ;
22825 return 0;
22826}
22827_ACEOF
22828rm -f conftest.$ac_objext conftest$ac_exeext
22829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 22830 (eval $ac_link) 2>conftest.er1
e6cc62c6 22831 ac_status=$?
eea650d8
VS
22832 grep -v '^ *+' conftest.er1 >conftest.err
22833 rm -f conftest.er1
22834 cat conftest.err >&5
e6cc62c6
VS
22835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22836 (exit $ac_status); } &&
eea650d8
VS
22837 { ac_try='test -z "$ac_c_werror_flag"
22838 || test ! -s conftest.err'
22839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22840 (eval $ac_try) 2>&5
22841 ac_status=$?
22842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); }; } &&
22844 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22846 (eval $ac_try) 2>&5
22847 ac_status=$?
22848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); }; }; then
90dd450c
VZ
22850 ac_R_space=yes
22851else
e6cc62c6
VS
22852 echo "$as_me: failed program was:" >&5
22853sed 's/^/| /' conftest.$ac_ext >&5
22854
22855ac_R_space=no
90dd450c 22856fi
eea650d8
VS
22857rm -f conftest.err conftest.$ac_objext \
22858 conftest$ac_exeext conftest.$ac_ext
90dd450c 22859 if test $ac_R_space = yes; then
e6cc62c6
VS
22860 echo "$as_me:$LINENO: result: yes" >&5
22861echo "${ECHO_T}yes" >&6
90dd450c
VZ
22862 X_LIBS="$X_LIBS -R $x_libraries"
22863 else
e6cc62c6
VS
22864 echo "$as_me:$LINENO: result: neither works" >&5
22865echo "${ECHO_T}neither works" >&6
90dd450c
VZ
22866 fi
22867 fi
e6cc62c6 22868 LIBS=$ac_xsave_LIBS
90dd450c
VZ
22869 esac
22870 fi
22871
22872 # Check for system-dependent libraries X programs must link with.
22873 # Do this before checking for the system-independent R6 libraries
22874 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 22875
90dd450c
VZ
22876 if test "$ISC" = yes; then
22877 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22878 else
e6cc62c6
VS
22879 # Martyn Johnson says this is needed for Ultrix, if the X
22880 # libraries were built with DECnet support. And Karl Berry says
90dd450c 22881 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
22882 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22883 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22884/* confdefs.h. */
22885_ACEOF
22886cat confdefs.h >>conftest.$ac_ext
22887cat >>conftest.$ac_ext <<_ACEOF
22888/* end confdefs.h. */
22889
247f5006 22890/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22891#ifdef __cplusplus
22892extern "C"
22893#endif
247f5006 22894/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22895 builtin and then its argument prototype would still apply. */
22896char XOpenDisplay ();
22897int
22898main ()
22899{
22900XOpenDisplay ();
22901 ;
22902 return 0;
22903}
22904_ACEOF
22905rm -f conftest.$ac_objext conftest$ac_exeext
22906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 22907 (eval $ac_link) 2>conftest.er1
e6cc62c6 22908 ac_status=$?
eea650d8
VS
22909 grep -v '^ *+' conftest.er1 >conftest.err
22910 rm -f conftest.er1
22911 cat conftest.err >&5
e6cc62c6
VS
22912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913 (exit $ac_status); } &&
eea650d8
VS
22914 { ac_try='test -z "$ac_c_werror_flag"
22915 || test ! -s conftest.err'
22916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22917 (eval $ac_try) 2>&5
22918 ac_status=$?
22919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); }; } &&
22921 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22923 (eval $ac_try) 2>&5
22924 ac_status=$?
22925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); }; }; then
22927 :
22928else
22929 echo "$as_me: failed program was:" >&5
22930sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 22931
e6cc62c6
VS
22932echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22933echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22934if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22935 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22936else
e6cc62c6
VS
22937 ac_check_lib_save_LIBS=$LIBS
22938LIBS="-ldnet $LIBS"
22939cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22940/* confdefs.h. */
22941_ACEOF
22942cat confdefs.h >>conftest.$ac_ext
22943cat >>conftest.$ac_ext <<_ACEOF
22944/* end confdefs.h. */
a0b9e27f 22945
e6cc62c6
VS
22946/* Override any gcc2 internal prototype to avoid an error. */
22947#ifdef __cplusplus
22948extern "C"
22949#endif
22950/* We use char because int might match the return type of a gcc2
22951 builtin and then its argument prototype would still apply. */
22952char dnet_ntoa ();
22953int
22954main ()
22955{
22956dnet_ntoa ();
22957 ;
22958 return 0;
22959}
22960_ACEOF
22961rm -f conftest.$ac_objext conftest$ac_exeext
22962if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 22963 (eval $ac_link) 2>conftest.er1
e6cc62c6 22964 ac_status=$?
eea650d8
VS
22965 grep -v '^ *+' conftest.er1 >conftest.err
22966 rm -f conftest.er1
22967 cat conftest.err >&5
e6cc62c6
VS
22968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22969 (exit $ac_status); } &&
eea650d8
VS
22970 { ac_try='test -z "$ac_c_werror_flag"
22971 || test ! -s conftest.err'
22972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973 (eval $ac_try) 2>&5
22974 ac_status=$?
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); }; } &&
22977 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22979 (eval $ac_try) 2>&5
22980 ac_status=$?
22981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22982 (exit $ac_status); }; }; then
22983 ac_cv_lib_dnet_dnet_ntoa=yes
22984else
22985 echo "$as_me: failed program was:" >&5
22986sed 's/^/| /' conftest.$ac_ext >&5
22987
22988ac_cv_lib_dnet_dnet_ntoa=no
22989fi
eea650d8
VS
22990rm -f conftest.err conftest.$ac_objext \
22991 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22992LIBS=$ac_check_lib_save_LIBS
22993fi
22994echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
22995echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
22996if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 22997 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
22998fi
22999
90dd450c 23000 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
23001 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23002echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23003if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23004 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23005else
e6cc62c6 23006 ac_check_lib_save_LIBS=$LIBS
90dd450c 23007LIBS="-ldnet_stub $LIBS"
e6cc62c6 23008cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23009/* confdefs.h. */
23010_ACEOF
23011cat confdefs.h >>conftest.$ac_ext
23012cat >>conftest.$ac_ext <<_ACEOF
23013/* end confdefs.h. */
23014
90dd450c 23015/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23016#ifdef __cplusplus
23017extern "C"
23018#endif
90dd450c 23019/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23020 builtin and then its argument prototype would still apply. */
23021char dnet_ntoa ();
23022int
23023main ()
23024{
23025dnet_ntoa ();
23026 ;
23027 return 0;
23028}
23029_ACEOF
23030rm -f conftest.$ac_objext conftest$ac_exeext
23031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23032 (eval $ac_link) 2>conftest.er1
e6cc62c6 23033 ac_status=$?
eea650d8
VS
23034 grep -v '^ *+' conftest.er1 >conftest.err
23035 rm -f conftest.er1
23036 cat conftest.err >&5
e6cc62c6
VS
23037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); } &&
eea650d8
VS
23039 { ac_try='test -z "$ac_c_werror_flag"
23040 || test ! -s conftest.err'
23041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042 (eval $ac_try) 2>&5
23043 ac_status=$?
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); }; } &&
23046 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048 (eval $ac_try) 2>&5
23049 ac_status=$?
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); }; }; then
23052 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23053else
23054 echo "$as_me: failed program was:" >&5
23055sed 's/^/| /' conftest.$ac_ext >&5
23056
23057ac_cv_lib_dnet_stub_dnet_ntoa=no
23058fi
eea650d8
VS
23059rm -f conftest.err conftest.$ac_objext \
23060 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23061LIBS=$ac_check_lib_save_LIBS
23062fi
23063echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23064echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23065if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 23066 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
23067fi
23068
90dd450c 23069 fi
e6cc62c6 23070fi
eea650d8
VS
23071rm -f conftest.err conftest.$ac_objext \
23072 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 23073 LIBS="$ac_xsave_LIBS"
978f1259 23074
90dd450c
VZ
23075 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23076 # to get the SysV transport functions.
e6cc62c6 23077 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
23078 # needs -lnsl.
23079 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23080 # on Irix 5.2, according to T.E. Dickey.
23081 # The functions gethostbyname, getservbyname, and inet_addr are
23082 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23083 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23084echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23085if test "${ac_cv_func_gethostbyname+set}" = set; then
23086 echo $ECHO_N "(cached) $ECHO_C" >&6
23087else
23088 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23089/* confdefs.h. */
23090_ACEOF
23091cat confdefs.h >>conftest.$ac_ext
23092cat >>conftest.$ac_ext <<_ACEOF
23093/* end confdefs.h. */
eea650d8
VS
23094/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23096#define gethostbyname innocuous_gethostbyname
23097
90dd450c 23098/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23099 which can conflict with char gethostbyname (); below.
23100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23101 <limits.h> exists even on freestanding compilers. */
eea650d8 23102
e6cc62c6
VS
23103#ifdef __STDC__
23104# include <limits.h>
23105#else
23106# include <assert.h>
23107#endif
eea650d8
VS
23108
23109#undef gethostbyname
23110
90dd450c 23111/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23112#ifdef __cplusplus
23113extern "C"
23114{
23115#endif
90dd450c 23116/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23117 builtin and then its argument prototype would still apply. */
23118char gethostbyname ();
90dd450c
VZ
23119/* The GNU C library defines this for functions which it implements
23120 to always fail with ENOSYS. Some functions are actually named
23121 something starting with __ and the normal name is an alias. */
23122#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23123choke me
23124#else
e6cc62c6
VS
23125char (*f) () = gethostbyname;
23126#endif
23127#ifdef __cplusplus
23128}
90dd450c 23129#endif
978f1259 23130
e6cc62c6
VS
23131int
23132main ()
23133{
23134return f != gethostbyname;
23135 ;
23136 return 0;
23137}
23138_ACEOF
23139rm -f conftest.$ac_objext conftest$ac_exeext
23140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23141 (eval $ac_link) 2>conftest.er1
e6cc62c6 23142 ac_status=$?
eea650d8
VS
23143 grep -v '^ *+' conftest.er1 >conftest.err
23144 rm -f conftest.er1
23145 cat conftest.err >&5
e6cc62c6
VS
23146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); } &&
eea650d8
VS
23148 { ac_try='test -z "$ac_c_werror_flag"
23149 || test ! -s conftest.err'
23150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23151 (eval $ac_try) 2>&5
23152 ac_status=$?
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); }; } &&
23155 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23157 (eval $ac_try) 2>&5
23158 ac_status=$?
23159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); }; }; then
23161 ac_cv_func_gethostbyname=yes
23162else
23163 echo "$as_me: failed program was:" >&5
23164sed 's/^/| /' conftest.$ac_ext >&5
23165
23166ac_cv_func_gethostbyname=no
23167fi
eea650d8
VS
23168rm -f conftest.err conftest.$ac_objext \
23169 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23170fi
23171echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23172echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 23173
90dd450c 23174 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23175 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23176echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23177if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23178 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23179else
e6cc62c6 23180 ac_check_lib_save_LIBS=$LIBS
90dd450c 23181LIBS="-lnsl $LIBS"
e6cc62c6 23182cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23183/* confdefs.h. */
23184_ACEOF
23185cat confdefs.h >>conftest.$ac_ext
23186cat >>conftest.$ac_ext <<_ACEOF
23187/* end confdefs.h. */
23188
90dd450c 23189/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23190#ifdef __cplusplus
23191extern "C"
23192#endif
90dd450c 23193/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23194 builtin and then its argument prototype would still apply. */
23195char gethostbyname ();
23196int
23197main ()
23198{
23199gethostbyname ();
23200 ;
23201 return 0;
23202}
23203_ACEOF
23204rm -f conftest.$ac_objext conftest$ac_exeext
23205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23206 (eval $ac_link) 2>conftest.er1
e6cc62c6 23207 ac_status=$?
eea650d8
VS
23208 grep -v '^ *+' conftest.er1 >conftest.err
23209 rm -f conftest.er1
23210 cat conftest.err >&5
e6cc62c6
VS
23211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212 (exit $ac_status); } &&
eea650d8
VS
23213 { ac_try='test -z "$ac_c_werror_flag"
23214 || test ! -s conftest.err'
23215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23216 (eval $ac_try) 2>&5
23217 ac_status=$?
23218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219 (exit $ac_status); }; } &&
23220 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23222 (eval $ac_try) 2>&5
23223 ac_status=$?
23224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23225 (exit $ac_status); }; }; then
23226 ac_cv_lib_nsl_gethostbyname=yes
23227else
23228 echo "$as_me: failed program was:" >&5
23229sed 's/^/| /' conftest.$ac_ext >&5
23230
23231ac_cv_lib_nsl_gethostbyname=no
23232fi
eea650d8
VS
23233rm -f conftest.err conftest.$ac_objext \
23234 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23235LIBS=$ac_check_lib_save_LIBS
23236fi
23237echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23238echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23239if test $ac_cv_lib_nsl_gethostbyname = yes; then
23240 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23241fi
247f5006 23242
e6cc62c6 23243 if test $ac_cv_lib_nsl_gethostbyname = no; then
eea650d8 23244 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
23245echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23246if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23247 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23248else
e6cc62c6
VS
23249 ac_check_lib_save_LIBS=$LIBS
23250LIBS="-lbsd $LIBS"
23251cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23252/* confdefs.h. */
23253_ACEOF
23254cat confdefs.h >>conftest.$ac_ext
23255cat >>conftest.$ac_ext <<_ACEOF
23256/* end confdefs.h. */
23257
23258/* Override any gcc2 internal prototype to avoid an error. */
23259#ifdef __cplusplus
23260extern "C"
23261#endif
23262/* We use char because int might match the return type of a gcc2
23263 builtin and then its argument prototype would still apply. */
23264char gethostbyname ();
23265int
23266main ()
23267{
23268gethostbyname ();
23269 ;
23270 return 0;
23271}
23272_ACEOF
23273rm -f conftest.$ac_objext conftest$ac_exeext
23274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23275 (eval $ac_link) 2>conftest.er1
e6cc62c6 23276 ac_status=$?
eea650d8
VS
23277 grep -v '^ *+' conftest.er1 >conftest.err
23278 rm -f conftest.er1
23279 cat conftest.err >&5
e6cc62c6
VS
23280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 (exit $ac_status); } &&
eea650d8
VS
23282 { ac_try='test -z "$ac_c_werror_flag"
23283 || test ! -s conftest.err'
23284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23285 (eval $ac_try) 2>&5
23286 ac_status=$?
23287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); }; } &&
23289 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23291 (eval $ac_try) 2>&5
23292 ac_status=$?
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); }; }; then
23295 ac_cv_lib_bsd_gethostbyname=yes
23296else
23297 echo "$as_me: failed program was:" >&5
23298sed 's/^/| /' conftest.$ac_ext >&5
23299
23300ac_cv_lib_bsd_gethostbyname=no
23301fi
eea650d8
VS
23302rm -f conftest.err conftest.$ac_objext \
23303 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23304LIBS=$ac_check_lib_save_LIBS
23305fi
23306echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23307echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23308if test $ac_cv_lib_bsd_gethostbyname = yes; then
23309 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 23310fi
b12915c1 23311
e6cc62c6 23312 fi
90dd450c
VZ
23313 fi
23314
23315 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23316 # socket/setsockopt and other routines are undefined under SCO ODT
23317 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23318 # on later versions), says Simon Leinen: it contains gethostby*
23319 # variants that don't use the name server (or something). -lsocket
23320 # must be given before -lnsl if both are needed. We assume that
23321 # if connect needs -lnsl, so does gethostbyname.
23322 echo "$as_me:$LINENO: checking for connect" >&5
23323echo $ECHO_N "checking for connect... $ECHO_C" >&6
23324if test "${ac_cv_func_connect+set}" = set; then
23325 echo $ECHO_N "(cached) $ECHO_C" >&6
23326else
23327 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23328/* confdefs.h. */
23329_ACEOF
23330cat confdefs.h >>conftest.$ac_ext
23331cat >>conftest.$ac_ext <<_ACEOF
23332/* end confdefs.h. */
eea650d8
VS
23333/* Define connect to an innocuous variant, in case <limits.h> declares connect.
23334 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23335#define connect innocuous_connect
23336
90dd450c 23337/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23338 which can conflict with char connect (); below.
23339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23340 <limits.h> exists even on freestanding compilers. */
eea650d8 23341
e6cc62c6
VS
23342#ifdef __STDC__
23343# include <limits.h>
23344#else
23345# include <assert.h>
23346#endif
eea650d8
VS
23347
23348#undef connect
23349
90dd450c 23350/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23351#ifdef __cplusplus
23352extern "C"
23353{
23354#endif
90dd450c 23355/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23356 builtin and then its argument prototype would still apply. */
23357char connect ();
90dd450c
VZ
23358/* The GNU C library defines this for functions which it implements
23359 to always fail with ENOSYS. Some functions are actually named
23360 something starting with __ and the normal name is an alias. */
23361#if defined (__stub_connect) || defined (__stub___connect)
23362choke me
23363#else
e6cc62c6
VS
23364char (*f) () = connect;
23365#endif
23366#ifdef __cplusplus
23367}
90dd450c
VZ
23368#endif
23369
e6cc62c6
VS
23370int
23371main ()
23372{
23373return f != connect;
23374 ;
23375 return 0;
23376}
23377_ACEOF
23378rm -f conftest.$ac_objext conftest$ac_exeext
23379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23380 (eval $ac_link) 2>conftest.er1
e6cc62c6 23381 ac_status=$?
eea650d8
VS
23382 grep -v '^ *+' conftest.er1 >conftest.err
23383 rm -f conftest.er1
23384 cat conftest.err >&5
e6cc62c6
VS
23385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23386 (exit $ac_status); } &&
eea650d8
VS
23387 { ac_try='test -z "$ac_c_werror_flag"
23388 || test ! -s conftest.err'
23389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390 (eval $ac_try) 2>&5
23391 ac_status=$?
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); }; } &&
23394 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23396 (eval $ac_try) 2>&5
23397 ac_status=$?
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); }; }; then
23400 ac_cv_func_connect=yes
23401else
23402 echo "$as_me: failed program was:" >&5
23403sed 's/^/| /' conftest.$ac_ext >&5
23404
23405ac_cv_func_connect=no
23406fi
eea650d8
VS
23407rm -f conftest.err conftest.$ac_objext \
23408 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23409fi
23410echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23411echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 23412
90dd450c 23413 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
23414 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23415echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23416if test "${ac_cv_lib_socket_connect+set}" = set; then
23417 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23418else
e6cc62c6 23419 ac_check_lib_save_LIBS=$LIBS
90dd450c 23420LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 23421cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23422/* confdefs.h. */
23423_ACEOF
23424cat confdefs.h >>conftest.$ac_ext
23425cat >>conftest.$ac_ext <<_ACEOF
23426/* end confdefs.h. */
23427
90dd450c 23428/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23429#ifdef __cplusplus
23430extern "C"
23431#endif
90dd450c 23432/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23433 builtin and then its argument prototype would still apply. */
23434char connect ();
23435int
23436main ()
23437{
23438connect ();
23439 ;
23440 return 0;
23441}
23442_ACEOF
23443rm -f conftest.$ac_objext conftest$ac_exeext
23444if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23445 (eval $ac_link) 2>conftest.er1
e6cc62c6 23446 ac_status=$?
eea650d8
VS
23447 grep -v '^ *+' conftest.er1 >conftest.err
23448 rm -f conftest.er1
23449 cat conftest.err >&5
e6cc62c6
VS
23450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23451 (exit $ac_status); } &&
eea650d8
VS
23452 { ac_try='test -z "$ac_c_werror_flag"
23453 || test ! -s conftest.err'
23454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23455 (eval $ac_try) 2>&5
23456 ac_status=$?
23457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23458 (exit $ac_status); }; } &&
23459 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23461 (eval $ac_try) 2>&5
23462 ac_status=$?
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); }; }; then
23465 ac_cv_lib_socket_connect=yes
23466else
23467 echo "$as_me: failed program was:" >&5
23468sed 's/^/| /' conftest.$ac_ext >&5
23469
23470ac_cv_lib_socket_connect=no
23471fi
eea650d8
VS
23472rm -f conftest.err conftest.$ac_objext \
23473 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23474LIBS=$ac_check_lib_save_LIBS
23475fi
23476echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23477echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23478if test $ac_cv_lib_socket_connect = yes; then
90dd450c 23479 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 23480fi
77e13408 23481
90dd450c 23482 fi
25d0687a 23483
e6cc62c6
VS
23484 # Guillermo Gomez says -lposix is necessary on A/UX.
23485 echo "$as_me:$LINENO: checking for remove" >&5
23486echo $ECHO_N "checking for remove... $ECHO_C" >&6
23487if test "${ac_cv_func_remove+set}" = set; then
23488 echo $ECHO_N "(cached) $ECHO_C" >&6
23489else
23490 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23491/* confdefs.h. */
23492_ACEOF
23493cat confdefs.h >>conftest.$ac_ext
23494cat >>conftest.$ac_ext <<_ACEOF
23495/* end confdefs.h. */
eea650d8
VS
23496/* Define remove to an innocuous variant, in case <limits.h> declares remove.
23497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23498#define remove innocuous_remove
23499
90dd450c 23500/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23501 which can conflict with char remove (); below.
23502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23503 <limits.h> exists even on freestanding compilers. */
eea650d8 23504
e6cc62c6
VS
23505#ifdef __STDC__
23506# include <limits.h>
23507#else
23508# include <assert.h>
23509#endif
eea650d8
VS
23510
23511#undef remove
23512
90dd450c 23513/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23514#ifdef __cplusplus
23515extern "C"
23516{
23517#endif
90dd450c 23518/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23519 builtin and then its argument prototype would still apply. */
23520char remove ();
90dd450c
VZ
23521/* The GNU C library defines this for functions which it implements
23522 to always fail with ENOSYS. Some functions are actually named
23523 something starting with __ and the normal name is an alias. */
23524#if defined (__stub_remove) || defined (__stub___remove)
23525choke me
23526#else
e6cc62c6
VS
23527char (*f) () = remove;
23528#endif
23529#ifdef __cplusplus
23530}
90dd450c 23531#endif
55e80573 23532
e6cc62c6
VS
23533int
23534main ()
23535{
23536return f != remove;
23537 ;
23538 return 0;
23539}
23540_ACEOF
23541rm -f conftest.$ac_objext conftest$ac_exeext
23542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23543 (eval $ac_link) 2>conftest.er1
e6cc62c6 23544 ac_status=$?
eea650d8
VS
23545 grep -v '^ *+' conftest.er1 >conftest.err
23546 rm -f conftest.er1
23547 cat conftest.err >&5
e6cc62c6
VS
23548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23549 (exit $ac_status); } &&
eea650d8
VS
23550 { ac_try='test -z "$ac_c_werror_flag"
23551 || test ! -s conftest.err'
23552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23553 (eval $ac_try) 2>&5
23554 ac_status=$?
23555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23556 (exit $ac_status); }; } &&
23557 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23559 (eval $ac_try) 2>&5
23560 ac_status=$?
23561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); }; }; then
23563 ac_cv_func_remove=yes
23564else
23565 echo "$as_me: failed program was:" >&5
23566sed 's/^/| /' conftest.$ac_ext >&5
23567
23568ac_cv_func_remove=no
23569fi
eea650d8
VS
23570rm -f conftest.err conftest.$ac_objext \
23571 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23572fi
23573echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23574echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 23575
90dd450c 23576 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23577 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23578echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23579if test "${ac_cv_lib_posix_remove+set}" = set; then
23580 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23581else
e6cc62c6 23582 ac_check_lib_save_LIBS=$LIBS
90dd450c 23583LIBS="-lposix $LIBS"
e6cc62c6 23584cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23585/* confdefs.h. */
23586_ACEOF
23587cat confdefs.h >>conftest.$ac_ext
23588cat >>conftest.$ac_ext <<_ACEOF
23589/* end confdefs.h. */
23590
90dd450c 23591/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23592#ifdef __cplusplus
23593extern "C"
23594#endif
90dd450c 23595/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23596 builtin and then its argument prototype would still apply. */
23597char remove ();
23598int
23599main ()
23600{
23601remove ();
23602 ;
23603 return 0;
23604}
23605_ACEOF
23606rm -f conftest.$ac_objext conftest$ac_exeext
23607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23608 (eval $ac_link) 2>conftest.er1
e6cc62c6 23609 ac_status=$?
eea650d8
VS
23610 grep -v '^ *+' conftest.er1 >conftest.err
23611 rm -f conftest.er1
23612 cat conftest.err >&5
e6cc62c6
VS
23613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23614 (exit $ac_status); } &&
eea650d8
VS
23615 { ac_try='test -z "$ac_c_werror_flag"
23616 || test ! -s conftest.err'
23617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23618 (eval $ac_try) 2>&5
23619 ac_status=$?
23620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); }; } &&
23622 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23624 (eval $ac_try) 2>&5
23625 ac_status=$?
23626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); }; }; then
23628 ac_cv_lib_posix_remove=yes
23629else
23630 echo "$as_me: failed program was:" >&5
23631sed 's/^/| /' conftest.$ac_ext >&5
23632
23633ac_cv_lib_posix_remove=no
23634fi
eea650d8
VS
23635rm -f conftest.err conftest.$ac_objext \
23636 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23637LIBS=$ac_check_lib_save_LIBS
23638fi
23639echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23640echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23641if test $ac_cv_lib_posix_remove = yes; then
90dd450c 23642 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 23643fi
f6bcfd97 23644
6fa882bd
RR
23645 fi
23646
90dd450c 23647 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23648 echo "$as_me:$LINENO: checking for shmat" >&5
23649echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23650if test "${ac_cv_func_shmat+set}" = set; then
23651 echo $ECHO_N "(cached) $ECHO_C" >&6
23652else
23653 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23654/* confdefs.h. */
23655_ACEOF
23656cat confdefs.h >>conftest.$ac_ext
23657cat >>conftest.$ac_ext <<_ACEOF
23658/* end confdefs.h. */
eea650d8
VS
23659/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
23660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23661#define shmat innocuous_shmat
23662
90dd450c 23663/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23664 which can conflict with char shmat (); below.
23665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23666 <limits.h> exists even on freestanding compilers. */
eea650d8 23667
e6cc62c6
VS
23668#ifdef __STDC__
23669# include <limits.h>
23670#else
23671# include <assert.h>
23672#endif
eea650d8
VS
23673
23674#undef shmat
23675
90dd450c 23676/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23677#ifdef __cplusplus
23678extern "C"
23679{
23680#endif
90dd450c 23681/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23682 builtin and then its argument prototype would still apply. */
23683char shmat ();
90dd450c
VZ
23684/* The GNU C library defines this for functions which it implements
23685 to always fail with ENOSYS. Some functions are actually named
23686 something starting with __ and the normal name is an alias. */
23687#if defined (__stub_shmat) || defined (__stub___shmat)
23688choke me
23689#else
e6cc62c6
VS
23690char (*f) () = shmat;
23691#endif
23692#ifdef __cplusplus
23693}
90dd450c 23694#endif
10f2d63a 23695
e6cc62c6
VS
23696int
23697main ()
23698{
23699return f != shmat;
23700 ;
23701 return 0;
23702}
23703_ACEOF
23704rm -f conftest.$ac_objext conftest$ac_exeext
23705if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23706 (eval $ac_link) 2>conftest.er1
e6cc62c6 23707 ac_status=$?
eea650d8
VS
23708 grep -v '^ *+' conftest.er1 >conftest.err
23709 rm -f conftest.er1
23710 cat conftest.err >&5
e6cc62c6
VS
23711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); } &&
eea650d8
VS
23713 { ac_try='test -z "$ac_c_werror_flag"
23714 || test ! -s conftest.err'
23715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23716 (eval $ac_try) 2>&5
23717 ac_status=$?
23718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23719 (exit $ac_status); }; } &&
23720 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23722 (eval $ac_try) 2>&5
23723 ac_status=$?
23724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23725 (exit $ac_status); }; }; then
23726 ac_cv_func_shmat=yes
23727else
23728 echo "$as_me: failed program was:" >&5
23729sed 's/^/| /' conftest.$ac_ext >&5
23730
23731ac_cv_func_shmat=no
23732fi
eea650d8
VS
23733rm -f conftest.err conftest.$ac_objext \
23734 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23735fi
23736echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23737echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 23738
90dd450c 23739 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23740 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23741echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23742if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23743 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 23744else
e6cc62c6 23745 ac_check_lib_save_LIBS=$LIBS
90dd450c 23746LIBS="-lipc $LIBS"
e6cc62c6 23747cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23748/* confdefs.h. */
23749_ACEOF
23750cat confdefs.h >>conftest.$ac_ext
23751cat >>conftest.$ac_ext <<_ACEOF
23752/* end confdefs.h. */
23753
8284b0c5 23754/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23755#ifdef __cplusplus
23756extern "C"
23757#endif
90dd450c 23758/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23759 builtin and then its argument prototype would still apply. */
23760char shmat ();
23761int
23762main ()
23763{
23764shmat ();
23765 ;
23766 return 0;
23767}
23768_ACEOF
23769rm -f conftest.$ac_objext conftest$ac_exeext
23770if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23771 (eval $ac_link) 2>conftest.er1
e6cc62c6 23772 ac_status=$?
eea650d8
VS
23773 grep -v '^ *+' conftest.er1 >conftest.err
23774 rm -f conftest.er1
23775 cat conftest.err >&5
e6cc62c6
VS
23776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777 (exit $ac_status); } &&
eea650d8
VS
23778 { ac_try='test -z "$ac_c_werror_flag"
23779 || test ! -s conftest.err'
23780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23781 (eval $ac_try) 2>&5
23782 ac_status=$?
23783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784 (exit $ac_status); }; } &&
23785 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23787 (eval $ac_try) 2>&5
23788 ac_status=$?
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); }; }; then
23791 ac_cv_lib_ipc_shmat=yes
23792else
23793 echo "$as_me: failed program was:" >&5
23794sed 's/^/| /' conftest.$ac_ext >&5
23795
23796ac_cv_lib_ipc_shmat=no
23797fi
eea650d8
VS
23798rm -f conftest.err conftest.$ac_objext \
23799 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23800LIBS=$ac_check_lib_save_LIBS
23801fi
23802echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23803echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23804if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 23805 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
23806fi
23807
d558c907 23808 fi
90dd450c 23809 fi
3a922bb4 23810
90dd450c 23811 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23812 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
23813 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23814 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23815 # check for ICE first), but we must link in the order -lSM -lICE or
23816 # we get undefined symbols. So assume we have SM if we have ICE.
23817 # These have to be linked with before -lX11, unlike the other
23818 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23819 # John Interrante, Karl Berry
23820 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23821echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23822if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23823 echo $ECHO_N "(cached) $ECHO_C" >&6
23824else
23825 ac_check_lib_save_LIBS=$LIBS
f09359cf 23826LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 23827cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23828/* confdefs.h. */
23829_ACEOF
23830cat confdefs.h >>conftest.$ac_ext
23831cat >>conftest.$ac_ext <<_ACEOF
23832/* end confdefs.h. */
23833
90dd450c 23834/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23835#ifdef __cplusplus
23836extern "C"
23837#endif
90dd450c 23838/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23839 builtin and then its argument prototype would still apply. */
23840char IceConnectionNumber ();
23841int
23842main ()
23843{
23844IceConnectionNumber ();
23845 ;
23846 return 0;
23847}
23848_ACEOF
23849rm -f conftest.$ac_objext conftest$ac_exeext
23850if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 23851 (eval $ac_link) 2>conftest.er1
e6cc62c6 23852 ac_status=$?
eea650d8
VS
23853 grep -v '^ *+' conftest.er1 >conftest.err
23854 rm -f conftest.er1
23855 cat conftest.err >&5
e6cc62c6
VS
23856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857 (exit $ac_status); } &&
eea650d8
VS
23858 { ac_try='test -z "$ac_c_werror_flag"
23859 || test ! -s conftest.err'
23860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23861 (eval $ac_try) 2>&5
23862 ac_status=$?
23863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23864 (exit $ac_status); }; } &&
23865 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23867 (eval $ac_try) 2>&5
23868 ac_status=$?
23869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870 (exit $ac_status); }; }; then
23871 ac_cv_lib_ICE_IceConnectionNumber=yes
23872else
23873 echo "$as_me: failed program was:" >&5
23874sed 's/^/| /' conftest.$ac_ext >&5
23875
23876ac_cv_lib_ICE_IceConnectionNumber=no
23877fi
eea650d8
VS
23878rm -f conftest.err conftest.$ac_objext \
23879 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23880LIBS=$ac_check_lib_save_LIBS
23881fi
23882echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23883echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23884if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 23885 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 23886fi
10f2d63a 23887
e6cc62c6 23888 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
23889
23890fi
23891
8284b0c5 23892
90dd450c 23893 if test "$no_x" = "yes"; then
e6cc62c6
VS
23894 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23895echo "$as_me: error: X11 not found" >&2;}
23896 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
23897 fi
23898
23899 GUI_TK_LIBRARY="$X_LIBS"
23900 TOOLKIT_INCLUDE="$X_CFLAGS"
23901 AFMINSTALL=afminstall
23902 COMPILED_X_PROGRAM=0
23903
21d1c967 23904 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
23905 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
23906echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 23907 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
23908 echo "$as_me:$LINENO: result: not found" >&5
23909echo "${ECHO_T}not found" >&6
23910 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
23911echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
23912 { (exit 1); exit 1; }; }
90dd450c 23913 else
e6cc62c6
VS
23914 echo "$as_me:$LINENO: result: $MICROWIN" >&5
23915echo "${ECHO_T}$MICROWIN" >&6
23916 cat >>confdefs.h <<\_ACEOF
21d1c967 23917#define wxUSE_NANOX 1
e6cc62c6 23918_ACEOF
21d1c967 23919
90dd450c
VZ
23920 fi
23921 fi
23922
2b5f62a0 23923 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 23924
2b5f62a0 23925 succeeded=no
90dd450c 23926
2b5f62a0
VZ
23927 if test -z "$PKG_CONFIG"; then
23928 # Extract the first word of "pkg-config", so it can be a program name with args.
23929set dummy pkg-config; ac_word=$2
e6cc62c6
VS
23930echo "$as_me:$LINENO: checking for $ac_word" >&5
23931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23932if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23933 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23934else
e6cc62c6
VS
23935 case $PKG_CONFIG in
23936 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
23937 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23938 ;;
2b5f62a0 23939 *)
e6cc62c6
VS
23940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23941for as_dir in $PATH
23942do
23943 IFS=$as_save_IFS
23944 test -z "$as_dir" && as_dir=.
23945 for ac_exec_ext in '' $ac_executable_extensions; do
23946 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23947 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23949 break 2
23950 fi
23951done
23952done
23953
2b5f62a0
VZ
23954 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23955 ;;
23956esac
23957fi
e6cc62c6
VS
23958PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23959
2b5f62a0 23960if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
23961 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23962echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 23963else
e6cc62c6
VS
23964 echo "$as_me:$LINENO: result: no" >&5
23965echo "${ECHO_T}no" >&6
2b5f62a0
VZ
23966fi
23967
23968 fi
23969
23970 if test "$PKG_CONFIG" = "no" ; then
23971 echo "*** The pkg-config script could not be found. Make sure it is"
23972 echo "*** in your path, or set the PKG_CONFIG environment variable"
23973 echo "*** to the full path to pkg-config."
23974 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23975 else
23976 PKG_CONFIG_MIN_VERSION=0.9.0
23977 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
23978 echo "$as_me:$LINENO: checking for pangox" >&5
23979echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
23980
23981 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
23982 echo "$as_me:$LINENO: result: yes" >&5
23983echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
23984 succeeded=yes
23985
e6cc62c6
VS
23986 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
23987echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 23988 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
23989 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
23990echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 23991
e6cc62c6
VS
23992 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
23993echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 23994 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
23995 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
23996echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
23997 else
23998 PANGOX_CFLAGS=""
23999 PANGOX_LIBS=""
e6cc62c6 24000 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24001 ## do set a variable so people can do so.
24002 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 24003
2b5f62a0
VZ
24004 fi
24005
e6cc62c6
VS
24006
24007
2b5f62a0
VZ
24008 else
24009 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24010 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24011 fi
24012 fi
24013
24014 if test $succeeded = yes; then
e6cc62c6 24015
2b5f62a0 24016 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 24017 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 24018
2b5f62a0 24019 else
e6cc62c6
VS
24020
24021 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
24022echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
24023 { (exit 1); exit 1; }; }
24024
24025
2b5f62a0
VZ
24026 fi
24027
e6cc62c6 24028
2b5f62a0
VZ
24029 succeeded=no
24030
24031 if test -z "$PKG_CONFIG"; then
24032 # Extract the first word of "pkg-config", so it can be a program name with args.
24033set dummy pkg-config; ac_word=$2
e6cc62c6
VS
24034echo "$as_me:$LINENO: checking for $ac_word" >&5
24035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24036if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24037 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 24038else
e6cc62c6
VS
24039 case $PKG_CONFIG in
24040 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
24041 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24042 ;;
2b5f62a0 24043 *)
e6cc62c6
VS
24044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24045for as_dir in $PATH
24046do
24047 IFS=$as_save_IFS
24048 test -z "$as_dir" && as_dir=.
24049 for ac_exec_ext in '' $ac_executable_extensions; do
24050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24051 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24053 break 2
24054 fi
24055done
24056done
24057
2b5f62a0
VZ
24058 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24059 ;;
24060esac
24061fi
e6cc62c6
VS
24062PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24063
2b5f62a0 24064if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
24065 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24066echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 24067else
e6cc62c6
VS
24068 echo "$as_me:$LINENO: result: no" >&5
24069echo "${ECHO_T}no" >&6
2b5f62a0
VZ
24070fi
24071
24072 fi
24073
24074 if test "$PKG_CONFIG" = "no" ; then
24075 echo "*** The pkg-config script could not be found. Make sure it is"
24076 echo "*** in your path, or set the PKG_CONFIG environment variable"
24077 echo "*** to the full path to pkg-config."
24078 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24079 else
24080 PKG_CONFIG_MIN_VERSION=0.9.0
24081 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
24082 echo "$as_me:$LINENO: checking for pangoft2" >&5
24083echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
24084
24085 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
24086 echo "$as_me:$LINENO: result: yes" >&5
24087echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
24088 succeeded=yes
24089
e6cc62c6
VS
24090 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
24091echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 24092 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
24093 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
24094echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 24095
e6cc62c6
VS
24096 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
24097echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 24098 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
24099 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
24100echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
24101 else
24102 PANGOFT2_CFLAGS=""
24103 PANGOFT2_LIBS=""
e6cc62c6 24104 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24105 ## do set a variable so people can do so.
24106 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 24107
2b5f62a0
VZ
24108 fi
24109
e6cc62c6
VS
24110
24111
2b5f62a0
VZ
24112 else
24113 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24114 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24115 fi
24116 fi
24117
24118 if test $succeeded = yes; then
e6cc62c6 24119
2b5f62a0 24120 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 24121 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 24122
2b5f62a0 24123 else
e6cc62c6
VS
24124
24125 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
24126echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 24127 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
24128
24129
2b5f62a0
VZ
24130 fi
24131
e6cc62c6 24132
2b5f62a0
VZ
24133 succeeded=no
24134
24135 if test -z "$PKG_CONFIG"; then
24136 # Extract the first word of "pkg-config", so it can be a program name with args.
24137set dummy pkg-config; ac_word=$2
e6cc62c6
VS
24138echo "$as_me:$LINENO: checking for $ac_word" >&5
24139echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24140if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24141 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 24142else
e6cc62c6
VS
24143 case $PKG_CONFIG in
24144 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
24145 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24146 ;;
2b5f62a0 24147 *)
e6cc62c6
VS
24148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24149for as_dir in $PATH
24150do
24151 IFS=$as_save_IFS
24152 test -z "$as_dir" && as_dir=.
24153 for ac_exec_ext in '' $ac_executable_extensions; do
24154 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24155 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24157 break 2
24158 fi
24159done
24160done
24161
2b5f62a0
VZ
24162 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24163 ;;
24164esac
24165fi
e6cc62c6
VS
24166PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24167
2b5f62a0 24168if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
24169 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24170echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 24171else
e6cc62c6
VS
24172 echo "$as_me:$LINENO: result: no" >&5
24173echo "${ECHO_T}no" >&6
2b5f62a0
VZ
24174fi
24175
24176 fi
24177
24178 if test "$PKG_CONFIG" = "no" ; then
24179 echo "*** The pkg-config script could not be found. Make sure it is"
24180 echo "*** in your path, or set the PKG_CONFIG environment variable"
24181 echo "*** to the full path to pkg-config."
24182 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24183 else
24184 PKG_CONFIG_MIN_VERSION=0.9.0
24185 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
24186 echo "$as_me:$LINENO: checking for pangoxft" >&5
24187echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
24188
24189 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
24190 echo "$as_me:$LINENO: result: yes" >&5
24191echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
24192 succeeded=yes
24193
e6cc62c6
VS
24194 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
24195echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 24196 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
24197 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
24198echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 24199
e6cc62c6
VS
24200 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
24201echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 24202 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
24203 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
24204echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
24205 else
24206 PANGOXFT_CFLAGS=""
24207 PANGOXFT_LIBS=""
e6cc62c6 24208 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24209 ## do set a variable so people can do so.
24210 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 24211
2b5f62a0
VZ
24212 fi
24213
e6cc62c6
VS
24214
24215
2b5f62a0
VZ
24216 else
24217 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24218 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24219 fi
24220 fi
24221
24222 if test $succeeded = yes; then
e6cc62c6 24223
2b5f62a0 24224 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 24225 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 24226
2b5f62a0 24227 else
e6cc62c6
VS
24228
24229 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
24230echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
24231
24232
2b5f62a0
VZ
24233 fi
24234
24235 fi
24236
24237 wxUSE_UNIVERSAL="yes"
24238
24239 if test "$wxUSE_NANOX" = "yes"; then
24240 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 24241 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
24242 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
24243 else
93a543aa 24244 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
2b5f62a0
VZ
24245 fi
24246
24247 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
24248 TOOLKIT=X11
24249 GUIDIST=X11_DIST
24250 fi
24251
21d1c967
GD
24252 if test "$wxUSE_MOTIF" = 1; then
24253 if test "$no_x" = yes; then
24254 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
24255
24256cat >>confdefs.h <<\_ACEOF
21d1c967 24257#define X_DISPLAY_MISSING 1
e6cc62c6 24258_ACEOF
21d1c967
GD
24259
24260 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24261else
24262 if test -n "$x_includes"; then
24263 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
24264 fi
24265
21d1c967
GD
24266 # It would also be nice to do this for all -L options, not just this one.
24267 if test -n "$x_libraries"; then
24268 X_LIBS="$X_LIBS -L$x_libraries"
24269 # For Solaris; some versions of Sun CC require a space after -R and
24270 # others require no space. Words are not sufficient . . . .
e6cc62c6 24271 case `(uname -sr) 2>/dev/null` in
21d1c967 24272 "SunOS 5"*)
e6cc62c6
VS
24273 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24274echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24275 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24276 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24277/* confdefs.h. */
24278_ACEOF
24279cat confdefs.h >>conftest.$ac_ext
24280cat >>conftest.$ac_ext <<_ACEOF
24281/* end confdefs.h. */
24282
24283int
24284main ()
24285{
21d1c967 24286
e6cc62c6
VS
24287 ;
24288 return 0;
24289}
24290_ACEOF
24291rm -f conftest.$ac_objext conftest$ac_exeext
24292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24293 (eval $ac_link) 2>conftest.er1
e6cc62c6 24294 ac_status=$?
eea650d8
VS
24295 grep -v '^ *+' conftest.er1 >conftest.err
24296 rm -f conftest.er1
24297 cat conftest.err >&5
e6cc62c6
VS
24298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24299 (exit $ac_status); } &&
eea650d8
VS
24300 { ac_try='test -z "$ac_c_werror_flag"
24301 || test ! -s conftest.err'
24302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24303 (eval $ac_try) 2>&5
24304 ac_status=$?
24305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24306 (exit $ac_status); }; } &&
24307 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24309 (eval $ac_try) 2>&5
24310 ac_status=$?
24311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24312 (exit $ac_status); }; }; then
21d1c967 24313 ac_R_nospace=yes
698dcdb6 24314else
e6cc62c6
VS
24315 echo "$as_me: failed program was:" >&5
24316sed 's/^/| /' conftest.$ac_ext >&5
24317
24318ac_R_nospace=no
10f2d63a 24319fi
eea650d8
VS
24320rm -f conftest.err conftest.$ac_objext \
24321 conftest$ac_exeext conftest.$ac_ext
21d1c967 24322 if test $ac_R_nospace = yes; then
e6cc62c6
VS
24323 echo "$as_me:$LINENO: result: no" >&5
24324echo "${ECHO_T}no" >&6
21d1c967
GD
24325 X_LIBS="$X_LIBS -R$x_libraries"
24326 else
24327 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 24328 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24329/* confdefs.h. */
24330_ACEOF
24331cat confdefs.h >>conftest.$ac_ext
24332cat >>conftest.$ac_ext <<_ACEOF
24333/* end confdefs.h. */
24334
24335int
24336main ()
24337{
f0c87536 24338
e6cc62c6
VS
24339 ;
24340 return 0;
24341}
24342_ACEOF
24343rm -f conftest.$ac_objext conftest$ac_exeext
24344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24345 (eval $ac_link) 2>conftest.er1
e6cc62c6 24346 ac_status=$?
eea650d8
VS
24347 grep -v '^ *+' conftest.er1 >conftest.err
24348 rm -f conftest.er1
24349 cat conftest.err >&5
e6cc62c6
VS
24350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24351 (exit $ac_status); } &&
eea650d8
VS
24352 { ac_try='test -z "$ac_c_werror_flag"
24353 || test ! -s conftest.err'
24354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24355 (eval $ac_try) 2>&5
24356 ac_status=$?
24357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24358 (exit $ac_status); }; } &&
24359 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24361 (eval $ac_try) 2>&5
24362 ac_status=$?
24363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); }; }; then
21d1c967
GD
24365 ac_R_space=yes
24366else
e6cc62c6
VS
24367 echo "$as_me: failed program was:" >&5
24368sed 's/^/| /' conftest.$ac_ext >&5
24369
24370ac_R_space=no
21d1c967 24371fi
eea650d8
VS
24372rm -f conftest.err conftest.$ac_objext \
24373 conftest$ac_exeext conftest.$ac_ext
21d1c967 24374 if test $ac_R_space = yes; then
e6cc62c6
VS
24375 echo "$as_me:$LINENO: result: yes" >&5
24376echo "${ECHO_T}yes" >&6
21d1c967
GD
24377 X_LIBS="$X_LIBS -R $x_libraries"
24378 else
e6cc62c6
VS
24379 echo "$as_me:$LINENO: result: neither works" >&5
24380echo "${ECHO_T}neither works" >&6
21d1c967
GD
24381 fi
24382 fi
e6cc62c6 24383 LIBS=$ac_xsave_LIBS
21d1c967
GD
24384 esac
24385 fi
90dd450c 24386
21d1c967
GD
24387 # Check for system-dependent libraries X programs must link with.
24388 # Do this before checking for the system-independent R6 libraries
24389 # (-lICE), since we may need -lsocket or whatever for X linking.
24390
24391 if test "$ISC" = yes; then
24392 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24393 else
e6cc62c6
VS
24394 # Martyn Johnson says this is needed for Ultrix, if the X
24395 # libraries were built with DECnet support. And Karl Berry says
21d1c967 24396 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
24397 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24398 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24399/* confdefs.h. */
24400_ACEOF
24401cat confdefs.h >>conftest.$ac_ext
24402cat >>conftest.$ac_ext <<_ACEOF
24403/* end confdefs.h. */
24404
247f5006 24405/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24406#ifdef __cplusplus
24407extern "C"
24408#endif
247f5006 24409/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24410 builtin and then its argument prototype would still apply. */
24411char XOpenDisplay ();
24412int
24413main ()
24414{
24415XOpenDisplay ();
24416 ;
24417 return 0;
24418}
24419_ACEOF
24420rm -f conftest.$ac_objext conftest$ac_exeext
24421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24422 (eval $ac_link) 2>conftest.er1
e6cc62c6 24423 ac_status=$?
eea650d8
VS
24424 grep -v '^ *+' conftest.er1 >conftest.err
24425 rm -f conftest.er1
24426 cat conftest.err >&5
e6cc62c6
VS
24427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428 (exit $ac_status); } &&
eea650d8
VS
24429 { ac_try='test -z "$ac_c_werror_flag"
24430 || test ! -s conftest.err'
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); }; } &&
24436 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24438 (eval $ac_try) 2>&5
24439 ac_status=$?
24440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24441 (exit $ac_status); }; }; then
24442 :
24443else
24444 echo "$as_me: failed program was:" >&5
24445sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 24446
e6cc62c6
VS
24447echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24448echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24449if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24450 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 24451else
e6cc62c6
VS
24452 ac_check_lib_save_LIBS=$LIBS
24453LIBS="-ldnet $LIBS"
24454cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24455/* confdefs.h. */
24456_ACEOF
24457cat confdefs.h >>conftest.$ac_ext
24458cat >>conftest.$ac_ext <<_ACEOF
24459/* end confdefs.h. */
a0b9e27f 24460
e6cc62c6
VS
24461/* Override any gcc2 internal prototype to avoid an error. */
24462#ifdef __cplusplus
24463extern "C"
24464#endif
24465/* We use char because int might match the return type of a gcc2
24466 builtin and then its argument prototype would still apply. */
24467char dnet_ntoa ();
24468int
24469main ()
24470{
24471dnet_ntoa ();
24472 ;
24473 return 0;
24474}
24475_ACEOF
24476rm -f conftest.$ac_objext conftest$ac_exeext
24477if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24478 (eval $ac_link) 2>conftest.er1
e6cc62c6 24479 ac_status=$?
eea650d8
VS
24480 grep -v '^ *+' conftest.er1 >conftest.err
24481 rm -f conftest.er1
24482 cat conftest.err >&5
e6cc62c6
VS
24483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484 (exit $ac_status); } &&
eea650d8
VS
24485 { ac_try='test -z "$ac_c_werror_flag"
24486 || test ! -s conftest.err'
24487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24488 (eval $ac_try) 2>&5
24489 ac_status=$?
24490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24491 (exit $ac_status); }; } &&
24492 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24494 (eval $ac_try) 2>&5
24495 ac_status=$?
24496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497 (exit $ac_status); }; }; then
24498 ac_cv_lib_dnet_dnet_ntoa=yes
24499else
24500 echo "$as_me: failed program was:" >&5
24501sed 's/^/| /' conftest.$ac_ext >&5
24502
24503ac_cv_lib_dnet_dnet_ntoa=no
24504fi
eea650d8
VS
24505rm -f conftest.err conftest.$ac_objext \
24506 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24507LIBS=$ac_check_lib_save_LIBS
24508fi
24509echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24510echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24511if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 24512 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 24513fi
0fb0dd83 24514
21d1c967 24515 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
24516 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24517echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24518if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24519 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 24520else
e6cc62c6 24521 ac_check_lib_save_LIBS=$LIBS
21d1c967 24522LIBS="-ldnet_stub $LIBS"
e6cc62c6 24523cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24524/* confdefs.h. */
24525_ACEOF
24526cat confdefs.h >>conftest.$ac_ext
24527cat >>conftest.$ac_ext <<_ACEOF
24528/* end confdefs.h. */
24529
21d1c967 24530/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24531#ifdef __cplusplus
24532extern "C"
24533#endif
21d1c967 24534/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24535 builtin and then its argument prototype would still apply. */
24536char dnet_ntoa ();
24537int
24538main ()
24539{
24540dnet_ntoa ();
24541 ;
24542 return 0;
24543}
24544_ACEOF
24545rm -f conftest.$ac_objext conftest$ac_exeext
24546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24547 (eval $ac_link) 2>conftest.er1
e6cc62c6 24548 ac_status=$?
eea650d8
VS
24549 grep -v '^ *+' conftest.er1 >conftest.err
24550 rm -f conftest.er1
24551 cat conftest.err >&5
e6cc62c6
VS
24552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24553 (exit $ac_status); } &&
eea650d8
VS
24554 { ac_try='test -z "$ac_c_werror_flag"
24555 || test ! -s conftest.err'
24556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24557 (eval $ac_try) 2>&5
24558 ac_status=$?
24559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560 (exit $ac_status); }; } &&
24561 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24563 (eval $ac_try) 2>&5
24564 ac_status=$?
24565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24566 (exit $ac_status); }; }; then
24567 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24568else
24569 echo "$as_me: failed program was:" >&5
24570sed 's/^/| /' conftest.$ac_ext >&5
24571
24572ac_cv_lib_dnet_stub_dnet_ntoa=no
24573fi
eea650d8
VS
24574rm -f conftest.err conftest.$ac_objext \
24575 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24576LIBS=$ac_check_lib_save_LIBS
24577fi
24578echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24579echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24580if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 24581 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
24582fi
24583
21d1c967 24584 fi
e6cc62c6 24585fi
eea650d8
VS
24586rm -f conftest.err conftest.$ac_objext \
24587 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 24588 LIBS="$ac_xsave_LIBS"
90dd450c 24589
21d1c967
GD
24590 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24591 # to get the SysV transport functions.
e6cc62c6 24592 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
24593 # needs -lnsl.
24594 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
24595 # on Irix 5.2, according to T.E. Dickey.
24596 # The functions gethostbyname, getservbyname, and inet_addr are
24597 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24598 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24599echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24600if test "${ac_cv_func_gethostbyname+set}" = set; then
24601 echo $ECHO_N "(cached) $ECHO_C" >&6
24602else
24603 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24604/* confdefs.h. */
24605_ACEOF
24606cat confdefs.h >>conftest.$ac_ext
24607cat >>conftest.$ac_ext <<_ACEOF
24608/* end confdefs.h. */
eea650d8
VS
24609/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24611#define gethostbyname innocuous_gethostbyname
24612
21d1c967 24613/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24614 which can conflict with char gethostbyname (); below.
24615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24616 <limits.h> exists even on freestanding compilers. */
eea650d8 24617
e6cc62c6
VS
24618#ifdef __STDC__
24619# include <limits.h>
24620#else
24621# include <assert.h>
24622#endif
eea650d8
VS
24623
24624#undef gethostbyname
24625
21d1c967 24626/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24627#ifdef __cplusplus
24628extern "C"
24629{
24630#endif
21d1c967 24631/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24632 builtin and then its argument prototype would still apply. */
24633char gethostbyname ();
21d1c967
GD
24634/* The GNU C library defines this for functions which it implements
24635 to always fail with ENOSYS. Some functions are actually named
24636 something starting with __ and the normal name is an alias. */
24637#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24638choke me
24639#else
e6cc62c6
VS
24640char (*f) () = gethostbyname;
24641#endif
24642#ifdef __cplusplus
24643}
21d1c967 24644#endif
90dd450c 24645
e6cc62c6
VS
24646int
24647main ()
24648{
24649return f != gethostbyname;
24650 ;
24651 return 0;
24652}
24653_ACEOF
24654rm -f conftest.$ac_objext conftest$ac_exeext
24655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24656 (eval $ac_link) 2>conftest.er1
e6cc62c6 24657 ac_status=$?
eea650d8
VS
24658 grep -v '^ *+' conftest.er1 >conftest.err
24659 rm -f conftest.er1
24660 cat conftest.err >&5
e6cc62c6
VS
24661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662 (exit $ac_status); } &&
eea650d8
VS
24663 { ac_try='test -z "$ac_c_werror_flag"
24664 || test ! -s conftest.err'
24665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24666 (eval $ac_try) 2>&5
24667 ac_status=$?
24668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24669 (exit $ac_status); }; } &&
24670 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24672 (eval $ac_try) 2>&5
24673 ac_status=$?
24674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24675 (exit $ac_status); }; }; then
24676 ac_cv_func_gethostbyname=yes
24677else
24678 echo "$as_me: failed program was:" >&5
24679sed 's/^/| /' conftest.$ac_ext >&5
24680
24681ac_cv_func_gethostbyname=no
24682fi
eea650d8
VS
24683rm -f conftest.err conftest.$ac_objext \
24684 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24685fi
24686echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24687echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 24688
21d1c967 24689 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
24690 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24691echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24692if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24693 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 24694else
e6cc62c6 24695 ac_check_lib_save_LIBS=$LIBS
21d1c967 24696LIBS="-lnsl $LIBS"
e6cc62c6 24697cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24698/* confdefs.h. */
24699_ACEOF
24700cat confdefs.h >>conftest.$ac_ext
24701cat >>conftest.$ac_ext <<_ACEOF
24702/* end confdefs.h. */
24703
21d1c967 24704/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24705#ifdef __cplusplus
24706extern "C"
24707#endif
21d1c967 24708/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24709 builtin and then its argument prototype would still apply. */
24710char gethostbyname ();
24711int
24712main ()
24713{
24714gethostbyname ();
24715 ;
24716 return 0;
24717}
24718_ACEOF
24719rm -f conftest.$ac_objext conftest$ac_exeext
24720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24721 (eval $ac_link) 2>conftest.er1
e6cc62c6 24722 ac_status=$?
eea650d8
VS
24723 grep -v '^ *+' conftest.er1 >conftest.err
24724 rm -f conftest.er1
24725 cat conftest.err >&5
e6cc62c6
VS
24726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); } &&
eea650d8
VS
24728 { ac_try='test -z "$ac_c_werror_flag"
24729 || test ! -s conftest.err'
24730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24731 (eval $ac_try) 2>&5
24732 ac_status=$?
24733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24734 (exit $ac_status); }; } &&
24735 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24737 (eval $ac_try) 2>&5
24738 ac_status=$?
24739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24740 (exit $ac_status); }; }; then
24741 ac_cv_lib_nsl_gethostbyname=yes
24742else
24743 echo "$as_me: failed program was:" >&5
24744sed 's/^/| /' conftest.$ac_ext >&5
24745
24746ac_cv_lib_nsl_gethostbyname=no
24747fi
eea650d8
VS
24748rm -f conftest.err conftest.$ac_objext \
24749 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24750LIBS=$ac_check_lib_save_LIBS
24751fi
24752echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24753echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24754if test $ac_cv_lib_nsl_gethostbyname = yes; then
24755 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 24756fi
247f5006 24757
e6cc62c6 24758 if test $ac_cv_lib_nsl_gethostbyname = no; then
eea650d8 24759 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
24760echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24761if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24762 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 24763else
e6cc62c6
VS
24764 ac_check_lib_save_LIBS=$LIBS
24765LIBS="-lbsd $LIBS"
24766cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24767/* confdefs.h. */
24768_ACEOF
24769cat confdefs.h >>conftest.$ac_ext
24770cat >>conftest.$ac_ext <<_ACEOF
24771/* end confdefs.h. */
24772
24773/* Override any gcc2 internal prototype to avoid an error. */
24774#ifdef __cplusplus
24775extern "C"
24776#endif
24777/* We use char because int might match the return type of a gcc2
24778 builtin and then its argument prototype would still apply. */
24779char gethostbyname ();
24780int
24781main ()
24782{
24783gethostbyname ();
24784 ;
24785 return 0;
24786}
24787_ACEOF
24788rm -f conftest.$ac_objext conftest$ac_exeext
24789if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24790 (eval $ac_link) 2>conftest.er1
e6cc62c6 24791 ac_status=$?
eea650d8
VS
24792 grep -v '^ *+' conftest.er1 >conftest.err
24793 rm -f conftest.er1
24794 cat conftest.err >&5
e6cc62c6
VS
24795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796 (exit $ac_status); } &&
eea650d8
VS
24797 { ac_try='test -z "$ac_c_werror_flag"
24798 || test ! -s conftest.err'
24799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24800 (eval $ac_try) 2>&5
24801 ac_status=$?
24802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24803 (exit $ac_status); }; } &&
24804 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24806 (eval $ac_try) 2>&5
24807 ac_status=$?
24808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809 (exit $ac_status); }; }; then
24810 ac_cv_lib_bsd_gethostbyname=yes
24811else
24812 echo "$as_me: failed program was:" >&5
24813sed 's/^/| /' conftest.$ac_ext >&5
24814
24815ac_cv_lib_bsd_gethostbyname=no
24816fi
eea650d8
VS
24817rm -f conftest.err conftest.$ac_objext \
24818 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24819LIBS=$ac_check_lib_save_LIBS
24820fi
24821echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24822echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24823if test $ac_cv_lib_bsd_gethostbyname = yes; then
24824 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 24825fi
90dd450c 24826
e6cc62c6 24827 fi
90dd450c
VZ
24828 fi
24829
21d1c967
GD
24830 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24831 # socket/setsockopt and other routines are undefined under SCO ODT
24832 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
24833 # on later versions), says Simon Leinen: it contains gethostby*
24834 # variants that don't use the name server (or something). -lsocket
24835 # must be given before -lnsl if both are needed. We assume that
24836 # if connect needs -lnsl, so does gethostbyname.
24837 echo "$as_me:$LINENO: checking for connect" >&5
24838echo $ECHO_N "checking for connect... $ECHO_C" >&6
24839if test "${ac_cv_func_connect+set}" = set; then
24840 echo $ECHO_N "(cached) $ECHO_C" >&6
24841else
24842 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24843/* confdefs.h. */
24844_ACEOF
24845cat confdefs.h >>conftest.$ac_ext
24846cat >>conftest.$ac_ext <<_ACEOF
24847/* end confdefs.h. */
eea650d8
VS
24848/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24850#define connect innocuous_connect
24851
21d1c967 24852/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24853 which can conflict with char connect (); below.
24854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24855 <limits.h> exists even on freestanding compilers. */
eea650d8 24856
e6cc62c6
VS
24857#ifdef __STDC__
24858# include <limits.h>
24859#else
24860# include <assert.h>
24861#endif
eea650d8
VS
24862
24863#undef connect
24864
21d1c967 24865/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24866#ifdef __cplusplus
24867extern "C"
24868{
24869#endif
21d1c967 24870/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24871 builtin and then its argument prototype would still apply. */
24872char connect ();
21d1c967
GD
24873/* The GNU C library defines this for functions which it implements
24874 to always fail with ENOSYS. Some functions are actually named
24875 something starting with __ and the normal name is an alias. */
24876#if defined (__stub_connect) || defined (__stub___connect)
24877choke me
24878#else
e6cc62c6
VS
24879char (*f) () = connect;
24880#endif
24881#ifdef __cplusplus
24882}
21d1c967 24883#endif
90dd450c 24884
e6cc62c6
VS
24885int
24886main ()
24887{
24888return f != connect;
24889 ;
24890 return 0;
24891}
24892_ACEOF
24893rm -f conftest.$ac_objext conftest$ac_exeext
24894if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24895 (eval $ac_link) 2>conftest.er1
e6cc62c6 24896 ac_status=$?
eea650d8
VS
24897 grep -v '^ *+' conftest.er1 >conftest.err
24898 rm -f conftest.er1
24899 cat conftest.err >&5
e6cc62c6
VS
24900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901 (exit $ac_status); } &&
eea650d8
VS
24902 { ac_try='test -z "$ac_c_werror_flag"
24903 || test ! -s conftest.err'
24904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24905 (eval $ac_try) 2>&5
24906 ac_status=$?
24907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24908 (exit $ac_status); }; } &&
24909 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24911 (eval $ac_try) 2>&5
24912 ac_status=$?
24913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914 (exit $ac_status); }; }; then
24915 ac_cv_func_connect=yes
24916else
24917 echo "$as_me: failed program was:" >&5
24918sed 's/^/| /' conftest.$ac_ext >&5
24919
24920ac_cv_func_connect=no
24921fi
eea650d8
VS
24922rm -f conftest.err conftest.$ac_objext \
24923 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24924fi
24925echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24926echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 24927
21d1c967 24928 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
24929 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24930echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24931if test "${ac_cv_lib_socket_connect+set}" = set; then
24932 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 24933else
e6cc62c6 24934 ac_check_lib_save_LIBS=$LIBS
21d1c967 24935LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 24936cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24937/* confdefs.h. */
24938_ACEOF
24939cat confdefs.h >>conftest.$ac_ext
24940cat >>conftest.$ac_ext <<_ACEOF
24941/* end confdefs.h. */
24942
21d1c967 24943/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24944#ifdef __cplusplus
24945extern "C"
24946#endif
21d1c967 24947/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24948 builtin and then its argument prototype would still apply. */
24949char connect ();
24950int
24951main ()
24952{
24953connect ();
24954 ;
24955 return 0;
24956}
24957_ACEOF
24958rm -f conftest.$ac_objext conftest$ac_exeext
24959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 24960 (eval $ac_link) 2>conftest.er1
e6cc62c6 24961 ac_status=$?
eea650d8
VS
24962 grep -v '^ *+' conftest.er1 >conftest.err
24963 rm -f conftest.er1
24964 cat conftest.err >&5
e6cc62c6
VS
24965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966 (exit $ac_status); } &&
eea650d8
VS
24967 { ac_try='test -z "$ac_c_werror_flag"
24968 || test ! -s conftest.err'
24969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24970 (eval $ac_try) 2>&5
24971 ac_status=$?
24972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24973 (exit $ac_status); }; } &&
24974 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24976 (eval $ac_try) 2>&5
24977 ac_status=$?
24978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 (exit $ac_status); }; }; then
24980 ac_cv_lib_socket_connect=yes
24981else
24982 echo "$as_me: failed program was:" >&5
24983sed 's/^/| /' conftest.$ac_ext >&5
24984
24985ac_cv_lib_socket_connect=no
24986fi
eea650d8
VS
24987rm -f conftest.err conftest.$ac_objext \
24988 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24989LIBS=$ac_check_lib_save_LIBS
24990fi
24991echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24992echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24993if test $ac_cv_lib_socket_connect = yes; then
21d1c967 24994 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 24995fi
90dd450c 24996
21d1c967 24997 fi
90dd450c 24998
e6cc62c6
VS
24999 # Guillermo Gomez says -lposix is necessary on A/UX.
25000 echo "$as_me:$LINENO: checking for remove" >&5
25001echo $ECHO_N "checking for remove... $ECHO_C" >&6
25002if test "${ac_cv_func_remove+set}" = set; then
25003 echo $ECHO_N "(cached) $ECHO_C" >&6
25004else
25005 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25006/* confdefs.h. */
25007_ACEOF
25008cat confdefs.h >>conftest.$ac_ext
25009cat >>conftest.$ac_ext <<_ACEOF
25010/* end confdefs.h. */
eea650d8
VS
25011/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25013#define remove innocuous_remove
25014
21d1c967 25015/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25016 which can conflict with char remove (); below.
25017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25018 <limits.h> exists even on freestanding compilers. */
eea650d8 25019
e6cc62c6
VS
25020#ifdef __STDC__
25021# include <limits.h>
25022#else
25023# include <assert.h>
25024#endif
eea650d8
VS
25025
25026#undef remove
25027
21d1c967 25028/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25029#ifdef __cplusplus
25030extern "C"
25031{
25032#endif
21d1c967 25033/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25034 builtin and then its argument prototype would still apply. */
25035char remove ();
21d1c967
GD
25036/* The GNU C library defines this for functions which it implements
25037 to always fail with ENOSYS. Some functions are actually named
25038 something starting with __ and the normal name is an alias. */
25039#if defined (__stub_remove) || defined (__stub___remove)
25040choke me
25041#else
e6cc62c6
VS
25042char (*f) () = remove;
25043#endif
25044#ifdef __cplusplus
25045}
21d1c967 25046#endif
90dd450c 25047
e6cc62c6
VS
25048int
25049main ()
25050{
25051return f != remove;
25052 ;
25053 return 0;
25054}
25055_ACEOF
25056rm -f conftest.$ac_objext conftest$ac_exeext
25057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 25058 (eval $ac_link) 2>conftest.er1
e6cc62c6 25059 ac_status=$?
eea650d8
VS
25060 grep -v '^ *+' conftest.er1 >conftest.err
25061 rm -f conftest.er1
25062 cat conftest.err >&5
e6cc62c6
VS
25063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25064 (exit $ac_status); } &&
eea650d8
VS
25065 { ac_try='test -z "$ac_c_werror_flag"
25066 || test ! -s conftest.err'
25067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25068 (eval $ac_try) 2>&5
25069 ac_status=$?
25070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25071 (exit $ac_status); }; } &&
25072 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25074 (eval $ac_try) 2>&5
25075 ac_status=$?
25076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25077 (exit $ac_status); }; }; then
25078 ac_cv_func_remove=yes
25079else
25080 echo "$as_me: failed program was:" >&5
25081sed 's/^/| /' conftest.$ac_ext >&5
25082
25083ac_cv_func_remove=no
25084fi
eea650d8
VS
25085rm -f conftest.err conftest.$ac_objext \
25086 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25087fi
25088echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25089echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 25090
21d1c967 25091 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
25092 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25093echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25094if test "${ac_cv_lib_posix_remove+set}" = set; then
25095 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 25096else
e6cc62c6 25097 ac_check_lib_save_LIBS=$LIBS
21d1c967 25098LIBS="-lposix $LIBS"
e6cc62c6 25099cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25100/* confdefs.h. */
25101_ACEOF
25102cat confdefs.h >>conftest.$ac_ext
25103cat >>conftest.$ac_ext <<_ACEOF
25104/* end confdefs.h. */
25105
21d1c967 25106/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25107#ifdef __cplusplus
25108extern "C"
25109#endif
21d1c967 25110/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25111 builtin and then its argument prototype would still apply. */
25112char remove ();
25113int
25114main ()
25115{
25116remove ();
25117 ;
25118 return 0;
25119}
25120_ACEOF
25121rm -f conftest.$ac_objext conftest$ac_exeext
25122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 25123 (eval $ac_link) 2>conftest.er1
e6cc62c6 25124 ac_status=$?
eea650d8
VS
25125 grep -v '^ *+' conftest.er1 >conftest.err
25126 rm -f conftest.er1
25127 cat conftest.err >&5
e6cc62c6
VS
25128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); } &&
eea650d8
VS
25130 { ac_try='test -z "$ac_c_werror_flag"
25131 || test ! -s conftest.err'
25132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25133 (eval $ac_try) 2>&5
25134 ac_status=$?
25135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25136 (exit $ac_status); }; } &&
25137 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25139 (eval $ac_try) 2>&5
25140 ac_status=$?
25141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142 (exit $ac_status); }; }; then
25143 ac_cv_lib_posix_remove=yes
25144else
25145 echo "$as_me: failed program was:" >&5
25146sed 's/^/| /' conftest.$ac_ext >&5
25147
25148ac_cv_lib_posix_remove=no
25149fi
eea650d8
VS
25150rm -f conftest.err conftest.$ac_objext \
25151 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25152LIBS=$ac_check_lib_save_LIBS
25153fi
25154echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25155echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25156if test $ac_cv_lib_posix_remove = yes; then
21d1c967 25157 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 25158fi
19bc6aad 25159
90dd450c 25160 fi
19bc6aad 25161
21d1c967 25162 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
25163 echo "$as_me:$LINENO: checking for shmat" >&5
25164echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25165if test "${ac_cv_func_shmat+set}" = set; then
25166 echo $ECHO_N "(cached) $ECHO_C" >&6
25167else
25168 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25169/* confdefs.h. */
25170_ACEOF
25171cat confdefs.h >>conftest.$ac_ext
25172cat >>conftest.$ac_ext <<_ACEOF
25173/* end confdefs.h. */
eea650d8
VS
25174/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25176#define shmat innocuous_shmat
25177
21d1c967 25178/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25179 which can conflict with char shmat (); below.
25180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25181 <limits.h> exists even on freestanding compilers. */
eea650d8 25182
e6cc62c6
VS
25183#ifdef __STDC__
25184# include <limits.h>
25185#else
25186# include <assert.h>
25187#endif
eea650d8
VS
25188
25189#undef shmat
25190
21d1c967 25191/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25192#ifdef __cplusplus
25193extern "C"
25194{
25195#endif
21d1c967 25196/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25197 builtin and then its argument prototype would still apply. */
25198char shmat ();
21d1c967
GD
25199/* The GNU C library defines this for functions which it implements
25200 to always fail with ENOSYS. Some functions are actually named
25201 something starting with __ and the normal name is an alias. */
25202#if defined (__stub_shmat) || defined (__stub___shmat)
25203choke me
25204#else
e6cc62c6
VS
25205char (*f) () = shmat;
25206#endif
25207#ifdef __cplusplus
25208}
21d1c967 25209#endif
90dd450c 25210
e6cc62c6
VS
25211int
25212main ()
25213{
25214return f != shmat;
25215 ;
25216 return 0;
25217}
25218_ACEOF
25219rm -f conftest.$ac_objext conftest$ac_exeext
25220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 25221 (eval $ac_link) 2>conftest.er1
e6cc62c6 25222 ac_status=$?
eea650d8
VS
25223 grep -v '^ *+' conftest.er1 >conftest.err
25224 rm -f conftest.er1
25225 cat conftest.err >&5
e6cc62c6
VS
25226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); } &&
eea650d8
VS
25228 { ac_try='test -z "$ac_c_werror_flag"
25229 || test ! -s conftest.err'
25230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25231 (eval $ac_try) 2>&5
25232 ac_status=$?
25233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234 (exit $ac_status); }; } &&
25235 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25237 (eval $ac_try) 2>&5
25238 ac_status=$?
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); }; }; then
25241 ac_cv_func_shmat=yes
25242else
25243 echo "$as_me: failed program was:" >&5
25244sed 's/^/| /' conftest.$ac_ext >&5
25245
25246ac_cv_func_shmat=no
25247fi
eea650d8
VS
25248rm -f conftest.err conftest.$ac_objext \
25249 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25250fi
25251echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25252echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 25253
21d1c967 25254 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
25255 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25256echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25257if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25258 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 25259else
e6cc62c6 25260 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 25261LIBS="-lipc $LIBS"
e6cc62c6 25262cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25263/* confdefs.h. */
25264_ACEOF
25265cat confdefs.h >>conftest.$ac_ext
25266cat >>conftest.$ac_ext <<_ACEOF
25267/* end confdefs.h. */
25268
5c6fa7d2 25269/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25270#ifdef __cplusplus
25271extern "C"
25272#endif
5c6fa7d2 25273/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25274 builtin and then its argument prototype would still apply. */
25275char shmat ();
25276int
25277main ()
25278{
25279shmat ();
25280 ;
25281 return 0;
25282}
25283_ACEOF
25284rm -f conftest.$ac_objext conftest$ac_exeext
25285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 25286 (eval $ac_link) 2>conftest.er1
e6cc62c6 25287 ac_status=$?
eea650d8
VS
25288 grep -v '^ *+' conftest.er1 >conftest.err
25289 rm -f conftest.er1
25290 cat conftest.err >&5
e6cc62c6
VS
25291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25292 (exit $ac_status); } &&
eea650d8
VS
25293 { ac_try='test -z "$ac_c_werror_flag"
25294 || test ! -s conftest.err'
25295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25296 (eval $ac_try) 2>&5
25297 ac_status=$?
25298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); }; } &&
25300 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25302 (eval $ac_try) 2>&5
25303 ac_status=$?
25304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305 (exit $ac_status); }; }; then
25306 ac_cv_lib_ipc_shmat=yes
25307else
25308 echo "$as_me: failed program was:" >&5
25309sed 's/^/| /' conftest.$ac_ext >&5
25310
25311ac_cv_lib_ipc_shmat=no
25312fi
eea650d8
VS
25313rm -f conftest.err conftest.$ac_objext \
25314 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25315LIBS=$ac_check_lib_save_LIBS
25316fi
25317echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25318echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25319if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 25320 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 25321fi
90dd450c 25322
90dd450c 25323 fi
21d1c967 25324 fi
10f2d63a 25325
21d1c967 25326 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 25327 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
25328 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25329 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25330 # check for ICE first), but we must link in the order -lSM -lICE or
25331 # we get undefined symbols. So assume we have SM if we have ICE.
25332 # These have to be linked with before -lX11, unlike the other
25333 # libraries we check for below, so use a different variable.
e6cc62c6
VS
25334 # John Interrante, Karl Berry
25335 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25336echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25337if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25338 echo $ECHO_N "(cached) $ECHO_C" >&6
25339else
25340 ac_check_lib_save_LIBS=$LIBS
f09359cf 25341LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 25342cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25343/* confdefs.h. */
25344_ACEOF
25345cat confdefs.h >>conftest.$ac_ext
25346cat >>conftest.$ac_ext <<_ACEOF
25347/* end confdefs.h. */
25348
21d1c967 25349/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25350#ifdef __cplusplus
25351extern "C"
25352#endif
21d1c967 25353/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25354 builtin and then its argument prototype would still apply. */
25355char IceConnectionNumber ();
25356int
25357main ()
25358{
25359IceConnectionNumber ();
25360 ;
25361 return 0;
25362}
25363_ACEOF
25364rm -f conftest.$ac_objext conftest$ac_exeext
25365if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 25366 (eval $ac_link) 2>conftest.er1
e6cc62c6 25367 ac_status=$?
eea650d8
VS
25368 grep -v '^ *+' conftest.er1 >conftest.err
25369 rm -f conftest.er1
25370 cat conftest.err >&5
e6cc62c6
VS
25371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25372 (exit $ac_status); } &&
eea650d8
VS
25373 { ac_try='test -z "$ac_c_werror_flag"
25374 || test ! -s conftest.err'
25375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25376 (eval $ac_try) 2>&5
25377 ac_status=$?
25378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25379 (exit $ac_status); }; } &&
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
25386 ac_cv_lib_ICE_IceConnectionNumber=yes
25387else
25388 echo "$as_me: failed program was:" >&5
25389sed 's/^/| /' conftest.$ac_ext >&5
25390
25391ac_cv_lib_ICE_IceConnectionNumber=no
25392fi
eea650d8
VS
25393rm -f conftest.err conftest.$ac_objext \
25394 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25395LIBS=$ac_check_lib_save_LIBS
25396fi
25397echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25398echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25399if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 25400 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 25401fi
21d1c967 25402
e6cc62c6 25403 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 25404
10f2d63a
VZ
25405fi
25406
8284b0c5 25407
21d1c967 25408 if test "$no_x" = "yes"; then
e6cc62c6
VS
25409 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25410echo "$as_me: error: X11 not found" >&2;}
25411 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
25412 fi
25413
2b5f62a0
VZ
25414 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
25415 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
25416 AFMINSTALL=afminstall
25417 COMPILED_X_PROGRAM=0
25418
e6cc62c6
VS
25419 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25420echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
25421
21d1c967 25422ac_find_includes=
2b5f62a0 25423for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
25424 do
25425 if test -f "$ac_dir/Xm/Xm.h"; then
25426 ac_find_includes=$ac_dir
25427 break
25428 fi
25429 done
25430
25431 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
25432 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25433echo "${ECHO_T}found in $ac_find_includes" >&6
25434
2b5f62a0 25435 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
25436 ac_path_to_include=""
25437 else
2b5f62a0
VZ
25438 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25439 result=$?
25440 if test $result = 0; then
25441 ac_path_to_include=""
25442 else
25443 ac_path_to_include=" -I$ac_find_includes"
25444 fi
dd0e4a90
VZ
25445 fi
25446
25447 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 25448 else
e6cc62c6 25449 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25450/* confdefs.h. */
25451_ACEOF
25452cat confdefs.h >>conftest.$ac_ext
25453cat >>conftest.$ac_ext <<_ACEOF
25454/* end confdefs.h. */
21d1c967
GD
25455
25456 #include <Xm/Xm.h>
e6cc62c6
VS
25457
25458int
25459main ()
25460{
21d1c967
GD
25461
25462 int version;
25463 version = xmUseVersion;
e6cc62c6
VS
25464
25465 ;
25466 return 0;
25467}
25468_ACEOF
25469rm -f conftest.$ac_objext
25470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 25471 (eval $ac_compile) 2>conftest.er1
e6cc62c6 25472 ac_status=$?
eea650d8
VS
25473 grep -v '^ *+' conftest.er1 >conftest.err
25474 rm -f conftest.er1
25475 cat conftest.err >&5
e6cc62c6
VS
25476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477 (exit $ac_status); } &&
eea650d8
VS
25478 { ac_try='test -z "$ac_c_werror_flag"
25479 || test ! -s conftest.err'
25480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25481 (eval $ac_try) 2>&5
25482 ac_status=$?
25483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25484 (exit $ac_status); }; } &&
25485 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25487 (eval $ac_try) 2>&5
25488 ac_status=$?
25489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490 (exit $ac_status); }; }; then
25491
25492 echo "$as_me:$LINENO: result: found in default search path" >&5
25493echo "${ECHO_T}found in default search path" >&6
21d1c967 25494 COMPILED_X_PROGRAM=1
e6cc62c6 25495
10f2d63a 25496else
e6cc62c6
VS
25497 echo "$as_me: failed program was:" >&5
25498sed 's/^/| /' conftest.$ac_ext >&5
25499
25500
25501 echo "$as_me:$LINENO: result: no" >&5
25502echo "${ECHO_T}no" >&6
25503 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25504echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25505 { (exit 1); exit 1; }; }
25506
25507
10f2d63a 25508fi
eea650d8 25509rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967 25510 fi
10f2d63a 25511
21d1c967 25512 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
25513 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25514echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25515
21d1c967 25516ac_find_libraries=
2b5f62a0 25517for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25518 do
25519 for ac_extension in a so sl dylib; do
25520 if test -f "$ac_dir/libXm.$ac_extension"; then
25521 ac_find_libraries=$ac_dir
25522 break 2
25523 fi
25524 done
25525 done
25526
25527 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
25528 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25529echo "${ECHO_T}found at $ac_find_libraries" >&6
25530
21d1c967 25531
21d1c967
GD
25532 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25533 result=$?
25534 if test $result = 0; then
25535 ac_path_to_link=""
25536 else
25537 ac_path_to_link=" -L$ac_find_libraries"
25538 fi
25539
21d1c967 25540 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 25541 else
dd0e4a90
VZ
25542 save_CFLAGS=$CFLAGS
25543 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25544
e6cc62c6 25545 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25546/* confdefs.h. */
25547_ACEOF
25548cat confdefs.h >>conftest.$ac_ext
25549cat >>conftest.$ac_ext <<_ACEOF
25550/* end confdefs.h. */
21d1c967
GD
25551
25552 #include <Xm/Xm.h>
e6cc62c6
VS
25553
25554int
25555main ()
25556{
21d1c967
GD
25557
25558 int version;
25559 version = xmUseVersion;
e6cc62c6
VS
25560
25561 ;
25562 return 0;
25563}
25564_ACEOF
25565rm -f conftest.$ac_objext
25566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 25567 (eval $ac_compile) 2>conftest.er1
e6cc62c6 25568 ac_status=$?
eea650d8
VS
25569 grep -v '^ *+' conftest.er1 >conftest.err
25570 rm -f conftest.er1
25571 cat conftest.err >&5
e6cc62c6
VS
25572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573 (exit $ac_status); } &&
eea650d8
VS
25574 { ac_try='test -z "$ac_c_werror_flag"
25575 || test ! -s conftest.err'
25576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25577 (eval $ac_try) 2>&5
25578 ac_status=$?
25579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25580 (exit $ac_status); }; } &&
25581 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25583 (eval $ac_try) 2>&5
25584 ac_status=$?
25585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586 (exit $ac_status); }; }; then
25587
25588 echo "$as_me:$LINENO: result: found in default search path" >&5
25589echo "${ECHO_T}found in default search path" >&6
21d1c967 25590 COMPILED_X_PROGRAM=1
e6cc62c6 25591
d836ee96 25592else
e6cc62c6
VS
25593 echo "$as_me: failed program was:" >&5
25594sed 's/^/| /' conftest.$ac_ext >&5
25595
25596
25597 echo "$as_me:$LINENO: result: no" >&5
25598echo "${ECHO_T}no" >&6
25599 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
25600echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
25601 { (exit 1); exit 1; }; }
25602
25603
d836ee96 25604fi
eea650d8 25605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
25606
25607 CFLAGS=$save_CFLAGS
21d1c967
GD
25608 fi
25609 fi
25610
e6cc62c6
VS
25611 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
25612echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
25613 libp_link=""
25614 libsm_ice_link=""
25615 libs_found=0
25616 for libp in "" " -lXp"; do
25617 if test "$libs_found" = "0"; then
7015ef3a 25618 for libsm_ice in "" " -lSM -lICE"; do
e26c13cf 25619 if test "$libs_found" = "0"; then
6a30f1c8 25620 save_LIBS="$LIBS"
93a543aa 25621 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
25622 save_CFLAGS=$CFLAGS
25623 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25624
e6cc62c6 25625 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25626/* confdefs.h. */
25627_ACEOF
25628cat confdefs.h >>conftest.$ac_ext
25629cat >>conftest.$ac_ext <<_ACEOF
25630/* end confdefs.h. */
17234b26 25631
6a30f1c8
MB
25632 #include <Xm/Xm.h>
25633 #include <Xm/List.h>
e6cc62c6
VS
25634
25635int
25636main ()
25637{
6a30f1c8
MB
25638
25639 XmString string = NULL;
25640 Widget w = NULL;
25641 int position = 0;
25642 XmListAddItem(w, string, position);
e6cc62c6
VS
25643
25644 ;
25645 return 0;
25646}
25647_ACEOF
25648rm -f conftest.$ac_objext conftest$ac_exeext
25649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 25650 (eval $ac_link) 2>conftest.er1
e6cc62c6 25651 ac_status=$?
eea650d8
VS
25652 grep -v '^ *+' conftest.er1 >conftest.err
25653 rm -f conftest.er1
25654 cat conftest.err >&5
e6cc62c6
VS
25655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25656 (exit $ac_status); } &&
eea650d8
VS
25657 { ac_try='test -z "$ac_c_werror_flag"
25658 || test ! -s conftest.err'
25659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25660 (eval $ac_try) 2>&5
25661 ac_status=$?
25662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25663 (exit $ac_status); }; } &&
25664 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25666 (eval $ac_try) 2>&5
25667 ac_status=$?
25668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); }; }; then
25670
6a30f1c8
MB
25671 libp_link="$libp"
25672 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
25673 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
25674echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 25675 libs_found=1
e6cc62c6 25676
6a30f1c8 25677else
e6cc62c6
VS
25678 echo "$as_me: failed program was:" >&5
25679sed 's/^/| /' conftest.$ac_ext >&5
25680
25681
25682
6a30f1c8 25683fi
eea650d8
VS
25684rm -f conftest.err conftest.$ac_objext \
25685 conftest$ac_exeext conftest.$ac_ext
dd0e4a90 25686
6a30f1c8 25687 LIBS="$save_LIBS"
dd0e4a90 25688 CFLAGS=$save_CFLAGS
6a30f1c8
MB
25689 fi
25690 done
25691 fi
25692 done
25693
25694 if test "$libs_found" = "0"; then
e6cc62c6
VS
25695 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
25696echo "${ECHO_T}can't find the right libraries" >&6
25697 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
25698echo "$as_me: error: can't link a simple motif program" >&2;}
25699 { (exit 1); exit 1; }; }
6a30f1c8
MB
25700 fi
25701
da494b40
MB
25702 save_CFLAGS=$CFLAGS
25703 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
25704 echo "$as_me:$LINENO: checking for Motif 2" >&5
25705echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
25706 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25707/* confdefs.h. */
25708_ACEOF
25709cat confdefs.h >>conftest.$ac_ext
25710cat >>conftest.$ac_ext <<_ACEOF
25711/* end confdefs.h. */
da494b40
MB
25712
25713 #include <Xm/Xm.h>
e6cc62c6
VS
25714
25715int
25716main ()
25717{
da494b40
MB
25718
25719 #if XmVersion < 2000
25720 #error "Not Motif 2"
25721 #endif
e6cc62c6
VS
25722
25723 ;
25724 return 0;
25725}
25726_ACEOF
25727rm -f conftest.$ac_objext
25728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 25729 (eval $ac_compile) 2>conftest.er1
e6cc62c6 25730 ac_status=$?
eea650d8
VS
25731 grep -v '^ *+' conftest.er1 >conftest.err
25732 rm -f conftest.er1
25733 cat conftest.err >&5
e6cc62c6
VS
25734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25735 (exit $ac_status); } &&
eea650d8
VS
25736 { ac_try='test -z "$ac_c_werror_flag"
25737 || test ! -s conftest.err'
25738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25739 (eval $ac_try) 2>&5
25740 ac_status=$?
25741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25742 (exit $ac_status); }; } &&
25743 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25745 (eval $ac_try) 2>&5
25746 ac_status=$?
25747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25748 (exit $ac_status); }; }; then
25749
25750 cat >>confdefs.h <<\_ACEOF
da494b40 25751#define __WXMOTIF20__ 1
e6cc62c6
VS
25752_ACEOF
25753
25754 echo "$as_me:$LINENO: result: found" >&5
25755echo "${ECHO_T}found" >&6
da494b40 25756
da494b40 25757else
e6cc62c6
VS
25758 echo "$as_me: failed program was:" >&5
25759sed 's/^/| /' conftest.$ac_ext >&5
25760
25761
25762 cat >>confdefs.h <<\_ACEOF
da494b40 25763#define __WXMOTIF20__ 0
e6cc62c6
VS
25764_ACEOF
25765
25766 echo "$as_me:$LINENO: result: not found" >&5
25767echo "${ECHO_T}not found" >&6
da494b40 25768
da494b40 25769fi
eea650d8 25770rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
da494b40
MB
25771 CFLAGS=$save_CFLAGS
25772
93a543aa 25773 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 25774 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
25775 TOOLKIT=MOTIF
25776 GUIDIST=MOTIF_DIST
f7f78039
MB
25777 fi
25778
89fe663f
VZ
25779 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
25780 if test "$wxUSE_LIBXPM" = "sys"; then
25781 echo "$as_me:$LINENO: checking for Xpm library" >&5
25782echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
25783
25784ac_find_libraries=
25785for ac_dir in $SEARCH_LIB /usr/lib;
25786 do
25787 for ac_extension in a so sl dylib; do
25788 if test -f "$ac_dir/libXpm.$ac_extension"; then
25789 ac_find_libraries=$ac_dir
25790 break 2
25791 fi
25792 done
25793 done
25794
25795 if test "$ac_find_libraries" != "" ; then
25796
25797 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25798 result=$?
25799 if test $result = 0; then
25800 ac_path_to_link=""
25801 else
25802 ac_path_to_link=" -L$ac_find_libraries"
25803 fi
25804
25805 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25806 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25807echo "${ECHO_T}found at $ac_find_libraries" >&6
25808
25809 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
25810echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
25811if test "${wx_cv_x11_xpm_h+set}" = set; then
25812 echo $ECHO_N "(cached) $ECHO_C" >&6
25813else
25814
25815 save_CFLAGS=$CFLAGS
25816 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25817
25818 cat >conftest.$ac_ext <<_ACEOF
89fe663f
VZ
25819/* confdefs.h. */
25820_ACEOF
25821cat confdefs.h >>conftest.$ac_ext
25822cat >>conftest.$ac_ext <<_ACEOF
25823/* end confdefs.h. */
25824
25825 #include <X11/xpm.h>
25826
25827int
25828main ()
25829{
25830
25831 int version;
25832 version = XpmLibraryVersion();
25833
25834 ;
25835 return 0;
25836}
25837_ACEOF
25838rm -f conftest.$ac_objext
25839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 25840 (eval $ac_compile) 2>conftest.er1
89fe663f 25841 ac_status=$?
eea650d8
VS
25842 grep -v '^ *+' conftest.er1 >conftest.err
25843 rm -f conftest.er1
25844 cat conftest.err >&5
89fe663f
VZ
25845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846 (exit $ac_status); } &&
eea650d8
VS
25847 { ac_try='test -z "$ac_c_werror_flag"
25848 || test ! -s conftest.err'
25849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25850 (eval $ac_try) 2>&5
25851 ac_status=$?
25852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25853 (exit $ac_status); }; } &&
25854 { ac_try='test -s conftest.$ac_objext'
89fe663f
VZ
25855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25856 (eval $ac_try) 2>&5
25857 ac_status=$?
25858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25859 (exit $ac_status); }; }; then
25860 wx_cv_x11_xpm_h=yes
25861else
25862 echo "$as_me: failed program was:" >&5
25863sed 's/^/| /' conftest.$ac_ext >&5
25864
25865wx_cv_x11_xpm_h=no
25866
25867fi
eea650d8 25868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
25869
25870 CFLAGS=$save_CFLAGS
25871
25872
25873fi
25874echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
25875echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
25876
25877 if test $wx_cv_x11_xpm_h = "yes"; then
93a543aa 25878 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
89fe663f
VZ
25879 cat >>confdefs.h <<\_ACEOF
25880#define wxHAVE_LIB_XPM 1
25881_ACEOF
25882
25883 else
25884 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
25885echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
25886 fi
25887 fi
25888
25889 fi
f7f78039 25890
89fe663f
VZ
25891 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
25892echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
25893if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
25894 echo $ECHO_N "(cached) $ECHO_C" >&6
25895else
25896 ac_check_lib_save_LIBS=$LIBS
25897LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
25898cat >conftest.$ac_ext <<_ACEOF
89fe663f
VZ
25899/* confdefs.h. */
25900_ACEOF
25901cat confdefs.h >>conftest.$ac_ext
25902cat >>conftest.$ac_ext <<_ACEOF
25903/* end confdefs.h. */
25904
25905/* Override any gcc2 internal prototype to avoid an error. */
25906#ifdef __cplusplus
25907extern "C"
25908#endif
25909/* We use char because int might match the return type of a gcc2
25910 builtin and then its argument prototype would still apply. */
25911char XShapeQueryExtension ();
25912int
25913main ()
25914{
25915XShapeQueryExtension ();
25916 ;
25917 return 0;
25918}
25919_ACEOF
25920rm -f conftest.$ac_objext conftest$ac_exeext
25921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 25922 (eval $ac_link) 2>conftest.er1
89fe663f 25923 ac_status=$?
eea650d8
VS
25924 grep -v '^ *+' conftest.er1 >conftest.err
25925 rm -f conftest.er1
25926 cat conftest.err >&5
89fe663f
VZ
25927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928 (exit $ac_status); } &&
eea650d8
VS
25929 { ac_try='test -z "$ac_c_werror_flag"
25930 || test ! -s conftest.err'
25931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25932 (eval $ac_try) 2>&5
25933 ac_status=$?
25934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935 (exit $ac_status); }; } &&
25936 { ac_try='test -s conftest$ac_exeext'
89fe663f
VZ
25937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25938 (eval $ac_try) 2>&5
25939 ac_status=$?
25940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25941 (exit $ac_status); }; }; then
25942 ac_cv_lib_Xext_XShapeQueryExtension=yes
25943else
25944 echo "$as_me: failed program was:" >&5
25945sed 's/^/| /' conftest.$ac_ext >&5
25946
25947ac_cv_lib_Xext_XShapeQueryExtension=no
25948fi
eea650d8
VS
25949rm -f conftest.err conftest.$ac_objext \
25950 conftest$ac_exeext conftest.$ac_ext
89fe663f
VZ
25951LIBS=$ac_check_lib_save_LIBS
25952fi
25953echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
25954echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
25955if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
25956
25957 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
25958 wxHAVE_XEXT_LIB=1
25959
25960fi
25961
25962
25963 if test "$wxHAVE_XEXT_LIB" = 1; then
25964 save_CFLAGS="$CFLAGS"
25965 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25966
25967 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
e6cc62c6 25968echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
89fe663f 25969 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25970/* confdefs.h. */
25971_ACEOF
25972cat confdefs.h >>conftest.$ac_ext
25973cat >>conftest.$ac_ext <<_ACEOF
25974/* end confdefs.h. */
25975
89fe663f
VZ
25976 #include <X11/Xlib.h>
25977 #include <X11/extensions/shape.h>
e6cc62c6
VS
25978
25979int
25980main ()
25981{
f7f78039 25982
89fe663f
VZ
25983 int dummy1, dummy2;
25984 XShapeQueryExtension((Display*)NULL,
25985 (int*)NULL, (int*)NULL);
e6cc62c6
VS
25986
25987 ;
25988 return 0;
25989}
25990_ACEOF
25991rm -f conftest.$ac_objext
25992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 25993 (eval $ac_compile) 2>conftest.er1
e6cc62c6 25994 ac_status=$?
eea650d8
VS
25995 grep -v '^ *+' conftest.er1 >conftest.err
25996 rm -f conftest.er1
25997 cat conftest.err >&5
e6cc62c6
VS
25998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25999 (exit $ac_status); } &&
eea650d8
VS
26000 { ac_try='test -z "$ac_c_werror_flag"
26001 || test ! -s conftest.err'
26002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26003 (eval $ac_try) 2>&5
26004 ac_status=$?
26005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006 (exit $ac_status); }; } &&
26007 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26009 (eval $ac_try) 2>&5
26010 ac_status=$?
26011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26012 (exit $ac_status); }; }; then
26013
89fe663f 26014 cat >>confdefs.h <<\_ACEOF
f7f78039 26015#define HAVE_XSHAPE 1
e6cc62c6
VS
26016_ACEOF
26017
89fe663f 26018 echo "$as_me:$LINENO: result: found" >&5
e6cc62c6 26019echo "${ECHO_T}found" >&6
f7f78039 26020
f7f78039 26021else
e6cc62c6
VS
26022 echo "$as_me: failed program was:" >&5
26023sed 's/^/| /' conftest.$ac_ext >&5
26024
26025
89fe663f 26026 echo "$as_me:$LINENO: result: not found" >&5
e6cc62c6
VS
26027echo "${ECHO_T}not found" >&6
26028
f7f78039 26029fi
eea650d8 26030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
26031 CFLAGS="$save_CFLAGS"
26032
26033 fi
21d1c967
GD
26034 fi
26035
26036 if test "$wxUSE_MAC" = 1; then
8e91c6f3
VZ
26037 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26038echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26039 if test "$GCC" = yes; then
26040 echo "$as_me:$LINENO: result: gcc" >&5
26041echo "${ECHO_T}gcc" >&6
26042 CPPFLAGS_PASCAL="-fpascal-strings"
26043 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26044 echo "$as_me:$LINENO: result: xlc" >&5
26045echo "${ECHO_T}xlc" >&6
26046 CPPFLAGS_PASCAL="-qmacpstr"
26047 else
26048 echo "$as_me:$LINENO: result: none" >&5
26049echo "${ECHO_T}none" >&6
26050 fi
26051
26052 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 26053
0c98a14e 26054 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
26055 TOOLKIT=MAC
26056 GUIDIST=MACX_DIST
cf615ebb 26057 WXBASEPORT="_carbon"
21d1c967
GD
26058 fi
26059
ac0c4cc3
DE
26060 if test "$wxUSE_COCOA" = 1; then
26061 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26062 TOOLKIT=COCOA
26063 GUIDIST=COCOA_DIST
26064 fi
26065
21d1c967
GD
26066 if test "$wxUSE_PM" = 1; then
26067 TOOLKIT=PM
26068 GUIDIST=GTK_DIST
26069 fi
26070
26071 if test "$TOOLKIT" = "PM" ; then
26072 TOOLKIT_DIR="os2"
26073 else
26074 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26075 fi
26076
26077 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26078
26079 if test "$wxUSE_UNIVERSAL" = "yes"; then
26080 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26081
26082 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26083 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26084
26085 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26086 if test "$wxUSE_X11" = 1; then
26087 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26088 else
26089 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26090 fi
26091 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26092 WIDGET_SET=univ
26093 else
26094 ALL_OBJECTS="\$(GUIOBJS)"
26095 ALL_SOURCES="\$(ALL_SOURCES)"
26096 ALL_HEADERS="\$(ALL_HEADERS)"
26097 fi
26098
26099 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26100
26101 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26102 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26103 fi
26104
26105 if test "$wxUSE_HTML" = "yes"; then
26106 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26107 fi
26108
26109 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26110 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26111 fi
26112 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26113 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26114 fi
26115 if test "$wxUSE_LIBPNG" = "builtin" ; then
26116 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26117 fi
26118
26119 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26120 DISTDIR="wx\$(TOOLKIT)"
90dd450c 26121else
21d1c967
GD
26122 USE_GUI=0
26123
26124 TOOLKIT_DIR="base"
26125
26126 if test "$USE_WIN32" = 1 ; then
26127 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26128 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26129
26130 TOOLKIT="MSW"
26131 else
26132 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26133 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26134 fi
26135
26136 ALL_SOURCES="\$(ALL_SOURCES)"
26137 ALL_HEADERS="\$(ALL_HEADERS)"
26138
26139 PORT_FILES="\${top_srcdir}/src/files.lst"
26140
26141 GUIDIST="BASE_DIST"
26142 DISTDIR="wxBase"
d836ee96
VZ
26143fi
26144
8284b0c5 26145
8647bec6
RG
26146
26147
26148IODBC_C_SRC=""
26149
26150
26151if test "$TOOLKIT" != "MSW" ; then
26152
bb41dcbe 26153 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
8647bec6 26154
bb41dcbe 26155 if test "${ac_cv_header_sql_h+set}" = set; then
e6cc62c6
VS
26156 echo "$as_me:$LINENO: checking for sql.h" >&5
26157echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26158if test "${ac_cv_header_sql_h+set}" = set; then
26159 echo $ECHO_N "(cached) $ECHO_C" >&6
26160fi
26161echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26162echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26163else
26164 # Is the header compilable?
26165echo "$as_me:$LINENO: checking sql.h usability" >&5
26166echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26167cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26168/* confdefs.h. */
26169_ACEOF
26170cat confdefs.h >>conftest.$ac_ext
26171cat >>conftest.$ac_ext <<_ACEOF
26172/* end confdefs.h. */
26173$ac_includes_default
8647bec6 26174#include <sql.h>
e6cc62c6
VS
26175_ACEOF
26176rm -f conftest.$ac_objext
26177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 26178 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26179 ac_status=$?
eea650d8
VS
26180 grep -v '^ *+' conftest.er1 >conftest.err
26181 rm -f conftest.er1
26182 cat conftest.err >&5
e6cc62c6
VS
26183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184 (exit $ac_status); } &&
eea650d8
VS
26185 { ac_try='test -z "$ac_c_werror_flag"
26186 || test ! -s conftest.err'
26187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26188 (eval $ac_try) 2>&5
26189 ac_status=$?
26190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26191 (exit $ac_status); }; } &&
26192 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26194 (eval $ac_try) 2>&5
26195 ac_status=$?
26196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26197 (exit $ac_status); }; }; then
26198 ac_header_compiler=yes
26199else
26200 echo "$as_me: failed program was:" >&5
26201sed 's/^/| /' conftest.$ac_ext >&5
26202
26203ac_header_compiler=no
26204fi
eea650d8 26205rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
26206echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26207echo "${ECHO_T}$ac_header_compiler" >&6
26208
26209# Is the header present?
26210echo "$as_me:$LINENO: checking sql.h presence" >&5
26211echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26212cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26213/* confdefs.h. */
26214_ACEOF
26215cat confdefs.h >>conftest.$ac_ext
26216cat >>conftest.$ac_ext <<_ACEOF
26217/* end confdefs.h. */
26218#include <sql.h>
26219_ACEOF
26220if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26222 ac_status=$?
26223 grep -v '^ *+' conftest.er1 >conftest.err
26224 rm -f conftest.er1
26225 cat conftest.err >&5
26226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26227 (exit $ac_status); } >/dev/null; then
26228 if test -s conftest.err; then
26229 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 26230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
26231 else
26232 ac_cpp_err=
26233 fi
26234else
26235 ac_cpp_err=yes
26236fi
26237if test -z "$ac_cpp_err"; then
26238 ac_header_preproc=yes
26239else
26240 echo "$as_me: failed program was:" >&5
26241sed 's/^/| /' conftest.$ac_ext >&5
26242
26243 ac_header_preproc=no
26244fi
26245rm -f conftest.err conftest.$ac_ext
26246echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26247echo "${ECHO_T}$ac_header_preproc" >&6
26248
26249# So? What about this header?
eea650d8
VS
26250case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26251 yes:no: )
e6cc62c6
VS
26252 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26253echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
26254 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26255echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26256 ac_header_preproc=yes
e6cc62c6 26257 ;;
eea650d8 26258 no:yes:* )
e6cc62c6
VS
26259 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26260echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
eea650d8
VS
26261 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26262echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26263 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26264echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26265 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26266echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
26267 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26268echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
26269 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26270echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
26271 (
26272 cat <<\_ASBOX
eea650d8
VS
26273## ----------------------------------------- ##
26274## Report this to wx-dev@lists.wxwindows.org ##
26275## ----------------------------------------- ##
e6cc62c6
VS
26276_ASBOX
26277 ) |
26278 sed "s/^/$as_me: WARNING: /" >&2
26279 ;;
26280esac
26281echo "$as_me:$LINENO: checking for sql.h" >&5
26282echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26283if test "${ac_cv_header_sql_h+set}" = set; then
26284 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 26285else
e6cc62c6
VS
26286 ac_cv_header_sql_h=$ac_header_preproc
26287fi
26288echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26289echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26290
bb41dcbe
VS
26291fi
26292if test $ac_cv_header_sql_h = yes; then
26293 found_sql_h=1
8647bec6
RG
26294fi
26295
e6cc62c6 26296
bb41dcbe 26297 if test "x$found_sql_h" = "x1" ; then
e46d2a18
VS
26298 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26299echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26300if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
e6cc62c6 26301 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 26302else
bb41dcbe 26303 ac_check_lib_save_LIBS=$LIBS
e46d2a18 26304LIBS="-liodbc $LIBS"
e6cc62c6 26305cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26306/* confdefs.h. */
26307_ACEOF
26308cat confdefs.h >>conftest.$ac_ext
26309cat >>conftest.$ac_ext <<_ACEOF
26310/* end confdefs.h. */
26311
8647bec6 26312/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26313#ifdef __cplusplus
26314extern "C"
26315#endif
8647bec6 26316/* We use char because int might match the return type of a gcc2
e6cc62c6 26317 builtin and then its argument prototype would still apply. */
e46d2a18 26318char SQLAllocEnv ();
e6cc62c6
VS
26319int
26320main ()
26321{
e46d2a18 26322SQLAllocEnv ();
e6cc62c6
VS
26323 ;
26324 return 0;
26325}
26326_ACEOF
26327rm -f conftest.$ac_objext conftest$ac_exeext
26328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 26329 (eval $ac_link) 2>conftest.er1
e6cc62c6 26330 ac_status=$?
eea650d8
VS
26331 grep -v '^ *+' conftest.er1 >conftest.err
26332 rm -f conftest.er1
26333 cat conftest.err >&5
e6cc62c6
VS
26334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335 (exit $ac_status); } &&
eea650d8
VS
26336 { ac_try='test -z "$ac_c_werror_flag"
26337 || test ! -s conftest.err'
26338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26339 (eval $ac_try) 2>&5
26340 ac_status=$?
26341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26342 (exit $ac_status); }; } &&
26343 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26345 (eval $ac_try) 2>&5
26346 ac_status=$?
26347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348 (exit $ac_status); }; }; then
e46d2a18 26349 ac_cv_lib_iodbc_SQLAllocEnv=yes
8647bec6 26350else
e6cc62c6
VS
26351 echo "$as_me: failed program was:" >&5
26352sed 's/^/| /' conftest.$ac_ext >&5
26353
e46d2a18 26354ac_cv_lib_iodbc_SQLAllocEnv=no
8647bec6 26355fi
eea650d8
VS
26356rm -f conftest.err conftest.$ac_objext \
26357 conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
26358LIBS=$ac_check_lib_save_LIBS
26359fi
e46d2a18
VS
26360echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26361echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26362if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
26363 ODBC_LINK=" -liodbc"
26364else
26365
e46d2a18
VS
26366 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26367echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26368if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
26369 echo $ECHO_N "(cached) $ECHO_C" >&6
26370else
26371 ac_check_lib_save_LIBS=$LIBS
e46d2a18 26372LIBS="-lunixodbc $LIBS"
bb41dcbe 26373cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26374/* confdefs.h. */
26375_ACEOF
26376cat confdefs.h >>conftest.$ac_ext
26377cat >>conftest.$ac_ext <<_ACEOF
26378/* end confdefs.h. */
26379
8647bec6 26380/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26381#ifdef __cplusplus
26382extern "C"
26383#endif
8647bec6 26384/* We use char because int might match the return type of a gcc2
e6cc62c6 26385 builtin and then its argument prototype would still apply. */
e46d2a18 26386char SQLAllocEnv ();
e6cc62c6
VS
26387int
26388main ()
26389{
e46d2a18 26390SQLAllocEnv ();
e6cc62c6
VS
26391 ;
26392 return 0;
26393}
26394_ACEOF
26395rm -f conftest.$ac_objext conftest$ac_exeext
26396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 26397 (eval $ac_link) 2>conftest.er1
e6cc62c6 26398 ac_status=$?
eea650d8
VS
26399 grep -v '^ *+' conftest.er1 >conftest.err
26400 rm -f conftest.er1
26401 cat conftest.err >&5
e6cc62c6
VS
26402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403 (exit $ac_status); } &&
eea650d8
VS
26404 { ac_try='test -z "$ac_c_werror_flag"
26405 || test ! -s conftest.err'
26406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26407 (eval $ac_try) 2>&5
26408 ac_status=$?
26409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26410 (exit $ac_status); }; } &&
26411 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26413 (eval $ac_try) 2>&5
26414 ac_status=$?
26415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26416 (exit $ac_status); }; }; then
e46d2a18 26417 ac_cv_lib_unixodbc_SQLAllocEnv=yes
8647bec6 26418else
e6cc62c6
VS
26419 echo "$as_me: failed program was:" >&5
26420sed 's/^/| /' conftest.$ac_ext >&5
26421
e46d2a18 26422ac_cv_lib_unixodbc_SQLAllocEnv=no
8647bec6 26423fi
eea650d8
VS
26424rm -f conftest.err conftest.$ac_objext \
26425 conftest$ac_exeext conftest.$ac_ext
bb41dcbe 26426LIBS=$ac_check_lib_save_LIBS
e6cc62c6 26427fi
e46d2a18
VS
26428echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26429echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26430if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
26431 ODBC_LINK=" -lunixodbc"
26432else
26433
e46d2a18
VS
26434 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26435echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26436if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
26437 echo $ECHO_N "(cached) $ECHO_C" >&6
26438else
26439 ac_check_lib_save_LIBS=$LIBS
e46d2a18 26440LIBS="-lodbc $LIBS"
bb41dcbe 26441cat >conftest.$ac_ext <<_ACEOF
bb41dcbe
VS
26442/* confdefs.h. */
26443_ACEOF
26444cat confdefs.h >>conftest.$ac_ext
26445cat >>conftest.$ac_ext <<_ACEOF
26446/* end confdefs.h. */
e6cc62c6 26447
bb41dcbe
VS
26448/* Override any gcc2 internal prototype to avoid an error. */
26449#ifdef __cplusplus
26450extern "C"
26451#endif
26452/* We use char because int might match the return type of a gcc2
26453 builtin and then its argument prototype would still apply. */
e46d2a18 26454char SQLAllocEnv ();
bb41dcbe
VS
26455int
26456main ()
26457{
e46d2a18 26458SQLAllocEnv ();
bb41dcbe
VS
26459 ;
26460 return 0;
26461}
26462_ACEOF
26463rm -f conftest.$ac_objext conftest$ac_exeext
26464if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 26465 (eval $ac_link) 2>conftest.er1
bb41dcbe 26466 ac_status=$?
eea650d8
VS
26467 grep -v '^ *+' conftest.er1 >conftest.err
26468 rm -f conftest.er1
26469 cat conftest.err >&5
bb41dcbe
VS
26470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471 (exit $ac_status); } &&
eea650d8
VS
26472 { ac_try='test -z "$ac_c_werror_flag"
26473 || test ! -s conftest.err'
26474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26475 (eval $ac_try) 2>&5
26476 ac_status=$?
26477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478 (exit $ac_status); }; } &&
26479 { ac_try='test -s conftest$ac_exeext'
bb41dcbe
VS
26480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26481 (eval $ac_try) 2>&5
26482 ac_status=$?
26483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26484 (exit $ac_status); }; }; then
e46d2a18 26485 ac_cv_lib_odbc_SQLAllocEnv=yes
e6cc62c6 26486else
bb41dcbe
VS
26487 echo "$as_me: failed program was:" >&5
26488sed 's/^/| /' conftest.$ac_ext >&5
26489
e46d2a18 26490ac_cv_lib_odbc_SQLAllocEnv=no
bb41dcbe 26491fi
eea650d8
VS
26492rm -f conftest.err conftest.$ac_objext \
26493 conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
26494LIBS=$ac_check_lib_save_LIBS
26495fi
e46d2a18
VS
26496echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26497echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26498if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
bb41dcbe
VS
26499 ODBC_LINK=" -lodbc"
26500fi
26501
26502
26503fi
e6cc62c6 26504
e6cc62c6 26505
8647bec6 26506fi
e6cc62c6 26507
fd3d7534 26508 fi
bb41dcbe
VS
26509 if test "x$ODBC_LINK" = "x" ; then
26510 if test "$wxUSE_ODBC" = "sys" ; then
26511 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26512echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26513 { (exit 1); exit 1; }; }
26514 else
26515 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26516echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26517 wxUSE_ODBC=builtin
26518 fi
26519 else
26520 wxUSE_ODBC=sys
8647bec6 26521 fi
8647bec6 26522 fi
bb41dcbe
VS
26523 if test "$wxUSE_ODBC" != "no" ; then
26524 cat >>confdefs.h <<\_ACEOF
26525#define wxUSE_ODBC 1
26526_ACEOF
e6cc62c6 26527
0bdb08e7
VS
26528 if test "$wxUSE_ODBC" = "builtin" ; then
26529 cat >>confdefs.h <<\_ACEOF
26530#define wxUSE_BUILTIN_IODBC 1
26531_ACEOF
26532
26533 fi
bb41dcbe
VS
26534 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26535
26536 WXODBCFLAG="-D_IODBC_"
26537 fi
6232543b 26538fi
21d1c967
GD
26539
26540if test "$wxUSE_REGEX" = "builtin" ; then
26541 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 26542fi
21d1c967
GD
26543if test "$wxUSE_ZLIB" = "builtin" ; then
26544 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
26545fi
26546
74500461
VS
26547if test "$wxUSE_DISPLAY" = "yes"; then
26548 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
26549 echo "$as_me:$LINENO: checking for Xinerama" >&5
26550echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
26551
26552ac_find_libraries=
26553for ac_dir in $SEARCH_LIB /usr/lib;
26554 do
26555 for ac_extension in a so sl dylib; do
26556 if test -f "$ac_dir/libXinerama.$ac_extension"; then
26557 ac_find_libraries=$ac_dir
26558 break 2
26559 fi
26560 done
26561 done
26562
26563 if test "$ac_find_libraries" != "" ; then
26564
26565 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26566 result=$?
26567 if test $result = 0; then
26568 ac_path_to_link=""
26569 else
26570 ac_path_to_link=" -L$ac_find_libraries"
26571 fi
26572
26573 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26574 LDFLAGS="$LDFLAGS $ac_path_to_link"
26575 fi
26576 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
26577 echo "$as_me:$LINENO: result: yes" >&5
26578echo "${ECHO_T}yes" >&6
505c8ccd
VS
26579
26580 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
26581echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
26582
26583ac_find_libraries=
26584for ac_dir in $SEARCH_LIB /usr/lib;
26585 do
26586 for ac_extension in a so sl dylib; do
26587 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
26588 ac_find_libraries=$ac_dir
26589 break 2
26590 fi
26591 done
26592 done
26593
26594 if test "$ac_find_libraries" != "" ; then
26595 echo "$as_me:$LINENO: result: yes" >&5
26596echo "${ECHO_T}yes" >&6
26597
26598for ac_header in X11/extensions/xf86vmode.h
26599do
26600as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26601echo "$as_me:$LINENO: checking for $ac_header" >&5
26602echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26603if eval "test \"\${$as_ac_Header+set}\" = set"; then
26604 echo $ECHO_N "(cached) $ECHO_C" >&6
26605else
26606 cat >conftest.$ac_ext <<_ACEOF
26607/* confdefs.h. */
26608_ACEOF
26609cat confdefs.h >>conftest.$ac_ext
26610cat >>conftest.$ac_ext <<_ACEOF
26611/* end confdefs.h. */
26612
26613 #if HAVE_X11_XLIB_H
26614 #include <X11/Xlib.h>
26615 #endif
26616
26617
26618#include <$ac_header>
26619_ACEOF
26620rm -f conftest.$ac_objext
26621if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26622 (eval $ac_compile) 2>conftest.er1
26623 ac_status=$?
26624 grep -v '^ *+' conftest.er1 >conftest.err
26625 rm -f conftest.er1
26626 cat conftest.err >&5
26627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26628 (exit $ac_status); } &&
26629 { ac_try='test -z "$ac_c_werror_flag"
26630 || test ! -s conftest.err'
26631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26632 (eval $ac_try) 2>&5
26633 ac_status=$?
26634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635 (exit $ac_status); }; } &&
26636 { ac_try='test -s conftest.$ac_objext'
26637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26638 (eval $ac_try) 2>&5
26639 ac_status=$?
26640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641 (exit $ac_status); }; }; then
26642 eval "$as_ac_Header=yes"
26643else
26644 echo "$as_me: failed program was:" >&5
26645sed 's/^/| /' conftest.$ac_ext >&5
26646
26647eval "$as_ac_Header=no"
26648fi
26649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26650fi
26651echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26652echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26653if test `eval echo '${'$as_ac_Header'}'` = yes; then
26654 cat >>confdefs.h <<_ACEOF
26655#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26656_ACEOF
26657
26658 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
26659
26660fi
26661
26662done
26663
26664 else
26665 echo "$as_me:$LINENO: result: no" >&5
26666echo "${ECHO_T}no" >&6
26667 fi
26668
74500461
VS
26669 else
26670 echo "$as_me:$LINENO: result: no" >&5
26671echo "${ECHO_T}no" >&6
26672 { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5
26673echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;}
26674 wxUSE_DISPLAY="no"
26675 fi
26676 fi
26677fi
26678
8284b0c5 26679
4d264332 26680USE_OPENGL=0
21d1c967 26681if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 26682 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
26683 OPENGL_LIBS="-framework OpenGL -framework AGL"
26684 elif test "$wxUSE_MSW" = 1; then
26685 OPENGL_LIBS="-lopengl32 -lglu32"
26686 else
01aa5863
VS
26687
26688
26689ac_find_includes=
26690for ac_dir in $SEARCH_INCLUDE /usr/include;
26691 do
26692 if test -f "$ac_dir/GL/gl.h"; then
26693 ac_find_includes=$ac_dir
26694 break
26695 fi
26696 done
26697
26698 if test "$ac_find_includes" != "" ; then
26699 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26700echo "${ECHO_T}found in $ac_find_includes" >&6
01aa5863
VS
26701
26702 if test "x$ac_find_includes" = "x/usr/include"; then
26703 ac_path_to_include=""
26704 else
26705 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
26706 result=$?
26707 if test $result = 0; then
26708 ac_path_to_include=""
26709 else
26710 ac_path_to_include=" -I$ac_find_includes"
26711 fi
26712 fi
26713
26714 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
01aa5863
VS
26715 fi
26716
e6cc62c6
VS
26717 if test "${ac_cv_header_GL_gl_h+set}" = set; then
26718 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
26719echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
26720if test "${ac_cv_header_GL_gl_h+set}" = set; then
26721 echo $ECHO_N "(cached) $ECHO_C" >&6
26722fi
26723echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
26724echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
26725else
26726 # Is the header compilable?
26727echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
26728echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
26729cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26730/* confdefs.h. */
26731_ACEOF
26732cat confdefs.h >>conftest.$ac_ext
26733cat >>conftest.$ac_ext <<_ACEOF
26734/* end confdefs.h. */
26735$ac_includes_default
21d1c967 26736#include <GL/gl.h>
e6cc62c6
VS
26737_ACEOF
26738rm -f conftest.$ac_objext
26739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 26740 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26741 ac_status=$?
eea650d8
VS
26742 grep -v '^ *+' conftest.er1 >conftest.err
26743 rm -f conftest.er1
26744 cat conftest.err >&5
e6cc62c6
VS
26745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746 (exit $ac_status); } &&
eea650d8
VS
26747 { ac_try='test -z "$ac_c_werror_flag"
26748 || test ! -s conftest.err'
26749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26750 (eval $ac_try) 2>&5
26751 ac_status=$?
26752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); }; } &&
26754 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26756 (eval $ac_try) 2>&5
26757 ac_status=$?
26758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759 (exit $ac_status); }; }; then
26760 ac_header_compiler=yes
26761else
26762 echo "$as_me: failed program was:" >&5
26763sed 's/^/| /' conftest.$ac_ext >&5
26764
26765ac_header_compiler=no
26766fi
eea650d8 26767rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
26768echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26769echo "${ECHO_T}$ac_header_compiler" >&6
26770
26771# Is the header present?
26772echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
26773echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
26774cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26775/* confdefs.h. */
26776_ACEOF
26777cat confdefs.h >>conftest.$ac_ext
26778cat >>conftest.$ac_ext <<_ACEOF
26779/* end confdefs.h. */
26780#include <GL/gl.h>
26781_ACEOF
26782if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26784 ac_status=$?
26785 grep -v '^ *+' conftest.er1 >conftest.err
26786 rm -f conftest.er1
26787 cat conftest.err >&5
26788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26789 (exit $ac_status); } >/dev/null; then
26790 if test -s conftest.err; then
26791 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 26792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
26793 else
26794 ac_cpp_err=
26795 fi
26796else
26797 ac_cpp_err=yes
26798fi
26799if test -z "$ac_cpp_err"; then
26800 ac_header_preproc=yes
26801else
26802 echo "$as_me: failed program was:" >&5
26803sed 's/^/| /' conftest.$ac_ext >&5
26804
26805 ac_header_preproc=no
26806fi
26807rm -f conftest.err conftest.$ac_ext
26808echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26809echo "${ECHO_T}$ac_header_preproc" >&6
26810
26811# So? What about this header?
eea650d8
VS
26812case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26813 yes:no: )
e6cc62c6
VS
26814 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26815echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
26816 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
26817echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
26818 ac_header_preproc=yes
e6cc62c6 26819 ;;
eea650d8 26820 no:yes:* )
e6cc62c6
VS
26821 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
26822echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
eea650d8
VS
26823 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
26824echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
26825 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
26826echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
26827 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
26828echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
26829 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
26830echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
26831 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
26832echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
26833 (
26834 cat <<\_ASBOX
eea650d8
VS
26835## ----------------------------------------- ##
26836## Report this to wx-dev@lists.wxwindows.org ##
26837## ----------------------------------------- ##
e6cc62c6
VS
26838_ASBOX
26839 ) |
26840 sed "s/^/$as_me: WARNING: /" >&2
26841 ;;
26842esac
26843echo "$as_me:$LINENO: checking for GL/gl.h" >&5
26844echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
26845if test "${ac_cv_header_GL_gl_h+set}" = set; then
26846 echo $ECHO_N "(cached) $ECHO_C" >&6
26847else
26848 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 26849fi
e6cc62c6
VS
26850echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
26851echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
26852
698dcdb6 26853fi
e6cc62c6
VS
26854if test $ac_cv_header_GL_gl_h = yes; then
26855
89e3b3e4
VZ
26856 found_gl=0
26857
e6cc62c6
VS
26858 echo "$as_me:$LINENO: checking for -lGL" >&5
26859echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
26860
21d1c967 26861ac_find_libraries=
2b5f62a0 26862for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
26863 do
26864 for ac_extension in a so sl dylib; do
26865 if test -f "$ac_dir/libGL.$ac_extension"; then
26866 ac_find_libraries=$ac_dir
26867 break 2
26868 fi
26869 done
26870 done
26871
26872 if test "$ac_find_libraries" != "" ; then
e6cc62c6 26873
21d1c967
GD
26874 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26875 result=$?
26876 if test $result = 0; then
26877 ac_path_to_link=""
26878 else
26879 ac_path_to_link=" -L$ac_find_libraries"
26880 fi
26881
89e3b3e4
VZ
26882 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26883 LDFLAGS_GL="$ac_path_to_link"
21d1c967 26884 fi
89e3b3e4 26885
e6cc62c6 26886
89e3b3e4
VZ
26887ac_find_libraries=
26888for ac_dir in $SEARCH_LIB /usr/lib;
26889 do
26890 for ac_extension in a so sl dylib; do
26891 if test -f "$ac_dir/libGLU.$ac_extension"; then
26892 ac_find_libraries=$ac_dir
26893 break 2
26894 fi
26895 done
26896 done
26897
26898 if test "$ac_find_libraries" != "" ; then
e6cc62c6 26899
89e3b3e4
VZ
26900 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26901 result=$?
26902 if test $result = 0; then
26903 ac_path_to_link=""
26904 else
26905 ac_path_to_link=" -L$ac_find_libraries"
26906 fi
26907
26908 if test "$ac_path_to_link" != " -L/usr/lib" -a \
26909 "$ac_path_to_link" != "$LDFLAGS_GL"; then
26910 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
26911 fi
26912
26913 found_gl=1
26914 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
26915 echo "$as_me:$LINENO: result: yes" >&5
26916echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
26917 fi
26918 fi
26919
bb41dcbe 26920 if test "$found_gl" != 1; then
e6cc62c6
VS
26921 echo "$as_me:$LINENO: result: no" >&5
26922echo "${ECHO_T}no" >&6
26923 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
26924echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
26925
21d1c967 26926ac_find_libraries=
2b5f62a0 26927for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
26928 do
26929 for ac_extension in a so sl dylib; do
26930 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
26931 ac_find_libraries=$ac_dir
26932 break 2
26933 fi
26934 done
26935 done
26936
26937 if test "$ac_find_libraries" != "" ; then
e6cc62c6 26938
21d1c967
GD
26939 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26940 result=$?
26941 if test $result = 0; then
26942 ac_path_to_link=""
26943 else
26944 ac_path_to_link=" -L$ac_find_libraries"
26945 fi
26946
26947 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
26948 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
26949 echo "$as_me:$LINENO: result: yes" >&5
26950echo "${ECHO_T}yes" >&6
21d1c967 26951 else
e6cc62c6
VS
26952 echo "$as_me:$LINENO: result: no" >&5
26953echo "${ECHO_T}no" >&6
21d1c967
GD
26954 fi
26955 fi
e6cc62c6 26956
5c6fa7d2 26957fi
52127426 26958
8284b0c5 26959
e6cc62c6 26960
21d1c967 26961 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
26962 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
26963echo "$as_me: error: OpenGL libraries not available" >&2;}
26964 { (exit 1); exit 1; }; }
21d1c967
GD
26965 fi
26966 fi
90dd450c 26967
21d1c967 26968 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 26969 USE_OPENGL=1
e6cc62c6 26970 cat >>confdefs.h <<\_ACEOF
21d1c967 26971#define wxUSE_OPENGL 1
e6cc62c6 26972_ACEOF
21d1c967 26973
e6cc62c6 26974 cat >>confdefs.h <<\_ACEOF
21d1c967 26975#define wxUSE_GLCANVAS 1
e6cc62c6 26976_ACEOF
21d1c967 26977
520755bb 26978 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
21d1c967 26979 fi
10f2d63a 26980fi
21d1c967
GD
26981
26982if test -z "$TOOLKIT_VPATH" ; then
26983 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 26984fi
21d1c967
GD
26985
26986if test -n "$TOOLKIT" ; then
26987 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
26988fi
26989
fe0895cf 26990UNICODE=0
21d1c967
GD
26991lib_unicode_suffix=
26992if test "$wxUSE_UNICODE" = "yes"; then
26993 lib_unicode_suffix=u
fe0895cf 26994 UNICODE=1
90dd450c 26995fi
698dcdb6 26996
21d1c967 26997lib_debug_suffix=
6c67131a 26998DEBUG_FLAG=0
21d1c967
GD
26999if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27000 lib_debug_suffix=d
6c67131a
VS
27001 DEBUG_FLAG=1
27002fi
27003
27004DEBUG_INFO=0
27005if test "$wxUSE_DEBUG_INFO" = "yes"; then
27006 DEBUG_INFO=1
21d1c967 27007fi
698dcdb6 27008
1cbb95a2 27009WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
2b5f62a0
VZ
27010
27011TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27012TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
27013
27014if test "$cross_compiling" = "yes"; then
27015 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27016 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 27017 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
27018fi
27019
27020WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27021WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
cf615ebb
VS
27022WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27023WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
27024
27025WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27026WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27027
27028WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27029WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27030WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27031WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27032
27033case "${host}" in
27034 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
27035 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27036 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
27037 ;;
27038
27039 *-*-darwin* )
e6cc62c6 27040
05159a27
GD
27041 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27042 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27043
27044 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27045 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27046 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27047 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27048
21d1c967 27049 if test "$wxUSE_MAC" = 1; then
f346733b
GD
27050 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
27051 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
27052 fi
27053 ;;
27054esac
27055
27056WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27057WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27058
27059WXCONFIG_LIBS="-l${WX_LIBRARY}"
27060WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27061
27062if test "$wxUSE_OPENGL" = "yes"; then
27063 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27064 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27065fi
27066
8284b0c5
MB
27067
27068
21d1c967
GD
27069if test "$wxUSE_SHARED" = "yes"; then
27070 case "${host}" in
27071 *-pc-os2_emx | *-pc-os2-emx | \
27072 *-pc-msdosdjgpp )
27073 wxUSE_SHARED=no
e6cc62c6
VS
27074 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27075echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
27076 ;;
27077 esac
27078fi
27079
fe0895cf 27080SHARED=0
2b5f62a0 27081if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 27082 SHARED=1
2b5f62a0 27083
e6cc62c6 27084
2b5f62a0
VZ
27085 found_versioning=no
27086
e6cc62c6 27087
2b5f62a0 27088 if test $found_versioning = no ; then
e6cc62c6
VS
27089 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27090echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27091if test "${wx_cv_version_script+set}" = set; then
27092 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 27093else
e6cc62c6 27094
2b5f62a0
VZ
27095 echo "VER_1 { *; };" >conftest.sym
27096 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 27097
2b5f62a0
VZ
27098 if { ac_try='
27099 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
27100 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27102 (eval $ac_try) 2>&5
27103 ac_status=$?
27104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27105 (exit $ac_status); }; } ; then
2b5f62a0
VZ
27106 if test -s conftest.stderr ; then
27107 wx_cv_version_script=no
27108 else
27109 wx_cv_version_script=yes
27110 fi
27111 else
27112 wx_cv_version_script=no
27113 fi
27114 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 27115
e6cc62c6
VS
27116fi
27117echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27118echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 27119 if test $wx_cv_version_script = yes ; then
e6cc62c6 27120 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
27121 fi
27122 fi
21d1c967 27123
21d1c967 27124
21d1c967 27125 case "${host}" in
fe0895cf 27126 *-*-linux* | *-*-gnu* )
e6cc62c6 27127 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
345b8952 27128 ;;
21d1c967
GD
27129
27130 *-*-solaris2* )
27131 if test "$GCC" = yes ; then
27132 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
27133
27134 saveLdflags="$LDFLAGS"
27135 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
27136 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27137echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27138 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27139/* confdefs.h. */
27140_ACEOF
27141cat confdefs.h >>conftest.$ac_ext
27142cat >>conftest.$ac_ext <<_ACEOF
27143/* end confdefs.h. */
27144
27145int
27146main ()
27147{
fe0895cf 27148
e6cc62c6
VS
27149 ;
27150 return 0;
27151}
27152_ACEOF
27153rm -f conftest.$ac_objext conftest$ac_exeext
27154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 27155 (eval $ac_link) 2>conftest.er1
e6cc62c6 27156 ac_status=$?
eea650d8
VS
27157 grep -v '^ *+' conftest.er1 >conftest.err
27158 rm -f conftest.er1
27159 cat conftest.err >&5
e6cc62c6
VS
27160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27161 (exit $ac_status); } &&
eea650d8
VS
27162 { ac_try='test -z "$ac_c_werror_flag"
27163 || test ! -s conftest.err'
27164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27165 (eval $ac_try) 2>&5
27166 ac_status=$?
27167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27168 (exit $ac_status); }; } &&
27169 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27171 (eval $ac_try) 2>&5
27172 ac_status=$?
27173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27174 (exit $ac_status); }; }; then
27175
27176 echo "$as_me:$LINENO: result: yes" >&5
27177echo "${ECHO_T}yes" >&6
27178 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27179
27180else
27181 echo "$as_me: failed program was:" >&5
27182sed 's/^/| /' conftest.$ac_ext >&5
27183
27184
27185 echo "$as_me:$LINENO: result: no" >&5
27186echo "${ECHO_T}no" >&6
27187 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27188echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 27189 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6 27190 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27191/* confdefs.h. */
27192_ACEOF
27193cat confdefs.h >>conftest.$ac_ext
27194cat >>conftest.$ac_ext <<_ACEOF
27195/* end confdefs.h. */
27196
27197int
27198main ()
27199{
27200
27201 ;
27202 return 0;
27203}
27204_ACEOF
27205rm -f conftest.$ac_objext conftest$ac_exeext
27206if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 27207 (eval $ac_link) 2>conftest.er1
e6cc62c6 27208 ac_status=$?
eea650d8
VS
27209 grep -v '^ *+' conftest.er1 >conftest.err
27210 rm -f conftest.er1
27211 cat conftest.err >&5
e6cc62c6
VS
27212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27213 (exit $ac_status); } &&
eea650d8
VS
27214 { ac_try='test -z "$ac_c_werror_flag"
27215 || test ! -s conftest.err'
27216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27217 (eval $ac_try) 2>&5
27218 ac_status=$?
27219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27220 (exit $ac_status); }; } &&
27221 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27223 (eval $ac_try) 2>&5
27224 ac_status=$?
27225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 (exit $ac_status); }; }; then
27227
27228 echo "$as_me:$LINENO: result: yes" >&5
27229echo "${ECHO_T}yes" >&6
27230 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27231else
27232 echo "$as_me: failed program was:" >&5
27233sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 27234
fe0895cf 27235
e6cc62c6
VS
27236 echo "$as_me:$LINENO: result: no" >&5
27237echo "${ECHO_T}no" >&6
27238
fe0895cf 27239fi
eea650d8
VS
27240rm -f conftest.err conftest.$ac_objext \
27241 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27242
27243fi
eea650d8
VS
27244rm -f conftest.err conftest.$ac_objext \
27245 conftest$ac_exeext conftest.$ac_ext
fe0895cf 27246 LDFLAGS="$saveLdflags"
21d1c967
GD
27247 else
27248 SHARED_LD="${CXX} -G -o"
27249 PIC_FLAG="-KPIC"
e6cc62c6 27250 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
27251 fi
27252 ;;
0f1bc9c2
VS
27253
27254 powerpc-*-darwin* )
ef0add05
VS
27255 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27256 cat <<EOF >change-install-names
27257#!/bin/sh
27258libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27259inst_cmd="install_name_tool "
27260for i in \${libnames} ; do
27261 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27262done
27263\${inst_cmd} \${3}
27264EOF
27265 chmod +x change-install-names
0f1bc9c2
VS
27266 ;;
27267
21d1c967
GD
27268 esac
27269
27270 if test "x$WX_TARGET_LIBRARY" = "x"; then
27271 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
27272 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
27273 fi
27274
27275 WX_TARGET_LIBRARY_TYPE="so"
27276 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 27277fi
10f2d63a 27278
21d1c967
GD
27279if test "$wxUSE_SHARED" = "no"; then
27280
27281 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
27282 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27283 fi
27284
ac0c4cc3 27285 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
27286 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27287 fi
27288
27289 if test "$wxUSE_OPENGL" = "yes"; then
27290 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
27291 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
27292 else
27293 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
27294 fi
27295
27296 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
27297 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
27298
27299 WX_TARGET_LIBRARY_TYPE="a"
27300 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
27301
27302 STATIC_FLAG="yes"
27303else
27304 STATIC_FLAG="no"
90dd450c 27305fi
1e487827 27306
93fac604
VZ
27307MACRESCOMP="@#"
27308MACSETFILE="@#"
36825681 27309MACRESWXCONFIG="#"
21d1c967 27310if test "$wxUSE_MAC" = 1; then
e6cc62c6 27311 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
27312 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
27313 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
27314 # Extract the first word of "Rez", so it can be a program name with args.
27315set dummy Rez; ac_word=$2
e6cc62c6
VS
27316echo "$as_me:$LINENO: checking for $ac_word" >&5
27317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27318if test "${ac_cv_prog_RESCOMP+set}" = set; then
27319 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 27320else
21d1c967
GD
27321 if test -n "$RESCOMP"; then
27322 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 27323else
e6cc62c6
VS
27324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27325for as_dir in $PATH
27326do
27327 IFS=$as_save_IFS
27328 test -z "$as_dir" && as_dir=.
27329 for ac_exec_ext in '' $ac_executable_extensions; do
27330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27331 ac_cv_prog_RESCOMP="Rez"
27332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27333 break 2
27334 fi
27335done
27336done
27337
21d1c967 27338 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 27339fi
b93d0d08 27340fi
e6cc62c6 27341RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 27342if test -n "$RESCOMP"; then
e6cc62c6
VS
27343 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27344echo "${ECHO_T}$RESCOMP" >&6
90dd450c 27345else
e6cc62c6
VS
27346 echo "$as_me:$LINENO: result: no" >&5
27347echo "${ECHO_T}no" >&6
90dd450c 27348fi
b93d0d08 27349
21d1c967
GD
27350 # Extract the first word of "DeRez", so it can be a program name with args.
27351set dummy DeRez; ac_word=$2
e6cc62c6
VS
27352echo "$as_me:$LINENO: checking for $ac_word" >&5
27353echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27354if test "${ac_cv_prog_DEREZ+set}" = set; then
27355 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 27356else
21d1c967
GD
27357 if test -n "$DEREZ"; then
27358 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 27359else
e6cc62c6
VS
27360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27361for as_dir in $PATH
27362do
27363 IFS=$as_save_IFS
27364 test -z "$as_dir" && as_dir=.
27365 for ac_exec_ext in '' $ac_executable_extensions; do
27366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27367 ac_cv_prog_DEREZ="DeRez"
27368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27369 break 2
27370 fi
27371done
27372done
27373
21d1c967 27374 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 27375fi
90dd450c 27376fi
e6cc62c6 27377DEREZ=$ac_cv_prog_DEREZ
21d1c967 27378if test -n "$DEREZ"; then
e6cc62c6
VS
27379 echo "$as_me:$LINENO: result: $DEREZ" >&5
27380echo "${ECHO_T}$DEREZ" >&6
90dd450c 27381else
e6cc62c6
VS
27382 echo "$as_me:$LINENO: result: no" >&5
27383echo "${ECHO_T}no" >&6
3a922bb4 27384fi
698dcdb6 27385
36825681
GD
27386 # Extract the first word of "SetFile", so it can be a program name with args.
27387set dummy SetFile; ac_word=$2
e6cc62c6
VS
27388echo "$as_me:$LINENO: checking for $ac_word" >&5
27389echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27390if test "${ac_cv_prog_SETFILE+set}" = set; then
27391 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
27392else
27393 if test -n "$SETFILE"; then
27394 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27395else
e6cc62c6
VS
27396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27397for as_dir in $PATH
27398do
27399 IFS=$as_save_IFS
27400 test -z "$as_dir" && as_dir=.
27401 for ac_exec_ext in '' $ac_executable_extensions; do
27402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27403 ac_cv_prog_SETFILE="SetFile"
27404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27405 break 2
27406 fi
27407done
27408done
27409
36825681
GD
27410 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27411fi
27412fi
e6cc62c6 27413SETFILE=$ac_cv_prog_SETFILE
36825681 27414if test -n "$SETFILE"; then
e6cc62c6
VS
27415 echo "$as_me:$LINENO: result: $SETFILE" >&5
27416echo "${ECHO_T}$SETFILE" >&6
36825681 27417else
e6cc62c6
VS
27418 echo "$as_me:$LINENO: result: no" >&5
27419echo "${ECHO_T}no" >&6
36825681
GD
27420fi
27421
21d1c967 27422 MACOSX_BUNDLE="bundle"
36825681
GD
27423 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
27424 MACSETFILE="\$(SETFILE)"
9711d31e 27425 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
64440d77
DE
27426elif test "$wxUSE_COCOA" = 1; then
27427 # Extract the first word of "Rez", so it can be a program name with args.
27428set dummy Rez; ac_word=$2
e6cc62c6
VS
27429echo "$as_me:$LINENO: checking for $ac_word" >&5
27430echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27431if test "${ac_cv_prog_RESCOMP+set}" = set; then
27432 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
27433else
27434 if test -n "$RESCOMP"; then
27435 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
27436else
e6cc62c6
VS
27437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27438for as_dir in $PATH
27439do
27440 IFS=$as_save_IFS
27441 test -z "$as_dir" && as_dir=.
27442 for ac_exec_ext in '' $ac_executable_extensions; do
27443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27444 ac_cv_prog_RESCOMP="Rez"
27445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27446 break 2
27447 fi
27448done
27449done
27450
64440d77
DE
27451 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
27452fi
27453fi
e6cc62c6 27454RESCOMP=$ac_cv_prog_RESCOMP
64440d77 27455if test -n "$RESCOMP"; then
e6cc62c6
VS
27456 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27457echo "${ECHO_T}$RESCOMP" >&6
64440d77 27458else
e6cc62c6
VS
27459 echo "$as_me:$LINENO: result: no" >&5
27460echo "${ECHO_T}no" >&6
64440d77
DE
27461fi
27462
27463 # Extract the first word of "DeRez", so it can be a program name with args.
27464set dummy DeRez; ac_word=$2
e6cc62c6
VS
27465echo "$as_me:$LINENO: checking for $ac_word" >&5
27466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27467if test "${ac_cv_prog_DEREZ+set}" = set; then
27468 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
27469else
27470 if test -n "$DEREZ"; then
27471 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
27472else
e6cc62c6
VS
27473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27474for as_dir in $PATH
27475do
27476 IFS=$as_save_IFS
27477 test -z "$as_dir" && as_dir=.
27478 for ac_exec_ext in '' $ac_executable_extensions; do
27479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27480 ac_cv_prog_DEREZ="DeRez"
27481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27482 break 2
27483 fi
27484done
27485done
27486
64440d77
DE
27487 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
27488fi
27489fi
e6cc62c6 27490DEREZ=$ac_cv_prog_DEREZ
64440d77 27491if test -n "$DEREZ"; then
e6cc62c6
VS
27492 echo "$as_me:$LINENO: result: $DEREZ" >&5
27493echo "${ECHO_T}$DEREZ" >&6
64440d77 27494else
e6cc62c6
VS
27495 echo "$as_me:$LINENO: result: no" >&5
27496echo "${ECHO_T}no" >&6
64440d77
DE
27497fi
27498
27499 # Extract the first word of "SetFile", so it can be a program name with args.
27500set dummy SetFile; ac_word=$2
e6cc62c6
VS
27501echo "$as_me:$LINENO: checking for $ac_word" >&5
27502echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27503if test "${ac_cv_prog_SETFILE+set}" = set; then
27504 echo $ECHO_N "(cached) $ECHO_C" >&6
64440d77
DE
27505else
27506 if test -n "$SETFILE"; then
27507 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27508else
e6cc62c6
VS
27509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27510for as_dir in $PATH
27511do
27512 IFS=$as_save_IFS
27513 test -z "$as_dir" && as_dir=.
27514 for ac_exec_ext in '' $ac_executable_extensions; do
27515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27516 ac_cv_prog_SETFILE="SetFile"
27517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27518 break 2
27519 fi
27520done
27521done
27522
64440d77
DE
27523 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27524fi
27525fi
e6cc62c6 27526SETFILE=$ac_cv_prog_SETFILE
64440d77 27527if test -n "$SETFILE"; then
e6cc62c6
VS
27528 echo "$as_me:$LINENO: result: $SETFILE" >&5
27529echo "${ECHO_T}$SETFILE" >&6
64440d77 27530else
e6cc62c6
VS
27531 echo "$as_me:$LINENO: result: no" >&5
27532echo "${ECHO_T}no" >&6
64440d77
DE
27533fi
27534
27535 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27536 MACSETFILE="\$(SETFILE)"
9711d31e 27537 MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
21d1c967
GD
27538else
27539 if test "$wxUSE_PM" = 1; then
36825681 27540 MACRESCOMP="emxbind -ep"
90dd450c 27541 fi
4f14bcd8 27542fi
10f2d63a 27543
8284b0c5 27544
e6cc62c6
VS
27545echo "$as_me:$LINENO: checking for mode_t" >&5
27546echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
27547if test "${ac_cv_type_mode_t+set}" = set; then
27548 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 27549else
e6cc62c6 27550 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27551/* confdefs.h. */
27552_ACEOF
27553cat confdefs.h >>conftest.$ac_ext
27554cat >>conftest.$ac_ext <<_ACEOF
27555/* end confdefs.h. */
27556$ac_includes_default
27557int
27558main ()
27559{
27560if ((mode_t *) 0)
27561 return 0;
27562if (sizeof (mode_t))
27563 return 0;
27564 ;
27565 return 0;
27566}
27567_ACEOF
27568rm -f conftest.$ac_objext
27569if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 27570 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27571 ac_status=$?
eea650d8
VS
27572 grep -v '^ *+' conftest.er1 >conftest.err
27573 rm -f conftest.er1
27574 cat conftest.err >&5
e6cc62c6
VS
27575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27576 (exit $ac_status); } &&
eea650d8
VS
27577 { ac_try='test -z "$ac_c_werror_flag"
27578 || test ! -s conftest.err'
27579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27580 (eval $ac_try) 2>&5
27581 ac_status=$?
27582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583 (exit $ac_status); }; } &&
27584 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27586 (eval $ac_try) 2>&5
27587 ac_status=$?
27588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27589 (exit $ac_status); }; }; then
27590 ac_cv_type_mode_t=yes
a0b9e27f 27591else
e6cc62c6
VS
27592 echo "$as_me: failed program was:" >&5
27593sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 27594
e6cc62c6 27595ac_cv_type_mode_t=no
a0b9e27f 27596fi
eea650d8 27597rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52127426 27598fi
e6cc62c6
VS
27599echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
27600echo "${ECHO_T}$ac_cv_type_mode_t" >&6
27601if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
27602 :
27603else
a0b9e27f 27604
e6cc62c6
VS
27605cat >>confdefs.h <<_ACEOF
27606#define mode_t int
27607_ACEOF
8284b0c5
MB
27608
27609fi
27610
e6cc62c6
VS
27611echo "$as_me:$LINENO: checking for off_t" >&5
27612echo $ECHO_N "checking for off_t... $ECHO_C" >&6
27613if test "${ac_cv_type_off_t+set}" = set; then
27614 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 27615else
e6cc62c6 27616 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27617/* confdefs.h. */
27618_ACEOF
27619cat confdefs.h >>conftest.$ac_ext
27620cat >>conftest.$ac_ext <<_ACEOF
27621/* end confdefs.h. */
27622$ac_includes_default
27623int
27624main ()
27625{
27626if ((off_t *) 0)
27627 return 0;
27628if (sizeof (off_t))
27629 return 0;
27630 ;
27631 return 0;
27632}
27633_ACEOF
27634rm -f conftest.$ac_objext
27635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 27636 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27637 ac_status=$?
eea650d8
VS
27638 grep -v '^ *+' conftest.er1 >conftest.err
27639 rm -f conftest.er1
27640 cat conftest.err >&5
e6cc62c6
VS
27641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27642 (exit $ac_status); } &&
eea650d8
VS
27643 { ac_try='test -z "$ac_c_werror_flag"
27644 || test ! -s conftest.err'
27645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27646 (eval $ac_try) 2>&5
27647 ac_status=$?
27648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649 (exit $ac_status); }; } &&
27650 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27652 (eval $ac_try) 2>&5
27653 ac_status=$?
27654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27655 (exit $ac_status); }; }; then
27656 ac_cv_type_off_t=yes
5c6fa7d2 27657else
e6cc62c6
VS
27658 echo "$as_me: failed program was:" >&5
27659sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 27660
e6cc62c6 27661ac_cv_type_off_t=no
8284b0c5 27662fi
eea650d8 27663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8284b0c5 27664fi
e6cc62c6
VS
27665echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
27666echo "${ECHO_T}$ac_cv_type_off_t" >&6
27667if test $ac_cv_type_off_t = yes; then
27668 :
247f5006
VZ
27669else
27670
e6cc62c6 27671cat >>confdefs.h <<_ACEOF
90dd450c 27672#define off_t long
e6cc62c6 27673_ACEOF
10f2d63a 27674
90dd450c 27675fi
10f2d63a 27676
e6cc62c6
VS
27677echo "$as_me:$LINENO: checking for pid_t" >&5
27678echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27679if test "${ac_cv_type_pid_t+set}" = set; then
27680 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 27681else
e6cc62c6 27682 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27683/* confdefs.h. */
27684_ACEOF
27685cat confdefs.h >>conftest.$ac_ext
27686cat >>conftest.$ac_ext <<_ACEOF
27687/* end confdefs.h. */
27688$ac_includes_default
27689int
27690main ()
27691{
27692if ((pid_t *) 0)
27693 return 0;
27694if (sizeof (pid_t))
27695 return 0;
27696 ;
27697 return 0;
27698}
27699_ACEOF
27700rm -f conftest.$ac_objext
27701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 27702 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27703 ac_status=$?
eea650d8
VS
27704 grep -v '^ *+' conftest.er1 >conftest.err
27705 rm -f conftest.er1
27706 cat conftest.err >&5
e6cc62c6
VS
27707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27708 (exit $ac_status); } &&
eea650d8
VS
27709 { ac_try='test -z "$ac_c_werror_flag"
27710 || test ! -s conftest.err'
27711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27712 (eval $ac_try) 2>&5
27713 ac_status=$?
27714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715 (exit $ac_status); }; } &&
27716 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27718 (eval $ac_try) 2>&5
27719 ac_status=$?
27720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27721 (exit $ac_status); }; }; then
90dd450c 27722 ac_cv_type_pid_t=yes
698dcdb6 27723else
e6cc62c6
VS
27724 echo "$as_me: failed program was:" >&5
27725sed 's/^/| /' conftest.$ac_ext >&5
247f5006 27726
e6cc62c6
VS
27727ac_cv_type_pid_t=no
27728fi
eea650d8 27729rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27730fi
e6cc62c6
VS
27731echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27732echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27733if test $ac_cv_type_pid_t = yes; then
27734 :
27735else
27736
27737cat >>confdefs.h <<_ACEOF
90dd450c 27738#define pid_t int
e6cc62c6 27739_ACEOF
10f2d63a 27740
7b4a847f
RR
27741fi
27742
e6cc62c6
VS
27743echo "$as_me:$LINENO: checking for size_t" >&5
27744echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27745if test "${ac_cv_type_size_t+set}" = set; then
27746 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 27747else
e6cc62c6 27748 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27749/* confdefs.h. */
27750_ACEOF
27751cat confdefs.h >>conftest.$ac_ext
27752cat >>conftest.$ac_ext <<_ACEOF
27753/* end confdefs.h. */
27754$ac_includes_default
27755int
27756main ()
27757{
27758if ((size_t *) 0)
27759 return 0;
27760if (sizeof (size_t))
27761 return 0;
27762 ;
27763 return 0;
27764}
27765_ACEOF
27766rm -f conftest.$ac_objext
27767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 27768 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27769 ac_status=$?
eea650d8
VS
27770 grep -v '^ *+' conftest.er1 >conftest.err
27771 rm -f conftest.er1
27772 cat conftest.err >&5
e6cc62c6
VS
27773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27774 (exit $ac_status); } &&
eea650d8
VS
27775 { ac_try='test -z "$ac_c_werror_flag"
27776 || test ! -s conftest.err'
27777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27778 (eval $ac_try) 2>&5
27779 ac_status=$?
27780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27781 (exit $ac_status); }; } &&
27782 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27784 (eval $ac_try) 2>&5
27785 ac_status=$?
27786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27787 (exit $ac_status); }; }; then
90dd450c 27788 ac_cv_type_size_t=yes
18dbb1f6 27789else
e6cc62c6
VS
27790 echo "$as_me: failed program was:" >&5
27791sed 's/^/| /' conftest.$ac_ext >&5
247f5006 27792
e6cc62c6 27793ac_cv_type_size_t=no
a0b9e27f 27794fi
eea650d8 27795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
27796fi
27797echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27798echo "${ECHO_T}$ac_cv_type_size_t" >&6
27799if test $ac_cv_type_size_t = yes; then
27800 :
27801else
27802
27803cat >>confdefs.h <<_ACEOF
90dd450c 27804#define size_t unsigned
e6cc62c6 27805_ACEOF
90dd450c
VZ
27806
27807fi
27808
e6cc62c6
VS
27809echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
27810echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
27811if test "${ac_cv_type_uid_t+set}" = set; then
27812 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 27813else
e6cc62c6 27814 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27815/* confdefs.h. */
27816_ACEOF
27817cat confdefs.h >>conftest.$ac_ext
27818cat >>conftest.$ac_ext <<_ACEOF
27819/* end confdefs.h. */
90dd450c 27820#include <sys/types.h>
e6cc62c6
VS
27821
27822_ACEOF
90dd450c 27823if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 27824 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 27825 ac_cv_type_uid_t=yes
b3e8d00a 27826else
90dd450c 27827 ac_cv_type_uid_t=no
b3e8d00a 27828fi
90dd450c 27829rm -f conftest*
b3e8d00a 27830
4f14bcd8 27831fi
e6cc62c6
VS
27832echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
27833echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 27834if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
27835
27836cat >>confdefs.h <<\_ACEOF
90dd450c 27837#define uid_t int
e6cc62c6 27838_ACEOF
247f5006 27839
e6cc62c6
VS
27840
27841cat >>confdefs.h <<\_ACEOF
90dd450c 27842#define gid_t int
e6cc62c6 27843_ACEOF
4f14bcd8 27844
b3e8d00a 27845fi
b3e8d00a 27846
8284b0c5
MB
27847
27848
e6cc62c6
VS
27849
27850ac_ext=cc
4f14bcd8 27851ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27852ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27853ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27854ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27855
27856echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
27857echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
27858if test "${wx_cv_size_t_is_uint+set}" = set; then
27859 echo $ECHO_N "(cached) $ECHO_C" >&6
27860else
27861
27862 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27863/* confdefs.h. */
27864_ACEOF
27865cat confdefs.h >>conftest.$ac_ext
27866cat >>conftest.$ac_ext <<_ACEOF
27867/* end confdefs.h. */
90dd450c 27868#include <stddef.h>
e6cc62c6
VS
27869int
27870main ()
27871{
90dd450c
VZ
27872
27873 return 0; }
27874
27875 struct Foo { void foo(size_t); void foo(unsigned int); };
27876
27877 int bar() {
e6cc62c6
VS
27878
27879 ;
27880 return 0;
27881}
27882_ACEOF
27883rm -f conftest.$ac_objext
27884if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 27885 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27886 ac_status=$?
eea650d8
VS
27887 grep -v '^ *+' conftest.er1 >conftest.err
27888 rm -f conftest.er1
27889 cat conftest.err >&5
e6cc62c6
VS
27890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); } &&
eea650d8
VS
27892 { ac_try='test -z "$ac_cxx_werror_flag"
27893 || test ! -s conftest.err'
27894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27895 (eval $ac_try) 2>&5
27896 ac_status=$?
27897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27898 (exit $ac_status); }; } &&
27899 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27901 (eval $ac_try) 2>&5
27902 ac_status=$?
27903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27904 (exit $ac_status); }; }; then
90dd450c 27905 wx_cv_size_t_is_uint=no
698dcdb6 27906else
e6cc62c6
VS
27907 echo "$as_me: failed program was:" >&5
27908sed 's/^/| /' conftest.$ac_ext >&5
27909
27910wx_cv_size_t_is_uint=yes
8284b0c5 27911
247f5006 27912fi
eea650d8 27913rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 27914
a0b9e27f 27915
e6cc62c6
VS
27916fi
27917echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
27918echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 27919
90dd450c 27920if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 27921 cat >>confdefs.h <<\_ACEOF
90dd450c 27922#define wxSIZE_T_IS_UINT 1
e6cc62c6 27923_ACEOF
698dcdb6 27924
90dd450c 27925else
e6cc62c6
VS
27926 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
27927echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
27928if test "${wx_cv_size_t_is_ulong+set}" = set; then
27929 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 27930else
e6cc62c6 27931 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27932/* confdefs.h. */
27933_ACEOF
27934cat confdefs.h >>conftest.$ac_ext
27935cat >>conftest.$ac_ext <<_ACEOF
27936/* end confdefs.h. */
90dd450c 27937#include <stddef.h>
e6cc62c6
VS
27938int
27939main ()
27940{
90dd450c
VZ
27941
27942 return 0; }
27943
27944 struct Foo { void foo(size_t); void foo(unsigned long); };
27945
27946 int bar() {
e6cc62c6
VS
27947
27948 ;
27949 return 0;
27950}
27951_ACEOF
27952rm -f conftest.$ac_objext
27953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 27954 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27955 ac_status=$?
eea650d8
VS
27956 grep -v '^ *+' conftest.er1 >conftest.err
27957 rm -f conftest.er1
27958 cat conftest.err >&5
e6cc62c6
VS
27959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27960 (exit $ac_status); } &&
eea650d8
VS
27961 { ac_try='test -z "$ac_cxx_werror_flag"
27962 || test ! -s conftest.err'
27963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27964 (eval $ac_try) 2>&5
27965 ac_status=$?
27966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27967 (exit $ac_status); }; } &&
27968 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27970 (eval $ac_try) 2>&5
27971 ac_status=$?
27972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27973 (exit $ac_status); }; }; then
90dd450c 27974 wx_cv_size_t_is_ulong=no
698dcdb6 27975else
e6cc62c6
VS
27976 echo "$as_me: failed program was:" >&5
27977sed 's/^/| /' conftest.$ac_ext >&5
27978
27979wx_cv_size_t_is_ulong=yes
27980
247f5006 27981fi
eea650d8 27982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27983
e6cc62c6
VS
27984fi
27985echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
27986echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 27987
90dd450c 27988 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 27989 cat >>confdefs.h <<\_ACEOF
90dd450c 27990#define wxSIZE_T_IS_ULONG 1
e6cc62c6 27991_ACEOF
4f14bcd8
GD
27992
27993 fi
90dd450c 27994fi
1e487827 27995
90dd450c 27996ac_ext=c
4f14bcd8 27997ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27998ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27999ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28000ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 28001
5c6fa7d2 28002
8284b0c5 28003
e6cc62c6
VS
28004echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
28005echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
28006if test "${wx_cv_struct_pw_gecos+set}" = set; then
28007 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 28008else
e6cc62c6
VS
28009
28010 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28011/* confdefs.h. */
28012_ACEOF
28013cat confdefs.h >>conftest.$ac_ext
28014cat >>conftest.$ac_ext <<_ACEOF
28015/* end confdefs.h. */
90dd450c 28016#include <pwd.h>
e6cc62c6
VS
28017int
28018main ()
28019{
f6bcfd97 28020
90dd450c
VZ
28021 char *p;
28022 struct passwd *pw;
28023 p = pw->pw_gecos;
e6cc62c6
VS
28024
28025 ;
28026 return 0;
28027}
28028_ACEOF
28029rm -f conftest.$ac_objext
28030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 28031 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28032 ac_status=$?
eea650d8
VS
28033 grep -v '^ *+' conftest.er1 >conftest.err
28034 rm -f conftest.er1
28035 cat conftest.err >&5
e6cc62c6
VS
28036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28037 (exit $ac_status); } &&
eea650d8
VS
28038 { ac_try='test -z "$ac_c_werror_flag"
28039 || test ! -s conftest.err'
28040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28041 (eval $ac_try) 2>&5
28042 ac_status=$?
28043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044 (exit $ac_status); }; } &&
28045 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28047 (eval $ac_try) 2>&5
28048 ac_status=$?
28049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28050 (exit $ac_status); }; }; then
28051
90dd450c 28052 wx_cv_struct_pw_gecos=yes
e6cc62c6 28053
10f2d63a 28054else
e6cc62c6
VS
28055 echo "$as_me: failed program was:" >&5
28056sed 's/^/| /' conftest.$ac_ext >&5
28057
28058
90dd450c 28059 wx_cv_struct_pw_gecos=no
e6cc62c6 28060
247f5006
VZ
28061
28062fi
eea650d8 28063rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 28064
e6cc62c6
VS
28065
28066fi
28067echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
28068echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 28069
90dd450c 28070if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 28071 cat >>confdefs.h <<\_ACEOF
90dd450c 28072#define HAVE_PW_GECOS 1
e6cc62c6 28073_ACEOF
c521c494 28074
90dd450c 28075fi
4f14bcd8 28076
8284b0c5 28077
d29b553b 28078if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 28079 cat >>confdefs.h <<\_ACEOF
d74f4b5a 28080#define wxUSE_WCHAR_T 1
e6cc62c6 28081_ACEOF
d74f4b5a 28082
8284b0c5 28083
d74f4b5a
VZ
28084 WCSLEN_FOUND=0
28085 WCHAR_LINK=
e6cc62c6
VS
28086
28087for ac_func in wcslen
7a30264c 28088do
e6cc62c6
VS
28089as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28090echo "$as_me:$LINENO: checking for $ac_func" >&5
28091echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28092if eval "test \"\${$as_ac_var+set}\" = set"; then
28093 echo $ECHO_N "(cached) $ECHO_C" >&6
28094else
28095 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28096/* confdefs.h. */
28097_ACEOF
28098cat confdefs.h >>conftest.$ac_ext
28099cat >>conftest.$ac_ext <<_ACEOF
28100/* end confdefs.h. */
eea650d8
VS
28101/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28103#define $ac_func innocuous_$ac_func
28104
7a30264c 28105/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28106 which can conflict with char $ac_func (); below.
28107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28108 <limits.h> exists even on freestanding compilers. */
eea650d8 28109
e6cc62c6
VS
28110#ifdef __STDC__
28111# include <limits.h>
28112#else
28113# include <assert.h>
28114#endif
eea650d8
VS
28115
28116#undef $ac_func
28117
4f14bcd8 28118/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28119#ifdef __cplusplus
28120extern "C"
28121{
28122#endif
4f14bcd8 28123/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28124 builtin and then its argument prototype would still apply. */
28125char $ac_func ();
7a30264c
VZ
28126/* The GNU C library defines this for functions which it implements
28127 to always fail with ENOSYS. Some functions are actually named
28128 something starting with __ and the normal name is an alias. */
28129#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28130choke me
28131#else
e6cc62c6
VS
28132char (*f) () = $ac_func;
28133#endif
28134#ifdef __cplusplus
28135}
7a30264c
VZ
28136#endif
28137
e6cc62c6
VS
28138int
28139main ()
28140{
28141return f != $ac_func;
28142 ;
28143 return 0;
28144}
28145_ACEOF
28146rm -f conftest.$ac_objext conftest$ac_exeext
28147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28148 (eval $ac_link) 2>conftest.er1
e6cc62c6 28149 ac_status=$?
eea650d8
VS
28150 grep -v '^ *+' conftest.er1 >conftest.err
28151 rm -f conftest.er1
28152 cat conftest.err >&5
e6cc62c6
VS
28153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28154 (exit $ac_status); } &&
eea650d8
VS
28155 { ac_try='test -z "$ac_c_werror_flag"
28156 || test ! -s conftest.err'
28157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28158 (eval $ac_try) 2>&5
28159 ac_status=$?
28160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28161 (exit $ac_status); }; } &&
28162 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28164 (eval $ac_try) 2>&5
28165 ac_status=$?
28166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28167 (exit $ac_status); }; }; then
28168 eval "$as_ac_var=yes"
28169else
28170 echo "$as_me: failed program was:" >&5
28171sed 's/^/| /' conftest.$ac_ext >&5
28172
28173eval "$as_ac_var=no"
28174fi
eea650d8
VS
28175rm -f conftest.err conftest.$ac_objext \
28176 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28177fi
28178echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28179echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28180if test `eval echo '${'$as_ac_var'}'` = yes; then
28181 cat >>confdefs.h <<_ACEOF
28182#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28183_ACEOF
d74f4b5a 28184 WCSLEN_FOUND=1
7a30264c
VZ
28185fi
28186done
9d8deca0 28187
8284b0c5 28188
d74f4b5a 28189 if test "$WCSLEN_FOUND" = 0; then
7a30264c 28190 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
28191 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28192echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28193if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28194 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28195else
e6cc62c6 28196 ac_check_lib_save_LIBS=$LIBS
7a30264c 28197LIBS="-lmsvcrt $LIBS"
e6cc62c6 28198cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28199/* confdefs.h. */
28200_ACEOF
28201cat confdefs.h >>conftest.$ac_ext
28202cat >>conftest.$ac_ext <<_ACEOF
28203/* end confdefs.h. */
28204
4f14bcd8 28205/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28206#ifdef __cplusplus
28207extern "C"
28208#endif
4f14bcd8 28209/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28210 builtin and then its argument prototype would still apply. */
28211char wcslen ();
28212int
28213main ()
28214{
28215wcslen ();
28216 ;
28217 return 0;
28218}
28219_ACEOF
28220rm -f conftest.$ac_objext conftest$ac_exeext
28221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28222 (eval $ac_link) 2>conftest.er1
e6cc62c6 28223 ac_status=$?
eea650d8
VS
28224 grep -v '^ *+' conftest.er1 >conftest.err
28225 rm -f conftest.er1
28226 cat conftest.err >&5
e6cc62c6
VS
28227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28228 (exit $ac_status); } &&
eea650d8
VS
28229 { ac_try='test -z "$ac_c_werror_flag"
28230 || test ! -s conftest.err'
28231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28232 (eval $ac_try) 2>&5
28233 ac_status=$?
28234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28235 (exit $ac_status); }; } &&
28236 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28238 (eval $ac_try) 2>&5
28239 ac_status=$?
28240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28241 (exit $ac_status); }; }; then
28242 ac_cv_lib_msvcrt_wcslen=yes
28243else
28244 echo "$as_me: failed program was:" >&5
28245sed 's/^/| /' conftest.$ac_ext >&5
28246
28247ac_cv_lib_msvcrt_wcslen=no
28248fi
eea650d8
VS
28249rm -f conftest.err conftest.$ac_objext \
28250 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28251LIBS=$ac_check_lib_save_LIBS
28252fi
28253echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28254echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28255if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 28256 WCHAR_OK=1
d29b553b 28257fi
698dcdb6 28258
7a30264c 28259 else
e6cc62c6
VS
28260 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28261echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28262if test "${ac_cv_lib_w_wcslen+set}" = set; then
28263 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 28264else
e6cc62c6 28265 ac_check_lib_save_LIBS=$LIBS
7a30264c 28266LIBS="-lw $LIBS"
e6cc62c6 28267cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28268/* confdefs.h. */
28269_ACEOF
28270cat confdefs.h >>conftest.$ac_ext
28271cat >>conftest.$ac_ext <<_ACEOF
28272/* end confdefs.h. */
28273
4f14bcd8 28274/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28275#ifdef __cplusplus
28276extern "C"
28277#endif
4f14bcd8 28278/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28279 builtin and then its argument prototype would still apply. */
28280char wcslen ();
28281int
28282main ()
28283{
28284wcslen ();
28285 ;
28286 return 0;
28287}
28288_ACEOF
28289rm -f conftest.$ac_objext conftest$ac_exeext
28290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28291 (eval $ac_link) 2>conftest.er1
e6cc62c6 28292 ac_status=$?
eea650d8
VS
28293 grep -v '^ *+' conftest.er1 >conftest.err
28294 rm -f conftest.er1
28295 cat conftest.err >&5
e6cc62c6
VS
28296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28297 (exit $ac_status); } &&
eea650d8
VS
28298 { ac_try='test -z "$ac_c_werror_flag"
28299 || test ! -s conftest.err'
28300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28301 (eval $ac_try) 2>&5
28302 ac_status=$?
28303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304 (exit $ac_status); }; } &&
28305 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28307 (eval $ac_try) 2>&5
28308 ac_status=$?
28309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28310 (exit $ac_status); }; }; then
28311 ac_cv_lib_w_wcslen=yes
28312else
28313 echo "$as_me: failed program was:" >&5
28314sed 's/^/| /' conftest.$ac_ext >&5
28315
28316ac_cv_lib_w_wcslen=no
28317fi
eea650d8
VS
28318rm -f conftest.err conftest.$ac_objext \
28319 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28320LIBS=$ac_check_lib_save_LIBS
28321fi
28322echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28323echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28324if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 28325
7a30264c 28326 WCHAR_LINK=" -lw"
d74f4b5a 28327 WCSLEN_FOUND=1
e6cc62c6 28328
4f14bcd8 28329fi
10f2d63a 28330
7a30264c 28331 fi
d29b553b 28332 fi
95c8801c 28333
d74f4b5a 28334 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 28335 cat >>confdefs.h <<\_ACEOF
d74f4b5a 28336#define HAVE_WCSLEN 1
e6cc62c6 28337_ACEOF
10f2d63a 28338
d74f4b5a 28339 fi
52127426 28340
e6cc62c6
VS
28341
28342for ac_func in wcsrtombs
eb4efbdc 28343do
e6cc62c6
VS
28344as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28345echo "$as_me:$LINENO: checking for $ac_func" >&5
28346echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28347if eval "test \"\${$as_ac_var+set}\" = set"; then
28348 echo $ECHO_N "(cached) $ECHO_C" >&6
28349else
28350 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28351/* confdefs.h. */
28352_ACEOF
28353cat confdefs.h >>conftest.$ac_ext
28354cat >>conftest.$ac_ext <<_ACEOF
28355/* end confdefs.h. */
eea650d8
VS
28356/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28358#define $ac_func innocuous_$ac_func
28359
eb4efbdc 28360/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28361 which can conflict with char $ac_func (); below.
28362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28363 <limits.h> exists even on freestanding compilers. */
eea650d8 28364
e6cc62c6
VS
28365#ifdef __STDC__
28366# include <limits.h>
28367#else
28368# include <assert.h>
28369#endif
eea650d8
VS
28370
28371#undef $ac_func
28372
eb4efbdc 28373/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28374#ifdef __cplusplus
28375extern "C"
28376{
28377#endif
4f14bcd8 28378/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28379 builtin and then its argument prototype would still apply. */
28380char $ac_func ();
10f2d63a
VZ
28381/* The GNU C library defines this for functions which it implements
28382 to always fail with ENOSYS. Some functions are actually named
28383 something starting with __ and the normal name is an alias. */
247f5006 28384#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
28385choke me
28386#else
e6cc62c6
VS
28387char (*f) () = $ac_func;
28388#endif
28389#ifdef __cplusplus
28390}
10f2d63a
VZ
28391#endif
28392
e6cc62c6
VS
28393int
28394main ()
28395{
28396return f != $ac_func;
28397 ;
28398 return 0;
28399}
28400_ACEOF
28401rm -f conftest.$ac_objext conftest$ac_exeext
28402if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28403 (eval $ac_link) 2>conftest.er1
e6cc62c6 28404 ac_status=$?
eea650d8
VS
28405 grep -v '^ *+' conftest.er1 >conftest.err
28406 rm -f conftest.er1
28407 cat conftest.err >&5
e6cc62c6
VS
28408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28409 (exit $ac_status); } &&
eea650d8
VS
28410 { ac_try='test -z "$ac_c_werror_flag"
28411 || test ! -s conftest.err'
28412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28413 (eval $ac_try) 2>&5
28414 ac_status=$?
28415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28416 (exit $ac_status); }; } &&
28417 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28419 (eval $ac_try) 2>&5
28420 ac_status=$?
28421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28422 (exit $ac_status); }; }; then
28423 eval "$as_ac_var=yes"
28424else
28425 echo "$as_me: failed program was:" >&5
28426sed 's/^/| /' conftest.$ac_ext >&5
28427
28428eval "$as_ac_var=no"
28429fi
eea650d8
VS
28430rm -f conftest.err conftest.$ac_objext \
28431 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28432fi
28433echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28434echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28435if test `eval echo '${'$as_ac_var'}'` = yes; then
28436 cat >>confdefs.h <<_ACEOF
28437#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28438_ACEOF
270a909e 28439
4f14bcd8 28440fi
247f5006 28441done
1e487827 28442
af15babd 28443else
e6cc62c6
VS
28444 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28445echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 28446fi
52127426 28447
8284b0c5 28448
e6cc62c6
VS
28449
28450ac_ext=cc
247f5006 28451ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28452ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28453ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28454ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28455
af15babd 28456
247f5006
VZ
28457
28458for ac_func in vsnprintf
28459do
e6cc62c6
VS
28460as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28461echo "$as_me:$LINENO: checking for $ac_func" >&5
28462echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28463if eval "test \"\${$as_ac_var+set}\" = set"; then
28464 echo $ECHO_N "(cached) $ECHO_C" >&6
28465else
28466 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28467/* confdefs.h. */
28468_ACEOF
28469cat confdefs.h >>conftest.$ac_ext
28470cat >>conftest.$ac_ext <<_ACEOF
28471/* end confdefs.h. */
eea650d8
VS
28472/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28474#define $ac_func innocuous_$ac_func
28475
247f5006 28476/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28477 which can conflict with char $ac_func (); below.
28478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28479 <limits.h> exists even on freestanding compilers. */
eea650d8 28480
e6cc62c6
VS
28481#ifdef __STDC__
28482# include <limits.h>
28483#else
28484# include <assert.h>
28485#endif
eea650d8
VS
28486
28487#undef $ac_func
28488
247f5006
VZ
28489/* Override any gcc2 internal prototype to avoid an error. */
28490#ifdef __cplusplus
28491extern "C"
e6cc62c6 28492{
247f5006
VZ
28493#endif
28494/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28495 builtin and then its argument prototype would still apply. */
28496char $ac_func ();
247f5006
VZ
28497/* The GNU C library defines this for functions which it implements
28498 to always fail with ENOSYS. Some functions are actually named
28499 something starting with __ and the normal name is an alias. */
28500#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28501choke me
28502#else
e6cc62c6
VS
28503char (*f) () = $ac_func;
28504#endif
28505#ifdef __cplusplus
28506}
247f5006 28507#endif
af15babd 28508
e6cc62c6
VS
28509int
28510main ()
28511{
28512return f != $ac_func;
28513 ;
28514 return 0;
28515}
28516_ACEOF
28517rm -f conftest.$ac_objext conftest$ac_exeext
28518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28519 (eval $ac_link) 2>conftest.er1
e6cc62c6 28520 ac_status=$?
eea650d8
VS
28521 grep -v '^ *+' conftest.er1 >conftest.err
28522 rm -f conftest.er1
28523 cat conftest.err >&5
e6cc62c6
VS
28524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28525 (exit $ac_status); } &&
eea650d8
VS
28526 { ac_try='test -z "$ac_cxx_werror_flag"
28527 || test ! -s conftest.err'
28528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28529 (eval $ac_try) 2>&5
28530 ac_status=$?
28531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28532 (exit $ac_status); }; } &&
28533 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28535 (eval $ac_try) 2>&5
28536 ac_status=$?
28537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28538 (exit $ac_status); }; }; then
28539 eval "$as_ac_var=yes"
28540else
28541 echo "$as_me: failed program was:" >&5
28542sed 's/^/| /' conftest.$ac_ext >&5
28543
28544eval "$as_ac_var=no"
28545fi
eea650d8
VS
28546rm -f conftest.err conftest.$ac_objext \
28547 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28548fi
28549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28550echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28551if test `eval echo '${'$as_ac_var'}'` = yes; then
28552 cat >>confdefs.h <<_ACEOF
28553#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28554_ACEOF
52127426 28555
5c6fa7d2 28556fi
247f5006 28557done
8284b0c5 28558
4f14bcd8 28559
8d90d2f2 28560if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
28561 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
28562echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
28563if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
28564 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 28565else
e6cc62c6
VS
28566
28567 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28568/* confdefs.h. */
28569_ACEOF
28570cat confdefs.h >>conftest.$ac_ext
28571cat >>conftest.$ac_ext <<_ACEOF
28572/* end confdefs.h. */
8d90d2f2
VZ
28573
28574 #include <stdio.h>
28575 #include <stdarg.h>
e6cc62c6
VS
28576
28577int
28578main ()
28579{
8d90d2f2
VZ
28580
28581 char *buf;
28582 va_list ap;
28583 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
28584
28585 ;
28586 return 0;
28587}
28588_ACEOF
28589rm -f conftest.$ac_objext
28590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 28591 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28592 ac_status=$?
eea650d8
VS
28593 grep -v '^ *+' conftest.er1 >conftest.err
28594 rm -f conftest.er1
28595 cat conftest.err >&5
e6cc62c6
VS
28596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28597 (exit $ac_status); } &&
eea650d8
VS
28598 { ac_try='test -z "$ac_cxx_werror_flag"
28599 || test ! -s conftest.err'
28600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28601 (eval $ac_try) 2>&5
28602 ac_status=$?
28603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28604 (exit $ac_status); }; } &&
28605 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28607 (eval $ac_try) 2>&5
28608 ac_status=$?
28609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28610 (exit $ac_status); }; }; then
8d90d2f2
VZ
28611 wx_cv_func_vsnprintf_decl=yes
28612else
e6cc62c6
VS
28613 echo "$as_me: failed program was:" >&5
28614sed 's/^/| /' conftest.$ac_ext >&5
28615
28616wx_cv_func_vsnprintf_decl=no
28617
8d90d2f2 28618fi
eea650d8 28619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 28620
8d90d2f2 28621
e6cc62c6
VS
28622fi
28623echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
28624echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
28625
28626 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 28627 cat >>confdefs.h <<\_ACEOF
8d90d2f2 28628#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 28629_ACEOF
8d90d2f2
VZ
28630
28631 fi
28632fi
28633
247f5006 28634if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
28635
28636
28637
28638for ac_func in fputwc wprintf vswprintf
d74f4b5a 28639do
e6cc62c6
VS
28640as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28641echo "$as_me:$LINENO: checking for $ac_func" >&5
28642echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28643if eval "test \"\${$as_ac_var+set}\" = set"; then
28644 echo $ECHO_N "(cached) $ECHO_C" >&6
28645else
28646 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28647/* confdefs.h. */
28648_ACEOF
28649cat confdefs.h >>conftest.$ac_ext
28650cat >>conftest.$ac_ext <<_ACEOF
28651/* end confdefs.h. */
eea650d8
VS
28652/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28654#define $ac_func innocuous_$ac_func
28655
d74f4b5a 28656/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28657 which can conflict with char $ac_func (); below.
28658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28659 <limits.h> exists even on freestanding compilers. */
eea650d8 28660
e6cc62c6
VS
28661#ifdef __STDC__
28662# include <limits.h>
28663#else
28664# include <assert.h>
28665#endif
eea650d8
VS
28666
28667#undef $ac_func
28668
d74f4b5a 28669/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
28670#ifdef __cplusplus
28671extern "C"
e6cc62c6 28672{
247f5006 28673#endif
d74f4b5a 28674/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28675 builtin and then its argument prototype would still apply. */
28676char $ac_func ();
d74f4b5a
VZ
28677/* The GNU C library defines this for functions which it implements
28678 to always fail with ENOSYS. Some functions are actually named
28679 something starting with __ and the normal name is an alias. */
28680#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28681choke me
28682#else
e6cc62c6
VS
28683char (*f) () = $ac_func;
28684#endif
28685#ifdef __cplusplus
28686}
d74f4b5a
VZ
28687#endif
28688
e6cc62c6
VS
28689int
28690main ()
28691{
28692return f != $ac_func;
28693 ;
28694 return 0;
28695}
28696_ACEOF
28697rm -f conftest.$ac_objext conftest$ac_exeext
28698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28699 (eval $ac_link) 2>conftest.er1
e6cc62c6 28700 ac_status=$?
eea650d8
VS
28701 grep -v '^ *+' conftest.er1 >conftest.err
28702 rm -f conftest.er1
28703 cat conftest.err >&5
e6cc62c6
VS
28704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28705 (exit $ac_status); } &&
eea650d8
VS
28706 { ac_try='test -z "$ac_cxx_werror_flag"
28707 || test ! -s conftest.err'
28708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28709 (eval $ac_try) 2>&5
28710 ac_status=$?
28711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28712 (exit $ac_status); }; } &&
28713 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28715 (eval $ac_try) 2>&5
28716 ac_status=$?
28717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); }; }; then
28719 eval "$as_ac_var=yes"
28720else
28721 echo "$as_me: failed program was:" >&5
28722sed 's/^/| /' conftest.$ac_ext >&5
28723
28724eval "$as_ac_var=no"
28725fi
eea650d8
VS
28726rm -f conftest.err conftest.$ac_objext \
28727 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28728fi
28729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28730echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28731if test `eval echo '${'$as_ac_var'}'` = yes; then
28732 cat >>confdefs.h <<_ACEOF
28733#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28734_ACEOF
d74f4b5a 28735
d74f4b5a
VZ
28736fi
28737done
28738
8d90d2f2 28739
e6cc62c6
VS
28740 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
28741echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
28742 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28743/* confdefs.h. */
28744_ACEOF
28745cat confdefs.h >>conftest.$ac_ext
28746cat >>conftest.$ac_ext <<_ACEOF
28747/* end confdefs.h. */
79668cae 28748#include <wchar.h>
e6cc62c6
VS
28749int
28750main ()
28751{
79668cae 28752&_vsnwprintf;
e6cc62c6
VS
28753 ;
28754 return 0;
28755}
28756_ACEOF
28757rm -f conftest.$ac_objext
28758if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 28759 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28760 ac_status=$?
eea650d8
VS
28761 grep -v '^ *+' conftest.er1 >conftest.err
28762 rm -f conftest.er1
28763 cat conftest.err >&5
e6cc62c6
VS
28764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28765 (exit $ac_status); } &&
eea650d8
VS
28766 { ac_try='test -z "$ac_cxx_werror_flag"
28767 || test ! -s conftest.err'
28768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28769 (eval $ac_try) 2>&5
28770 ac_status=$?
28771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28772 (exit $ac_status); }; } &&
28773 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28775 (eval $ac_try) 2>&5
28776 ac_status=$?
28777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778 (exit $ac_status); }; }; then
28779 echo "$as_me:$LINENO: result: yes" >&5
28780echo "${ECHO_T}yes" >&6
28781 cat >>confdefs.h <<\_ACEOF
79668cae 28782#define HAVE__VSNWPRINTF 1
e6cc62c6 28783_ACEOF
79668cae
MB
28784
28785else
e6cc62c6
VS
28786 echo "$as_me: failed program was:" >&5
28787sed 's/^/| /' conftest.$ac_ext >&5
28788
28789echo "$as_me:$LINENO: result: no" >&5
28790echo "${ECHO_T}no" >&6
79668cae 28791fi
eea650d8 28792rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
28793fi
28794
247f5006
VZ
28795ac_ext=c
28796ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28799ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
28800
28801
28802
28803
4f14bcd8 28804if test "$TOOLKIT" != "MSW"; then
af15babd 28805
8284b0c5
MB
28806
28807
e6cc62c6
VS
28808
28809ac_ext=cc
4f14bcd8 28810ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28811ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 28814
52127426 28815
e6cc62c6
VS
28816
28817
28818# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
28819if test "${with_libiconv_prefix+set}" = set; then
28820 withval="$with_libiconv_prefix"
e6cc62c6 28821
b040e242
VS
28822 for dir in `echo "$withval" | tr : ' '`; do
28823 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
28824 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
28825 done
b040e242 28826
e6cc62c6 28827fi;
b040e242 28828
e6cc62c6
VS
28829 echo "$as_me:$LINENO: checking for iconv" >&5
28830echo $ECHO_N "checking for iconv... $ECHO_C" >&6
28831if test "${am_cv_func_iconv+set}" = set; then
28832 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 28833else
e6cc62c6 28834
b040e242
VS
28835 am_cv_func_iconv="no, consider installing GNU libiconv"
28836 am_cv_lib_iconv=no
e6cc62c6 28837 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28838/* confdefs.h. */
28839_ACEOF
28840cat confdefs.h >>conftest.$ac_ext
28841cat >>conftest.$ac_ext <<_ACEOF
28842/* end confdefs.h. */
b040e242 28843#include <stdlib.h>
4f14bcd8 28844#include <iconv.h>
e6cc62c6
VS
28845int
28846main ()
28847{
b040e242
VS
28848iconv_t cd = iconv_open("","");
28849 iconv(cd,NULL,NULL,NULL,NULL);
28850 iconv_close(cd);
e6cc62c6
VS
28851 ;
28852 return 0;
28853}
28854_ACEOF
28855rm -f conftest.$ac_objext conftest$ac_exeext
28856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28857 (eval $ac_link) 2>conftest.er1
e6cc62c6 28858 ac_status=$?
eea650d8
VS
28859 grep -v '^ *+' conftest.er1 >conftest.err
28860 rm -f conftest.er1
28861 cat conftest.err >&5
e6cc62c6
VS
28862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28863 (exit $ac_status); } &&
eea650d8
VS
28864 { ac_try='test -z "$ac_cxx_werror_flag"
28865 || test ! -s conftest.err'
28866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28867 (eval $ac_try) 2>&5
28868 ac_status=$?
28869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28870 (exit $ac_status); }; } &&
28871 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28873 (eval $ac_try) 2>&5
28874 ac_status=$?
28875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28876 (exit $ac_status); }; }; then
b040e242 28877 am_cv_func_iconv=yes
af15babd 28878else
e6cc62c6
VS
28879 echo "$as_me: failed program was:" >&5
28880sed 's/^/| /' conftest.$ac_ext >&5
28881
b040e242 28882fi
eea650d8
VS
28883rm -f conftest.err conftest.$ac_objext \
28884 conftest$ac_exeext conftest.$ac_ext
b040e242
VS
28885 if test "$am_cv_func_iconv" != yes; then
28886 am_save_LIBS="$LIBS"
28887 LIBS="$LIBS -liconv"
e6cc62c6 28888 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28889/* confdefs.h. */
28890_ACEOF
28891cat confdefs.h >>conftest.$ac_ext
28892cat >>conftest.$ac_ext <<_ACEOF
28893/* end confdefs.h. */
b040e242
VS
28894#include <stdlib.h>
28895#include <iconv.h>
e6cc62c6
VS
28896int
28897main ()
28898{
b040e242
VS
28899iconv_t cd = iconv_open("","");
28900 iconv(cd,NULL,NULL,NULL,NULL);
28901 iconv_close(cd);
e6cc62c6
VS
28902 ;
28903 return 0;
28904}
28905_ACEOF
28906rm -f conftest.$ac_objext conftest$ac_exeext
28907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 28908 (eval $ac_link) 2>conftest.er1
e6cc62c6 28909 ac_status=$?
eea650d8
VS
28910 grep -v '^ *+' conftest.er1 >conftest.err
28911 rm -f conftest.er1
28912 cat conftest.err >&5
e6cc62c6
VS
28913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28914 (exit $ac_status); } &&
eea650d8
VS
28915 { ac_try='test -z "$ac_cxx_werror_flag"
28916 || test ! -s conftest.err'
28917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28918 (eval $ac_try) 2>&5
28919 ac_status=$?
28920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28921 (exit $ac_status); }; } &&
28922 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28924 (eval $ac_try) 2>&5
28925 ac_status=$?
28926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28927 (exit $ac_status); }; }; then
b040e242
VS
28928 am_cv_lib_iconv=yes
28929 am_cv_func_iconv=yes
28930else
e6cc62c6
VS
28931 echo "$as_me: failed program was:" >&5
28932sed 's/^/| /' conftest.$ac_ext >&5
28933
af15babd 28934fi
eea650d8
VS
28935rm -f conftest.err conftest.$ac_objext \
28936 conftest$ac_exeext conftest.$ac_ext
b040e242
VS
28937 LIBS="$am_save_LIBS"
28938 fi
247f5006 28939
e6cc62c6
VS
28940fi
28941echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
28942echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 28943 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
28944
28945cat >>confdefs.h <<\_ACEOF
b040e242 28946#define HAVE_ICONV 1
e6cc62c6 28947_ACEOF
b040e242 28948
e6cc62c6
VS
28949 echo "$as_me:$LINENO: checking if iconv needs const" >&5
28950echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
28951if test "${wx_cv_func_iconv_const+set}" = set; then
28952 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 28953else
e6cc62c6 28954 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28955/* confdefs.h. */
28956_ACEOF
28957cat confdefs.h >>conftest.$ac_ext
28958cat >>conftest.$ac_ext <<_ACEOF
28959/* end confdefs.h. */
b040e242
VS
28960
28961#include <stdlib.h>
28962#include <iconv.h>
28963extern
28964#ifdef __cplusplus
28965"C"
28966#endif
28967#if defined(__STDC__) || defined(__cplusplus)
28968size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
28969#else
28970size_t iconv();
28971#endif
af15babd 28972
e6cc62c6
VS
28973int
28974main ()
28975{
28976
28977 ;
28978 return 0;
28979}
28980_ACEOF
28981rm -f conftest.$ac_objext
28982if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 28983 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28984 ac_status=$?
eea650d8
VS
28985 grep -v '^ *+' conftest.er1 >conftest.err
28986 rm -f conftest.er1
28987 cat conftest.err >&5
e6cc62c6
VS
28988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28989 (exit $ac_status); } &&
eea650d8
VS
28990 { ac_try='test -z "$ac_cxx_werror_flag"
28991 || test ! -s conftest.err'
28992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28993 (eval $ac_try) 2>&5
28994 ac_status=$?
28995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28996 (exit $ac_status); }; } &&
28997 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28999 (eval $ac_try) 2>&5
29000 ac_status=$?
29001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29002 (exit $ac_status); }; }; then
b7043674 29003 wx_cv_func_iconv_const="no"
b040e242 29004else
e6cc62c6
VS
29005 echo "$as_me: failed program was:" >&5
29006sed 's/^/| /' conftest.$ac_ext >&5
29007
29008wx_cv_func_iconv_const="yes"
29009
247f5006 29010fi
eea650d8 29011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29012
e6cc62c6
VS
29013fi
29014echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
29015echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
29016
29017 iconv_const=
1c405bb5 29018 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
29019 iconv_const="const"
29020 fi
29021
e6cc62c6
VS
29022
29023cat >>confdefs.h <<_ACEOF
f09359cf 29024#define ICONV_CONST $iconv_const
e6cc62c6 29025_ACEOF
b040e242
VS
29026
29027 fi
29028 LIBICONV=
29029 if test "$am_cv_lib_iconv" = yes; then
29030 LIBICONV="-liconv"
29031 fi
e6cc62c6 29032
b040e242
VS
29033
29034LIBS="$LIBICONV $LIBS"
4f14bcd8 29035ac_ext=c
4f14bcd8 29036ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29039ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 29040
5c6fa7d2 29041
8284b0c5 29042if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
29043
29044for ac_func in sigaction
af15babd 29045do
e6cc62c6
VS
29046as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29047echo "$as_me:$LINENO: checking for $ac_func" >&5
29048echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29049if eval "test \"\${$as_ac_var+set}\" = set"; then
29050 echo $ECHO_N "(cached) $ECHO_C" >&6
29051else
29052 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29053/* confdefs.h. */
29054_ACEOF
29055cat confdefs.h >>conftest.$ac_ext
29056cat >>conftest.$ac_ext <<_ACEOF
29057/* end confdefs.h. */
eea650d8
VS
29058/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29060#define $ac_func innocuous_$ac_func
29061
af15babd 29062/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29063 which can conflict with char $ac_func (); below.
29064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29065 <limits.h> exists even on freestanding compilers. */
eea650d8 29066
e6cc62c6
VS
29067#ifdef __STDC__
29068# include <limits.h>
29069#else
29070# include <assert.h>
29071#endif
eea650d8
VS
29072
29073#undef $ac_func
29074
af15babd 29075/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29076#ifdef __cplusplus
29077extern "C"
29078{
29079#endif
af15babd 29080/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29081 builtin and then its argument prototype would still apply. */
29082char $ac_func ();
af15babd
VZ
29083/* The GNU C library defines this for functions which it implements
29084 to always fail with ENOSYS. Some functions are actually named
29085 something starting with __ and the normal name is an alias. */
29086#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29087choke me
29088#else
e6cc62c6
VS
29089char (*f) () = $ac_func;
29090#endif
29091#ifdef __cplusplus
29092}
af15babd
VZ
29093#endif
29094
e6cc62c6
VS
29095int
29096main ()
29097{
29098return f != $ac_func;
29099 ;
29100 return 0;
29101}
29102_ACEOF
29103rm -f conftest.$ac_objext conftest$ac_exeext
29104if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 29105 (eval $ac_link) 2>conftest.er1
e6cc62c6 29106 ac_status=$?
eea650d8
VS
29107 grep -v '^ *+' conftest.er1 >conftest.err
29108 rm -f conftest.er1
29109 cat conftest.err >&5
e6cc62c6
VS
29110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111 (exit $ac_status); } &&
eea650d8
VS
29112 { ac_try='test -z "$ac_c_werror_flag"
29113 || test ! -s conftest.err'
29114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29115 (eval $ac_try) 2>&5
29116 ac_status=$?
29117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118 (exit $ac_status); }; } &&
29119 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29121 (eval $ac_try) 2>&5
29122 ac_status=$?
29123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29124 (exit $ac_status); }; }; then
29125 eval "$as_ac_var=yes"
29126else
29127 echo "$as_me: failed program was:" >&5
29128sed 's/^/| /' conftest.$ac_ext >&5
29129
29130eval "$as_ac_var=no"
29131fi
eea650d8
VS
29132rm -f conftest.err conftest.$ac_objext \
29133 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29134fi
29135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29136echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29137if test `eval echo '${'$as_ac_var'}'` = yes; then
29138 cat >>confdefs.h <<_ACEOF
29139#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29140_ACEOF
7b4a847f 29141
4f14bcd8
GD
29142fi
29143done
29144
8284b0c5 29145
4f14bcd8 29146 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
29147 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29148echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
29149 wxUSE_ON_FATAL_EXCEPTION=no
29150 fi
29151
29152 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
29153
29154
29155 ac_ext=cc
5c6fa7d2 29156ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
29157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 29160
5c6fa7d2 29161
e6cc62c6
VS
29162 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29163echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29164if test "${wx_cv_type_sa_handler+set}" = set; then
29165 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 29166else
e6cc62c6
VS
29167
29168 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29169/* confdefs.h. */
29170_ACEOF
29171cat confdefs.h >>conftest.$ac_ext
29172cat >>conftest.$ac_ext <<_ACEOF
29173/* end confdefs.h. */
4f14bcd8 29174#include <signal.h>
e6cc62c6
VS
29175int
29176main ()
29177{
4f14bcd8
GD
29178
29179 extern void testSigHandler(int);
29180
29181 struct sigaction sa;
29182 sa.sa_handler = testSigHandler;
e6cc62c6
VS
29183
29184 ;
29185 return 0;
29186}
29187_ACEOF
29188rm -f conftest.$ac_objext
29189if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 29190 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29191 ac_status=$?
eea650d8
VS
29192 grep -v '^ *+' conftest.er1 >conftest.err
29193 rm -f conftest.er1
29194 cat conftest.err >&5
e6cc62c6
VS
29195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29196 (exit $ac_status); } &&
eea650d8
VS
29197 { ac_try='test -z "$ac_cxx_werror_flag"
29198 || test ! -s conftest.err'
29199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29200 (eval $ac_try) 2>&5
29201 ac_status=$?
29202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29203 (exit $ac_status); }; } &&
29204 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29206 (eval $ac_try) 2>&5
29207 ac_status=$?
29208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29209 (exit $ac_status); }; }; then
29210
4f14bcd8 29211 wx_cv_type_sa_handler=int
e6cc62c6 29212
af15babd 29213else
e6cc62c6
VS
29214 echo "$as_me: failed program was:" >&5
29215sed 's/^/| /' conftest.$ac_ext >&5
29216
29217
4f14bcd8 29218 wx_cv_type_sa_handler=void
e6cc62c6 29219
247f5006 29220fi
eea650d8 29221rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29222
e6cc62c6
VS
29223fi
29224echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29225echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
29226
29227 ac_ext=c
4f14bcd8 29228ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29229ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29230ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29231ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 29232
8284b0c5 29233
e6cc62c6 29234 cat >>confdefs.h <<_ACEOF
4f14bcd8 29235#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 29236_ACEOF
af15babd 29237
4f14bcd8
GD
29238 fi
29239fi
af15babd 29240
e6cc62c6
VS
29241
29242
a1d22ad7 29243for ac_func in mkstemp mktemp
af15babd 29244do
e6cc62c6
VS
29245as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29246echo "$as_me:$LINENO: checking for $ac_func" >&5
29247echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29248if eval "test \"\${$as_ac_var+set}\" = set"; then
29249 echo $ECHO_N "(cached) $ECHO_C" >&6
29250else
29251 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29252/* confdefs.h. */
29253_ACEOF
29254cat confdefs.h >>conftest.$ac_ext
29255cat >>conftest.$ac_ext <<_ACEOF
29256/* end confdefs.h. */
eea650d8
VS
29257/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29259#define $ac_func innocuous_$ac_func
29260
af15babd 29261/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29262 which can conflict with char $ac_func (); below.
29263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29264 <limits.h> exists even on freestanding compilers. */
eea650d8 29265
e6cc62c6
VS
29266#ifdef __STDC__
29267# include <limits.h>
29268#else
29269# include <assert.h>
29270#endif
eea650d8
VS
29271
29272#undef $ac_func
29273
af15babd 29274/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29275#ifdef __cplusplus
29276extern "C"
29277{
29278#endif
af15babd 29279/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29280 builtin and then its argument prototype would still apply. */
29281char $ac_func ();
af15babd
VZ
29282/* The GNU C library defines this for functions which it implements
29283 to always fail with ENOSYS. Some functions are actually named
29284 something starting with __ and the normal name is an alias. */
29285#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29286choke me
29287#else
e6cc62c6
VS
29288char (*f) () = $ac_func;
29289#endif
29290#ifdef __cplusplus
29291}
af15babd
VZ
29292#endif
29293
e6cc62c6
VS
29294int
29295main ()
29296{
29297return f != $ac_func;
29298 ;
29299 return 0;
29300}
29301_ACEOF
29302rm -f conftest.$ac_objext conftest$ac_exeext
29303if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 29304 (eval $ac_link) 2>conftest.er1
e6cc62c6 29305 ac_status=$?
eea650d8
VS
29306 grep -v '^ *+' conftest.er1 >conftest.err
29307 rm -f conftest.er1
29308 cat conftest.err >&5
e6cc62c6
VS
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); } &&
eea650d8
VS
29311 { ac_try='test -z "$ac_c_werror_flag"
29312 || test ! -s conftest.err'
29313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29314 (eval $ac_try) 2>&5
29315 ac_status=$?
29316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29317 (exit $ac_status); }; } &&
29318 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29320 (eval $ac_try) 2>&5
29321 ac_status=$?
29322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29323 (exit $ac_status); }; }; then
29324 eval "$as_ac_var=yes"
29325else
29326 echo "$as_me: failed program was:" >&5
29327sed 's/^/| /' conftest.$ac_ext >&5
29328
29329eval "$as_ac_var=no"
29330fi
eea650d8
VS
29331rm -f conftest.err conftest.$ac_objext \
29332 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29333fi
29334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29335echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29336if test `eval echo '${'$as_ac_var'}'` = yes; then
29337 cat >>confdefs.h <<_ACEOF
29338#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29339_ACEOF
ade35f11 29340 break
ade35f11
VZ
29341fi
29342done
29343
8284b0c5 29344
e6cc62c6
VS
29345echo "$as_me:$LINENO: checking for statfs" >&5
29346echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29347if test "${wx_cv_func_statfs+set}" = set; then
29348 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29349else
e6cc62c6 29350 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29351/* confdefs.h. */
29352_ACEOF
29353cat confdefs.h >>conftest.$ac_ext
29354cat >>conftest.$ac_ext <<_ACEOF
29355/* end confdefs.h. */
4f14bcd8
GD
29356
29357 #if defined(__BSD__)
29358 #include <sys/param.h>
29359 #include <sys/mount.h>
29360 #else
29361 #include <sys/vfs.h>
29362 #endif
e6cc62c6
VS
29363
29364int
29365main ()
29366{
4f14bcd8
GD
29367
29368 long l;
29369 struct statfs fs;
29370 statfs("/", &fs);
29371 l = fs.f_bsize;
29372 l += fs.f_blocks;
29373 l += fs.f_bavail;
e6cc62c6
VS
29374
29375 ;
29376 return 0;
29377}
29378_ACEOF
29379rm -f conftest.$ac_objext
29380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 29381 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29382 ac_status=$?
eea650d8
VS
29383 grep -v '^ *+' conftest.er1 >conftest.err
29384 rm -f conftest.er1
29385 cat conftest.err >&5
e6cc62c6
VS
29386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29387 (exit $ac_status); } &&
eea650d8
VS
29388 { ac_try='test -z "$ac_c_werror_flag"
29389 || test ! -s conftest.err'
29390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29391 (eval $ac_try) 2>&5
29392 ac_status=$?
29393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29394 (exit $ac_status); }; } &&
29395 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29397 (eval $ac_try) 2>&5
29398 ac_status=$?
29399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29400 (exit $ac_status); }; }; then
29401
4f14bcd8 29402 wx_cv_func_statfs=yes
e6cc62c6 29403
4f14bcd8 29404else
e6cc62c6
VS
29405 echo "$as_me: failed program was:" >&5
29406sed 's/^/| /' conftest.$ac_ext >&5
29407
29408
4f14bcd8 29409 wx_cv_func_statfs=no
e6cc62c6 29410
8284b0c5 29411
247f5006 29412fi
eea650d8 29413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29414
e6cc62c6
VS
29415fi
29416echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29417echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
29418
29419if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 29420 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 29421 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29422#define HAVE_STATFS 1
e6cc62c6 29423_ACEOF
4f14bcd8
GD
29424
29425else
e6cc62c6
VS
29426 echo "$as_me:$LINENO: checking for statvfs" >&5
29427echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29428if test "${wx_cv_func_statvfs+set}" = set; then
29429 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 29430else
e6cc62c6 29431 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29432/* confdefs.h. */
29433_ACEOF
29434cat confdefs.h >>conftest.$ac_ext
29435cat >>conftest.$ac_ext <<_ACEOF
29436/* end confdefs.h. */
af15babd 29437
54ab82b3
VZ
29438 #include <stddef.h>
29439 #include <sys/statvfs.h>
e6cc62c6
VS
29440
29441int
29442main ()
29443{
af15babd 29444
54ab82b3 29445 statvfs("/", NULL);
e6cc62c6
VS
29446
29447 ;
29448 return 0;
29449}
29450_ACEOF
29451rm -f conftest.$ac_objext
29452if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 29453 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29454 ac_status=$?
eea650d8
VS
29455 grep -v '^ *+' conftest.er1 >conftest.err
29456 rm -f conftest.er1
29457 cat conftest.err >&5
e6cc62c6
VS
29458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459 (exit $ac_status); } &&
eea650d8
VS
29460 { ac_try='test -z "$ac_c_werror_flag"
29461 || test ! -s conftest.err'
29462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29463 (eval $ac_try) 2>&5
29464 ac_status=$?
29465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29466 (exit $ac_status); }; } &&
29467 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29469 (eval $ac_try) 2>&5
29470 ac_status=$?
29471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29472 (exit $ac_status); }; }; then
54ab82b3 29473 wx_cv_func_statvfs=yes
af15babd 29474else
e6cc62c6
VS
29475 echo "$as_me: failed program was:" >&5
29476sed 's/^/| /' conftest.$ac_ext >&5
29477
29478wx_cv_func_statvfs=no
29479
247f5006 29480fi
eea650d8 29481rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29482
e6cc62c6
VS
29483fi
29484echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29485echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 29486
4f14bcd8 29487 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
29488
29489
29490 ac_ext=cc
54ab82b3 29491ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
29492ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29493ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29494ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
29495
29496
e6cc62c6
VS
29497 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29498echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29499if test "${wx_cv_type_statvfs_t+set}" = set; then
29500 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 29501else
e6cc62c6 29502 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29503/* confdefs.h. */
29504_ACEOF
29505cat confdefs.h >>conftest.$ac_ext
29506cat >>conftest.$ac_ext <<_ACEOF
29507/* end confdefs.h. */
54ab82b3
VZ
29508
29509 #include <sys/statvfs.h>
e6cc62c6
VS
29510
29511int
29512main ()
29513{
54ab82b3
VZ
29514
29515 long l;
29516 statvfs_t fs;
29517 statvfs("/", &fs);
29518 l = fs.f_bsize;
29519 l += fs.f_blocks;
29520 l += fs.f_bavail;
e6cc62c6
VS
29521
29522 ;
29523 return 0;
29524}
29525_ACEOF
29526rm -f conftest.$ac_objext
29527if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 29528 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29529 ac_status=$?
eea650d8
VS
29530 grep -v '^ *+' conftest.er1 >conftest.err
29531 rm -f conftest.er1
29532 cat conftest.err >&5
e6cc62c6
VS
29533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29534 (exit $ac_status); } &&
eea650d8
VS
29535 { ac_try='test -z "$ac_cxx_werror_flag"
29536 || test ! -s conftest.err'
29537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29538 (eval $ac_try) 2>&5
29539 ac_status=$?
29540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29541 (exit $ac_status); }; } &&
29542 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29544 (eval $ac_try) 2>&5
29545 ac_status=$?
29546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29547 (exit $ac_status); }; }; then
54ab82b3
VZ
29548 wx_cv_type_statvfs_t=statvfs_t
29549else
e6cc62c6
VS
29550 echo "$as_me: failed program was:" >&5
29551sed 's/^/| /' conftest.$ac_ext >&5
29552
29553
29554 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29555/* confdefs.h. */
29556_ACEOF
29557cat confdefs.h >>conftest.$ac_ext
29558cat >>conftest.$ac_ext <<_ACEOF
29559/* end confdefs.h. */
54ab82b3
VZ
29560
29561 #include <sys/statvfs.h>
e6cc62c6
VS
29562
29563int
29564main ()
29565{
54ab82b3
VZ
29566
29567 long l;
65d8ef1e 29568 struct statvfs fs;
54ab82b3
VZ
29569 statvfs("/", &fs);
29570 l = fs.f_bsize;
29571 l += fs.f_blocks;
29572 l += fs.f_bavail;
e6cc62c6
VS
29573
29574 ;
29575 return 0;
29576}
29577_ACEOF
29578rm -f conftest.$ac_objext
29579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 29580 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29581 ac_status=$?
eea650d8
VS
29582 grep -v '^ *+' conftest.er1 >conftest.err
29583 rm -f conftest.er1
29584 cat conftest.err >&5
e6cc62c6
VS
29585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29586 (exit $ac_status); } &&
eea650d8
VS
29587 { ac_try='test -z "$ac_cxx_werror_flag"
29588 || test ! -s conftest.err'
29589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29590 (eval $ac_try) 2>&5
29591 ac_status=$?
29592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29593 (exit $ac_status); }; } &&
29594 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29596 (eval $ac_try) 2>&5
29597 ac_status=$?
29598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29599 (exit $ac_status); }; }; then
54ab82b3
VZ
29600 wx_cv_type_statvfs_t="struct statvfs"
29601else
e6cc62c6
VS
29602 echo "$as_me: failed program was:" >&5
29603sed 's/^/| /' conftest.$ac_ext >&5
29604
29605wx_cv_type_statvfs_t="unknown"
29606
54ab82b3 29607fi
eea650d8 29608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
29609
29610
54ab82b3 29611fi
eea650d8 29612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54ab82b3 29613
e6cc62c6
VS
29614fi
29615echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
29616echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
29617
29618 ac_ext=c
54ab82b3 29619ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29622ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
29623
29624
29625 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 29626 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29627#define HAVE_STATVFS 1
e6cc62c6 29628_ACEOF
af15babd 29629
54ab82b3 29630 fi
4f14bcd8 29631 else
54ab82b3 29632 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
29633 fi
29634fi
af15babd 29635
54ab82b3 29636if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 29637 cat >>confdefs.h <<_ACEOF
54ab82b3 29638#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 29639_ACEOF
54ab82b3
VZ
29640
29641else
e6cc62c6
VS
29642 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
29643echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
29644fi
29645
4f14bcd8 29646if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
29647
29648
29649for ac_func in fcntl flock
af15babd 29650do
e6cc62c6
VS
29651as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29652echo "$as_me:$LINENO: checking for $ac_func" >&5
29653echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29654if eval "test \"\${$as_ac_var+set}\" = set"; then
29655 echo $ECHO_N "(cached) $ECHO_C" >&6
29656else
29657 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29658/* confdefs.h. */
29659_ACEOF
29660cat confdefs.h >>conftest.$ac_ext
29661cat >>conftest.$ac_ext <<_ACEOF
29662/* end confdefs.h. */
eea650d8
VS
29663/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29665#define $ac_func innocuous_$ac_func
29666
af15babd 29667/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29668 which can conflict with char $ac_func (); below.
29669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29670 <limits.h> exists even on freestanding compilers. */
eea650d8 29671
e6cc62c6
VS
29672#ifdef __STDC__
29673# include <limits.h>
29674#else
29675# include <assert.h>
29676#endif
eea650d8
VS
29677
29678#undef $ac_func
29679
af15babd 29680/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29681#ifdef __cplusplus
29682extern "C"
29683{
29684#endif
af15babd 29685/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29686 builtin and then its argument prototype would still apply. */
29687char $ac_func ();
af15babd
VZ
29688/* The GNU C library defines this for functions which it implements
29689 to always fail with ENOSYS. Some functions are actually named
29690 something starting with __ and the normal name is an alias. */
29691#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29692choke me
29693#else
e6cc62c6
VS
29694char (*f) () = $ac_func;
29695#endif
29696#ifdef __cplusplus
29697}
af15babd
VZ
29698#endif
29699
e6cc62c6
VS
29700int
29701main ()
29702{
29703return f != $ac_func;
29704 ;
29705 return 0;
29706}
29707_ACEOF
29708rm -f conftest.$ac_objext conftest$ac_exeext
29709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 29710 (eval $ac_link) 2>conftest.er1
e6cc62c6 29711 ac_status=$?
eea650d8
VS
29712 grep -v '^ *+' conftest.er1 >conftest.err
29713 rm -f conftest.er1
29714 cat conftest.err >&5
e6cc62c6
VS
29715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29716 (exit $ac_status); } &&
eea650d8
VS
29717 { ac_try='test -z "$ac_c_werror_flag"
29718 || test ! -s conftest.err'
29719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29720 (eval $ac_try) 2>&5
29721 ac_status=$?
29722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29723 (exit $ac_status); }; } &&
29724 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29726 (eval $ac_try) 2>&5
29727 ac_status=$?
29728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29729 (exit $ac_status); }; }; then
29730 eval "$as_ac_var=yes"
29731else
29732 echo "$as_me: failed program was:" >&5
29733sed 's/^/| /' conftest.$ac_ext >&5
29734
29735eval "$as_ac_var=no"
29736fi
eea650d8
VS
29737rm -f conftest.err conftest.$ac_objext \
29738 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29739fi
29740echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29741echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29742if test `eval echo '${'$as_ac_var'}'` = yes; then
29743 cat >>confdefs.h <<_ACEOF
29744#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29745_ACEOF
4f14bcd8 29746 break
af15babd
VZ
29747fi
29748done
29749
8284b0c5 29750
4f14bcd8 29751 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
29752 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
29753echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
29754 wxUSE_SNGLINST_CHECKER=no
29755 fi
29756fi
af15babd 29757
e6cc62c6 29758
4f14bcd8 29759for ac_func in timegm
af15babd 29760do
e6cc62c6
VS
29761as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29762echo "$as_me:$LINENO: checking for $ac_func" >&5
29763echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29764if eval "test \"\${$as_ac_var+set}\" = set"; then
29765 echo $ECHO_N "(cached) $ECHO_C" >&6
29766else
29767 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29768/* confdefs.h. */
29769_ACEOF
29770cat confdefs.h >>conftest.$ac_ext
29771cat >>conftest.$ac_ext <<_ACEOF
29772/* end confdefs.h. */
eea650d8
VS
29773/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29775#define $ac_func innocuous_$ac_func
29776
af15babd 29777/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29778 which can conflict with char $ac_func (); below.
29779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29780 <limits.h> exists even on freestanding compilers. */
eea650d8 29781
e6cc62c6
VS
29782#ifdef __STDC__
29783# include <limits.h>
29784#else
29785# include <assert.h>
29786#endif
eea650d8
VS
29787
29788#undef $ac_func
29789
af15babd 29790/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29791#ifdef __cplusplus
29792extern "C"
29793{
29794#endif
af15babd 29795/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29796 builtin and then its argument prototype would still apply. */
29797char $ac_func ();
af15babd
VZ
29798/* The GNU C library defines this for functions which it implements
29799 to always fail with ENOSYS. Some functions are actually named
29800 something starting with __ and the normal name is an alias. */
247f5006
VZ
29801#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29802choke me
29803#else
e6cc62c6
VS
29804char (*f) () = $ac_func;
29805#endif
29806#ifdef __cplusplus
29807}
247f5006
VZ
29808#endif
29809
e6cc62c6
VS
29810int
29811main ()
29812{
29813return f != $ac_func;
29814 ;
29815 return 0;
29816}
29817_ACEOF
29818rm -f conftest.$ac_objext conftest$ac_exeext
29819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 29820 (eval $ac_link) 2>conftest.er1
e6cc62c6 29821 ac_status=$?
eea650d8
VS
29822 grep -v '^ *+' conftest.er1 >conftest.err
29823 rm -f conftest.er1
29824 cat conftest.err >&5
e6cc62c6
VS
29825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29826 (exit $ac_status); } &&
eea650d8
VS
29827 { ac_try='test -z "$ac_c_werror_flag"
29828 || test ! -s conftest.err'
29829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29830 (eval $ac_try) 2>&5
29831 ac_status=$?
29832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29833 (exit $ac_status); }; } &&
29834 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29836 (eval $ac_try) 2>&5
29837 ac_status=$?
29838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839 (exit $ac_status); }; }; then
29840 eval "$as_ac_var=yes"
29841else
29842 echo "$as_me: failed program was:" >&5
29843sed 's/^/| /' conftest.$ac_ext >&5
29844
29845eval "$as_ac_var=no"
29846fi
eea650d8
VS
29847rm -f conftest.err conftest.$ac_objext \
29848 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29849fi
29850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29851echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29852if test `eval echo '${'$as_ac_var'}'` = yes; then
29853 cat >>confdefs.h <<_ACEOF
29854#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29855_ACEOF
703e0a69 29856
af15babd
VZ
29857fi
29858done
29859
8284b0c5 29860
e6cc62c6
VS
29861
29862
4f14bcd8 29863for ac_func in putenv setenv
10f2d63a 29864do
e6cc62c6
VS
29865as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29866echo "$as_me:$LINENO: checking for $ac_func" >&5
29867echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29868if eval "test \"\${$as_ac_var+set}\" = set"; then
29869 echo $ECHO_N "(cached) $ECHO_C" >&6
29870else
29871 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29872/* confdefs.h. */
29873_ACEOF
29874cat confdefs.h >>conftest.$ac_ext
29875cat >>conftest.$ac_ext <<_ACEOF
29876/* end confdefs.h. */
eea650d8
VS
29877/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29879#define $ac_func innocuous_$ac_func
29880
af15babd 29881/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29882 which can conflict with char $ac_func (); below.
29883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29884 <limits.h> exists even on freestanding compilers. */
eea650d8 29885
e6cc62c6
VS
29886#ifdef __STDC__
29887# include <limits.h>
29888#else
29889# include <assert.h>
29890#endif
eea650d8
VS
29891
29892#undef $ac_func
29893
af15babd 29894/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29895#ifdef __cplusplus
29896extern "C"
29897{
29898#endif
af15babd 29899/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29900 builtin and then its argument prototype would still apply. */
29901char $ac_func ();
af15babd
VZ
29902/* The GNU C library defines this for functions which it implements
29903 to always fail with ENOSYS. Some functions are actually named
29904 something starting with __ and the normal name is an alias. */
29905#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29906choke me
29907#else
e6cc62c6
VS
29908char (*f) () = $ac_func;
29909#endif
29910#ifdef __cplusplus
29911}
af15babd
VZ
29912#endif
29913
e6cc62c6
VS
29914int
29915main ()
29916{
29917return f != $ac_func;
29918 ;
29919 return 0;
29920}
29921_ACEOF
29922rm -f conftest.$ac_objext conftest$ac_exeext
29923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 29924 (eval $ac_link) 2>conftest.er1
e6cc62c6 29925 ac_status=$?
eea650d8
VS
29926 grep -v '^ *+' conftest.er1 >conftest.err
29927 rm -f conftest.er1
29928 cat conftest.err >&5
e6cc62c6
VS
29929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29930 (exit $ac_status); } &&
eea650d8
VS
29931 { ac_try='test -z "$ac_c_werror_flag"
29932 || test ! -s conftest.err'
29933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29934 (eval $ac_try) 2>&5
29935 ac_status=$?
29936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29937 (exit $ac_status); }; } &&
29938 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29940 (eval $ac_try) 2>&5
29941 ac_status=$?
29942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943 (exit $ac_status); }; }; then
29944 eval "$as_ac_var=yes"
29945else
29946 echo "$as_me: failed program was:" >&5
29947sed 's/^/| /' conftest.$ac_ext >&5
29948
29949eval "$as_ac_var=no"
29950fi
eea650d8
VS
29951rm -f conftest.err conftest.$ac_objext \
29952 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29953fi
29954echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29955echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29956if test `eval echo '${'$as_ac_var'}'` = yes; then
29957 cat >>confdefs.h <<_ACEOF
29958#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29959_ACEOF
4f14bcd8 29960 break
af15babd 29961fi
af15babd
VZ
29962done
29963
8284b0c5 29964
4f14bcd8
GD
29965HAVE_SOME_SLEEP_FUNC=0
29966if test "$USE_BEOS" = 1; then
e6cc62c6 29967 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29968#define HAVE_SLEEP 1
e6cc62c6 29969_ACEOF
af15babd 29970
4f14bcd8 29971 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
29972fi
29973
4f14bcd8 29974if test "$USE_DARWIN" = 1; then
e6cc62c6 29975 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29976#define HAVE_USLEEP 1
e6cc62c6 29977_ACEOF
10f2d63a 29978
4f14bcd8 29979 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
29980fi
29981
4f14bcd8
GD
29982if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
29983 POSIX4_LINK=
e6cc62c6
VS
29984
29985for ac_func in nanosleep
4f14bcd8 29986do
e6cc62c6
VS
29987as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29988echo "$as_me:$LINENO: checking for $ac_func" >&5
29989echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29990if eval "test \"\${$as_ac_var+set}\" = set"; then
29991 echo $ECHO_N "(cached) $ECHO_C" >&6
29992else
29993 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29994/* confdefs.h. */
29995_ACEOF
29996cat confdefs.h >>conftest.$ac_ext
29997cat >>conftest.$ac_ext <<_ACEOF
29998/* end confdefs.h. */
eea650d8
VS
29999/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30001#define $ac_func innocuous_$ac_func
30002
4f14bcd8 30003/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30004 which can conflict with char $ac_func (); below.
30005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30006 <limits.h> exists even on freestanding compilers. */
eea650d8 30007
e6cc62c6
VS
30008#ifdef __STDC__
30009# include <limits.h>
30010#else
30011# include <assert.h>
30012#endif
eea650d8
VS
30013
30014#undef $ac_func
30015
10f2d63a 30016/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30017#ifdef __cplusplus
30018extern "C"
30019{
30020#endif
10f2d63a 30021/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30022 builtin and then its argument prototype would still apply. */
30023char $ac_func ();
4f14bcd8
GD
30024/* The GNU C library defines this for functions which it implements
30025 to always fail with ENOSYS. Some functions are actually named
30026 something starting with __ and the normal name is an alias. */
30027#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30028choke me
30029#else
e6cc62c6
VS
30030char (*f) () = $ac_func;
30031#endif
30032#ifdef __cplusplus
30033}
4f14bcd8
GD
30034#endif
30035
e6cc62c6
VS
30036int
30037main ()
30038{
30039return f != $ac_func;
30040 ;
30041 return 0;
30042}
30043_ACEOF
30044rm -f conftest.$ac_objext conftest$ac_exeext
30045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30046 (eval $ac_link) 2>conftest.er1
e6cc62c6 30047 ac_status=$?
eea650d8
VS
30048 grep -v '^ *+' conftest.er1 >conftest.err
30049 rm -f conftest.er1
30050 cat conftest.err >&5
e6cc62c6
VS
30051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30052 (exit $ac_status); } &&
eea650d8
VS
30053 { ac_try='test -z "$ac_c_werror_flag"
30054 || test ! -s conftest.err'
30055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30056 (eval $ac_try) 2>&5
30057 ac_status=$?
30058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30059 (exit $ac_status); }; } &&
30060 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30062 (eval $ac_try) 2>&5
30063 ac_status=$?
30064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30065 (exit $ac_status); }; }; then
30066 eval "$as_ac_var=yes"
30067else
30068 echo "$as_me: failed program was:" >&5
30069sed 's/^/| /' conftest.$ac_ext >&5
30070
30071eval "$as_ac_var=no"
30072fi
eea650d8
VS
30073rm -f conftest.err conftest.$ac_objext \
30074 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30075fi
30076echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30077echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30078if test `eval echo '${'$as_ac_var'}'` = yes; then
30079 cat >>confdefs.h <<_ACEOF
30080#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30081_ACEOF
30082 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30083#define HAVE_NANOSLEEP 1
e6cc62c6 30084_ACEOF
4f14bcd8 30085
10f2d63a 30086else
e6cc62c6
VS
30087
30088 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
30089echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
30090if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
30091 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 30092else
e6cc62c6 30093 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 30094LIBS="-lposix4 $LIBS"
e6cc62c6 30095cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30096/* confdefs.h. */
30097_ACEOF
30098cat confdefs.h >>conftest.$ac_ext
30099cat >>conftest.$ac_ext <<_ACEOF
30100/* end confdefs.h. */
30101
10f2d63a 30102/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30103#ifdef __cplusplus
30104extern "C"
30105#endif
10f2d63a 30106/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30107 builtin and then its argument prototype would still apply. */
30108char nanosleep ();
30109int
30110main ()
30111{
30112nanosleep ();
30113 ;
30114 return 0;
30115}
30116_ACEOF
30117rm -f conftest.$ac_objext conftest$ac_exeext
30118if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30119 (eval $ac_link) 2>conftest.er1
e6cc62c6 30120 ac_status=$?
eea650d8
VS
30121 grep -v '^ *+' conftest.er1 >conftest.err
30122 rm -f conftest.er1
30123 cat conftest.err >&5
e6cc62c6
VS
30124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30125 (exit $ac_status); } &&
eea650d8
VS
30126 { ac_try='test -z "$ac_c_werror_flag"
30127 || test ! -s conftest.err'
30128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30129 (eval $ac_try) 2>&5
30130 ac_status=$?
30131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30132 (exit $ac_status); }; } &&
30133 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30135 (eval $ac_try) 2>&5
30136 ac_status=$?
30137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138 (exit $ac_status); }; }; then
30139 ac_cv_lib_posix4_nanosleep=yes
30140else
30141 echo "$as_me: failed program was:" >&5
30142sed 's/^/| /' conftest.$ac_ext >&5
30143
30144ac_cv_lib_posix4_nanosleep=no
30145fi
eea650d8
VS
30146rm -f conftest.err conftest.$ac_objext \
30147 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30148LIBS=$ac_check_lib_save_LIBS
30149fi
30150echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30151echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30152if test $ac_cv_lib_posix4_nanosleep = yes; then
30153
30154 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30155#define HAVE_NANOSLEEP 1
e6cc62c6 30156_ACEOF
4f14bcd8 30157
3d63bc3a 30158 POSIX4_LINK=" -lposix4"
e6cc62c6 30159
10f2d63a 30160else
10f2d63a 30161
e6cc62c6
VS
30162
30163for ac_func in usleep
4f14bcd8 30164do
e6cc62c6
VS
30165as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30166echo "$as_me:$LINENO: checking for $ac_func" >&5
30167echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30168if eval "test \"\${$as_ac_var+set}\" = set"; then
30169 echo $ECHO_N "(cached) $ECHO_C" >&6
30170else
30171 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30172/* confdefs.h. */
30173_ACEOF
30174cat confdefs.h >>conftest.$ac_ext
30175cat >>conftest.$ac_ext <<_ACEOF
30176/* end confdefs.h. */
eea650d8
VS
30177/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30179#define $ac_func innocuous_$ac_func
30180
4f14bcd8 30181/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30182 which can conflict with char $ac_func (); below.
30183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30184 <limits.h> exists even on freestanding compilers. */
eea650d8 30185
e6cc62c6
VS
30186#ifdef __STDC__
30187# include <limits.h>
30188#else
30189# include <assert.h>
30190#endif
eea650d8
VS
30191
30192#undef $ac_func
30193
4f14bcd8 30194/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30195#ifdef __cplusplus
30196extern "C"
30197{
30198#endif
4f14bcd8 30199/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30200 builtin and then its argument prototype would still apply. */
30201char $ac_func ();
4f14bcd8
GD
30202/* The GNU C library defines this for functions which it implements
30203 to always fail with ENOSYS. Some functions are actually named
30204 something starting with __ and the normal name is an alias. */
30205#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30206choke me
30207#else
e6cc62c6
VS
30208char (*f) () = $ac_func;
30209#endif
30210#ifdef __cplusplus
30211}
4f14bcd8
GD
30212#endif
30213
e6cc62c6
VS
30214int
30215main ()
30216{
30217return f != $ac_func;
30218 ;
30219 return 0;
30220}
30221_ACEOF
30222rm -f conftest.$ac_objext conftest$ac_exeext
30223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30224 (eval $ac_link) 2>conftest.er1
e6cc62c6 30225 ac_status=$?
eea650d8
VS
30226 grep -v '^ *+' conftest.er1 >conftest.err
30227 rm -f conftest.er1
30228 cat conftest.err >&5
e6cc62c6
VS
30229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30230 (exit $ac_status); } &&
eea650d8
VS
30231 { ac_try='test -z "$ac_c_werror_flag"
30232 || test ! -s conftest.err'
30233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30234 (eval $ac_try) 2>&5
30235 ac_status=$?
30236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30237 (exit $ac_status); }; } &&
30238 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30240 (eval $ac_try) 2>&5
30241 ac_status=$?
30242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30243 (exit $ac_status); }; }; then
30244 eval "$as_ac_var=yes"
30245else
30246 echo "$as_me: failed program was:" >&5
30247sed 's/^/| /' conftest.$ac_ext >&5
30248
30249eval "$as_ac_var=no"
30250fi
eea650d8
VS
30251rm -f conftest.err conftest.$ac_objext \
30252 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30253fi
30254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30255echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30256if test `eval echo '${'$as_ac_var'}'` = yes; then
30257 cat >>confdefs.h <<_ACEOF
30258#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30259_ACEOF
30260 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30261#define HAVE_USLEEP 1
e6cc62c6 30262_ACEOF
4f14bcd8 30263
698dcdb6 30264else
e6cc62c6
VS
30265 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30266echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30267
10f2d63a 30268fi
4f14bcd8 30269done
10f2d63a 30270
e6cc62c6
VS
30271
30272
6232543b 30273fi
10f2d63a 30274
e6cc62c6
VS
30275
30276
1e487827 30277fi
4f14bcd8 30278done
703e0a69 30279
10f2d63a
VZ
30280fi
30281
e6cc62c6
VS
30282
30283
4f14bcd8 30284for ac_func in uname gethostname
70846f0a 30285do
e6cc62c6
VS
30286as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30287echo "$as_me:$LINENO: checking for $ac_func" >&5
30288echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30289if eval "test \"\${$as_ac_var+set}\" = set"; then
30290 echo $ECHO_N "(cached) $ECHO_C" >&6
30291else
30292 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30293/* confdefs.h. */
30294_ACEOF
30295cat confdefs.h >>conftest.$ac_ext
30296cat >>conftest.$ac_ext <<_ACEOF
30297/* end confdefs.h. */
eea650d8
VS
30298/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30300#define $ac_func innocuous_$ac_func
30301
70846f0a 30302/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30303 which can conflict with char $ac_func (); below.
30304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30305 <limits.h> exists even on freestanding compilers. */
eea650d8 30306
e6cc62c6
VS
30307#ifdef __STDC__
30308# include <limits.h>
30309#else
30310# include <assert.h>
30311#endif
eea650d8
VS
30312
30313#undef $ac_func
30314
70846f0a 30315/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30316#ifdef __cplusplus
30317extern "C"
30318{
30319#endif
70846f0a 30320/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30321 builtin and then its argument prototype would still apply. */
30322char $ac_func ();
70846f0a
VZ
30323/* The GNU C library defines this for functions which it implements
30324 to always fail with ENOSYS. Some functions are actually named
30325 something starting with __ and the normal name is an alias. */
30326#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30327choke me
30328#else
e6cc62c6
VS
30329char (*f) () = $ac_func;
30330#endif
30331#ifdef __cplusplus
30332}
70846f0a
VZ
30333#endif
30334
e6cc62c6
VS
30335int
30336main ()
30337{
30338return f != $ac_func;
30339 ;
30340 return 0;
30341}
30342_ACEOF
30343rm -f conftest.$ac_objext conftest$ac_exeext
30344if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30345 (eval $ac_link) 2>conftest.er1
e6cc62c6 30346 ac_status=$?
eea650d8
VS
30347 grep -v '^ *+' conftest.er1 >conftest.err
30348 rm -f conftest.er1
30349 cat conftest.err >&5
e6cc62c6
VS
30350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351 (exit $ac_status); } &&
eea650d8
VS
30352 { ac_try='test -z "$ac_c_werror_flag"
30353 || test ! -s conftest.err'
30354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30355 (eval $ac_try) 2>&5
30356 ac_status=$?
30357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358 (exit $ac_status); }; } &&
30359 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30361 (eval $ac_try) 2>&5
30362 ac_status=$?
30363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30364 (exit $ac_status); }; }; then
30365 eval "$as_ac_var=yes"
30366else
30367 echo "$as_me: failed program was:" >&5
30368sed 's/^/| /' conftest.$ac_ext >&5
30369
30370eval "$as_ac_var=no"
30371fi
eea650d8
VS
30372rm -f conftest.err conftest.$ac_objext \
30373 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30374fi
30375echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30376echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30377if test `eval echo '${'$as_ac_var'}'` = yes; then
30378 cat >>confdefs.h <<_ACEOF
30379#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30380_ACEOF
4f14bcd8 30381 break
70846f0a
VZ
30382fi
30383done
30384
8284b0c5
MB
30385
30386
e6cc62c6
VS
30387
30388ac_ext=cc
4f14bcd8 30389ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
30390ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30391ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30392ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30393
8284b0c5 30394
4f14bcd8
GD
30395
30396for ac_func in strtok_r
10f2d63a 30397do
e6cc62c6
VS
30398as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30399echo "$as_me:$LINENO: checking for $ac_func" >&5
30400echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30401if eval "test \"\${$as_ac_var+set}\" = set"; then
30402 echo $ECHO_N "(cached) $ECHO_C" >&6
30403else
30404 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30405/* confdefs.h. */
30406_ACEOF
30407cat confdefs.h >>conftest.$ac_ext
30408cat >>conftest.$ac_ext <<_ACEOF
30409/* end confdefs.h. */
eea650d8
VS
30410/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30411 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30412#define $ac_func innocuous_$ac_func
30413
4f14bcd8 30414/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30415 which can conflict with char $ac_func (); below.
30416 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30417 <limits.h> exists even on freestanding compilers. */
eea650d8 30418
e6cc62c6
VS
30419#ifdef __STDC__
30420# include <limits.h>
30421#else
30422# include <assert.h>
30423#endif
eea650d8
VS
30424
30425#undef $ac_func
30426
4f14bcd8
GD
30427/* Override any gcc2 internal prototype to avoid an error. */
30428#ifdef __cplusplus
30429extern "C"
e6cc62c6 30430{
4f14bcd8
GD
30431#endif
30432/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30433 builtin and then its argument prototype would still apply. */
30434char $ac_func ();
4f14bcd8
GD
30435/* The GNU C library defines this for functions which it implements
30436 to always fail with ENOSYS. Some functions are actually named
30437 something starting with __ and the normal name is an alias. */
30438#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30439choke me
30440#else
e6cc62c6
VS
30441char (*f) () = $ac_func;
30442#endif
30443#ifdef __cplusplus
30444}
4f14bcd8
GD
30445#endif
30446
e6cc62c6
VS
30447int
30448main ()
30449{
30450return f != $ac_func;
30451 ;
30452 return 0;
30453}
30454_ACEOF
30455rm -f conftest.$ac_objext conftest$ac_exeext
30456if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30457 (eval $ac_link) 2>conftest.er1
e6cc62c6 30458 ac_status=$?
eea650d8
VS
30459 grep -v '^ *+' conftest.er1 >conftest.err
30460 rm -f conftest.er1
30461 cat conftest.err >&5
e6cc62c6
VS
30462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30463 (exit $ac_status); } &&
eea650d8
VS
30464 { ac_try='test -z "$ac_cxx_werror_flag"
30465 || test ! -s conftest.err'
30466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30467 (eval $ac_try) 2>&5
30468 ac_status=$?
30469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30470 (exit $ac_status); }; } &&
30471 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30473 (eval $ac_try) 2>&5
30474 ac_status=$?
30475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30476 (exit $ac_status); }; }; then
30477 eval "$as_ac_var=yes"
30478else
30479 echo "$as_me: failed program was:" >&5
30480sed 's/^/| /' conftest.$ac_ext >&5
30481
30482eval "$as_ac_var=no"
30483fi
eea650d8
VS
30484rm -f conftest.err conftest.$ac_objext \
30485 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30486fi
30487echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30488echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30489if test `eval echo '${'$as_ac_var'}'` = yes; then
30490 cat >>confdefs.h <<_ACEOF
30491#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30492_ACEOF
4f14bcd8 30493
10f2d63a
VZ
30494fi
30495done
30496
8284b0c5 30497
4f14bcd8 30498ac_ext=c
4f14bcd8 30499ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
30500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30502ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 30503
5c6fa7d2 30504
8284b0c5 30505INET_LINK=
e6cc62c6 30506
4f14bcd8
GD
30507for ac_func in inet_addr
30508do
e6cc62c6
VS
30509as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30510echo "$as_me:$LINENO: checking for $ac_func" >&5
30511echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30512if eval "test \"\${$as_ac_var+set}\" = set"; then
30513 echo $ECHO_N "(cached) $ECHO_C" >&6
30514else
30515 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30516/* confdefs.h. */
30517_ACEOF
30518cat confdefs.h >>conftest.$ac_ext
30519cat >>conftest.$ac_ext <<_ACEOF
30520/* end confdefs.h. */
eea650d8
VS
30521/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30523#define $ac_func innocuous_$ac_func
30524
4f14bcd8 30525/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30526 which can conflict with char $ac_func (); below.
30527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30528 <limits.h> exists even on freestanding compilers. */
eea650d8 30529
e6cc62c6
VS
30530#ifdef __STDC__
30531# include <limits.h>
30532#else
30533# include <assert.h>
30534#endif
eea650d8
VS
30535
30536#undef $ac_func
30537
10f2d63a 30538/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30539#ifdef __cplusplus
30540extern "C"
30541{
30542#endif
10f2d63a 30543/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30544 builtin and then its argument prototype would still apply. */
30545char $ac_func ();
4f14bcd8
GD
30546/* The GNU C library defines this for functions which it implements
30547 to always fail with ENOSYS. Some functions are actually named
30548 something starting with __ and the normal name is an alias. */
30549#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30550choke me
30551#else
e6cc62c6
VS
30552char (*f) () = $ac_func;
30553#endif
30554#ifdef __cplusplus
30555}
4f14bcd8
GD
30556#endif
30557
e6cc62c6
VS
30558int
30559main ()
30560{
30561return f != $ac_func;
30562 ;
30563 return 0;
30564}
30565_ACEOF
30566rm -f conftest.$ac_objext conftest$ac_exeext
30567if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30568 (eval $ac_link) 2>conftest.er1
e6cc62c6 30569 ac_status=$?
eea650d8
VS
30570 grep -v '^ *+' conftest.er1 >conftest.err
30571 rm -f conftest.er1
30572 cat conftest.err >&5
e6cc62c6
VS
30573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30574 (exit $ac_status); } &&
eea650d8
VS
30575 { ac_try='test -z "$ac_c_werror_flag"
30576 || test ! -s conftest.err'
30577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30578 (eval $ac_try) 2>&5
30579 ac_status=$?
30580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581 (exit $ac_status); }; } &&
30582 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30584 (eval $ac_try) 2>&5
30585 ac_status=$?
30586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30587 (exit $ac_status); }; }; then
30588 eval "$as_ac_var=yes"
30589else
30590 echo "$as_me: failed program was:" >&5
30591sed 's/^/| /' conftest.$ac_ext >&5
30592
30593eval "$as_ac_var=no"
30594fi
eea650d8
VS
30595rm -f conftest.err conftest.$ac_objext \
30596 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30597fi
30598echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30599echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30600if test `eval echo '${'$as_ac_var'}'` = yes; then
30601 cat >>confdefs.h <<_ACEOF
30602#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30603_ACEOF
30604 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30605#define HAVE_INET_ADDR 1
e6cc62c6 30606_ACEOF
10f2d63a
VZ
30607
30608else
e6cc62c6
VS
30609
30610 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
30611echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
30612if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
30613 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 30614else
e6cc62c6 30615 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 30616LIBS="-lnsl $LIBS"
e6cc62c6 30617cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30618/* confdefs.h. */
30619_ACEOF
30620cat confdefs.h >>conftest.$ac_ext
30621cat >>conftest.$ac_ext <<_ACEOF
30622/* end confdefs.h. */
30623
10f2d63a 30624/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30625#ifdef __cplusplus
30626extern "C"
30627#endif
10f2d63a 30628/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30629 builtin and then its argument prototype would still apply. */
30630char inet_addr ();
30631int
30632main ()
30633{
30634inet_addr ();
30635 ;
30636 return 0;
30637}
30638_ACEOF
30639rm -f conftest.$ac_objext conftest$ac_exeext
30640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30641 (eval $ac_link) 2>conftest.er1
e6cc62c6 30642 ac_status=$?
eea650d8
VS
30643 grep -v '^ *+' conftest.er1 >conftest.err
30644 rm -f conftest.er1
30645 cat conftest.err >&5
e6cc62c6
VS
30646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30647 (exit $ac_status); } &&
eea650d8
VS
30648 { ac_try='test -z "$ac_c_werror_flag"
30649 || test ! -s conftest.err'
30650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30651 (eval $ac_try) 2>&5
30652 ac_status=$?
30653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30654 (exit $ac_status); }; } &&
30655 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30657 (eval $ac_try) 2>&5
30658 ac_status=$?
30659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30660 (exit $ac_status); }; }; then
30661 ac_cv_lib_nsl_inet_addr=yes
30662else
30663 echo "$as_me: failed program was:" >&5
30664sed 's/^/| /' conftest.$ac_ext >&5
30665
30666ac_cv_lib_nsl_inet_addr=no
30667fi
eea650d8
VS
30668rm -f conftest.err conftest.$ac_objext \
30669 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30670LIBS=$ac_check_lib_save_LIBS
30671fi
30672echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
30673echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
30674if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 30675 INET_LINK="nsl"
10f2d63a 30676else
0e012a93
VZ
30677
30678 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
e6cc62c6
VS
30679echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
30680if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
30681 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 30682else
e6cc62c6 30683 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 30684LIBS="-lresolv $LIBS"
e6cc62c6 30685cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30686/* confdefs.h. */
30687_ACEOF
30688cat confdefs.h >>conftest.$ac_ext
30689cat >>conftest.$ac_ext <<_ACEOF
30690/* end confdefs.h. */
30691
5c6fa7d2 30692/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30693#ifdef __cplusplus
30694extern "C"
30695#endif
5c6fa7d2 30696/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30697 builtin and then its argument prototype would still apply. */
30698char inet_addr ();
30699int
30700main ()
30701{
30702inet_addr ();
30703 ;
30704 return 0;
30705}
30706_ACEOF
30707rm -f conftest.$ac_objext conftest$ac_exeext
30708if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30709 (eval $ac_link) 2>conftest.er1
e6cc62c6 30710 ac_status=$?
eea650d8
VS
30711 grep -v '^ *+' conftest.er1 >conftest.err
30712 rm -f conftest.er1
30713 cat conftest.err >&5
e6cc62c6
VS
30714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715 (exit $ac_status); } &&
eea650d8
VS
30716 { ac_try='test -z "$ac_c_werror_flag"
30717 || test ! -s conftest.err'
30718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30719 (eval $ac_try) 2>&5
30720 ac_status=$?
30721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30722 (exit $ac_status); }; } &&
30723 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30725 (eval $ac_try) 2>&5
30726 ac_status=$?
30727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30728 (exit $ac_status); }; }; then
30729 ac_cv_lib_resolv_inet_addr=yes
30730else
30731 echo "$as_me: failed program was:" >&5
30732sed 's/^/| /' conftest.$ac_ext >&5
30733
30734ac_cv_lib_resolv_inet_addr=no
30735fi
eea650d8
VS
30736rm -f conftest.err conftest.$ac_objext \
30737 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30738LIBS=$ac_check_lib_save_LIBS
30739fi
30740echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
30741echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
30742if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 30743 INET_LINK="resolv"
698dcdb6 30744else
0e012a93
VZ
30745
30746 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
e6cc62c6
VS
30747echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
30748if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
30749 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 30750else
e6cc62c6 30751 ac_check_lib_save_LIBS=$LIBS
3c011993 30752LIBS="-lsocket $LIBS"
e6cc62c6 30753cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30754/* confdefs.h. */
30755_ACEOF
30756cat confdefs.h >>conftest.$ac_ext
30757cat >>conftest.$ac_ext <<_ACEOF
30758/* end confdefs.h. */
30759
3c011993 30760/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30761#ifdef __cplusplus
30762extern "C"
30763#endif
3c011993 30764/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30765 builtin and then its argument prototype would still apply. */
30766char inet_addr ();
30767int
30768main ()
30769{
30770inet_addr ();
30771 ;
30772 return 0;
30773}
30774_ACEOF
30775rm -f conftest.$ac_objext conftest$ac_exeext
30776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30777 (eval $ac_link) 2>conftest.er1
e6cc62c6 30778 ac_status=$?
eea650d8
VS
30779 grep -v '^ *+' conftest.er1 >conftest.err
30780 rm -f conftest.er1
30781 cat conftest.err >&5
e6cc62c6
VS
30782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783 (exit $ac_status); } &&
eea650d8
VS
30784 { ac_try='test -z "$ac_c_werror_flag"
30785 || test ! -s conftest.err'
30786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30787 (eval $ac_try) 2>&5
30788 ac_status=$?
30789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30790 (exit $ac_status); }; } &&
30791 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30793 (eval $ac_try) 2>&5
30794 ac_status=$?
30795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30796 (exit $ac_status); }; }; then
30797 ac_cv_lib_socket_inet_addr=yes
30798else
30799 echo "$as_me: failed program was:" >&5
30800sed 's/^/| /' conftest.$ac_ext >&5
30801
30802ac_cv_lib_socket_inet_addr=no
30803fi
eea650d8
VS
30804rm -f conftest.err conftest.$ac_objext \
30805 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30806LIBS=$ac_check_lib_save_LIBS
30807fi
30808echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
30809echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
30810if test $ac_cv_lib_socket_inet_addr = yes; then
30811 INET_LINK="socket"
4f14bcd8 30812
8284b0c5 30813fi
e6cc62c6 30814
698dcdb6 30815
0e012a93 30816
7b4a847f 30817fi
e6cc62c6
VS
30818
30819
0e012a93 30820
a0b9e27f 30821fi
579d8138 30822
e6cc62c6
VS
30823
30824
5c6fa7d2 30825fi
e6cc62c6
VS
30826done
30827
30828
30829
30830for ac_func in inet_aton
30831do
30832as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30833echo "$as_me:$LINENO: checking for $ac_func" >&5
30834echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30835if eval "test \"\${$as_ac_var+set}\" = set"; then
30836 echo $ECHO_N "(cached) $ECHO_C" >&6
30837else
30838 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30839/* confdefs.h. */
30840_ACEOF
30841cat confdefs.h >>conftest.$ac_ext
30842cat >>conftest.$ac_ext <<_ACEOF
30843/* end confdefs.h. */
eea650d8
VS
30844/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30846#define $ac_func innocuous_$ac_func
30847
e6cc62c6
VS
30848/* System header to define __stub macros and hopefully few prototypes,
30849 which can conflict with char $ac_func (); below.
30850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30851 <limits.h> exists even on freestanding compilers. */
eea650d8 30852
e6cc62c6
VS
30853#ifdef __STDC__
30854# include <limits.h>
30855#else
30856# include <assert.h>
30857#endif
eea650d8
VS
30858
30859#undef $ac_func
30860
e6cc62c6
VS
30861/* Override any gcc2 internal prototype to avoid an error. */
30862#ifdef __cplusplus
30863extern "C"
30864{
30865#endif
30866/* We use char because int might match the return type of a gcc2
30867 builtin and then its argument prototype would still apply. */
30868char $ac_func ();
30869/* The GNU C library defines this for functions which it implements
30870 to always fail with ENOSYS. Some functions are actually named
30871 something starting with __ and the normal name is an alias. */
30872#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30873choke me
30874#else
30875char (*f) () = $ac_func;
30876#endif
30877#ifdef __cplusplus
30878}
30879#endif
30880
30881int
30882main ()
30883{
30884return f != $ac_func;
30885 ;
30886 return 0;
30887}
30888_ACEOF
30889rm -f conftest.$ac_objext conftest$ac_exeext
30890if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30891 (eval $ac_link) 2>conftest.er1
e6cc62c6 30892 ac_status=$?
eea650d8
VS
30893 grep -v '^ *+' conftest.er1 >conftest.err
30894 rm -f conftest.er1
30895 cat conftest.err >&5
e6cc62c6
VS
30896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30897 (exit $ac_status); } &&
eea650d8
VS
30898 { ac_try='test -z "$ac_c_werror_flag"
30899 || test ! -s conftest.err'
30900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30901 (eval $ac_try) 2>&5
30902 ac_status=$?
30903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30904 (exit $ac_status); }; } &&
30905 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30907 (eval $ac_try) 2>&5
30908 ac_status=$?
30909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910 (exit $ac_status); }; }; then
30911 eval "$as_ac_var=yes"
30912else
30913 echo "$as_me: failed program was:" >&5
30914sed 's/^/| /' conftest.$ac_ext >&5
30915
30916eval "$as_ac_var=no"
30917fi
eea650d8
VS
30918rm -f conftest.err conftest.$ac_objext \
30919 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30920fi
30921echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30922echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30923if test `eval echo '${'$as_ac_var'}'` = yes; then
30924 cat >>confdefs.h <<_ACEOF
30925#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30926_ACEOF
30927 cat >>confdefs.h <<\_ACEOF
30928#define HAVE_INET_ATON 1
30929_ACEOF
30930
30931else
30932
30933 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
30934echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
30935echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
30936if eval "test \"\${$as_ac_Lib+set}\" = set"; then
30937 echo $ECHO_N "(cached) $ECHO_C" >&6
30938else
30939 ac_check_lib_save_LIBS=$LIBS
30940LIBS="-l$INET_LINK $LIBS"
30941cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30942/* confdefs.h. */
30943_ACEOF
30944cat confdefs.h >>conftest.$ac_ext
30945cat >>conftest.$ac_ext <<_ACEOF
30946/* end confdefs.h. */
30947
30948/* Override any gcc2 internal prototype to avoid an error. */
30949#ifdef __cplusplus
30950extern "C"
30951#endif
30952/* We use char because int might match the return type of a gcc2
30953 builtin and then its argument prototype would still apply. */
30954char inet_aton ();
30955int
30956main ()
30957{
30958inet_aton ();
30959 ;
30960 return 0;
30961}
30962_ACEOF
30963rm -f conftest.$ac_objext conftest$ac_exeext
30964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 30965 (eval $ac_link) 2>conftest.er1
e6cc62c6 30966 ac_status=$?
eea650d8
VS
30967 grep -v '^ *+' conftest.er1 >conftest.err
30968 rm -f conftest.er1
30969 cat conftest.err >&5
e6cc62c6
VS
30970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30971 (exit $ac_status); } &&
eea650d8
VS
30972 { ac_try='test -z "$ac_c_werror_flag"
30973 || test ! -s conftest.err'
30974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30975 (eval $ac_try) 2>&5
30976 ac_status=$?
30977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978 (exit $ac_status); }; } &&
30979 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30981 (eval $ac_try) 2>&5
30982 ac_status=$?
30983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984 (exit $ac_status); }; }; then
30985 eval "$as_ac_Lib=yes"
30986else
30987 echo "$as_me: failed program was:" >&5
30988sed 's/^/| /' conftest.$ac_ext >&5
30989
30990eval "$as_ac_Lib=no"
30991fi
eea650d8
VS
30992rm -f conftest.err conftest.$ac_objext \
30993 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30994LIBS=$ac_check_lib_save_LIBS
30995fi
30996echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
30997echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
30998if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30999 cat >>confdefs.h <<\_ACEOF
31000#define HAVE_INET_ATON 1
31001_ACEOF
52127426 31002
a0b9e27f 31003fi
247f5006 31004
8284b0c5 31005
698dcdb6 31006fi
4f14bcd8
GD
31007done
31008
8284b0c5 31009
e6cc62c6
VS
31010if test "x$INET_LINK" != "x"; then
31011 cat >>confdefs.h <<\_ACEOF
31012#define HAVE_INET_ADDR 1
31013_ACEOF
31014
31015 INET_LINK=" -l$INET_LINK"
31016fi
31017
31018fi
a0b9e27f 31019
a0b9e27f 31020
4f14bcd8 31021
edd891e2
VS
31022EXTRALIBS_ESD=
31023echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
31024echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
31025if test "${ac_cv_lib_esd_esd_close+set}" = set; then
31026 echo $ECHO_N "(cached) $ECHO_C" >&6
31027else
31028 ac_check_lib_save_LIBS=$LIBS
31029LIBS="-lesd $LIBS"
31030cat >conftest.$ac_ext <<_ACEOF
edd891e2
VS
31031/* confdefs.h. */
31032_ACEOF
31033cat confdefs.h >>conftest.$ac_ext
31034cat >>conftest.$ac_ext <<_ACEOF
31035/* end confdefs.h. */
31036
31037/* Override any gcc2 internal prototype to avoid an error. */
31038#ifdef __cplusplus
31039extern "C"
31040#endif
31041/* We use char because int might match the return type of a gcc2
31042 builtin and then its argument prototype would still apply. */
31043char esd_close ();
31044int
31045main ()
31046{
31047esd_close ();
31048 ;
31049 return 0;
31050}
31051_ACEOF
31052rm -f conftest.$ac_objext conftest$ac_exeext
31053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 31054 (eval $ac_link) 2>conftest.er1
edd891e2 31055 ac_status=$?
eea650d8
VS
31056 grep -v '^ *+' conftest.er1 >conftest.err
31057 rm -f conftest.er1
31058 cat conftest.err >&5
edd891e2
VS
31059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31060 (exit $ac_status); } &&
eea650d8
VS
31061 { ac_try='test -z "$ac_c_werror_flag"
31062 || test ! -s conftest.err'
31063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31064 (eval $ac_try) 2>&5
31065 ac_status=$?
31066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31067 (exit $ac_status); }; } &&
31068 { ac_try='test -s conftest$ac_exeext'
edd891e2
VS
31069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31070 (eval $ac_try) 2>&5
31071 ac_status=$?
31072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31073 (exit $ac_status); }; }; then
31074 ac_cv_lib_esd_esd_close=yes
31075else
31076 echo "$as_me: failed program was:" >&5
31077sed 's/^/| /' conftest.$ac_ext >&5
31078
31079ac_cv_lib_esd_esd_close=no
31080fi
eea650d8
VS
31081rm -f conftest.err conftest.$ac_objext \
31082 conftest$ac_exeext conftest.$ac_ext
edd891e2
VS
31083LIBS=$ac_check_lib_save_LIBS
31084fi
31085echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
31086echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
31087if test $ac_cv_lib_esd_esd_close = yes; then
31088
31089
31090for ac_header in esd.h
31091do
31092as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31093if eval "test \"\${$as_ac_Header+set}\" = set"; then
31094 echo "$as_me:$LINENO: checking for $ac_header" >&5
31095echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31096if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
31097 echo $ECHO_N "(cached) $ECHO_C" >&6
31098fi
edd891e2
VS
31099echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31100echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
e6cc62c6
VS
31101else
31102 # Is the header compilable?
edd891e2
VS
31103echo "$as_me:$LINENO: checking $ac_header usability" >&5
31104echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6 31105cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31106/* confdefs.h. */
31107_ACEOF
31108cat confdefs.h >>conftest.$ac_ext
31109cat >>conftest.$ac_ext <<_ACEOF
31110/* end confdefs.h. */
31111$ac_includes_default
edd891e2 31112#include <$ac_header>
e6cc62c6
VS
31113_ACEOF
31114rm -f conftest.$ac_objext
31115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 31116 (eval $ac_compile) 2>conftest.er1
e6cc62c6 31117 ac_status=$?
eea650d8
VS
31118 grep -v '^ *+' conftest.er1 >conftest.err
31119 rm -f conftest.er1
31120 cat conftest.err >&5
e6cc62c6
VS
31121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31122 (exit $ac_status); } &&
eea650d8
VS
31123 { ac_try='test -z "$ac_c_werror_flag"
31124 || test ! -s conftest.err'
31125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31126 (eval $ac_try) 2>&5
31127 ac_status=$?
31128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31129 (exit $ac_status); }; } &&
31130 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
31131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31132 (eval $ac_try) 2>&5
31133 ac_status=$?
31134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31135 (exit $ac_status); }; }; then
31136 ac_header_compiler=yes
31137else
31138 echo "$as_me: failed program was:" >&5
31139sed 's/^/| /' conftest.$ac_ext >&5
31140
31141ac_header_compiler=no
31142fi
eea650d8 31143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
31144echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31145echo "${ECHO_T}$ac_header_compiler" >&6
31146
31147# Is the header present?
edd891e2
VS
31148echo "$as_me:$LINENO: checking $ac_header presence" >&5
31149echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
e6cc62c6 31150cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31151/* confdefs.h. */
31152_ACEOF
31153cat confdefs.h >>conftest.$ac_ext
31154cat >>conftest.$ac_ext <<_ACEOF
31155/* end confdefs.h. */
edd891e2 31156#include <$ac_header>
e6cc62c6
VS
31157_ACEOF
31158if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31160 ac_status=$?
31161 grep -v '^ *+' conftest.er1 >conftest.err
31162 rm -f conftest.er1
31163 cat conftest.err >&5
31164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31165 (exit $ac_status); } >/dev/null; then
31166 if test -s conftest.err; then
31167 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 31168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
31169 else
31170 ac_cpp_err=
31171 fi
a0b9e27f 31172else
e6cc62c6
VS
31173 ac_cpp_err=yes
31174fi
31175if test -z "$ac_cpp_err"; then
31176 ac_header_preproc=yes
31177else
31178 echo "$as_me: failed program was:" >&5
31179sed 's/^/| /' conftest.$ac_ext >&5
31180
31181 ac_header_preproc=no
31182fi
31183rm -f conftest.err conftest.$ac_ext
31184echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31185echo "${ECHO_T}$ac_header_preproc" >&6
31186
31187# So? What about this header?
eea650d8
VS
31188case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31189 yes:no: )
edd891e2
VS
31190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31191echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
31192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31193echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31194 ac_header_preproc=yes
e6cc62c6 31195 ;;
eea650d8 31196 no:yes:* )
edd891e2
VS
31197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31198echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
31199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31200echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31202echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31204echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
edd891e2
VS
31205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31206echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
31207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31208echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
31209 (
31210 cat <<\_ASBOX
eea650d8
VS
31211## ----------------------------------------- ##
31212## Report this to wx-dev@lists.wxwindows.org ##
31213## ----------------------------------------- ##
e6cc62c6
VS
31214_ASBOX
31215 ) |
31216 sed "s/^/$as_me: WARNING: /" >&2
31217 ;;
31218esac
edd891e2
VS
31219echo "$as_me:$LINENO: checking for $ac_header" >&5
31220echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31221if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
31222 echo $ECHO_N "(cached) $ECHO_C" >&6
31223else
eea650d8 31224 eval "$as_ac_Header=\$ac_header_preproc"
a0b9e27f 31225fi
edd891e2
VS
31226echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31227echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a0b9e27f 31228
e6cc62c6 31229fi
edd891e2
VS
31230if test `eval echo '${'$as_ac_Header'}'` = yes; then
31231 cat >>confdefs.h <<_ACEOF
31232#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e6cc62c6 31233_ACEOF
e6cc62c6 31234
edd891e2 31235 EXTRALIBS_ESD="-lesd"
4f14bcd8 31236
a0b9e27f 31237fi
247f5006 31238
edd891e2 31239done
8284b0c5 31240
4f14bcd8 31241
6232543b 31242fi
10f2d63a 31243
703e0a69 31244
8284b0c5 31245
d19d1899
MB
31246echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31247echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31248cat >conftest.$ac_ext <<_ACEOF
d19d1899
MB
31249/* confdefs.h. */
31250_ACEOF
31251cat confdefs.h >>conftest.$ac_ext
31252cat >>conftest.$ac_ext <<_ACEOF
31253/* end confdefs.h. */
31254#ifdef __linux__
31255 #include <linux/cdrom.h>
31256 #else
31257 /* For Solaris */
31258 #include <sys/cdio.h>
31259 #endif
31260
31261int
31262main ()
31263{
31264struct cdrom_tocentry entry, old_entry;
31265 ;
31266 return 0;
31267}
31268_ACEOF
31269rm -f conftest.$ac_objext
31270if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 31271 (eval $ac_compile) 2>conftest.er1
d19d1899 31272 ac_status=$?
eea650d8
VS
31273 grep -v '^ *+' conftest.er1 >conftest.err
31274 rm -f conftest.er1
31275 cat conftest.err >&5
d19d1899
MB
31276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31277 (exit $ac_status); } &&
eea650d8
VS
31278 { ac_try='test -z "$ac_c_werror_flag"
31279 || test ! -s conftest.err'
31280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31281 (eval $ac_try) 2>&5
31282 ac_status=$?
31283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31284 (exit $ac_status); }; } &&
31285 { ac_try='test -s conftest.$ac_objext'
d19d1899
MB
31286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31287 (eval $ac_try) 2>&5
31288 ac_status=$?
31289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31290 (exit $ac_status); }; }; then
31291 echo "$as_me:$LINENO: result: yes" >&5
31292echo "${ECHO_T}yes" >&6
31293 cat >>confdefs.h <<\_ACEOF
31294#define HAVE_KNOWN_CDROM_INTERFACE 1
31295_ACEOF
31296
31297else
31298 echo "$as_me: failed program was:" >&5
31299sed 's/^/| /' conftest.$ac_ext >&5
31300
31301echo "$as_me:$LINENO: result: no" >&5
31302echo "${ECHO_T}no" >&6
31303fi
eea650d8 31304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
31305
31306
31307cat >confcache <<\_ACEOF
4f14bcd8
GD
31308# This file is a shell script that caches the results of configure
31309# tests run on this system so they can be shared between configure
e6cc62c6
VS
31310# scripts and configure runs, see configure's option --config-cache.
31311# It is not useful on other systems. If it contains results you don't
31312# want to keep, you may remove or edit it.
4f14bcd8 31313#
e6cc62c6
VS
31314# config.status only pays attention to the cache file if you give it
31315# the --recheck option to rerun configure.
4f14bcd8 31316#
e6cc62c6
VS
31317# `ac_cv_env_foo' variables (set or unset) will be overridden when
31318# loading this file, other *unset* `ac_cv_foo' will be assigned the
31319# following values.
31320
31321_ACEOF
31322
4f14bcd8
GD
31323# The following way of writing the cache mishandles newlines in values,
31324# but we know of no workaround that is simple, portable, and efficient.
31325# So, don't put newlines in cache variables' values.
31326# Ultrix sh set writes to stderr and can't be redirected directly,
31327# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
31328{
31329 (set) 2>&1 |
31330 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31331 *ac_space=\ *)
31332 # `set' does not quote correctly, so add quotes (double-quote
31333 # substitution turns \\\\ into \\, and sed turns \\ into \).
31334 sed -n \
eea650d8
VS
31335 "s/'/'\\\\''/g;
31336 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
31337 ;;
31338 *)
31339 # `set' quotes correctly as required by POSIX, so do not add quotes.
31340 sed -n \
eea650d8 31341 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
31342 ;;
31343 esac;
31344} |
31345 sed '
31346 t clear
31347 : clear
31348 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31349 t end
31350 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31351 : end' >>confcache
31352if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 31353 if test -w $cache_file; then
e6cc62c6
VS
31354 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31355 cat confcache >$cache_file
f6bcfd97 31356 else
4f14bcd8 31357 echo "not updating unwritable cache $cache_file"
f6bcfd97 31358 fi
4f14bcd8
GD
31359fi
31360rm -f confcache
f6bcfd97 31361
8284b0c5 31362
009fead0 31363CPP_MT_FLAG=
73d617c9 31364if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
4f14bcd8 31365
e6cc62c6 31366
7274f1c7 31367 THREADS_LINK=
009fead0 31368 THREADS_CFLAGS=
7274f1c7
RL
31369
31370 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 31371 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
31372 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31373echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
31374 wxUSE_THREADS="no"
31375 fi
4f14bcd8 31376 fi
4f14bcd8 31377
7274f1c7 31378 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
31379
31380
009fead0
VZ
31381 THREAD_OPTS="-pthread"
31382 case "${host}" in
31383 *-*-solaris2* | *-*-sunos4* )
31384 if test "x$GCC" = "xyes"; then
126be6b4 31385 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
31386 else
31387 THREAD_OPTS="-mt $THREAD_OPTS"
31388 fi
31389 ;;
31390 *-*-freebsd*)
31391 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31392 ;;
17234b26
MB
31393 *-*-darwin* | *-*-cygwin* )
31394 THREAD_OPTS=""
4101db81 31395 ;;
8f4a9a10 31396 *-*-aix*)
009fead0
VZ
31397 THREAD_OPTS="pthreads"
31398 ;;
4f5a7f74
VZ
31399 *-hp-hpux* )
31400 if test "x$GCC" != "xyes"; then
31401 THREAD_OPTS=""
31402 fi
89e3b3e4
VZ
31403 ;;
31404
31405 *-*-irix* )
31406 if test "x$GCC" = "xyes"; then
31407 THREAD_OPTS=""
31408 fi
31409 ;;
31410
31411 *-*-*UnixWare*)
31412 if test "x$GCC" != "xyes"; then
31413 THREAD_OPTS="-Ethread"
31414 fi
31415 ;;
009fead0 31416 esac
4f14bcd8 31417
02a1dfba 31418 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 31419
009fead0
VZ
31420 THREADS_OK=no
31421 for flag in $THREAD_OPTS; do
31422 case $flag in
31423 none)
e6cc62c6
VS
31424 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31425echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 31426 ;;
698dcdb6 31427
009fead0 31428 -*)
e6cc62c6
VS
31429 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31430echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
31431 THREADS_CFLAGS="$flag"
31432 ;;
698dcdb6 31433
009fead0 31434 *)
e6cc62c6
VS
31435 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31436echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
31437 THREADS_LINK="-l$flag"
31438 ;;
31439 esac
10f2d63a 31440
009fead0
VZ
31441 save_LIBS="$LIBS"
31442 save_CFLAGS="$CFLAGS"
31443 LIBS="$THREADS_LINK $LIBS"
04727afd 31444 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 31445
e6cc62c6 31446 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31447/* confdefs.h. */
31448_ACEOF
31449cat confdefs.h >>conftest.$ac_ext
31450cat >>conftest.$ac_ext <<_ACEOF
31451/* end confdefs.h. */
009fead0 31452#include <pthread.h>
e6cc62c6
VS
31453int
31454main ()
31455{
009fead0 31456pthread_create(0,0,0,0);
e6cc62c6
VS
31457 ;
31458 return 0;
31459}
31460_ACEOF
31461rm -f conftest.$ac_objext conftest$ac_exeext
31462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 31463 (eval $ac_link) 2>conftest.er1
e6cc62c6 31464 ac_status=$?
eea650d8
VS
31465 grep -v '^ *+' conftest.er1 >conftest.err
31466 rm -f conftest.er1
31467 cat conftest.err >&5
e6cc62c6
VS
31468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31469 (exit $ac_status); } &&
eea650d8
VS
31470 { ac_try='test -z "$ac_c_werror_flag"
31471 || test ! -s conftest.err'
31472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31473 (eval $ac_try) 2>&5
31474 ac_status=$?
31475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31476 (exit $ac_status); }; } &&
31477 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31479 (eval $ac_try) 2>&5
31480 ac_status=$?
31481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31482 (exit $ac_status); }; }; then
009fead0 31483 THREADS_OK=yes
10f2d63a 31484else
e6cc62c6
VS
31485 echo "$as_me: failed program was:" >&5
31486sed 's/^/| /' conftest.$ac_ext >&5
31487
6232543b 31488fi
eea650d8
VS
31489rm -f conftest.err conftest.$ac_objext \
31490 conftest$ac_exeext conftest.$ac_ext
698dcdb6 31491
009fead0
VZ
31492 LIBS="$save_LIBS"
31493 CFLAGS="$save_CFLAGS"
d9b9876f 31494
e6cc62c6
VS
31495 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31496echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
31497 if test "x$THREADS_OK" = "xyes"; then
31498 break;
31499 fi
d9b9876f 31500
009fead0
VZ
31501 THREADS_LINK=""
31502 THREADS_CFLAGS=""
31503 done
4f14bcd8 31504
009fead0
VZ
31505 if test "x$THREADS_OK" != "xyes"; then
31506 wxUSE_THREADS=no
e6cc62c6
VS
31507 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
31508echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 31509 else
db82f09e
VZ
31510 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
31511 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 31512
e6cc62c6
VS
31513 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
31514echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
31515 flag=no
31516 case "${host}" in
2b5f62a0
VZ
31517 *-aix*)
31518 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
31519 flag="-D_THREAD_SAFE"
31520 ;;
31521 *-freebsd*)
009fead0
VZ
31522 flag="-D_THREAD_SAFE"
31523 ;;
06313569
GD
31524 *-hp-hpux* )
31525 flag="-D_REENTRANT"
4f5a7f74
VZ
31526 if test "x$GCC" != "xyes"; then
31527 flag="$flag -D_RWSTD_MULTI_THREAD"
31528 fi
06313569 31529 ;;
009fead0
VZ
31530 *solaris* | alpha*-osf*)
31531 flag="-D_REENTRANT"
31532 ;;
31533 esac
e6cc62c6
VS
31534 echo "$as_me:$LINENO: result: ${flag}" >&5
31535echo "${ECHO_T}${flag}" >&6
009fead0 31536 if test "x$flag" != xno; then
04727afd 31537 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
31538 fi
31539
009fead0 31540 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 31541 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
31542 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
31543 fi
31544 fi
4f14bcd8 31545 fi
4f14bcd8 31546
7274f1c7 31547 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
31548
31549for ac_func in thr_setconcurrency
4f14bcd8 31550do
e6cc62c6
VS
31551as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31552echo "$as_me:$LINENO: checking for $ac_func" >&5
31553echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31554if eval "test \"\${$as_ac_var+set}\" = set"; then
31555 echo $ECHO_N "(cached) $ECHO_C" >&6
31556else
31557 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31558/* confdefs.h. */
31559_ACEOF
31560cat confdefs.h >>conftest.$ac_ext
31561cat >>conftest.$ac_ext <<_ACEOF
31562/* end confdefs.h. */
eea650d8
VS
31563/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31565#define $ac_func innocuous_$ac_func
31566
4f14bcd8 31567/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31568 which can conflict with char $ac_func (); below.
31569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31570 <limits.h> exists even on freestanding compilers. */
eea650d8 31571
e6cc62c6
VS
31572#ifdef __STDC__
31573# include <limits.h>
31574#else
31575# include <assert.h>
31576#endif
eea650d8
VS
31577
31578#undef $ac_func
31579
4f14bcd8 31580/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31581#ifdef __cplusplus
31582extern "C"
31583{
31584#endif
4f14bcd8 31585/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31586 builtin and then its argument prototype would still apply. */
31587char $ac_func ();
4f14bcd8
GD
31588/* The GNU C library defines this for functions which it implements
31589 to always fail with ENOSYS. Some functions are actually named
31590 something starting with __ and the normal name is an alias. */
31591#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31592choke me
31593#else
e6cc62c6
VS
31594char (*f) () = $ac_func;
31595#endif
31596#ifdef __cplusplus
31597}
4f14bcd8
GD
31598#endif
31599
e6cc62c6
VS
31600int
31601main ()
31602{
31603return f != $ac_func;
31604 ;
31605 return 0;
31606}
31607_ACEOF
31608rm -f conftest.$ac_objext conftest$ac_exeext
31609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 31610 (eval $ac_link) 2>conftest.er1
e6cc62c6 31611 ac_status=$?
eea650d8
VS
31612 grep -v '^ *+' conftest.er1 >conftest.err
31613 rm -f conftest.er1
31614 cat conftest.err >&5
e6cc62c6
VS
31615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31616 (exit $ac_status); } &&
eea650d8
VS
31617 { ac_try='test -z "$ac_c_werror_flag"
31618 || test ! -s conftest.err'
31619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31620 (eval $ac_try) 2>&5
31621 ac_status=$?
31622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31623 (exit $ac_status); }; } &&
31624 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31626 (eval $ac_try) 2>&5
31627 ac_status=$?
31628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31629 (exit $ac_status); }; }; then
31630 eval "$as_ac_var=yes"
31631else
31632 echo "$as_me: failed program was:" >&5
31633sed 's/^/| /' conftest.$ac_ext >&5
31634
31635eval "$as_ac_var=no"
31636fi
eea650d8
VS
31637rm -f conftest.err conftest.$ac_objext \
31638 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31639fi
31640echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31641echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31642if test `eval echo '${'$as_ac_var'}'` = yes; then
31643 cat >>confdefs.h <<_ACEOF
31644#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31645_ACEOF
698dcdb6 31646
10f2d63a 31647fi
4f14bcd8 31648done
10f2d63a 31649
8284b0c5 31650
e6cc62c6
VS
31651
31652for ac_header in sched.h
4f14bcd8 31653do
e6cc62c6
VS
31654as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31655if eval "test \"\${$as_ac_Header+set}\" = set"; then
31656 echo "$as_me:$LINENO: checking for $ac_header" >&5
31657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31658if eval "test \"\${$as_ac_Header+set}\" = set"; then
31659 echo $ECHO_N "(cached) $ECHO_C" >&6
31660fi
31661echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31662echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31663else
31664 # Is the header compilable?
31665echo "$as_me:$LINENO: checking $ac_header usability" >&5
31666echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31667cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31668/* confdefs.h. */
31669_ACEOF
31670cat confdefs.h >>conftest.$ac_ext
31671cat >>conftest.$ac_ext <<_ACEOF
31672/* end confdefs.h. */
31673$ac_includes_default
31674#include <$ac_header>
31675_ACEOF
31676rm -f conftest.$ac_objext
31677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 31678 (eval $ac_compile) 2>conftest.er1
e6cc62c6 31679 ac_status=$?
eea650d8
VS
31680 grep -v '^ *+' conftest.er1 >conftest.err
31681 rm -f conftest.er1
31682 cat conftest.err >&5
e6cc62c6
VS
31683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31684 (exit $ac_status); } &&
eea650d8
VS
31685 { ac_try='test -z "$ac_c_werror_flag"
31686 || test ! -s conftest.err'
31687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31688 (eval $ac_try) 2>&5
31689 ac_status=$?
31690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31691 (exit $ac_status); }; } &&
31692 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
31693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31694 (eval $ac_try) 2>&5
31695 ac_status=$?
31696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31697 (exit $ac_status); }; }; then
31698 ac_header_compiler=yes
31699else
31700 echo "$as_me: failed program was:" >&5
31701sed 's/^/| /' conftest.$ac_ext >&5
31702
31703ac_header_compiler=no
31704fi
eea650d8 31705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
31706echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31707echo "${ECHO_T}$ac_header_compiler" >&6
31708
31709# Is the header present?
31710echo "$as_me:$LINENO: checking $ac_header presence" >&5
31711echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31712cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31713/* confdefs.h. */
31714_ACEOF
31715cat confdefs.h >>conftest.$ac_ext
31716cat >>conftest.$ac_ext <<_ACEOF
31717/* end confdefs.h. */
31718#include <$ac_header>
31719_ACEOF
31720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31722 ac_status=$?
31723 grep -v '^ *+' conftest.er1 >conftest.err
31724 rm -f conftest.er1
31725 cat conftest.err >&5
31726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31727 (exit $ac_status); } >/dev/null; then
31728 if test -s conftest.err; then
31729 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 31730 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
31731 else
31732 ac_cpp_err=
31733 fi
31734else
31735 ac_cpp_err=yes
31736fi
31737if test -z "$ac_cpp_err"; then
31738 ac_header_preproc=yes
31739else
31740 echo "$as_me: failed program was:" >&5
31741sed 's/^/| /' conftest.$ac_ext >&5
31742
31743 ac_header_preproc=no
31744fi
31745rm -f conftest.err conftest.$ac_ext
31746echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31747echo "${ECHO_T}$ac_header_preproc" >&6
31748
31749# So? What about this header?
eea650d8
VS
31750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31751 yes:no: )
e6cc62c6
VS
31752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31753echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
31754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31755echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31756 ac_header_preproc=yes
e6cc62c6 31757 ;;
eea650d8 31758 no:yes:* )
e6cc62c6
VS
31759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31760echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
31761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31762echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31763 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31764echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31765 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31766echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
31767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31768echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
31769 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31770echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
31771 (
31772 cat <<\_ASBOX
eea650d8
VS
31773## ----------------------------------------- ##
31774## Report this to wx-dev@lists.wxwindows.org ##
31775## ----------------------------------------- ##
e6cc62c6
VS
31776_ASBOX
31777 ) |
31778 sed "s/^/$as_me: WARNING: /" >&2
31779 ;;
31780esac
31781echo "$as_me:$LINENO: checking for $ac_header" >&5
31782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31783if eval "test \"\${$as_ac_Header+set}\" = set"; then
31784 echo $ECHO_N "(cached) $ECHO_C" >&6
31785else
eea650d8 31786 eval "$as_ac_Header=\$ac_header_preproc"
13111b2a 31787fi
e6cc62c6
VS
31788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31790
10f2d63a 31791fi
e6cc62c6
VS
31792if test `eval echo '${'$as_ac_Header'}'` = yes; then
31793 cat >>confdefs.h <<_ACEOF
31794#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31795_ACEOF
31796
f6bcfd97 31797fi
e6cc62c6 31798
4f14bcd8 31799done
f6bcfd97 31800
009fead0 31801 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
31802 echo "$as_me:$LINENO: checking for sched_yield" >&5
31803echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
31804if test "${ac_cv_func_sched_yield+set}" = set; then
31805 echo $ECHO_N "(cached) $ECHO_C" >&6
31806else
31807 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31808/* confdefs.h. */
31809_ACEOF
31810cat confdefs.h >>conftest.$ac_ext
31811cat >>conftest.$ac_ext <<_ACEOF
31812/* end confdefs.h. */
eea650d8
VS
31813/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
31814 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31815#define sched_yield innocuous_sched_yield
31816
009fead0 31817/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31818 which can conflict with char sched_yield (); below.
31819 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31820 <limits.h> exists even on freestanding compilers. */
eea650d8 31821
e6cc62c6
VS
31822#ifdef __STDC__
31823# include <limits.h>
31824#else
31825# include <assert.h>
31826#endif
eea650d8
VS
31827
31828#undef sched_yield
31829
4f14bcd8 31830/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31831#ifdef __cplusplus
31832extern "C"
31833{
31834#endif
4f14bcd8 31835/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31836 builtin and then its argument prototype would still apply. */
31837char sched_yield ();
009fead0
VZ
31838/* The GNU C library defines this for functions which it implements
31839 to always fail with ENOSYS. Some functions are actually named
31840 something starting with __ and the normal name is an alias. */
31841#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
31842choke me
31843#else
e6cc62c6
VS
31844char (*f) () = sched_yield;
31845#endif
31846#ifdef __cplusplus
31847}
009fead0
VZ
31848#endif
31849
e6cc62c6
VS
31850int
31851main ()
31852{
31853return f != sched_yield;
31854 ;
31855 return 0;
31856}
31857_ACEOF
31858rm -f conftest.$ac_objext conftest$ac_exeext
31859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 31860 (eval $ac_link) 2>conftest.er1
e6cc62c6 31861 ac_status=$?
eea650d8
VS
31862 grep -v '^ *+' conftest.er1 >conftest.err
31863 rm -f conftest.er1
31864 cat conftest.err >&5
e6cc62c6
VS
31865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31866 (exit $ac_status); } &&
eea650d8
VS
31867 { ac_try='test -z "$ac_c_werror_flag"
31868 || test ! -s conftest.err'
31869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31870 (eval $ac_try) 2>&5
31871 ac_status=$?
31872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31873 (exit $ac_status); }; } &&
31874 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31876 (eval $ac_try) 2>&5
31877 ac_status=$?
31878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31879 (exit $ac_status); }; }; then
31880 ac_cv_func_sched_yield=yes
31881else
31882 echo "$as_me: failed program was:" >&5
31883sed 's/^/| /' conftest.$ac_ext >&5
31884
31885ac_cv_func_sched_yield=no
31886fi
eea650d8
VS
31887rm -f conftest.err conftest.$ac_objext \
31888 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31889fi
31890echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
31891echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
31892if test $ac_cv_func_sched_yield = yes; then
31893 cat >>confdefs.h <<\_ACEOF
4f14bcd8 31894#define HAVE_SCHED_YIELD 1
e6cc62c6 31895_ACEOF
10f2d63a 31896
4f14bcd8 31897else
009fead0 31898
e6cc62c6
VS
31899 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
31900echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
31901if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
31902 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 31903else
e6cc62c6 31904 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 31905LIBS="-lposix4 $LIBS"
e6cc62c6 31906cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31907/* confdefs.h. */
31908_ACEOF
31909cat confdefs.h >>conftest.$ac_ext
31910cat >>conftest.$ac_ext <<_ACEOF
31911/* end confdefs.h. */
31912
4f14bcd8 31913/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31914#ifdef __cplusplus
31915extern "C"
31916#endif
4f14bcd8 31917/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31918 builtin and then its argument prototype would still apply. */
31919char sched_yield ();
31920int
31921main ()
31922{
31923sched_yield ();
31924 ;
31925 return 0;
31926}
31927_ACEOF
31928rm -f conftest.$ac_objext conftest$ac_exeext
31929if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 31930 (eval $ac_link) 2>conftest.er1
e6cc62c6 31931 ac_status=$?
eea650d8
VS
31932 grep -v '^ *+' conftest.er1 >conftest.err
31933 rm -f conftest.er1
31934 cat conftest.err >&5
e6cc62c6
VS
31935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31936 (exit $ac_status); } &&
eea650d8
VS
31937 { ac_try='test -z "$ac_c_werror_flag"
31938 || test ! -s conftest.err'
31939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31940 (eval $ac_try) 2>&5
31941 ac_status=$?
31942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31943 (exit $ac_status); }; } &&
31944 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31946 (eval $ac_try) 2>&5
31947 ac_status=$?
31948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31949 (exit $ac_status); }; }; then
31950 ac_cv_lib_posix4_sched_yield=yes
31951else
31952 echo "$as_me: failed program was:" >&5
31953sed 's/^/| /' conftest.$ac_ext >&5
31954
31955ac_cv_lib_posix4_sched_yield=no
31956fi
eea650d8
VS
31957rm -f conftest.err conftest.$ac_objext \
31958 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31959LIBS=$ac_check_lib_save_LIBS
31960fi
31961echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
31962echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
31963if test $ac_cv_lib_posix4_sched_yield = yes; then
31964 cat >>confdefs.h <<\_ACEOF
4f14bcd8 31965#define HAVE_SCHED_YIELD 1
e6cc62c6 31966_ACEOF
3d63bc3a 31967 POSIX4_LINK=" -lposix4"
4f14bcd8 31968else
e6cc62c6
VS
31969 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
31970echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
31971
54276ccf
VZ
31972fi
31973
e6cc62c6
VS
31974
31975
4f14bcd8 31976fi
698dcdb6 31977
009fead0 31978 fi
10f2d63a 31979
7274f1c7 31980 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
31981 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
31982echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
31983if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
31984 echo $ECHO_N "(cached) $ECHO_C" >&6
31985else
31986 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31987/* confdefs.h. */
31988_ACEOF
31989cat confdefs.h >>conftest.$ac_ext
31990cat >>conftest.$ac_ext <<_ACEOF
31991/* end confdefs.h. */
eea650d8
VS
31992/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
31993 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31994#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
31995
009fead0 31996/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31997 which can conflict with char pthread_attr_getschedpolicy (); below.
31998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31999 <limits.h> exists even on freestanding compilers. */
eea650d8 32000
e6cc62c6
VS
32001#ifdef __STDC__
32002# include <limits.h>
32003#else
32004# include <assert.h>
32005#endif
eea650d8
VS
32006
32007#undef pthread_attr_getschedpolicy
32008
4f14bcd8 32009/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32010#ifdef __cplusplus
32011extern "C"
32012{
32013#endif
4f14bcd8 32014/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32015 builtin and then its argument prototype would still apply. */
32016char pthread_attr_getschedpolicy ();
009fead0
VZ
32017/* The GNU C library defines this for functions which it implements
32018 to always fail with ENOSYS. Some functions are actually named
32019 something starting with __ and the normal name is an alias. */
32020#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
32021choke me
32022#else
e6cc62c6
VS
32023char (*f) () = pthread_attr_getschedpolicy;
32024#endif
32025#ifdef __cplusplus
32026}
009fead0
VZ
32027#endif
32028
e6cc62c6
VS
32029int
32030main ()
32031{
32032return f != pthread_attr_getschedpolicy;
32033 ;
32034 return 0;
32035}
32036_ACEOF
32037rm -f conftest.$ac_objext conftest$ac_exeext
32038if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 32039 (eval $ac_link) 2>conftest.er1
e6cc62c6 32040 ac_status=$?
eea650d8
VS
32041 grep -v '^ *+' conftest.er1 >conftest.err
32042 rm -f conftest.er1
32043 cat conftest.err >&5
e6cc62c6
VS
32044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32045 (exit $ac_status); } &&
eea650d8
VS
32046 { ac_try='test -z "$ac_c_werror_flag"
32047 || test ! -s conftest.err'
32048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32049 (eval $ac_try) 2>&5
32050 ac_status=$?
32051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32052 (exit $ac_status); }; } &&
32053 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32055 (eval $ac_try) 2>&5
32056 ac_status=$?
32057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32058 (exit $ac_status); }; }; then
32059 ac_cv_func_pthread_attr_getschedpolicy=yes
32060else
32061 echo "$as_me: failed program was:" >&5
32062sed 's/^/| /' conftest.$ac_ext >&5
32063
32064ac_cv_func_pthread_attr_getschedpolicy=no
32065fi
eea650d8
VS
32066rm -f conftest.err conftest.$ac_objext \
32067 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32068fi
32069echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
32070echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
32071if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
32072 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
32073echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
32074if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
32075 echo $ECHO_N "(cached) $ECHO_C" >&6
32076else
32077 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32078/* confdefs.h. */
32079_ACEOF
32080cat confdefs.h >>conftest.$ac_ext
32081cat >>conftest.$ac_ext <<_ACEOF
32082/* end confdefs.h. */
eea650d8
VS
32083/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
32084 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32085#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
32086
a0b9e27f 32087/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32088 which can conflict with char pthread_attr_setschedparam (); below.
32089 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32090 <limits.h> exists even on freestanding compilers. */
eea650d8 32091
e6cc62c6
VS
32092#ifdef __STDC__
32093# include <limits.h>
32094#else
32095# include <assert.h>
32096#endif
eea650d8
VS
32097
32098#undef pthread_attr_setschedparam
32099
422107f9 32100/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32101#ifdef __cplusplus
32102extern "C"
32103{
32104#endif
422107f9 32105/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32106 builtin and then its argument prototype would still apply. */
32107char pthread_attr_setschedparam ();
009fead0
VZ
32108/* The GNU C library defines this for functions which it implements
32109 to always fail with ENOSYS. Some functions are actually named
32110 something starting with __ and the normal name is an alias. */
32111#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32112choke me
32113#else
e6cc62c6
VS
32114char (*f) () = pthread_attr_setschedparam;
32115#endif
32116#ifdef __cplusplus
32117}
009fead0
VZ
32118#endif
32119
e6cc62c6
VS
32120int
32121main ()
32122{
32123return f != pthread_attr_setschedparam;
32124 ;
32125 return 0;
32126}
32127_ACEOF
32128rm -f conftest.$ac_objext conftest$ac_exeext
32129if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 32130 (eval $ac_link) 2>conftest.er1
e6cc62c6 32131 ac_status=$?
eea650d8
VS
32132 grep -v '^ *+' conftest.er1 >conftest.err
32133 rm -f conftest.er1
32134 cat conftest.err >&5
e6cc62c6
VS
32135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32136 (exit $ac_status); } &&
eea650d8
VS
32137 { ac_try='test -z "$ac_c_werror_flag"
32138 || test ! -s conftest.err'
32139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32140 (eval $ac_try) 2>&5
32141 ac_status=$?
32142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32143 (exit $ac_status); }; } &&
32144 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32146 (eval $ac_try) 2>&5
32147 ac_status=$?
32148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32149 (exit $ac_status); }; }; then
32150 ac_cv_func_pthread_attr_setschedparam=yes
32151else
32152 echo "$as_me: failed program was:" >&5
32153sed 's/^/| /' conftest.$ac_ext >&5
32154
32155ac_cv_func_pthread_attr_setschedparam=no
32156fi
eea650d8
VS
32157rm -f conftest.err conftest.$ac_objext \
32158 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32159fi
32160echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32161echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32162if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32163 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32164echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32165if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32166 echo $ECHO_N "(cached) $ECHO_C" >&6
32167else
32168 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32169/* confdefs.h. */
32170_ACEOF
32171cat confdefs.h >>conftest.$ac_ext
32172cat >>conftest.$ac_ext <<_ACEOF
32173/* end confdefs.h. */
eea650d8
VS
32174/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32175 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32176#define sched_get_priority_max innocuous_sched_get_priority_max
32177
ef33c576 32178/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32179 which can conflict with char sched_get_priority_max (); below.
32180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32181 <limits.h> exists even on freestanding compilers. */
eea650d8 32182
e6cc62c6
VS
32183#ifdef __STDC__
32184# include <limits.h>
32185#else
32186# include <assert.h>
32187#endif
eea650d8
VS
32188
32189#undef sched_get_priority_max
32190
4f14bcd8 32191/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32192#ifdef __cplusplus
32193extern "C"
32194{
32195#endif
4f14bcd8 32196/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32197 builtin and then its argument prototype would still apply. */
32198char sched_get_priority_max ();
009fead0
VZ
32199/* The GNU C library defines this for functions which it implements
32200 to always fail with ENOSYS. Some functions are actually named
32201 something starting with __ and the normal name is an alias. */
32202#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32203choke me
32204#else
e6cc62c6
VS
32205char (*f) () = sched_get_priority_max;
32206#endif
32207#ifdef __cplusplus
32208}
009fead0
VZ
32209#endif
32210
e6cc62c6
VS
32211int
32212main ()
32213{
32214return f != sched_get_priority_max;
32215 ;
32216 return 0;
32217}
32218_ACEOF
32219rm -f conftest.$ac_objext conftest$ac_exeext
32220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 32221 (eval $ac_link) 2>conftest.er1
e6cc62c6 32222 ac_status=$?
eea650d8
VS
32223 grep -v '^ *+' conftest.er1 >conftest.err
32224 rm -f conftest.er1
32225 cat conftest.err >&5
e6cc62c6
VS
32226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32227 (exit $ac_status); } &&
eea650d8
VS
32228 { ac_try='test -z "$ac_c_werror_flag"
32229 || test ! -s conftest.err'
32230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32231 (eval $ac_try) 2>&5
32232 ac_status=$?
32233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32234 (exit $ac_status); }; } &&
32235 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32237 (eval $ac_try) 2>&5
32238 ac_status=$?
32239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32240 (exit $ac_status); }; }; then
32241 ac_cv_func_sched_get_priority_max=yes
32242else
32243 echo "$as_me: failed program was:" >&5
32244sed 's/^/| /' conftest.$ac_ext >&5
32245
32246ac_cv_func_sched_get_priority_max=no
32247fi
eea650d8
VS
32248rm -f conftest.err conftest.$ac_objext \
32249 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32250fi
32251echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32252echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32253if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
32254 HAVE_PRIOR_FUNCS=1
32255else
e6cc62c6
VS
32256 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32257echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32258if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32259 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 32260else
e6cc62c6 32261 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 32262LIBS="-lposix4 $LIBS"
e6cc62c6 32263cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32264/* confdefs.h. */
32265_ACEOF
32266cat confdefs.h >>conftest.$ac_ext
32267cat >>conftest.$ac_ext <<_ACEOF
32268/* end confdefs.h. */
32269
422107f9 32270/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32271#ifdef __cplusplus
32272extern "C"
32273#endif
422107f9 32274/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32275 builtin and then its argument prototype would still apply. */
32276char sched_get_priority_max ();
32277int
32278main ()
32279{
32280sched_get_priority_max ();
32281 ;
32282 return 0;
32283}
32284_ACEOF
32285rm -f conftest.$ac_objext conftest$ac_exeext
32286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 32287 (eval $ac_link) 2>conftest.er1
e6cc62c6 32288 ac_status=$?
eea650d8
VS
32289 grep -v '^ *+' conftest.er1 >conftest.err
32290 rm -f conftest.er1
32291 cat conftest.err >&5
e6cc62c6
VS
32292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32293 (exit $ac_status); } &&
eea650d8
VS
32294 { ac_try='test -z "$ac_c_werror_flag"
32295 || test ! -s conftest.err'
32296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32297 (eval $ac_try) 2>&5
32298 ac_status=$?
32299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32300 (exit $ac_status); }; } &&
32301 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32303 (eval $ac_try) 2>&5
32304 ac_status=$?
32305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32306 (exit $ac_status); }; }; then
32307 ac_cv_lib_posix4_sched_get_priority_max=yes
32308else
32309 echo "$as_me: failed program was:" >&5
32310sed 's/^/| /' conftest.$ac_ext >&5
32311
32312ac_cv_lib_posix4_sched_get_priority_max=no
32313fi
eea650d8
VS
32314rm -f conftest.err conftest.$ac_objext \
32315 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32316LIBS=$ac_check_lib_save_LIBS
32317fi
32318echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32319echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32320if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 32321
7274f1c7
RL
32322 HAVE_PRIOR_FUNCS=1
32323 POSIX4_LINK=" -lposix4"
e6cc62c6 32324
4f14bcd8 32325fi
463abc64 32326
e6cc62c6 32327
328a083c 32328fi
463abc64 32329
e6cc62c6 32330
7b4a847f 32331fi
579d8138 32332
e6cc62c6 32333
5c6fa7d2 32334fi
52127426 32335
8284b0c5 32336
7274f1c7 32337 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 32338 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32339#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 32340_ACEOF
463abc64 32341
7274f1c7 32342 else
e6cc62c6
VS
32343 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32344echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 32345 fi
463abc64 32346
e6cc62c6
VS
32347 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32348echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32349if test "${ac_cv_func_pthread_cancel+set}" = set; then
32350 echo $ECHO_N "(cached) $ECHO_C" >&6
32351else
32352 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32353/* confdefs.h. */
32354_ACEOF
32355cat confdefs.h >>conftest.$ac_ext
32356cat >>conftest.$ac_ext <<_ACEOF
32357/* end confdefs.h. */
eea650d8
VS
32358/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32360#define pthread_cancel innocuous_pthread_cancel
32361
009fead0 32362/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32363 which can conflict with char pthread_cancel (); below.
32364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32365 <limits.h> exists even on freestanding compilers. */
eea650d8 32366
e6cc62c6
VS
32367#ifdef __STDC__
32368# include <limits.h>
32369#else
32370# include <assert.h>
32371#endif
eea650d8
VS
32372
32373#undef pthread_cancel
32374
422107f9 32375/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32376#ifdef __cplusplus
32377extern "C"
32378{
32379#endif
422107f9 32380/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32381 builtin and then its argument prototype would still apply. */
32382char pthread_cancel ();
009fead0
VZ
32383/* The GNU C library defines this for functions which it implements
32384 to always fail with ENOSYS. Some functions are actually named
32385 something starting with __ and the normal name is an alias. */
32386#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32387choke me
32388#else
e6cc62c6
VS
32389char (*f) () = pthread_cancel;
32390#endif
32391#ifdef __cplusplus
32392}
009fead0
VZ
32393#endif
32394
e6cc62c6
VS
32395int
32396main ()
32397{
32398return f != pthread_cancel;
32399 ;
32400 return 0;
32401}
32402_ACEOF
32403rm -f conftest.$ac_objext conftest$ac_exeext
32404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 32405 (eval $ac_link) 2>conftest.er1
e6cc62c6 32406 ac_status=$?
eea650d8
VS
32407 grep -v '^ *+' conftest.er1 >conftest.err
32408 rm -f conftest.er1
32409 cat conftest.err >&5
e6cc62c6
VS
32410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32411 (exit $ac_status); } &&
eea650d8
VS
32412 { ac_try='test -z "$ac_c_werror_flag"
32413 || test ! -s conftest.err'
32414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32415 (eval $ac_try) 2>&5
32416 ac_status=$?
32417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32418 (exit $ac_status); }; } &&
32419 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32421 (eval $ac_try) 2>&5
32422 ac_status=$?
32423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32424 (exit $ac_status); }; }; then
32425 ac_cv_func_pthread_cancel=yes
32426else
32427 echo "$as_me: failed program was:" >&5
32428sed 's/^/| /' conftest.$ac_ext >&5
32429
32430ac_cv_func_pthread_cancel=no
32431fi
eea650d8
VS
32432rm -f conftest.err conftest.$ac_objext \
32433 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32434fi
32435echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32436echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32437if test $ac_cv_func_pthread_cancel = yes; then
32438 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32439#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 32440_ACEOF
4f14bcd8 32441
698dcdb6 32442else
e6cc62c6
VS
32443 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32444echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
32445fi
32446
5c6fa7d2 32447
4f14bcd8 32448
e6cc62c6
VS
32449
32450 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32451echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32452if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32453 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 32454else
e6cc62c6
VS
32455
32456 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32457/* confdefs.h. */
32458_ACEOF
32459cat confdefs.h >>conftest.$ac_ext
32460cat >>conftest.$ac_ext <<_ACEOF
32461/* end confdefs.h. */
4f14bcd8 32462#include <pthread.h>
e6cc62c6
VS
32463int
32464main ()
32465{
4f14bcd8 32466
7274f1c7
RL
32467 pthread_mutexattr_t attr;
32468 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
32469
32470 ;
32471 return 0;
32472}
32473_ACEOF
32474rm -f conftest.$ac_objext
32475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 32476 (eval $ac_compile) 2>conftest.er1
e6cc62c6 32477 ac_status=$?
eea650d8
VS
32478 grep -v '^ *+' conftest.er1 >conftest.err
32479 rm -f conftest.er1
32480 cat conftest.err >&5
e6cc62c6
VS
32481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32482 (exit $ac_status); } &&
eea650d8
VS
32483 { ac_try='test -z "$ac_c_werror_flag"
32484 || test ! -s conftest.err'
32485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32486 (eval $ac_try) 2>&5
32487 ac_status=$?
32488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489 (exit $ac_status); }; } &&
32490 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32492 (eval $ac_try) 2>&5
32493 ac_status=$?
32494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32495 (exit $ac_status); }; }; then
32496
7274f1c7 32497 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 32498
3fed1840 32499else
e6cc62c6
VS
32500 echo "$as_me: failed program was:" >&5
32501sed 's/^/| /' conftest.$ac_ext >&5
32502
32503
7274f1c7 32504 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
32505
32506
247f5006 32507fi
eea650d8 32508rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 32509
e6cc62c6
VS
32510fi
32511echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
32512echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 32513
7274f1c7 32514 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 32515 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32516#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 32517_ACEOF
4f14bcd8 32518
7274f1c7 32519 else
e6cc62c6
VS
32520 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
32521echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
32522if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
32523 echo $ECHO_N "(cached) $ECHO_C" >&6
32524else
32525
32526 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32527/* confdefs.h. */
32528_ACEOF
32529cat confdefs.h >>conftest.$ac_ext
32530cat >>conftest.$ac_ext <<_ACEOF
32531/* end confdefs.h. */
4f14bcd8 32532#include <pthread.h>
e6cc62c6
VS
32533int
32534main ()
32535{
4f14bcd8 32536
7274f1c7 32537 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
32538
32539 ;
32540 return 0;
32541}
32542_ACEOF
32543rm -f conftest.$ac_objext
32544if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 32545 (eval $ac_compile) 2>conftest.er1
e6cc62c6 32546 ac_status=$?
eea650d8
VS
32547 grep -v '^ *+' conftest.er1 >conftest.err
32548 rm -f conftest.er1
32549 cat conftest.err >&5
e6cc62c6
VS
32550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32551 (exit $ac_status); } &&
eea650d8
VS
32552 { ac_try='test -z "$ac_c_werror_flag"
32553 || test ! -s conftest.err'
32554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32555 (eval $ac_try) 2>&5
32556 ac_status=$?
32557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32558 (exit $ac_status); }; } &&
32559 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32561 (eval $ac_try) 2>&5
32562 ac_status=$?
32563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32564 (exit $ac_status); }; }; then
32565
7274f1c7 32566 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 32567
698dcdb6 32568else
e6cc62c6
VS
32569 echo "$as_me: failed program was:" >&5
32570sed 's/^/| /' conftest.$ac_ext >&5
32571
32572
7274f1c7 32573 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
32574
32575
247f5006 32576fi
eea650d8 32577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 32578
e6cc62c6
VS
32579fi
32580echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
32581echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 32582 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 32583 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32584#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 32585_ACEOF
3fed1840 32586
7274f1c7 32587 else
e6cc62c6
VS
32588 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
32589echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
32590 fi
32591 fi
7274f1c7 32592 fi
3fed1840 32593
a0b9e27f
MB
32594else
32595 if test "$wxUSE_THREADS" = "yes" ; then
32596 case "${host}" in
32597 *-*-mingw32* )
e6cc62c6
VS
32598 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
32599echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
32600if test "${wx_cv_cflags_mthread+set}" = set; then
32601 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 32602else
e6cc62c6 32603
ca8e52b3
VZ
32604 CFLAGS_OLD="$CFLAGS"
32605 CFLAGS="$CFLAGS -mthreads"
e6cc62c6 32606 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32607/* confdefs.h. */
32608_ACEOF
32609cat confdefs.h >>conftest.$ac_ext
32610cat >>conftest.$ac_ext <<_ACEOF
32611/* end confdefs.h. */
32612
32613int
32614main ()
32615{
ca8e52b3 32616
e6cc62c6
VS
32617 ;
32618 return 0;
32619}
32620_ACEOF
32621rm -f conftest.$ac_objext
32622if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 32623 (eval $ac_compile) 2>conftest.er1
e6cc62c6 32624 ac_status=$?
eea650d8
VS
32625 grep -v '^ *+' conftest.er1 >conftest.err
32626 rm -f conftest.er1
32627 cat conftest.err >&5
e6cc62c6
VS
32628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32629 (exit $ac_status); } &&
eea650d8
VS
32630 { ac_try='test -z "$ac_c_werror_flag"
32631 || test ! -s conftest.err'
32632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32633 (eval $ac_try) 2>&5
32634 ac_status=$?
32635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636 (exit $ac_status); }; } &&
32637 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32639 (eval $ac_try) 2>&5
32640 ac_status=$?
32641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32642 (exit $ac_status); }; }; then
ca8e52b3
VZ
32643 wx_cv_cflags_mthread=yes
32644else
e6cc62c6
VS
32645 echo "$as_me: failed program was:" >&5
32646sed 's/^/| /' conftest.$ac_ext >&5
32647
32648wx_cv_cflags_mthread=no
32649
ca8e52b3 32650fi
eea650d8 32651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 32652
ca8e52b3 32653
e6cc62c6
VS
32654fi
32655echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
32656echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
32657
32658 if test "$wx_cv_cflags_mthread" = "yes"; then
32659 CXXFLAGS="$CXXFLAGS -mthreads"
32660 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
32661 LDFLAGS="$LDFLAGS -mthreads"
32662 else
32663 CFLAGS="$CFLAGS_OLD"
32664 fi
a0b9e27f 32665 ;;
73d617c9
MB
32666 *-pc-os2*emx )
32667 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
32668 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
32669 LDFLAGS="$LDFLAGS -Zmt"
32670 ;;
a0b9e27f
MB
32671 esac
32672 fi
4f14bcd8
GD
32673fi
32674
32675if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 32676 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32677#define wxUSE_THREADS 1
e6cc62c6 32678_ACEOF
7b6058cd 32679
8284b0c5 32680
4f14bcd8 32681 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 32682else
4f14bcd8 32683 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
32684 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
32685echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
32686 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
32687 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
32688 echo "$as_me:$LINENO: result: yes" >&5
32689echo "${ECHO_T}yes" >&6
4f14bcd8 32690 else
e6cc62c6
VS
32691 echo "$as_me:$LINENO: result: no" >&5
32692echo "${ECHO_T}no" >&6
4f14bcd8
GD
32693 fi
32694 fi
32695fi
32696
32697if test "$WXGTK20" = 1 ; then
e6cc62c6 32698 cat >>confdefs.h <<_ACEOF
4f14bcd8 32699#define __WXGTK20__ $WXGTK20
e6cc62c6 32700_ACEOF
4f14bcd8
GD
32701
32702 WXGTK12=1
10f2d63a 32703fi
4f14bcd8
GD
32704
32705if test "$WXGTK12" = 1 ; then
e6cc62c6 32706 cat >>confdefs.h <<_ACEOF
4f14bcd8 32707#define __WXGTK12__ $WXGTK12
e6cc62c6 32708_ACEOF
4f14bcd8 32709
10f2d63a 32710fi
698dcdb6 32711
4f14bcd8 32712if test "$WXGTK127" = 1 ; then
e6cc62c6 32713 cat >>confdefs.h <<_ACEOF
4f14bcd8 32714#define __WXGTK127__ $WXGTK127
e6cc62c6 32715_ACEOF
4f14bcd8 32716
698dcdb6 32717fi
10f2d63a 32718
4f14bcd8
GD
32719WXDEBUG=
32720
32721if test "$wxUSE_DEBUG_INFO" = "yes" ; then
32722 WXDEBUG="-g"
32723 wxUSE_OPTIMISE=no
698dcdb6 32724fi
4f14bcd8
GD
32725
32726if test "$wxUSE_DEBUG_GDB" = "yes" ; then
32727 wxUSE_DEBUG_INFO=yes
32728 WXDEBUG="-ggdb"
10f2d63a
VZ
32729fi
32730
4f14bcd8 32731if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 32732 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32733#define WXDEBUG 1
e6cc62c6 32734_ACEOF
4f14bcd8
GD
32735
32736 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 32737else
4f14bcd8
GD
32738 if test "$wxUSE_GTK" = 1 ; then
32739 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
32740 fi
32741fi
32742
32743if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 32744 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32745#define wxUSE_MEMORY_TRACING 1
e6cc62c6 32746_ACEOF
4f14bcd8 32747
e6cc62c6 32748 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32749#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 32750_ACEOF
4f14bcd8 32751
e6cc62c6 32752 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32753#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 32754_ACEOF
4f14bcd8
GD
32755
32756 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
32757fi
32758
32759if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 32760 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
32761fi
32762
32763PROFILE=
32764if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 32765 PROFILE=" -pg"
10f2d63a
VZ
32766fi
32767
009fead0
VZ
32768CODE_GEN_FLAGS=
32769CODE_GEN_FLAGS_CXX=
88e30f2b 32770if test "$GCC" = "yes" ; then
4f14bcd8
GD
32771 if test "$wxUSE_NO_RTTI" = "yes" ; then
32772 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 32773 fi
4f14bcd8
GD
32774 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
32775 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
32776 fi
32777 if test "$wxUSE_PERMISSIVE" = "yes" ; then
32778 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
32779 fi
1d1b75ac 32780
2b5f62a0 32781 case "${host}" in
1d1b75ac
VZ
32782 powerpc*-*-aix* )
32783 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
32784 ;;
2b5f62a0
VZ
32785 *-hppa* )
32786 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
32787 ;;
1d1b75ac 32788 esac
4f14bcd8
GD
32789fi
32790
af7b5345 32791OPTIMISE=
4f14bcd8 32792if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
32793 if test "$GCC" = yes ; then
32794 OPTIMISE="-O0"
32795 fi
4f14bcd8
GD
32796else
32797 if test "$GCC" = yes ; then
32798 OPTIMISE="-O2"
af7b5345
VZ
32799
32800 case "${host}" in
4f14bcd8
GD
32801 i586-*-*|i686-*-* )
32802 OPTIMISE="${OPTIMISE} "
32803 ;;
32804 esac
32805 else
32806 OPTIMISE="-O"
32807 fi
32808fi
32809
8d90d2f2 32810
65d8ef1e 32811if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 32812 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32813#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 32814_ACEOF
4f14bcd8 32815
8d90d2f2
VZ
32816
32817 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
32818fi
32819
65d8ef1e 32820if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 32821 cat >>confdefs.h <<\_ACEOF
65d8ef1e 32822#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 32823_ACEOF
65d8ef1e
VS
32824
32825fi
32826
8284b0c5 32827
10f2d63a 32828if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 32829 cat >>confdefs.h <<\_ACEOF
10f2d63a 32830#define wxUSE_GUI 1
e6cc62c6 32831_ACEOF
10f2d63a 32832
8284b0c5 32833
10f2d63a 32834 else
e6cc62c6 32835 cat >>confdefs.h <<\_ACEOF
10f2d63a 32836#define wxUSE_NOGUI 1
e6cc62c6 32837_ACEOF
10f2d63a
VZ
32838
32839fi
32840
8284b0c5 32841
10f2d63a 32842if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 32843 cat >>confdefs.h <<\_ACEOF
10f2d63a 32844#define wxUSE_UNIX 1
e6cc62c6 32845_ACEOF
10f2d63a
VZ
32846
32847fi
32848
8284b0c5 32849
df5168c4
MB
32850if test "$wxUSE_STL" = "yes"; then
32851 cat >>confdefs.h <<\_ACEOF
32852#define wxUSE_STL 1
32853_ACEOF
32854
32855fi
32856
10f2d63a 32857if test "$wxUSE_APPLE_IEEE" = "yes"; then
e6cc62c6 32858 cat >>confdefs.h <<\_ACEOF
10f2d63a 32859#define wxUSE_APPLE_IEEE 1
e6cc62c6 32860_ACEOF
10f2d63a
VZ
32861
32862fi
32863
1e6feb95 32864if test "$wxUSE_TIMER" = "yes"; then
e6cc62c6 32865 cat >>confdefs.h <<\_ACEOF
1e6feb95 32866#define wxUSE_TIMER 1
e6cc62c6 32867_ACEOF
1e6feb95
VZ
32868
32869fi
32870
10f2d63a 32871if test "$wxUSE_WAVE" = "yes"; then
e6cc62c6 32872 cat >>confdefs.h <<\_ACEOF
10f2d63a 32873#define wxUSE_WAVE 1
e6cc62c6 32874_ACEOF
10f2d63a
VZ
32875
32876fi
32877
1e6feb95 32878if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
e6cc62c6 32879 cat >>confdefs.h <<\_ACEOF
1e6feb95 32880#define wxUSE_CMDLINE_PARSER 1
e6cc62c6 32881_ACEOF
1e6feb95
VZ
32882
32883fi
32884
32885if test "$wxUSE_STOPWATCH" = "yes"; then
e6cc62c6 32886 cat >>confdefs.h <<\_ACEOF
1e6feb95 32887#define wxUSE_STOPWATCH 1
e6cc62c6 32888_ACEOF
1e6feb95
VZ
32889
32890fi
32891
32892if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6 32893 cat >>confdefs.h <<\_ACEOF
1e6feb95 32894#define wxUSE_DATETIME 1
e6cc62c6 32895_ACEOF
1e6feb95
VZ
32896
32897fi
32898
10f2d63a 32899if test "$wxUSE_FILE" = "yes"; then
e6cc62c6 32900 cat >>confdefs.h <<\_ACEOF
10f2d63a 32901#define wxUSE_FILE 1
e6cc62c6 32902_ACEOF
10f2d63a
VZ
32903
32904fi
32905
1e6feb95 32906if test "$wxUSE_FFILE" = "yes"; then
e6cc62c6 32907 cat >>confdefs.h <<\_ACEOF
1e6feb95 32908#define wxUSE_FFILE 1
e6cc62c6 32909_ACEOF
1e6feb95
VZ
32910
32911fi
32912
24528b0c 32913if test "$wxUSE_FILESYSTEM" = "yes"; then
e6cc62c6 32914 cat >>confdefs.h <<\_ACEOF
24528b0c 32915#define wxUSE_FILESYSTEM 1
e6cc62c6 32916_ACEOF
24528b0c
VS
32917
32918fi
32919
10f2d63a 32920if test "$wxUSE_FS_ZIP" = "yes"; then
e6cc62c6 32921 cat >>confdefs.h <<\_ACEOF
10f2d63a 32922#define wxUSE_FS_ZIP 1
e6cc62c6 32923_ACEOF
10f2d63a
VZ
32924
32925fi
32926
32927if test "$wxUSE_ZIPSTREAM" = "yes"; then
e6cc62c6 32928 cat >>confdefs.h <<\_ACEOF
10f2d63a 32929#define wxUSE_ZIPSTREAM 1
e6cc62c6 32930_ACEOF
10f2d63a
VZ
32931
32932fi
32933
7015ef3a
VZ
32934if test "$wxUSE_GZSTREAM" = "yes"; then
32935 cat >>confdefs.h <<\_ACEOF
32936#define wxUSE_GZSTREAM 1
32937_ACEOF
32938
32939fi
32940
eb4efbdc 32941if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6 32942 cat >>confdefs.h <<\_ACEOF
eb4efbdc 32943#define wxUSE_ON_FATAL_EXCEPTION 1
e6cc62c6 32944_ACEOF
eb4efbdc
VZ
32945
32946fi
32947
4f3c5f06 32948if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6 32949 cat >>confdefs.h <<\_ACEOF
4f3c5f06 32950#define wxUSE_SNGLINST_CHECKER 1
e6cc62c6 32951_ACEOF
4f3c5f06
VZ
32952
32953fi
32954
10f2d63a 32955if test "$wxUSE_BUSYINFO" = "yes"; then
e6cc62c6 32956 cat >>confdefs.h <<\_ACEOF
10f2d63a 32957#define wxUSE_BUSYINFO 1
e6cc62c6 32958_ACEOF
10f2d63a
VZ
32959
32960fi
32961
32962if test "$wxUSE_STD_IOSTREAM" = "yes"; then
e6cc62c6 32963 cat >>confdefs.h <<\_ACEOF
10f2d63a 32964#define wxUSE_STD_IOSTREAM 1
e6cc62c6 32965_ACEOF
10f2d63a
VZ
32966
32967fi
32968
a3a584a7 32969if test "$wxUSE_TEXTBUFFER" = "yes"; then
e6cc62c6 32970 cat >>confdefs.h <<\_ACEOF
a3a584a7 32971#define wxUSE_TEXTBUFFER 1
e6cc62c6 32972_ACEOF
a3a584a7
VZ
32973
32974fi
32975
10f2d63a 32976if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 32977 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
e6cc62c6
VS
32978 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
32979echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 32980 else
e6cc62c6 32981 cat >>confdefs.h <<\_ACEOF
10f2d63a 32982#define wxUSE_TEXTFILE 1
e6cc62c6 32983_ACEOF
10f2d63a
VZ
32984
32985 fi
32986fi
32987
32988if test "$wxUSE_CONFIG" = "yes" ; then
32989 if test "$wxUSE_TEXTFILE" != "yes"; then
e6cc62c6
VS
32990 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
32991echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 32992 else
e6cc62c6 32993 cat >>confdefs.h <<\_ACEOF
10f2d63a 32994#define wxUSE_CONFIG 1
e6cc62c6 32995_ACEOF
10f2d63a
VZ
32996
32997 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
32998 fi
32999fi
33000
33001if test "$wxUSE_INTL" = "yes" ; then
33002 if test "$wxUSE_FILE" != "yes"; then
e6cc62c6
VS
33003 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
33004echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 33005 else
e6cc62c6 33006 cat >>confdefs.h <<\_ACEOF
10f2d63a 33007#define wxUSE_INTL 1
e6cc62c6 33008_ACEOF
10f2d63a
VZ
33009
33010 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 33011 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
33012 fi
33013fi
33014
33015if test "$wxUSE_LOG" = "yes"; then
e6cc62c6 33016 cat >>confdefs.h <<\_ACEOF
10f2d63a 33017#define wxUSE_LOG 1
e6cc62c6 33018_ACEOF
10f2d63a 33019
8284b0c5 33020
d73be714 33021 if test "$wxUSE_LOGGUI" = "yes"; then
e6cc62c6 33022 cat >>confdefs.h <<\_ACEOF
d73be714 33023#define wxUSE_LOGGUI 1
e6cc62c6 33024_ACEOF
d73be714
VZ
33025
33026 fi
33027
33028 if test "$wxUSE_LOGWINDOW" = "yes"; then
e6cc62c6 33029 cat >>confdefs.h <<\_ACEOF
d73be714 33030#define wxUSE_LOGWINDOW 1
e6cc62c6 33031_ACEOF
69d27ff7
MB
33032
33033 fi
33034
33035 if test "$wxUSE_LOGDIALOG" = "yes"; then
e6cc62c6 33036 cat >>confdefs.h <<\_ACEOF
69d27ff7 33037#define wxUSE_LOG_DIALOG 1
e6cc62c6 33038_ACEOF
d73be714
VZ
33039
33040 fi
10f2d63a
VZ
33041fi
33042
33043if test "$wxUSE_LONGLONG" = "yes"; then
e6cc62c6 33044 cat >>confdefs.h <<\_ACEOF
10f2d63a 33045#define wxUSE_LONGLONG 1
e6cc62c6 33046_ACEOF
10f2d63a
VZ
33047
33048fi
33049
e8f65ba6 33050if test "$wxUSE_GEOMETRY" = "yes"; then
e6cc62c6 33051 cat >>confdefs.h <<\_ACEOF
e8f65ba6 33052#define wxUSE_GEOMETRY 1
e6cc62c6 33053_ACEOF
e8f65ba6
RR
33054
33055fi
33056
10f2d63a 33057if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
e6cc62c6 33058 cat >>confdefs.h <<\_ACEOF
10f2d63a 33059#define wxUSE_DIALUP_MANAGER 1
e6cc62c6 33060_ACEOF
10f2d63a 33061
70f7a477 33062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
33063fi
33064
33065if test "$wxUSE_STREAMS" = "yes" ; then
e6cc62c6 33066 cat >>confdefs.h <<\_ACEOF
10f2d63a 33067#define wxUSE_STREAMS 1
e6cc62c6 33068_ACEOF
10f2d63a
VZ
33069
33070fi
33071
5c6fa7d2 33072
8284b0c5 33073if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6
VS
33074
33075for ac_func in strptime
83307f33 33076do
e6cc62c6
VS
33077as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33078echo "$as_me:$LINENO: checking for $ac_func" >&5
33079echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33080if eval "test \"\${$as_ac_var+set}\" = set"; then
33081 echo $ECHO_N "(cached) $ECHO_C" >&6
33082else
33083 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33084/* confdefs.h. */
33085_ACEOF
33086cat confdefs.h >>conftest.$ac_ext
33087cat >>conftest.$ac_ext <<_ACEOF
33088/* end confdefs.h. */
eea650d8
VS
33089/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33091#define $ac_func innocuous_$ac_func
33092
83307f33 33093/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33094 which can conflict with char $ac_func (); below.
33095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33096 <limits.h> exists even on freestanding compilers. */
eea650d8 33097
e6cc62c6
VS
33098#ifdef __STDC__
33099# include <limits.h>
33100#else
33101# include <assert.h>
33102#endif
eea650d8
VS
33103
33104#undef $ac_func
33105
83307f33 33106/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33107#ifdef __cplusplus
33108extern "C"
33109{
33110#endif
83307f33 33111/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33112 builtin and then its argument prototype would still apply. */
33113char $ac_func ();
83307f33
VZ
33114/* The GNU C library defines this for functions which it implements
33115 to always fail with ENOSYS. Some functions are actually named
33116 something starting with __ and the normal name is an alias. */
33117#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33118choke me
33119#else
e6cc62c6
VS
33120char (*f) () = $ac_func;
33121#endif
33122#ifdef __cplusplus
33123}
83307f33
VZ
33124#endif
33125
e6cc62c6
VS
33126int
33127main ()
33128{
33129return f != $ac_func;
33130 ;
33131 return 0;
33132}
33133_ACEOF
33134rm -f conftest.$ac_objext conftest$ac_exeext
33135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 33136 (eval $ac_link) 2>conftest.er1
e6cc62c6 33137 ac_status=$?
eea650d8
VS
33138 grep -v '^ *+' conftest.er1 >conftest.err
33139 rm -f conftest.er1
33140 cat conftest.err >&5
e6cc62c6
VS
33141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142 (exit $ac_status); } &&
eea650d8
VS
33143 { ac_try='test -z "$ac_c_werror_flag"
33144 || test ! -s conftest.err'
33145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33146 (eval $ac_try) 2>&5
33147 ac_status=$?
33148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33149 (exit $ac_status); }; } &&
33150 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33152 (eval $ac_try) 2>&5
33153 ac_status=$?
33154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33155 (exit $ac_status); }; }; then
33156 eval "$as_ac_var=yes"
33157else
33158 echo "$as_me: failed program was:" >&5
33159sed 's/^/| /' conftest.$ac_ext >&5
33160
33161eval "$as_ac_var=no"
33162fi
eea650d8
VS
33163rm -f conftest.err conftest.$ac_objext \
33164 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33165fi
33166echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33167echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33168if test `eval echo '${'$as_ac_var'}'` = yes; then
33169 cat >>confdefs.h <<_ACEOF
33170#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33171_ACEOF
83307f33 33172
83307f33
VZ
33173fi
33174done
33175
5c6fa7d2 33176
e6cc62c6
VS
33177 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
33178echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
33179if test "${wx_cv_var_timezone+set}" = set; then
33180 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 33181else
e6cc62c6
VS
33182
33183 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33184/* confdefs.h. */
33185_ACEOF
33186cat confdefs.h >>conftest.$ac_ext
33187cat >>conftest.$ac_ext <<_ACEOF
33188/* end confdefs.h. */
360d6699 33189
b4085ce6 33190 #include <time.h>
e6cc62c6
VS
33191
33192int
33193main ()
33194{
360d6699
VZ
33195
33196 int tz;
4f11a343 33197 tz = timezone;
e6cc62c6
VS
33198
33199 ;
33200 return 0;
33201}
33202_ACEOF
33203rm -f conftest.$ac_objext
33204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 33205 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33206 ac_status=$?
eea650d8
VS
33207 grep -v '^ *+' conftest.er1 >conftest.err
33208 rm -f conftest.er1
33209 cat conftest.err >&5
e6cc62c6
VS
33210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33211 (exit $ac_status); } &&
eea650d8
VS
33212 { ac_try='test -z "$ac_c_werror_flag"
33213 || test ! -s conftest.err'
33214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33215 (eval $ac_try) 2>&5
33216 ac_status=$?
33217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33218 (exit $ac_status); }; } &&
33219 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33221 (eval $ac_try) 2>&5
33222 ac_status=$?
33223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33224 (exit $ac_status); }; }; then
33225
4f11a343 33226 wx_cv_var_timezone=timezone
e6cc62c6 33227
360d6699 33228else
e6cc62c6
VS
33229 echo "$as_me: failed program was:" >&5
33230sed 's/^/| /' conftest.$ac_ext >&5
33231
33232
33233 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33234/* confdefs.h. */
33235_ACEOF
33236cat confdefs.h >>conftest.$ac_ext
33237cat >>conftest.$ac_ext <<_ACEOF
33238/* end confdefs.h. */
360d6699 33239
b4085ce6 33240 #include <time.h>
e6cc62c6
VS
33241
33242int
33243main ()
33244{
360d6699
VZ
33245
33246 int tz;
33247 tz = _timezone;
e6cc62c6
VS
33248
33249 ;
33250 return 0;
33251}
33252_ACEOF
33253rm -f conftest.$ac_objext
33254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 33255 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33256 ac_status=$?
eea650d8
VS
33257 grep -v '^ *+' conftest.er1 >conftest.err
33258 rm -f conftest.er1
33259 cat conftest.err >&5
e6cc62c6
VS
33260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33261 (exit $ac_status); } &&
eea650d8
VS
33262 { ac_try='test -z "$ac_c_werror_flag"
33263 || test ! -s conftest.err'
33264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33265 (eval $ac_try) 2>&5
33266 ac_status=$?
33267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33268 (exit $ac_status); }; } &&
33269 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33271 (eval $ac_try) 2>&5
33272 ac_status=$?
33273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33274 (exit $ac_status); }; }; then
33275
360d6699 33276 wx_cv_var_timezone=_timezone
e6cc62c6 33277
5357c8e8 33278else
e6cc62c6
VS
33279 echo "$as_me: failed program was:" >&5
33280sed 's/^/| /' conftest.$ac_ext >&5
33281
33282
33283 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33284/* confdefs.h. */
33285_ACEOF
33286cat confdefs.h >>conftest.$ac_ext
33287cat >>conftest.$ac_ext <<_ACEOF
33288/* end confdefs.h. */
5357c8e8 33289
b4085ce6 33290 #include <time.h>
e6cc62c6
VS
33291
33292int
33293main ()
33294{
5357c8e8
VZ
33295
33296 int tz;
4f11a343 33297 tz = __timezone;
e6cc62c6
VS
33298
33299 ;
33300 return 0;
33301}
33302_ACEOF
33303rm -f conftest.$ac_objext
33304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 33305 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33306 ac_status=$?
eea650d8
VS
33307 grep -v '^ *+' conftest.er1 >conftest.err
33308 rm -f conftest.er1
33309 cat conftest.err >&5
e6cc62c6
VS
33310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33311 (exit $ac_status); } &&
eea650d8
VS
33312 { ac_try='test -z "$ac_c_werror_flag"
33313 || test ! -s conftest.err'
33314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33315 (eval $ac_try) 2>&5
33316 ac_status=$?
33317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33318 (exit $ac_status); }; } &&
33319 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33321 (eval $ac_try) 2>&5
33322 ac_status=$?
33323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33324 (exit $ac_status); }; }; then
33325
4f11a343 33326 wx_cv_var_timezone=__timezone
e6cc62c6 33327
360d6699 33328else
e6cc62c6
VS
33329 echo "$as_me: failed program was:" >&5
33330sed 's/^/| /' conftest.$ac_ext >&5
33331
33332
f9bc1684 33333 if test "$USE_DOS" = 0 ; then
e6cc62c6
VS
33334 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
33335echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 33336 fi
e6cc62c6
VS
33337
33338
7b4a847f 33339fi
eea650d8 33340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
33341
33342
5c6fa7d2 33343fi
eea650d8 33344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
33345
33346
247f5006 33347fi
eea650d8 33348rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 33349
e6cc62c6
VS
33350
33351fi
33352echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
33353echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 33354
f9bc1684 33355 if test "x$wx_cv_var_timezone" != x ; then
e6cc62c6 33356 cat >>confdefs.h <<_ACEOF
360d6699 33357#define WX_TIMEZONE $wx_cv_var_timezone
e6cc62c6 33358_ACEOF
360d6699 33359
f9bc1684 33360 fi
698dcdb6 33361
e6cc62c6
VS
33362
33363for ac_func in localtime
afc31813 33364do
e6cc62c6
VS
33365as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33366echo "$as_me:$LINENO: checking for $ac_func" >&5
33367echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33368if eval "test \"\${$as_ac_var+set}\" = set"; then
33369 echo $ECHO_N "(cached) $ECHO_C" >&6
33370else
33371 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33372/* confdefs.h. */
33373_ACEOF
33374cat confdefs.h >>conftest.$ac_ext
33375cat >>conftest.$ac_ext <<_ACEOF
33376/* end confdefs.h. */
eea650d8
VS
33377/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33379#define $ac_func innocuous_$ac_func
33380
afc31813 33381/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33382 which can conflict with char $ac_func (); below.
33383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33384 <limits.h> exists even on freestanding compilers. */
eea650d8 33385
e6cc62c6
VS
33386#ifdef __STDC__
33387# include <limits.h>
33388#else
33389# include <assert.h>
33390#endif
eea650d8
VS
33391
33392#undef $ac_func
33393
afc31813 33394/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33395#ifdef __cplusplus
33396extern "C"
33397{
33398#endif
afc31813 33399/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33400 builtin and then its argument prototype would still apply. */
33401char $ac_func ();
afc31813
VZ
33402/* The GNU C library defines this for functions which it implements
33403 to always fail with ENOSYS. Some functions are actually named
33404 something starting with __ and the normal name is an alias. */
33405#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33406choke me
33407#else
e6cc62c6
VS
33408char (*f) () = $ac_func;
33409#endif
33410#ifdef __cplusplus
33411}
afc31813
VZ
33412#endif
33413
e6cc62c6
VS
33414int
33415main ()
33416{
33417return f != $ac_func;
33418 ;
33419 return 0;
33420}
33421_ACEOF
33422rm -f conftest.$ac_objext conftest$ac_exeext
33423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 33424 (eval $ac_link) 2>conftest.er1
e6cc62c6 33425 ac_status=$?
eea650d8
VS
33426 grep -v '^ *+' conftest.er1 >conftest.err
33427 rm -f conftest.er1
33428 cat conftest.err >&5
e6cc62c6
VS
33429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33430 (exit $ac_status); } &&
eea650d8
VS
33431 { ac_try='test -z "$ac_c_werror_flag"
33432 || test ! -s conftest.err'
33433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33434 (eval $ac_try) 2>&5
33435 ac_status=$?
33436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33437 (exit $ac_status); }; } &&
33438 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33440 (eval $ac_try) 2>&5
33441 ac_status=$?
33442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33443 (exit $ac_status); }; }; then
33444 eval "$as_ac_var=yes"
33445else
33446 echo "$as_me: failed program was:" >&5
33447sed 's/^/| /' conftest.$ac_ext >&5
33448
33449eval "$as_ac_var=no"
33450fi
eea650d8
VS
33451rm -f conftest.err conftest.$ac_objext \
33452 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33453fi
33454echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33455echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33456if test `eval echo '${'$as_ac_var'}'` = yes; then
33457 cat >>confdefs.h <<_ACEOF
33458#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33459_ACEOF
afc31813 33460
afc31813
VZ
33461fi
33462done
33463
5c6fa7d2 33464
8284b0c5 33465 if test "$ac_cv_func_localtime" = "yes"; then
e6cc62c6
VS
33466 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
33467echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
33468if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
33469 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 33470else
e6cc62c6
VS
33471
33472 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33473/* confdefs.h. */
33474_ACEOF
33475cat confdefs.h >>conftest.$ac_ext
33476cat >>conftest.$ac_ext <<_ACEOF
33477/* end confdefs.h. */
0470b1e6 33478
b4085ce6 33479 #include <time.h>
e6cc62c6
VS
33480
33481int
33482main ()
33483{
0470b1e6
VZ
33484
33485 struct tm tm;
33486 tm.tm_gmtoff++;
e6cc62c6
VS
33487
33488 ;
33489 return 0;
33490}
33491_ACEOF
33492rm -f conftest.$ac_objext
33493if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 33494 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33495 ac_status=$?
eea650d8
VS
33496 grep -v '^ *+' conftest.er1 >conftest.err
33497 rm -f conftest.er1
33498 cat conftest.err >&5
e6cc62c6
VS
33499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33500 (exit $ac_status); } &&
eea650d8
VS
33501 { ac_try='test -z "$ac_c_werror_flag"
33502 || test ! -s conftest.err'
33503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33504 (eval $ac_try) 2>&5
33505 ac_status=$?
33506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33507 (exit $ac_status); }; } &&
33508 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33510 (eval $ac_try) 2>&5
33511 ac_status=$?
33512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33513 (exit $ac_status); }; }; then
33514
f03a98d8 33515 wx_cv_struct_tm_has_gmtoff=yes
e6cc62c6 33516
0470b1e6 33517else
e6cc62c6
VS
33518 echo "$as_me: failed program was:" >&5
33519sed 's/^/| /' conftest.$ac_ext >&5
33520
33521wx_cv_struct_tm_has_gmtoff=no
33522
247f5006 33523fi
eea650d8 33524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 33525
e6cc62c6
VS
33526fi
33527echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
33528echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
33529 fi
33530
33531 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
e6cc62c6 33532 cat >>confdefs.h <<\_ACEOF
6232543b 33533#define WX_GMTOFF_IN_TM 1
e6cc62c6 33534_ACEOF
0470b1e6 33535
3fcdd07b
VZ
33536 fi
33537
e6cc62c6
VS
33538
33539
33540for ac_func in gettimeofday ftime
3fcdd07b 33541do
e6cc62c6
VS
33542as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33543echo "$as_me:$LINENO: checking for $ac_func" >&5
33544echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33545if eval "test \"\${$as_ac_var+set}\" = set"; then
33546 echo $ECHO_N "(cached) $ECHO_C" >&6
33547else
33548 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33549/* confdefs.h. */
33550_ACEOF
33551cat confdefs.h >>conftest.$ac_ext
33552cat >>conftest.$ac_ext <<_ACEOF
33553/* end confdefs.h. */
eea650d8
VS
33554/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33555 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33556#define $ac_func innocuous_$ac_func
33557
3fcdd07b 33558/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33559 which can conflict with char $ac_func (); below.
33560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33561 <limits.h> exists even on freestanding compilers. */
eea650d8 33562
e6cc62c6
VS
33563#ifdef __STDC__
33564# include <limits.h>
33565#else
33566# include <assert.h>
33567#endif
eea650d8
VS
33568
33569#undef $ac_func
33570
3fcdd07b 33571/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33572#ifdef __cplusplus
33573extern "C"
33574{
33575#endif
3fcdd07b 33576/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33577 builtin and then its argument prototype would still apply. */
33578char $ac_func ();
3fcdd07b
VZ
33579/* The GNU C library defines this for functions which it implements
33580 to always fail with ENOSYS. Some functions are actually named
33581 something starting with __ and the normal name is an alias. */
33582#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33583choke me
33584#else
e6cc62c6
VS
33585char (*f) () = $ac_func;
33586#endif
33587#ifdef __cplusplus
33588}
3fcdd07b
VZ
33589#endif
33590
e6cc62c6
VS
33591int
33592main ()
33593{
33594return f != $ac_func;
33595 ;
33596 return 0;
33597}
33598_ACEOF
33599rm -f conftest.$ac_objext conftest$ac_exeext
33600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 33601 (eval $ac_link) 2>conftest.er1
e6cc62c6 33602 ac_status=$?
eea650d8
VS
33603 grep -v '^ *+' conftest.er1 >conftest.err
33604 rm -f conftest.er1
33605 cat conftest.err >&5
e6cc62c6
VS
33606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607 (exit $ac_status); } &&
eea650d8
VS
33608 { ac_try='test -z "$ac_c_werror_flag"
33609 || test ! -s conftest.err'
33610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33611 (eval $ac_try) 2>&5
33612 ac_status=$?
33613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33614 (exit $ac_status); }; } &&
33615 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33617 (eval $ac_try) 2>&5
33618 ac_status=$?
33619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33620 (exit $ac_status); }; }; then
33621 eval "$as_ac_var=yes"
33622else
33623 echo "$as_me: failed program was:" >&5
33624sed 's/^/| /' conftest.$ac_ext >&5
33625
33626eval "$as_ac_var=no"
33627fi
eea650d8
VS
33628rm -f conftest.err conftest.$ac_objext \
33629 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33630fi
33631echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33632echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33633if test `eval echo '${'$as_ac_var'}'` = yes; then
33634 cat >>confdefs.h <<_ACEOF
33635#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33636_ACEOF
3fcdd07b 33637 break
3fcdd07b
VZ
33638fi
33639done
33640
698dcdb6 33641
8284b0c5 33642 if test "$ac_cv_func_gettimeofday" = "yes"; then
e6cc62c6
VS
33643 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
33644echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
33645if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
33646 echo $ECHO_N "(cached) $ECHO_C" >&6
33647else
33648
33649
33650
33651 ac_ext=cc
5c6fa7d2 33652ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
33653ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33654ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33655ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 33656
8284b0c5 33657
e6cc62c6 33658 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33659/* confdefs.h. */
33660_ACEOF
33661cat confdefs.h >>conftest.$ac_ext
33662cat >>conftest.$ac_ext <<_ACEOF
33663/* end confdefs.h. */
afc31813
VZ
33664
33665 #include <sys/time.h>
33666 #include <unistd.h>
e6cc62c6
VS
33667
33668int
33669main ()
33670{
afc31813
VZ
33671
33672 struct timeval tv;
776862b4 33673 gettimeofday(&tv, NULL);
e6cc62c6
VS
33674
33675 ;
33676 return 0;
33677}
33678_ACEOF
33679rm -f conftest.$ac_objext
33680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 33681 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33682 ac_status=$?
eea650d8
VS
33683 grep -v '^ *+' conftest.er1 >conftest.err
33684 rm -f conftest.er1
33685 cat conftest.err >&5
e6cc62c6
VS
33686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33687 (exit $ac_status); } &&
eea650d8
VS
33688 { ac_try='test -z "$ac_cxx_werror_flag"
33689 || test ! -s conftest.err'
33690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33691 (eval $ac_try) 2>&5
33692 ac_status=$?
33693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33694 (exit $ac_status); }; } &&
33695 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33697 (eval $ac_try) 2>&5
33698 ac_status=$?
33699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33700 (exit $ac_status); }; }; then
afc31813 33701 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 33702else
e6cc62c6
VS
33703 echo "$as_me: failed program was:" >&5
33704sed 's/^/| /' conftest.$ac_ext >&5
33705
33706cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33707/* confdefs.h. */
33708_ACEOF
33709cat confdefs.h >>conftest.$ac_ext
33710cat >>conftest.$ac_ext <<_ACEOF
33711/* end confdefs.h. */
afc31813
VZ
33712
33713 #include <sys/time.h>
33714 #include <unistd.h>
e6cc62c6
VS
33715
33716int
33717main ()
33718{
afc31813
VZ
33719
33720 struct timeval tv;
33721 gettimeofday(&tv);
e6cc62c6
VS
33722
33723 ;
33724 return 0;
33725}
33726_ACEOF
33727rm -f conftest.$ac_objext
33728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 33729 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33730 ac_status=$?
eea650d8
VS
33731 grep -v '^ *+' conftest.er1 >conftest.err
33732 rm -f conftest.er1
33733 cat conftest.err >&5
e6cc62c6
VS
33734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33735 (exit $ac_status); } &&
eea650d8
VS
33736 { ac_try='test -z "$ac_cxx_werror_flag"
33737 || test ! -s conftest.err'
33738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33739 (eval $ac_try) 2>&5
33740 ac_status=$?
33741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33742 (exit $ac_status); }; } &&
33743 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33745 (eval $ac_try) 2>&5
33746 ac_status=$?
33747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748 (exit $ac_status); }; }; then
afc31813 33749 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 33750else
e6cc62c6
VS
33751 echo "$as_me: failed program was:" >&5
33752sed 's/^/| /' conftest.$ac_ext >&5
33753
33754
33755 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
33756echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 33757 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6
VS
33758
33759
10f2d63a 33760fi
eea650d8 33761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 33762
10f2d63a 33763fi
eea650d8 33764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
afc31813 33765 ac_ext=c
10f2d63a 33766ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
33767ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33768ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33769ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 33770
a0b9e27f 33771
e6cc62c6
VS
33772fi
33773echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
33774echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 33775
afc31813 33776 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
e6cc62c6 33777 cat >>confdefs.h <<\_ACEOF
afc31813 33778#define WX_GETTIMEOFDAY_NO_TZ 1
e6cc62c6 33779_ACEOF
afc31813
VZ
33780
33781 fi
33782 fi
33783
afc31813
VZ
33784 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
33785fi
33786
8284b0c5 33787
52127426 33788if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 33789 if test "$wxUSE_MGL" = "1"; then
e6cc62c6
VS
33790 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
33791echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
33792 wxUSE_SOCKETS="no"
33793 fi
3879ecda
VZ
33794 if test "$wxUSE_COCOA" = "1"; then
33795 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5
33796echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;}
33797 wxUSE_SOCKETS="no"
33798 fi
0feee163 33799fi
b089607b 33800
0feee163
VZ
33801if test "$wxUSE_SOCKETS" = "yes"; then
33802 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
33803 echo "$as_me:$LINENO: checking for socket" >&5
33804echo $ECHO_N "checking for socket... $ECHO_C" >&6
33805if test "${ac_cv_func_socket+set}" = set; then
33806 echo $ECHO_N "(cached) $ECHO_C" >&6
33807else
33808 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33809/* confdefs.h. */
33810_ACEOF
33811cat confdefs.h >>conftest.$ac_ext
33812cat >>conftest.$ac_ext <<_ACEOF
33813/* end confdefs.h. */
eea650d8
VS
33814/* Define socket to an innocuous variant, in case <limits.h> declares socket.
33815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33816#define socket innocuous_socket
33817
c63c7106 33818/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33819 which can conflict with char socket (); below.
33820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33821 <limits.h> exists even on freestanding compilers. */
eea650d8 33822
e6cc62c6
VS
33823#ifdef __STDC__
33824# include <limits.h>
33825#else
33826# include <assert.h>
33827#endif
eea650d8
VS
33828
33829#undef socket
33830
c63c7106 33831/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33832#ifdef __cplusplus
33833extern "C"
33834{
33835#endif
c63c7106 33836/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33837 builtin and then its argument prototype would still apply. */
33838char socket ();
c63c7106
VZ
33839/* The GNU C library defines this for functions which it implements
33840 to always fail with ENOSYS. Some functions are actually named
33841 something starting with __ and the normal name is an alias. */
33842#if defined (__stub_socket) || defined (__stub___socket)
33843choke me
33844#else
e6cc62c6
VS
33845char (*f) () = socket;
33846#endif
33847#ifdef __cplusplus
33848}
c63c7106
VZ
33849#endif
33850
e6cc62c6
VS
33851int
33852main ()
33853{
33854return f != socket;
33855 ;
33856 return 0;
33857}
33858_ACEOF
33859rm -f conftest.$ac_objext conftest$ac_exeext
33860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 33861 (eval $ac_link) 2>conftest.er1
e6cc62c6 33862 ac_status=$?
eea650d8
VS
33863 grep -v '^ *+' conftest.er1 >conftest.err
33864 rm -f conftest.er1
33865 cat conftest.err >&5
e6cc62c6
VS
33866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33867 (exit $ac_status); } &&
eea650d8
VS
33868 { ac_try='test -z "$ac_c_werror_flag"
33869 || test ! -s conftest.err'
33870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33871 (eval $ac_try) 2>&5
33872 ac_status=$?
33873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874 (exit $ac_status); }; } &&
33875 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33877 (eval $ac_try) 2>&5
33878 ac_status=$?
33879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33880 (exit $ac_status); }; }; then
33881 ac_cv_func_socket=yes
33882else
33883 echo "$as_me: failed program was:" >&5
33884sed 's/^/| /' conftest.$ac_ext >&5
33885
33886ac_cv_func_socket=no
33887fi
eea650d8
VS
33888rm -f conftest.err conftest.$ac_objext \
33889 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33890fi
33891echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
33892echo "${ECHO_T}$ac_cv_func_socket" >&6
33893if test $ac_cv_func_socket = yes; then
c63c7106
VZ
33894 :
33895else
0e012a93
VZ
33896
33897 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
e6cc62c6
VS
33898echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
33899if test "${ac_cv_lib_socket_socket+set}" = set; then
33900 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 33901else
e6cc62c6 33902 ac_check_lib_save_LIBS=$LIBS
c63c7106 33903LIBS="-lsocket $LIBS"
e6cc62c6 33904cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33905/* confdefs.h. */
33906_ACEOF
33907cat confdefs.h >>conftest.$ac_ext
33908cat >>conftest.$ac_ext <<_ACEOF
33909/* end confdefs.h. */
33910
c63c7106 33911/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33912#ifdef __cplusplus
33913extern "C"
33914#endif
c63c7106 33915/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33916 builtin and then its argument prototype would still apply. */
33917char socket ();
33918int
33919main ()
33920{
33921socket ();
33922 ;
33923 return 0;
33924}
33925_ACEOF
33926rm -f conftest.$ac_objext conftest$ac_exeext
33927if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 33928 (eval $ac_link) 2>conftest.er1
e6cc62c6 33929 ac_status=$?
eea650d8
VS
33930 grep -v '^ *+' conftest.er1 >conftest.err
33931 rm -f conftest.er1
33932 cat conftest.err >&5
e6cc62c6
VS
33933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33934 (exit $ac_status); } &&
eea650d8
VS
33935 { ac_try='test -z "$ac_c_werror_flag"
33936 || test ! -s conftest.err'
33937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33938 (eval $ac_try) 2>&5
33939 ac_status=$?
33940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33941 (exit $ac_status); }; } &&
33942 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33944 (eval $ac_try) 2>&5
33945 ac_status=$?
33946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33947 (exit $ac_status); }; }; then
33948 ac_cv_lib_socket_socket=yes
33949else
33950 echo "$as_me: failed program was:" >&5
33951sed 's/^/| /' conftest.$ac_ext >&5
33952
33953ac_cv_lib_socket_socket=no
33954fi
eea650d8
VS
33955rm -f conftest.err conftest.$ac_objext \
33956 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33957LIBS=$ac_check_lib_save_LIBS
33958fi
33959echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
33960echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
33961if test $ac_cv_lib_socket_socket = yes; then
d558c907 33962 if test "$INET_LINK" != " -lsocket"; then
0e012a93
VZ
33963 INET_LINK="$INET_LINK -lsocket"
33964 fi
c63c7106 33965else
afc31813 33966
0e012a93 33967 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
e6cc62c6 33968echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
0e012a93 33969 wxUSE_SOCKETS=no
e6cc62c6
VS
33970
33971
6232543b 33972fi
b089607b 33973
e6cc62c6 33974
0e012a93 33975
1e487827 33976fi
afc31813 33977
3a922bb4 33978 fi
0feee163 33979fi
51a9faba 33980
0feee163
VZ
33981if test "$wxUSE_SOCKETS" = "yes" ; then
33982 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
33983 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
33984echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
33985if test "${wx_cv_type_getsockname3+set}" = set; then
33986 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 33987else
e6cc62c6
VS
33988
33989 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33990/* confdefs.h. */
33991_ACEOF
33992cat confdefs.h >>conftest.$ac_ext
33993cat >>conftest.$ac_ext <<_ACEOF
33994/* end confdefs.h. */
51a9faba 33995
3a922bb4
RL
33996 #include <sys/types.h>
33997 #include <sys/socket.h>
e6cc62c6
VS
33998
33999int
34000main ()
34001{
51a9faba 34002
3a922bb4
RL
34003 socklen_t len;
34004 getsockname(0, 0, &len);
e6cc62c6
VS
34005
34006 ;
34007 return 0;
34008}
34009_ACEOF
34010rm -f conftest.$ac_objext
34011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 34012 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34013 ac_status=$?
eea650d8
VS
34014 grep -v '^ *+' conftest.er1 >conftest.err
34015 rm -f conftest.er1
34016 cat conftest.err >&5
e6cc62c6
VS
34017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34018 (exit $ac_status); } &&
eea650d8
VS
34019 { ac_try='test -z "$ac_c_werror_flag"
34020 || test ! -s conftest.err'
34021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34022 (eval $ac_try) 2>&5
34023 ac_status=$?
34024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34025 (exit $ac_status); }; } &&
34026 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
34027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34028 (eval $ac_try) 2>&5
34029 ac_status=$?
34030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34031 (exit $ac_status); }; }; then
51a9faba 34032 wx_cv_type_getsockname3=socklen_t
afc31813 34033else
e6cc62c6
VS
34034 echo "$as_me: failed program was:" >&5
34035sed 's/^/| /' conftest.$ac_ext >&5
34036
34037
9711d31e
GD
34038 CFLAGS_OLD="$CFLAGS"
34039 if test "$GCC" = yes ; then
34040 CFLAGS="$CFLAGS -Werror"
34041 fi
34042
e6cc62c6 34043 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34044/* confdefs.h. */
34045_ACEOF
34046cat confdefs.h >>conftest.$ac_ext
34047cat >>conftest.$ac_ext <<_ACEOF
34048/* end confdefs.h. */
51a9faba 34049
9711d31e
GD
34050 #include <sys/types.h>
34051 #include <sys/socket.h>
e6cc62c6
VS
34052
34053int
34054main ()
34055{
51a9faba 34056
9711d31e
GD
34057 size_t len;
34058 getsockname(0, 0, &len);
e6cc62c6
VS
34059
34060 ;
34061 return 0;
34062}
34063_ACEOF
34064rm -f conftest.$ac_objext
34065if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 34066 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34067 ac_status=$?
eea650d8
VS
34068 grep -v '^ *+' conftest.er1 >conftest.err
34069 rm -f conftest.er1
34070 cat conftest.err >&5
e6cc62c6
VS
34071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34072 (exit $ac_status); } &&
eea650d8
VS
34073 { ac_try='test -z "$ac_c_werror_flag"
34074 || test ! -s conftest.err'
34075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34076 (eval $ac_try) 2>&5
34077 ac_status=$?
34078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34079 (exit $ac_status); }; } &&
34080 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
34081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34082 (eval $ac_try) 2>&5
34083 ac_status=$?
34084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34085 (exit $ac_status); }; }; then
51a9faba 34086 wx_cv_type_getsockname3=size_t
afc31813 34087else
e6cc62c6
VS
34088 echo "$as_me: failed program was:" >&5
34089sed 's/^/| /' conftest.$ac_ext >&5
34090
34091cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34092/* confdefs.h. */
34093_ACEOF
34094cat confdefs.h >>conftest.$ac_ext
34095cat >>conftest.$ac_ext <<_ACEOF
34096/* end confdefs.h. */
51a9faba 34097
9711d31e
GD
34098 #include <sys/types.h>
34099 #include <sys/socket.h>
e6cc62c6
VS
34100
34101int
34102main ()
34103{
51a9faba 34104
9711d31e
GD
34105 int len;
34106 getsockname(0, 0, &len);
e6cc62c6
VS
34107
34108 ;
34109 return 0;
34110}
34111_ACEOF
34112rm -f conftest.$ac_objext
34113if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 34114 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34115 ac_status=$?
eea650d8
VS
34116 grep -v '^ *+' conftest.er1 >conftest.err
34117 rm -f conftest.er1
34118 cat conftest.err >&5
e6cc62c6
VS
34119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34120 (exit $ac_status); } &&
eea650d8
VS
34121 { ac_try='test -z "$ac_c_werror_flag"
34122 || test ! -s conftest.err'
34123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34124 (eval $ac_try) 2>&5
34125 ac_status=$?
34126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34127 (exit $ac_status); }; } &&
34128 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
34129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34130 (eval $ac_try) 2>&5
34131 ac_status=$?
34132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34133 (exit $ac_status); }; }; then
51a9faba 34134 wx_cv_type_getsockname3=int
afc31813 34135else
e6cc62c6
VS
34136 echo "$as_me: failed program was:" >&5
34137sed 's/^/| /' conftest.$ac_ext >&5
34138
34139wx_cv_type_getsockname3=unknown
34140
afc31813 34141fi
eea650d8 34142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 34143
afc31813 34144fi
eea650d8 34145rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9711d31e
GD
34146
34147 CFLAGS="$CFLAGS_OLD"
e6cc62c6
VS
34148
34149
247f5006 34150fi
eea650d8 34151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 34152
e6cc62c6
VS
34153fi
34154echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
34155echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 34156
3a922bb4
RL
34157 if test "$wx_cv_type_getsockname3" = "unknown"; then
34158 wxUSE_SOCKETS=no
e6cc62c6
VS
34159 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
34160echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 34161 else
e6cc62c6 34162 cat >>confdefs.h <<_ACEOF
51a9faba 34163#define SOCKLEN_T $wx_cv_type_getsockname3
e6cc62c6 34164_ACEOF
51a9faba 34165
3a922bb4 34166 fi
51a9faba
VZ
34167 fi
34168fi
afc31813 34169
51a9faba 34170if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 34171 cat >>confdefs.h <<\_ACEOF
afc31813 34172#define wxUSE_SOCKETS 1
e6cc62c6 34173_ACEOF
afc31813 34174
70f7a477 34175 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
34176fi
34177
3879ecda
VZ
34178if test "$wxUSE_PROTOCOL" = "yes"; then
34179 if test "$wxUSE_SOCKETS" != "yes"; then
34180 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
34181echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
34182 wxUSE_PROTOCOL=no
34183 fi
34184fi
34185
34186if test "$wxUSE_PROTOCOL" = "yes"; then
34187 cat >>confdefs.h <<\_ACEOF
34188#define wxUSE_PROTOCOL 1
34189_ACEOF
34190
34191
34192 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
34193 cat >>confdefs.h <<\_ACEOF
34194#define wxUSE_PROTOCOL_HTTP 1
34195_ACEOF
34196
34197 fi
34198 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
34199 cat >>confdefs.h <<\_ACEOF
34200#define wxUSE_PROTOCOL_FTP 1
34201_ACEOF
34202
34203 fi
34204 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
34205 cat >>confdefs.h <<\_ACEOF
34206#define wxUSE_PROTOCOL_FILE 1
34207_ACEOF
34208
34209 fi
34210else
34211 if test "$wxUSE_FS_INET" = "yes"; then
34212 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
34213echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
34214 wxUSE_FS_INET="no"
34215 fi
34216fi
34217
34218if test "$wxUSE_URL" = "yes"; then
34219 if test "$wxUSE_PROTOCOL" != "yes"; then
34220 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
34221echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
34222 wxUSE_URL=no
34223 fi
34224 if test "$wxUSE_URL" = "yes"; then
34225 cat >>confdefs.h <<\_ACEOF
34226#define wxUSE_URL 1
34227_ACEOF
34228
34229 fi
34230fi
34231
34232if test "$wxUSE_FS_INET" = "yes"; then
34233 cat >>confdefs.h <<\_ACEOF
34234#define wxUSE_FS_INET 1
34235_ACEOF
34236
34237fi
34238
8284b0c5 34239
dc3d889d
VZ
34240if test "$wxUSE_GUI" = "yes"; then
34241
ac0c4cc3 34242 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
e6cc62c6
VS
34243 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
34244echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523 34245 wxUSE_JOYSTICK=no
156b2523
GD
34246 fi
34247
131f235d 34248 if test "$TOOLKIT" != "MSW"; then
3a922bb4 34249 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6
VS
34250
34251for ac_header in linux/joystick.h
10f2d63a 34252do
e6cc62c6
VS
34253as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34254if eval "test \"\${$as_ac_Header+set}\" = set"; then
34255 echo "$as_me:$LINENO: checking for $ac_header" >&5
34256echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34257if eval "test \"\${$as_ac_Header+set}\" = set"; then
34258 echo $ECHO_N "(cached) $ECHO_C" >&6
34259fi
34260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34261echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34262else
34263 # Is the header compilable?
34264echo "$as_me:$LINENO: checking $ac_header usability" >&5
34265echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34266cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34267/* confdefs.h. */
34268_ACEOF
34269cat confdefs.h >>conftest.$ac_ext
34270cat >>conftest.$ac_ext <<_ACEOF
34271/* end confdefs.h. */
34272$ac_includes_default
34273#include <$ac_header>
34274_ACEOF
34275rm -f conftest.$ac_objext
34276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 34277 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34278 ac_status=$?
eea650d8
VS
34279 grep -v '^ *+' conftest.er1 >conftest.err
34280 rm -f conftest.er1
34281 cat conftest.err >&5
e6cc62c6
VS
34282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34283 (exit $ac_status); } &&
eea650d8
VS
34284 { ac_try='test -z "$ac_c_werror_flag"
34285 || test ! -s conftest.err'
34286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34287 (eval $ac_try) 2>&5
34288 ac_status=$?
34289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34290 (exit $ac_status); }; } &&
34291 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
34292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34293 (eval $ac_try) 2>&5
34294 ac_status=$?
34295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34296 (exit $ac_status); }; }; then
34297 ac_header_compiler=yes
34298else
34299 echo "$as_me: failed program was:" >&5
34300sed 's/^/| /' conftest.$ac_ext >&5
34301
34302ac_header_compiler=no
34303fi
eea650d8 34304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
34305echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34306echo "${ECHO_T}$ac_header_compiler" >&6
34307
34308# Is the header present?
34309echo "$as_me:$LINENO: checking $ac_header presence" >&5
34310echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34311cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34312/* confdefs.h. */
34313_ACEOF
34314cat confdefs.h >>conftest.$ac_ext
34315cat >>conftest.$ac_ext <<_ACEOF
34316/* end confdefs.h. */
34317#include <$ac_header>
34318_ACEOF
34319if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34321 ac_status=$?
34322 grep -v '^ *+' conftest.er1 >conftest.err
34323 rm -f conftest.er1
34324 cat conftest.err >&5
34325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34326 (exit $ac_status); } >/dev/null; then
34327 if test -s conftest.err; then
34328 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 34329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
34330 else
34331 ac_cpp_err=
34332 fi
34333else
34334 ac_cpp_err=yes
34335fi
34336if test -z "$ac_cpp_err"; then
34337 ac_header_preproc=yes
34338else
34339 echo "$as_me: failed program was:" >&5
34340sed 's/^/| /' conftest.$ac_ext >&5
34341
34342 ac_header_preproc=no
34343fi
34344rm -f conftest.err conftest.$ac_ext
34345echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34346echo "${ECHO_T}$ac_header_preproc" >&6
34347
34348# So? What about this header?
eea650d8
VS
34349case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34350 yes:no: )
e6cc62c6
VS
34351 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34352echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
34353 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34354echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34355 ac_header_preproc=yes
e6cc62c6 34356 ;;
eea650d8 34357 no:yes:* )
e6cc62c6
VS
34358 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34359echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
34360 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34361echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34362 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34363echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34364 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34365echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
34366 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34367echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
34368 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34369echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
34370 (
34371 cat <<\_ASBOX
eea650d8
VS
34372## ----------------------------------------- ##
34373## Report this to wx-dev@lists.wxwindows.org ##
34374## ----------------------------------------- ##
e6cc62c6
VS
34375_ASBOX
34376 ) |
34377 sed "s/^/$as_me: WARNING: /" >&2
34378 ;;
34379esac
34380echo "$as_me:$LINENO: checking for $ac_header" >&5
34381echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34382if eval "test \"\${$as_ac_Header+set}\" = set"; then
34383 echo $ECHO_N "(cached) $ECHO_C" >&6
34384else
eea650d8 34385 eval "$as_ac_Header=\$ac_header_preproc"
247f5006 34386fi
e6cc62c6
VS
34387echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34388echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34389
10f2d63a 34390fi
e6cc62c6
VS
34391if test `eval echo '${'$as_ac_Header'}'` = yes; then
34392 cat >>confdefs.h <<_ACEOF
34393#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34394_ACEOF
34395
247f5006 34396fi
e6cc62c6 34397
10f2d63a
VZ
34398done
34399
3a922bb4
RL
34400 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
34401 wxUSE_JOYSTICK=no
e6cc62c6
VS
34402 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
34403echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
34404 fi
34405 fi
34406 fi
b089607b 34407
3a922bb4 34408 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6 34409 cat >>confdefs.h <<\_ACEOF
10f2d63a 34410#define wxUSE_JOYSTICK 1
e6cc62c6 34411_ACEOF
10f2d63a 34412
3a922bb4
RL
34413 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
34414 fi
dc3d889d
VZ
34415fi
34416
8284b0c5 34417
73d617c9 34418if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
b089607b 34419
3a922bb4
RL
34420 HAVE_DL_FUNCS=0
34421 HAVE_SHL_FUNCS=0
0b9ab0bd 34422 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
34423 if test "$USE_DARWIN" = 1; then
34424 HAVE_DL_FUNCS=1
34425 else
e6cc62c6
VS
34426
34427for ac_func in dlopen
10f2d63a 34428do
e6cc62c6
VS
34429as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34430echo "$as_me:$LINENO: checking for $ac_func" >&5
34431echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34432if eval "test \"\${$as_ac_var+set}\" = set"; then
34433 echo $ECHO_N "(cached) $ECHO_C" >&6
34434else
34435 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34436/* confdefs.h. */
34437_ACEOF
34438cat confdefs.h >>conftest.$ac_ext
34439cat >>conftest.$ac_ext <<_ACEOF
34440/* end confdefs.h. */
eea650d8
VS
34441/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34442 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34443#define $ac_func innocuous_$ac_func
34444
10f2d63a 34445/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34446 which can conflict with char $ac_func (); below.
34447 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34448 <limits.h> exists even on freestanding compilers. */
eea650d8 34449
e6cc62c6
VS
34450#ifdef __STDC__
34451# include <limits.h>
34452#else
34453# include <assert.h>
34454#endif
eea650d8
VS
34455
34456#undef $ac_func
34457
10f2d63a 34458/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34459#ifdef __cplusplus
34460extern "C"
34461{
34462#endif
10f2d63a 34463/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34464 builtin and then its argument prototype would still apply. */
34465char $ac_func ();
10f2d63a
VZ
34466/* The GNU C library defines this for functions which it implements
34467 to always fail with ENOSYS. Some functions are actually named
34468 something starting with __ and the normal name is an alias. */
34469#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34470choke me
34471#else
e6cc62c6
VS
34472char (*f) () = $ac_func;
34473#endif
34474#ifdef __cplusplus
34475}
10f2d63a
VZ
34476#endif
34477
e6cc62c6
VS
34478int
34479main ()
34480{
34481return f != $ac_func;
34482 ;
34483 return 0;
34484}
34485_ACEOF
34486rm -f conftest.$ac_objext conftest$ac_exeext
34487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 34488 (eval $ac_link) 2>conftest.er1
e6cc62c6 34489 ac_status=$?
eea650d8
VS
34490 grep -v '^ *+' conftest.er1 >conftest.err
34491 rm -f conftest.er1
34492 cat conftest.err >&5
e6cc62c6
VS
34493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34494 (exit $ac_status); } &&
eea650d8
VS
34495 { ac_try='test -z "$ac_c_werror_flag"
34496 || test ! -s conftest.err'
34497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34498 (eval $ac_try) 2>&5
34499 ac_status=$?
34500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34501 (exit $ac_status); }; } &&
34502 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34504 (eval $ac_try) 2>&5
34505 ac_status=$?
34506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34507 (exit $ac_status); }; }; then
34508 eval "$as_ac_var=yes"
34509else
34510 echo "$as_me: failed program was:" >&5
34511sed 's/^/| /' conftest.$ac_ext >&5
34512
34513eval "$as_ac_var=no"
34514fi
eea650d8
VS
34515rm -f conftest.err conftest.$ac_objext \
34516 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34517fi
34518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34519echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34520if test `eval echo '${'$as_ac_var'}'` = yes; then
34521 cat >>confdefs.h <<_ACEOF
34522#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34523_ACEOF
34524
34525 cat >>confdefs.h <<\_ACEOF
10f2d63a 34526#define HAVE_DLOPEN 1
e6cc62c6 34527_ACEOF
10f2d63a 34528
3a922bb4 34529 HAVE_DL_FUNCS=1
e6cc62c6 34530
10f2d63a 34531else
e6cc62c6
VS
34532
34533 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
34534echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
34535if test "${ac_cv_lib_dl_dlopen+set}" = set; then
34536 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 34537else
e6cc62c6 34538 ac_check_lib_save_LIBS=$LIBS
10f2d63a 34539LIBS="-ldl $LIBS"
e6cc62c6 34540cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34541/* confdefs.h. */
34542_ACEOF
34543cat confdefs.h >>conftest.$ac_ext
34544cat >>conftest.$ac_ext <<_ACEOF
34545/* end confdefs.h. */
34546
10f2d63a 34547/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34548#ifdef __cplusplus
34549extern "C"
34550#endif
10f2d63a 34551/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34552 builtin and then its argument prototype would still apply. */
34553char dlopen ();
34554int
34555main ()
34556{
34557dlopen ();
34558 ;
34559 return 0;
34560}
34561_ACEOF
34562rm -f conftest.$ac_objext conftest$ac_exeext
34563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 34564 (eval $ac_link) 2>conftest.er1
e6cc62c6 34565 ac_status=$?
eea650d8
VS
34566 grep -v '^ *+' conftest.er1 >conftest.err
34567 rm -f conftest.er1
34568 cat conftest.err >&5
e6cc62c6
VS
34569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34570 (exit $ac_status); } &&
eea650d8
VS
34571 { ac_try='test -z "$ac_c_werror_flag"
34572 || test ! -s conftest.err'
34573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34574 (eval $ac_try) 2>&5
34575 ac_status=$?
34576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34577 (exit $ac_status); }; } &&
34578 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34580 (eval $ac_try) 2>&5
34581 ac_status=$?
34582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34583 (exit $ac_status); }; }; then
34584 ac_cv_lib_dl_dlopen=yes
34585else
34586 echo "$as_me: failed program was:" >&5
34587sed 's/^/| /' conftest.$ac_ext >&5
34588
34589ac_cv_lib_dl_dlopen=no
34590fi
eea650d8
VS
34591rm -f conftest.err conftest.$ac_objext \
34592 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34593LIBS=$ac_check_lib_save_LIBS
34594fi
34595echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
34596echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
34597if test $ac_cv_lib_dl_dlopen = yes; then
34598
34599 cat >>confdefs.h <<\_ACEOF
10f2d63a 34600#define HAVE_DLOPEN 1
e6cc62c6 34601_ACEOF
10f2d63a 34602
3a922bb4 34603 HAVE_DL_FUNCS=1
3d63bc3a 34604 DL_LINK=" -ldl$DL_LINK"
e6cc62c6 34605
10f2d63a 34606else
10f2d63a 34607
e6cc62c6
VS
34608
34609for ac_func in shl_load
10f2d63a 34610do
e6cc62c6
VS
34611as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34612echo "$as_me:$LINENO: checking for $ac_func" >&5
34613echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34614if eval "test \"\${$as_ac_var+set}\" = set"; then
34615 echo $ECHO_N "(cached) $ECHO_C" >&6
34616else
34617 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34618/* confdefs.h. */
34619_ACEOF
34620cat confdefs.h >>conftest.$ac_ext
34621cat >>conftest.$ac_ext <<_ACEOF
34622/* end confdefs.h. */
eea650d8
VS
34623/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34625#define $ac_func innocuous_$ac_func
34626
10f2d63a 34627/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34628 which can conflict with char $ac_func (); below.
34629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34630 <limits.h> exists even on freestanding compilers. */
eea650d8 34631
e6cc62c6
VS
34632#ifdef __STDC__
34633# include <limits.h>
34634#else
34635# include <assert.h>
34636#endif
eea650d8
VS
34637
34638#undef $ac_func
34639
10f2d63a 34640/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34641#ifdef __cplusplus
34642extern "C"
34643{
34644#endif
10f2d63a 34645/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34646 builtin and then its argument prototype would still apply. */
34647char $ac_func ();
10f2d63a
VZ
34648/* The GNU C library defines this for functions which it implements
34649 to always fail with ENOSYS. Some functions are actually named
34650 something starting with __ and the normal name is an alias. */
34651#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34652choke me
34653#else
e6cc62c6
VS
34654char (*f) () = $ac_func;
34655#endif
34656#ifdef __cplusplus
34657}
10f2d63a
VZ
34658#endif
34659
e6cc62c6
VS
34660int
34661main ()
34662{
34663return f != $ac_func;
34664 ;
34665 return 0;
34666}
34667_ACEOF
34668rm -f conftest.$ac_objext conftest$ac_exeext
34669if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 34670 (eval $ac_link) 2>conftest.er1
e6cc62c6 34671 ac_status=$?
eea650d8
VS
34672 grep -v '^ *+' conftest.er1 >conftest.err
34673 rm -f conftest.er1
34674 cat conftest.err >&5
e6cc62c6
VS
34675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34676 (exit $ac_status); } &&
eea650d8
VS
34677 { ac_try='test -z "$ac_c_werror_flag"
34678 || test ! -s conftest.err'
34679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34680 (eval $ac_try) 2>&5
34681 ac_status=$?
34682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34683 (exit $ac_status); }; } &&
34684 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34686 (eval $ac_try) 2>&5
34687 ac_status=$?
34688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34689 (exit $ac_status); }; }; then
34690 eval "$as_ac_var=yes"
34691else
34692 echo "$as_me: failed program was:" >&5
34693sed 's/^/| /' conftest.$ac_ext >&5
34694
34695eval "$as_ac_var=no"
34696fi
eea650d8
VS
34697rm -f conftest.err conftest.$ac_objext \
34698 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34699fi
34700echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34701echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34702if test `eval echo '${'$as_ac_var'}'` = yes; then
34703 cat >>confdefs.h <<_ACEOF
34704#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34705_ACEOF
34706
34707 cat >>confdefs.h <<\_ACEOF
10f2d63a 34708#define HAVE_SHL_LOAD 1
e6cc62c6 34709_ACEOF
10f2d63a 34710
3a922bb4 34711 HAVE_SHL_FUNCS=1
e6cc62c6 34712
10f2d63a 34713else
e6cc62c6
VS
34714
34715 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
34716echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
34717if test "${ac_cv_lib_shl_load_dld+set}" = set; then
34718 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 34719else
e6cc62c6 34720 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 34721LIBS="-lshl_load $LIBS"
e6cc62c6 34722cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34723/* confdefs.h. */
34724_ACEOF
34725cat confdefs.h >>conftest.$ac_ext
34726cat >>conftest.$ac_ext <<_ACEOF
34727/* end confdefs.h. */
34728
8284b0c5 34729/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34730#ifdef __cplusplus
34731extern "C"
34732#endif
f6bcfd97 34733/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34734 builtin and then its argument prototype would still apply. */
34735char dld ();
34736int
34737main ()
34738{
34739dld ();
34740 ;
34741 return 0;
34742}
34743_ACEOF
34744rm -f conftest.$ac_objext conftest$ac_exeext
34745if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 34746 (eval $ac_link) 2>conftest.er1
e6cc62c6 34747 ac_status=$?
eea650d8
VS
34748 grep -v '^ *+' conftest.er1 >conftest.err
34749 rm -f conftest.er1
34750 cat conftest.err >&5
e6cc62c6
VS
34751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34752 (exit $ac_status); } &&
eea650d8
VS
34753 { ac_try='test -z "$ac_c_werror_flag"
34754 || test ! -s conftest.err'
34755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34756 (eval $ac_try) 2>&5
34757 ac_status=$?
34758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34759 (exit $ac_status); }; } &&
34760 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34762 (eval $ac_try) 2>&5
34763 ac_status=$?
34764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34765 (exit $ac_status); }; }; then
34766 ac_cv_lib_shl_load_dld=yes
34767else
34768 echo "$as_me: failed program was:" >&5
34769sed 's/^/| /' conftest.$ac_ext >&5
34770
34771ac_cv_lib_shl_load_dld=no
34772fi
eea650d8
VS
34773rm -f conftest.err conftest.$ac_objext \
34774 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34775LIBS=$ac_check_lib_save_LIBS
34776fi
34777echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
34778echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
34779if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 34780
3a922bb4 34781 HAVE_SHL_FUNCS=1
3d63bc3a 34782 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 34783
f6bcfd97
BP
34784fi
34785
e6cc62c6 34786
10f2d63a
VZ
34787fi
34788done
34789
e6cc62c6 34790
10f2d63a
VZ
34791fi
34792
e6cc62c6 34793
10f2d63a
VZ
34794fi
34795done
34796
5c6fa7d2 34797
8284b0c5 34798 if test "$HAVE_DL_FUNCS" = 1; then
e6cc62c6
VS
34799
34800for ac_func in dlerror
f6bcfd97 34801do
e6cc62c6
VS
34802as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34803echo "$as_me:$LINENO: checking for $ac_func" >&5
34804echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34805if eval "test \"\${$as_ac_var+set}\" = set"; then
34806 echo $ECHO_N "(cached) $ECHO_C" >&6
34807else
34808 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34809/* confdefs.h. */
34810_ACEOF
34811cat confdefs.h >>conftest.$ac_ext
34812cat >>conftest.$ac_ext <<_ACEOF
34813/* end confdefs.h. */
eea650d8
VS
34814/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34816#define $ac_func innocuous_$ac_func
34817
f6bcfd97 34818/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34819 which can conflict with char $ac_func (); below.
34820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34821 <limits.h> exists even on freestanding compilers. */
eea650d8 34822
e6cc62c6
VS
34823#ifdef __STDC__
34824# include <limits.h>
34825#else
34826# include <assert.h>
34827#endif
eea650d8
VS
34828
34829#undef $ac_func
34830
f6bcfd97 34831/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34832#ifdef __cplusplus
34833extern "C"
34834{
34835#endif
f6bcfd97 34836/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34837 builtin and then its argument prototype would still apply. */
34838char $ac_func ();
f6bcfd97
BP
34839/* The GNU C library defines this for functions which it implements
34840 to always fail with ENOSYS. Some functions are actually named
34841 something starting with __ and the normal name is an alias. */
34842#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34843choke me
34844#else
e6cc62c6
VS
34845char (*f) () = $ac_func;
34846#endif
34847#ifdef __cplusplus
34848}
f6bcfd97
BP
34849#endif
34850
e6cc62c6
VS
34851int
34852main ()
34853{
34854return f != $ac_func;
34855 ;
34856 return 0;
34857}
34858_ACEOF
34859rm -f conftest.$ac_objext conftest$ac_exeext
34860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 34861 (eval $ac_link) 2>conftest.er1
e6cc62c6 34862 ac_status=$?
eea650d8
VS
34863 grep -v '^ *+' conftest.er1 >conftest.err
34864 rm -f conftest.er1
34865 cat conftest.err >&5
e6cc62c6
VS
34866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34867 (exit $ac_status); } &&
eea650d8
VS
34868 { ac_try='test -z "$ac_c_werror_flag"
34869 || test ! -s conftest.err'
34870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34871 (eval $ac_try) 2>&5
34872 ac_status=$?
34873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34874 (exit $ac_status); }; } &&
34875 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34877 (eval $ac_try) 2>&5
34878 ac_status=$?
34879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34880 (exit $ac_status); }; }; then
34881 eval "$as_ac_var=yes"
34882else
34883 echo "$as_me: failed program was:" >&5
34884sed 's/^/| /' conftest.$ac_ext >&5
34885
34886eval "$as_ac_var=no"
34887fi
eea650d8
VS
34888rm -f conftest.err conftest.$ac_objext \
34889 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34890fi
34891echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34892echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34893if test `eval echo '${'$as_ac_var'}'` = yes; then
34894 cat >>confdefs.h <<_ACEOF
34895#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34896_ACEOF
34897 cat >>confdefs.h <<\_ACEOF
f6bcfd97 34898#define HAVE_DLERROR 1
e6cc62c6 34899_ACEOF
f6bcfd97
BP
34900
34901else
0e012a93
VZ
34902
34903 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
e6cc62c6
VS
34904echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34905if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34906 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 34907else
e6cc62c6 34908 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 34909LIBS="-ldl $LIBS"
e6cc62c6 34910cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34911/* confdefs.h. */
34912_ACEOF
34913cat confdefs.h >>conftest.$ac_ext
34914cat >>conftest.$ac_ext <<_ACEOF
34915/* end confdefs.h. */
34916
f6bcfd97 34917/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34918#ifdef __cplusplus
34919extern "C"
34920#endif
f6bcfd97 34921/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34922 builtin and then its argument prototype would still apply. */
34923char dlerror ();
34924int
34925main ()
34926{
34927dlerror ();
34928 ;
34929 return 0;
34930}
34931_ACEOF
34932rm -f conftest.$ac_objext conftest$ac_exeext
34933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 34934 (eval $ac_link) 2>conftest.er1
e6cc62c6 34935 ac_status=$?
eea650d8
VS
34936 grep -v '^ *+' conftest.er1 >conftest.err
34937 rm -f conftest.er1
34938 cat conftest.err >&5
e6cc62c6
VS
34939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34940 (exit $ac_status); } &&
eea650d8
VS
34941 { ac_try='test -z "$ac_c_werror_flag"
34942 || test ! -s conftest.err'
34943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34944 (eval $ac_try) 2>&5
34945 ac_status=$?
34946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34947 (exit $ac_status); }; } &&
34948 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34950 (eval $ac_try) 2>&5
34951 ac_status=$?
34952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34953 (exit $ac_status); }; }; then
34954 ac_cv_lib_dl_dlerror=yes
34955else
34956 echo "$as_me: failed program was:" >&5
34957sed 's/^/| /' conftest.$ac_ext >&5
34958
34959ac_cv_lib_dl_dlerror=no
34960fi
eea650d8
VS
34961rm -f conftest.err conftest.$ac_objext \
34962 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34963LIBS=$ac_check_lib_save_LIBS
34964fi
34965echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34966echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34967if test $ac_cv_lib_dl_dlerror = yes; then
34968 cat >>confdefs.h <<\_ACEOF
f6bcfd97 34969#define HAVE_DLERROR 1
e6cc62c6 34970_ACEOF
f6bcfd97 34971
f6bcfd97
BP
34972fi
34973
0e012a93
VZ
34974
34975
f6bcfd97
BP
34976fi
34977done
34978
3a922bb4
RL
34979 fi
34980 fi
f6bcfd97 34981
3a922bb4
RL
34982 if test "$HAVE_DL_FUNCS" = 0; then
34983 if test "$HAVE_SHL_FUNCS" = 0; then
34984 if test "$USE_UNIX" = 1; then
e6cc62c6
VS
34985 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34986echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 34987 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
34988 wxUSE_DYNLIB_CLASS=no
34989 else
e6cc62c6
VS
34990 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34991echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
34992 fi
34993 fi
10f2d63a
VZ
34994 fi
34995 fi
34996fi
34997
0b9ab0bd 34998if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
e6cc62c6 34999 cat >>confdefs.h <<\_ACEOF
0b9ab0bd 35000#define wxUSE_DYNAMIC_LOADER 1
e6cc62c6 35001_ACEOF
0b9ab0bd 35002
1948bb32
VS
35003fi
35004if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
e6cc62c6 35005 cat >>confdefs.h <<\_ACEOF
10f2d63a 35006#define wxUSE_DYNLIB_CLASS 1
e6cc62c6 35007_ACEOF
10f2d63a
VZ
35008
35009fi
35010
8284b0c5 35011
1e6feb95 35012if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 35013 cat >>confdefs.h <<\_ACEOF
1e6feb95 35014#define wxUSE_FONTMAP 1
e6cc62c6 35015_ACEOF
1e6feb95
VZ
35016
35017fi
35018
10f2d63a 35019if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 35020 cat >>confdefs.h <<\_ACEOF
10f2d63a 35021#define wxUSE_UNICODE 1
e6cc62c6 35022_ACEOF
10f2d63a 35023
8284b0c5 35024
eb854003 35025 if test "$USE_WIN32" != 1; then
bbc3925a
VS
35026 wxUSE_UNICODE_MSLU=no
35027 fi
a72a4bfa 35028
eb854003 35029 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
35030 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
35031echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
35032if test "${ac_cv_lib_unicows_main+set}" = set; then
35033 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 35034else
e6cc62c6 35035 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 35036LIBS="-lunicows $LIBS"
e6cc62c6 35037cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35038/* confdefs.h. */
35039_ACEOF
35040cat confdefs.h >>conftest.$ac_ext
35041cat >>conftest.$ac_ext <<_ACEOF
35042/* end confdefs.h. */
a72a4bfa 35043
8284b0c5 35044
e6cc62c6
VS
35045int
35046main ()
35047{
35048main ();
35049 ;
35050 return 0;
35051}
35052_ACEOF
35053rm -f conftest.$ac_objext conftest$ac_exeext
35054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 35055 (eval $ac_link) 2>conftest.er1
e6cc62c6 35056 ac_status=$?
eea650d8
VS
35057 grep -v '^ *+' conftest.er1 >conftest.err
35058 rm -f conftest.er1
35059 cat conftest.err >&5
e6cc62c6
VS
35060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35061 (exit $ac_status); } &&
eea650d8
VS
35062 { ac_try='test -z "$ac_c_werror_flag"
35063 || test ! -s conftest.err'
35064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35065 (eval $ac_try) 2>&5
35066 ac_status=$?
35067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35068 (exit $ac_status); }; } &&
35069 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
35070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35071 (eval $ac_try) 2>&5
35072 ac_status=$?
35073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35074 (exit $ac_status); }; }; then
35075 ac_cv_lib_unicows_main=yes
35076else
35077 echo "$as_me: failed program was:" >&5
35078sed 's/^/| /' conftest.$ac_ext >&5
35079
35080ac_cv_lib_unicows_main=no
35081fi
eea650d8
VS
35082rm -f conftest.err conftest.$ac_objext \
35083 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
35084LIBS=$ac_check_lib_save_LIBS
35085fi
35086echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
35087echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
35088if test $ac_cv_lib_unicows_main = yes; then
35089
35090 cat >>confdefs.h <<\_ACEOF
a72a4bfa 35091#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
35092_ACEOF
35093
a72a4bfa 35094
a72a4bfa 35095else
a72a4bfa 35096
e6cc62c6
VS
35097 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35098 Applications will only run on Windows NT/2000/XP!" >&5
35099echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35100 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 35101 wxUSE_UNICODE_MSLU=no
e6cc62c6 35102
a72a4bfa
VS
35103fi
35104
35105 fi
10f2d63a
VZ
35106fi
35107
10f2d63a 35108if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 35109 cat >>confdefs.h <<\_ACEOF
10f2d63a 35110#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 35111_ACEOF
10f2d63a
VZ
35112
35113fi
35114
8284b0c5 35115
10f2d63a 35116if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 35117 cat >>confdefs.h <<\_ACEOF
10f2d63a 35118#define wxUSE_POSTSCRIPT 1
e6cc62c6 35119_ACEOF
10f2d63a
VZ
35120
35121fi
35122
e6cc62c6 35123cat >>confdefs.h <<\_ACEOF
10f2d63a 35124#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 35125_ACEOF
10f2d63a 35126
8284b0c5 35127
e6cc62c6 35128cat >>confdefs.h <<\_ACEOF
10f2d63a 35129#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 35130_ACEOF
10f2d63a 35131
8284b0c5
MB
35132
35133
10f2d63a 35134if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 35135 cat >>confdefs.h <<\_ACEOF
10f2d63a 35136#define wxUSE_CONSTRAINTS 1
e6cc62c6 35137_ACEOF
10f2d63a
VZ
35138
35139 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
35140fi
35141
3879ecda 35142if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 35143 cat >>confdefs.h <<\_ACEOF
10f2d63a 35144#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 35145_ACEOF
10f2d63a 35146
1772d20c 35147 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
35148fi
35149
35150if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 35151 cat >>confdefs.h <<\_ACEOF
10f2d63a 35152#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 35153_ACEOF
10f2d63a
VZ
35154
35155 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
35156 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
35157 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
35158 fi
35159fi
35160
35161if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 35162 cat >>confdefs.h <<\_ACEOF
10f2d63a 35163#define wxUSE_HELP 1
e6cc62c6 35164_ACEOF
10f2d63a
VZ
35165
35166 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 35167
77e13408 35168 if test "$wxUSE_MSW" = 1; then
031d8228 35169 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 35170 cat >>confdefs.h <<\_ACEOF
29fd3c0c 35171#define wxUSE_MS_HTML_HELP 1
e6cc62c6 35172_ACEOF
29fd3c0c 35173
3e44f09d 35174 fi
3379ed37 35175 fi
031d8228
VS
35176
35177 if test "$wxUSE_WXHTML_HELP" = "yes"; then
35178 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 35179 cat >>confdefs.h <<\_ACEOF
031d8228 35180#define wxUSE_WXHTML_HELP 1
e6cc62c6 35181_ACEOF
031d8228
VS
35182
35183 else
e6cc62c6
VS
35184 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
35185echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
35186 wxUSE_WXHTML_HELP=no
35187 fi
35188 fi
10f2d63a
VZ
35189fi
35190
35191if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
35192 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
35193 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
35194echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 35195 else
e6cc62c6 35196 cat >>confdefs.h <<\_ACEOF
10f2d63a 35197#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 35198_ACEOF
10f2d63a
VZ
35199
35200 fi
35201 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
35202fi
35203
e6cc62c6
VS
35204if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
35205 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
35206echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
35207 { (exit 1); exit 1; }; }
35208fi
35209
35210
35211if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
35212 -o "$wxUSE_CLIPBOARD" = "yes" \
35213 -o "$wxUSE_OLE" = "yes" \
35214 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
35215
35216for ac_header in ole2.h
35217do
35218as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35219if eval "test \"\${$as_ac_Header+set}\" = set"; then
35220 echo "$as_me:$LINENO: checking for $ac_header" >&5
35221echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35222if eval "test \"\${$as_ac_Header+set}\" = set"; then
35223 echo $ECHO_N "(cached) $ECHO_C" >&6
35224fi
35225echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35226echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35227else
35228 # Is the header compilable?
35229echo "$as_me:$LINENO: checking $ac_header usability" >&5
35230echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35231cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35232/* confdefs.h. */
35233_ACEOF
35234cat confdefs.h >>conftest.$ac_ext
35235cat >>conftest.$ac_ext <<_ACEOF
35236/* end confdefs.h. */
35237$ac_includes_default
35238#include <$ac_header>
35239_ACEOF
35240rm -f conftest.$ac_objext
35241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 35242 (eval $ac_compile) 2>conftest.er1
e6cc62c6 35243 ac_status=$?
eea650d8
VS
35244 grep -v '^ *+' conftest.er1 >conftest.err
35245 rm -f conftest.er1
35246 cat conftest.err >&5
e6cc62c6
VS
35247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35248 (exit $ac_status); } &&
eea650d8
VS
35249 { ac_try='test -z "$ac_c_werror_flag"
35250 || test ! -s conftest.err'
35251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35252 (eval $ac_try) 2>&5
35253 ac_status=$?
35254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35255 (exit $ac_status); }; } &&
35256 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
35257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35258 (eval $ac_try) 2>&5
35259 ac_status=$?
35260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35261 (exit $ac_status); }; }; then
35262 ac_header_compiler=yes
35263else
35264 echo "$as_me: failed program was:" >&5
35265sed 's/^/| /' conftest.$ac_ext >&5
35266
35267ac_header_compiler=no
35268fi
eea650d8 35269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
35270echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35271echo "${ECHO_T}$ac_header_compiler" >&6
35272
35273# Is the header present?
35274echo "$as_me:$LINENO: checking $ac_header presence" >&5
35275echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35276cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35277/* confdefs.h. */
35278_ACEOF
35279cat confdefs.h >>conftest.$ac_ext
35280cat >>conftest.$ac_ext <<_ACEOF
35281/* end confdefs.h. */
35282#include <$ac_header>
35283_ACEOF
35284if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35286 ac_status=$?
35287 grep -v '^ *+' conftest.er1 >conftest.err
35288 rm -f conftest.er1
35289 cat conftest.err >&5
35290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35291 (exit $ac_status); } >/dev/null; then
35292 if test -s conftest.err; then
35293 ac_cpp_err=$ac_c_preproc_warn_flag
eea650d8 35294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
35295 else
35296 ac_cpp_err=
35297 fi
35298else
35299 ac_cpp_err=yes
35300fi
35301if test -z "$ac_cpp_err"; then
35302 ac_header_preproc=yes
35303else
35304 echo "$as_me: failed program was:" >&5
35305sed 's/^/| /' conftest.$ac_ext >&5
35306
35307 ac_header_preproc=no
35308fi
35309rm -f conftest.err conftest.$ac_ext
35310echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35311echo "${ECHO_T}$ac_header_preproc" >&6
35312
35313# So? What about this header?
eea650d8
VS
35314case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35315 yes:no: )
e6cc62c6
VS
35316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35317echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
eea650d8
VS
35318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35319echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35320 ac_header_preproc=yes
e6cc62c6 35321 ;;
eea650d8 35322 no:yes:* )
e6cc62c6
VS
35323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35324echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
eea650d8
VS
35325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35326echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35328echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35330echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
35331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35332echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
eea650d8
VS
35333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35334echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
35335 (
35336 cat <<\_ASBOX
eea650d8
VS
35337## ----------------------------------------- ##
35338## Report this to wx-dev@lists.wxwindows.org ##
35339## ----------------------------------------- ##
e6cc62c6
VS
35340_ASBOX
35341 ) |
35342 sed "s/^/$as_me: WARNING: /" >&2
35343 ;;
35344esac
35345echo "$as_me:$LINENO: checking for $ac_header" >&5
35346echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35347if eval "test \"\${$as_ac_Header+set}\" = set"; then
35348 echo $ECHO_N "(cached) $ECHO_C" >&6
35349else
eea650d8 35350 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
35351fi
35352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35353echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35354
10f2d63a 35355fi
e6cc62c6
VS
35356if test `eval echo '${'$as_ac_Header'}'` = yes; then
35357 cat >>confdefs.h <<_ACEOF
35358#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35359_ACEOF
10f2d63a 35360
10f2d63a 35361fi
e6cc62c6 35362
10f2d63a
VZ
35363done
35364
8284b0c5 35365
2b9bdf71
VZ
35366 if test "$ac_cv_header_ole2_h" = "yes" ; then
35367 if test "$GCC" = yes ; then
8284b0c5
MB
35368
35369
e6cc62c6
VS
35370 ac_ext=cc
35371ac_cpp='$CXXCPP $CPPFLAGS'
35372ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35373ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35374ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35375
35376
35377 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
35378echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
35379 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35380/* confdefs.h. */
35381_ACEOF
35382cat confdefs.h >>conftest.$ac_ext
35383cat >>conftest.$ac_ext <<_ACEOF
35384/* end confdefs.h. */
8284b0c5
MB
35385#include <windows.h>
35386 #include <ole2.h>
e6cc62c6
VS
35387int
35388main ()
35389{
8284b0c5 35390
e6cc62c6
VS
35391 ;
35392 return 0;
35393}
35394_ACEOF
35395rm -f conftest.$ac_objext
35396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 35397 (eval $ac_compile) 2>conftest.er1
e6cc62c6 35398 ac_status=$?
eea650d8
VS
35399 grep -v '^ *+' conftest.er1 >conftest.err
35400 rm -f conftest.er1
35401 cat conftest.err >&5
e6cc62c6
VS
35402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35403 (exit $ac_status); } &&
eea650d8
VS
35404 { ac_try='test -z "$ac_cxx_werror_flag"
35405 || test ! -s conftest.err'
35406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35407 (eval $ac_try) 2>&5
35408 ac_status=$?
35409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35410 (exit $ac_status); }; } &&
35411 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
35412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35413 (eval $ac_try) 2>&5
35414 ac_status=$?
35415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35416 (exit $ac_status); }; }; then
35417 echo "$as_me:$LINENO: result: no" >&5
35418echo "${ECHO_T}no" >&6
35419else
35420 echo "$as_me: failed program was:" >&5
35421sed 's/^/| /' conftest.$ac_ext >&5
35422
35423echo "$as_me:$LINENO: result: yes" >&5
35424echo "${ECHO_T}yes" >&6
8284b0c5
MB
35425 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
35426fi
eea650d8 35427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8284b0c5 35428 ac_ext=c
8284b0c5 35429ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
35430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35432ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 35433
2b9bdf71 35434 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 35435 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
e6cc62c6 35436 cat >>confdefs.h <<\_ACEOF
4f11a343 35437#define wxUSE_OLE 1
e6cc62c6 35438_ACEOF
4f11a343 35439
8284b0c5 35440
2b9bdf71
VZ
35441 fi
35442
e6cc62c6 35443 cat >>confdefs.h <<\_ACEOF
2b9bdf71 35444#define wxUSE_DATAOBJ 1
e6cc62c6 35445_ACEOF
2b9bdf71
VZ
35446
35447 else
e6cc62c6
VS
35448 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
35449echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
35450
35451 wxUSE_CLIPBOARD=no
35452 wxUSE_DRAG_AND_DROP=no
35453 wxUSE_DATAOBJ=no
3bce6687
JS
35454 wxUSE_OLE=no
35455 fi
35456
35457 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 35458 cat >>confdefs.h <<\_ACEOF
3bce6687 35459#define wxUSE_METAFILE 1
e6cc62c6 35460_ACEOF
3bce6687
JS
35461
35462
e6cc62c6 35463 cat >>confdefs.h <<\_ACEOF
3bce6687 35464#define wxUSE_ENH_METAFILE 1
e6cc62c6 35465_ACEOF
3bce6687
JS
35466
35467 fi
35468fi
35469
2b9bdf71
VZ
35470if test "$wxUSE_IPC" = "yes"; then
35471 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
35472 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
35473echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
35474 fi
35475
e6cc62c6 35476 cat >>confdefs.h <<\_ACEOF
2b9bdf71 35477#define wxUSE_IPC 1
e6cc62c6 35478_ACEOF
2b9bdf71
VZ
35479
35480fi
35481
35482if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 35483 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
35484 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
35485echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
35486 wxUSE_CLIPBOARD=no
35487 fi
35488
35489 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 35490 cat >>confdefs.h <<\_ACEOF
2b9bdf71 35491#define wxUSE_CLIPBOARD 1
e6cc62c6 35492_ACEOF
2b9bdf71 35493
8284b0c5 35494
e6cc62c6 35495 cat >>confdefs.h <<\_ACEOF
673f4220 35496#define wxUSE_DATAOBJ 1
e6cc62c6 35497_ACEOF
673f4220 35498
6c657b52 35499 fi
2b9bdf71
VZ
35500fi
35501
35502if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
35503 if test "$wxUSE_GTK" = 1; then
35504 if test "$WXGTK12" != 1; then
e6cc62c6
VS
35505 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
35506echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
35507 wxUSE_DRAG_AND_DROP=no
35508 fi
35509 fi
35510
2b9bdf71 35511 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
35512 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
35513echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
35514 wxUSE_DRAG_AND_DROP=no
35515 fi
35516
f79bd02d 35517 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
35518 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
35519echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
35520 wxUSE_DRAG_AND_DROP=no
35521 fi
35522
6c657b52 35523 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
35524 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
35525echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
35526 wxUSE_DRAG_AND_DROP=no
35527 fi
35528
10f2d63a 35529 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 35530 cat >>confdefs.h <<\_ACEOF
10f2d63a 35531#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 35532_ACEOF
10f2d63a
VZ
35533
35534 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
35535 fi
35536
35537fi
35538
35539if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 35540 cat >>confdefs.h <<\_ACEOF
10f2d63a 35541#define wxUSE_SPLINES 1
e6cc62c6 35542_ACEOF
10f2d63a
VZ
35543
35544fi
35545
8284b0c5 35546
1e6feb95
VZ
35547USES_CONTROLS=0
35548if test "$wxUSE_CONTROLS" = "yes"; then
35549 USES_CONTROLS=1
35550fi
35551
10f2d63a 35552if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 35553 cat >>confdefs.h <<\_ACEOF
10f2d63a 35554#define wxUSE_ACCEL 1
e6cc62c6 35555_ACEOF
10f2d63a 35556
1e6feb95
VZ
35557 USES_CONTROLS=1
35558fi
35559
35560if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 35561 cat >>confdefs.h <<\_ACEOF
1e6feb95 35562#define wxUSE_BUTTON 1
e6cc62c6 35563_ACEOF
1e6feb95
VZ
35564
35565 USES_CONTROLS=1
35566fi
35567
35568if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 35569 cat >>confdefs.h <<\_ACEOF
1e6feb95 35570#define wxUSE_BMPBUTTON 1
e6cc62c6 35571_ACEOF
1e6feb95
VZ
35572
35573 USES_CONTROLS=1
35574fi
35575
35576if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 35577 cat >>confdefs.h <<\_ACEOF
1e6feb95 35578#define wxUSE_CALENDARCTRL 1
e6cc62c6 35579_ACEOF
1e6feb95
VZ
35580
35581 USES_CONTROLS=1
35582 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
35583fi
35584
35585if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 35586 cat >>confdefs.h <<\_ACEOF
10f2d63a 35587#define wxUSE_CARET 1
e6cc62c6 35588_ACEOF
10f2d63a 35589
1e6feb95 35590 USES_CONTROLS=1
10f2d63a
VZ
35591 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
35592fi
35593
35594if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 35595 cat >>confdefs.h <<\_ACEOF
10f2d63a 35596#define wxUSE_COMBOBOX 1
e6cc62c6 35597_ACEOF
10f2d63a 35598
1e6feb95 35599 USES_CONTROLS=1
10f2d63a
VZ
35600fi
35601
35602if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 35603 cat >>confdefs.h <<\_ACEOF
10f2d63a 35604#define wxUSE_CHOICE 1
e6cc62c6 35605_ACEOF
10f2d63a 35606
1e6feb95 35607 USES_CONTROLS=1
10f2d63a
VZ
35608fi
35609
35610if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 35611 cat >>confdefs.h <<\_ACEOF
10f2d63a 35612#define wxUSE_CHECKBOX 1
e6cc62c6 35613_ACEOF
10f2d63a 35614
1e6feb95 35615 USES_CONTROLS=1
10f2d63a
VZ
35616fi
35617
35618if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 35619 cat >>confdefs.h <<\_ACEOF
10f2d63a 35620#define wxUSE_CHECKLISTBOX 1
e6cc62c6 35621_ACEOF
10f2d63a 35622
1e6feb95 35623 USES_CONTROLS=1
10f2d63a
VZ
35624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
35625fi
35626
da494b40 35627if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 35628 cat >>confdefs.h <<\_ACEOF
da494b40 35629#define wxUSE_DISPLAY 1
e6cc62c6 35630_ACEOF
da494b40
MB
35631
35632 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
35633fi
35634
10f2d63a 35635if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 35636 cat >>confdefs.h <<\_ACEOF
10f2d63a 35637#define wxUSE_GAUGE 1
e6cc62c6 35638_ACEOF
10f2d63a 35639
1e6feb95 35640 USES_CONTROLS=1
10f2d63a
VZ
35641fi
35642
d6a55c4b 35643if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 35644 cat >>confdefs.h <<\_ACEOF
d6a55c4b 35645#define wxUSE_GRID 1
e6cc62c6 35646_ACEOF
10f2d63a 35647
1e6feb95 35648 USES_CONTROLS=1
d6a55c4b 35649 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
35650fi
35651
35652if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 35653 cat >>confdefs.h <<\_ACEOF
10f2d63a 35654#define wxUSE_IMAGLIST 1
e6cc62c6 35655_ACEOF
10f2d63a
VZ
35656
35657fi
35658
0e012a93
VZ
35659if test "$wxUSE_LISTBOOK" = "yes"; then
35660 cat >>confdefs.h <<\_ACEOF
35661#define wxUSE_LISTBOOK 1
35662_ACEOF
35663
35664 USES_CONTROLS=1
35665fi
35666
10f2d63a 35667if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 35668 cat >>confdefs.h <<\_ACEOF
10f2d63a 35669#define wxUSE_LISTBOX 1
e6cc62c6 35670_ACEOF
10f2d63a 35671
1e6feb95 35672 USES_CONTROLS=1
10f2d63a
VZ
35673fi
35674
35675if test "$wxUSE_LISTCTRL" = "yes"; then
35676 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 35677 cat >>confdefs.h <<\_ACEOF
10f2d63a 35678#define wxUSE_LISTCTRL 1
e6cc62c6 35679_ACEOF
10f2d63a 35680
1e6feb95 35681 USES_CONTROLS=1
10f2d63a
VZ
35682 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
35683 else
e6cc62c6
VS
35684 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
35685echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
35686 fi
35687fi
35688
35689if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 35690 cat >>confdefs.h <<\_ACEOF
10f2d63a 35691#define wxUSE_NOTEBOOK 1
e6cc62c6 35692_ACEOF
10f2d63a 35693
1e6feb95 35694 USES_CONTROLS=1
10f2d63a
VZ
35695 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
35696fi
35697
24176f2c 35698
10f2d63a 35699if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 35700 cat >>confdefs.h <<\_ACEOF
10f2d63a 35701#define wxUSE_RADIOBOX 1
e6cc62c6 35702_ACEOF
10f2d63a 35703
1e6feb95 35704 USES_CONTROLS=1
10f2d63a
VZ
35705fi
35706
35707if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 35708 cat >>confdefs.h <<\_ACEOF
10f2d63a 35709#define wxUSE_RADIOBTN 1
e6cc62c6 35710_ACEOF
10f2d63a 35711
1e6feb95 35712 USES_CONTROLS=1
10f2d63a
VZ
35713fi
35714
35715if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 35716 cat >>confdefs.h <<\_ACEOF
10f2d63a 35717#define wxUSE_SASH 1
e6cc62c6 35718_ACEOF
10f2d63a
VZ
35719
35720 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
35721fi
35722
35723if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 35724 cat >>confdefs.h <<\_ACEOF
10f2d63a 35725#define wxUSE_SCROLLBAR 1
e6cc62c6 35726_ACEOF
10f2d63a 35727
1e6feb95 35728 USES_CONTROLS=1
741a9306 35729 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
35730fi
35731
35732if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 35733 cat >>confdefs.h <<\_ACEOF
10f2d63a 35734#define wxUSE_SLIDER 1
e6cc62c6 35735_ACEOF
10f2d63a 35736
1e6feb95 35737 USES_CONTROLS=1
10f2d63a
VZ
35738fi
35739
35740if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 35741 cat >>confdefs.h <<\_ACEOF
10f2d63a 35742#define wxUSE_SPINBTN 1
e6cc62c6 35743_ACEOF
10f2d63a 35744
1e6feb95 35745 USES_CONTROLS=1
10f2d63a
VZ
35746fi
35747
56cfaa52 35748if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 35749 cat >>confdefs.h <<\_ACEOF
56cfaa52 35750#define wxUSE_SPINCTRL 1
e6cc62c6 35751_ACEOF
56cfaa52 35752
1e6feb95 35753 USES_CONTROLS=1
56cfaa52
RR
35754fi
35755
10f2d63a 35756if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 35757 cat >>confdefs.h <<\_ACEOF
10f2d63a 35758#define wxUSE_SPLITTER 1
e6cc62c6 35759_ACEOF
10f2d63a
VZ
35760
35761 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
35762fi
35763
35764if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 35765 cat >>confdefs.h <<\_ACEOF
10f2d63a 35766#define wxUSE_STATBMP 1
e6cc62c6 35767_ACEOF
10f2d63a 35768
1e6feb95 35769 USES_CONTROLS=1
10f2d63a
VZ
35770fi
35771
35772if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 35773 cat >>confdefs.h <<\_ACEOF
10f2d63a 35774#define wxUSE_STATBOX 1
e6cc62c6 35775_ACEOF
10f2d63a 35776
1e6feb95
VZ
35777 USES_CONTROLS=1
35778fi
35779
35780if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 35781 cat >>confdefs.h <<\_ACEOF
1e6feb95 35782#define wxUSE_STATTEXT 1
e6cc62c6 35783_ACEOF
1e6feb95
VZ
35784
35785 USES_CONTROLS=1
10f2d63a
VZ
35786fi
35787
35788if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 35789 cat >>confdefs.h <<\_ACEOF
10f2d63a 35790#define wxUSE_STATLINE 1
e6cc62c6 35791_ACEOF
10f2d63a 35792
89e6bf6d 35793 USES_CONTROLS=1
10f2d63a
VZ
35794fi
35795
35796if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 35797 cat >>confdefs.h <<\_ACEOF
10f2d63a 35798#define wxUSE_STATUSBAR 1
e6cc62c6 35799_ACEOF
10f2d63a 35800
1e6feb95 35801 USES_CONTROLS=1
698dcdb6 35802
2286341c 35803 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
35804fi
35805
35806if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 35807 cat >>confdefs.h <<\_ACEOF
10f2d63a 35808#define wxUSE_TAB_DIALOG 1
e6cc62c6 35809_ACEOF
10f2d63a
VZ
35810
35811 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
35812fi
35813
1e6feb95 35814if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 35815 cat >>confdefs.h <<\_ACEOF
1e6feb95 35816#define wxUSE_TEXTCTRL 1
e6cc62c6 35817_ACEOF
1e6feb95
VZ
35818
35819 USES_CONTROLS=1
35820 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
35821fi
35822
1db8dc4a 35823if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 35824 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
35825 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
35826echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
35827 wxUSE_TOGGLEBTN=no
35828 fi
35829 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
35830 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
35831echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
35832 wxUSE_TOGGLEBTN=no
35833 fi
35834
35835 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 35836 cat >>confdefs.h <<\_ACEOF
1db8dc4a 35837#define wxUSE_TOGGLEBTN 1
e6cc62c6 35838_ACEOF
1db8dc4a 35839
1e6feb95 35840 USES_CONTROLS=1
a45d7ab7 35841 fi
1db8dc4a
VZ
35842fi
35843
360d6699 35844if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 35845 cat >>confdefs.h <<\_ACEOF
360d6699 35846#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 35847_ACEOF
360d6699
VZ
35848
35849 wxUSE_TOOLBAR="yes"
1e6feb95 35850 USES_CONTROLS=1
360d6699
VZ
35851fi
35852
10f2d63a 35853if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 35854 cat >>confdefs.h <<\_ACEOF
10f2d63a 35855#define wxUSE_TOOLBAR 1
e6cc62c6 35856_ACEOF
10f2d63a 35857
1e6feb95 35858 USES_CONTROLS=1
698dcdb6 35859
360d6699
VZ
35860 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
35861 wxUSE_TOOLBAR_NATIVE="yes"
35862 fi
35863
1e6feb95 35864 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 35865 cat >>confdefs.h <<\_ACEOF
360d6699 35866#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 35867_ACEOF
360d6699 35868
1e6feb95
VZ
35869 USES_CONTROLS=1
35870 fi
35871
35872 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
35873fi
35874
10f2d63a
VZ
35875if test "$wxUSE_TOOLTIPS" = "yes"; then
35876 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
35877 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
35878echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 35879 else
89e6bf6d 35880 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
35881 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
35882echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 35883 else
e6cc62c6 35884 cat >>confdefs.h <<\_ACEOF
10f2d63a 35885#define wxUSE_TOOLTIPS 1
e6cc62c6 35886_ACEOF
10f2d63a
VZ
35887
35888 fi
35889 fi
35890fi
35891
35892if test "$wxUSE_TREECTRL" = "yes"; then
35893 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 35894 cat >>confdefs.h <<\_ACEOF
10f2d63a 35895#define wxUSE_TREECTRL 1
e6cc62c6 35896_ACEOF
10f2d63a 35897
1e6feb95 35898 USES_CONTROLS=1
10f2d63a
VZ
35899 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
35900 else
e6cc62c6
VS
35901 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
35902echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
35903 fi
35904fi
35905
9f41d601 35906if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 35907 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
35908 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
35909echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 35910 else
833a51f6
MB
35911 if test "$wxUSE_PM" = 1; then
35912 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
e6cc62c6 35913echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
833a51f6
MB
35914 else
35915 cat >>confdefs.h <<\_ACEOF
9f41d601 35916#define wxUSE_POPUPWIN 1
e6cc62c6 35917_ACEOF
9f41d601 35918
8284b0c5 35919
833a51f6 35920 USES_CONTROLS=1
485cf710 35921 fi
6abe4b65 35922 fi
9f41d601
RR
35923fi
35924
dd964dcc 35925if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 35926 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
35927 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
35928echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 35929 else
e6cc62c6 35930 cat >>confdefs.h <<\_ACEOF
dd964dcc 35931#define wxUSE_TIPWINDOW 1
e6cc62c6 35932_ACEOF
dd964dcc 35933
3c011993 35934 fi
dd964dcc
VZ
35935fi
35936
1e6feb95 35937if test "$USES_CONTROLS" = 1; then
e6cc62c6 35938 cat >>confdefs.h <<\_ACEOF
1e6feb95 35939#define wxUSE_CONTROLS 1
e6cc62c6 35940_ACEOF
10f2d63a 35941
10f2d63a
VZ
35942fi
35943
8284b0c5 35944
e46d2a18
VS
35945if test "$wxUSE_ACCESSIBILITY" = "yes"; then
35946 cat >>confdefs.h <<\_ACEOF
35947#define wxUSE_ACCESSIBILITY 1
35948_ACEOF
35949
35950 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
35951fi
1e6feb95 35952
24fd6d87 35953if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 35954 cat >>confdefs.h <<\_ACEOF
24fd6d87 35955#define wxUSE_DRAGIMAGE 1
e6cc62c6 35956_ACEOF
24fd6d87
VZ
35957
35958 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
35959fi
35960
e46d2a18 35961if test "$wxUSE_EXCEPTIONS" = "yes"; then
e6cc62c6 35962 cat >>confdefs.h <<\_ACEOF
e46d2a18 35963#define wxUSE_EXCEPTIONS 1
e6cc62c6 35964_ACEOF
7bb2947d 35965
e46d2a18
VS
35966fi
35967
35968USE_HTML=0
35969if test "$wxUSE_HTML" = "yes"; then
35970 cat >>confdefs.h <<\_ACEOF
35971#define wxUSE_HTML 1
35972_ACEOF
35973
35974 USE_HTML=1
35975 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
7bb2947d
MB
35976fi
35977
1e6feb95 35978if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 35979 cat >>confdefs.h <<\_ACEOF
1e6feb95 35980#define wxUSE_MENUS 1
e6cc62c6 35981_ACEOF
10f2d63a 35982
1e6feb95 35983 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
35984fi
35985
1e6feb95 35986if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 35987 cat >>confdefs.h <<\_ACEOF
1e6feb95 35988#define wxUSE_METAFILE 1
e6cc62c6 35989_ACEOF
10f2d63a 35990
10f2d63a
VZ
35991fi
35992
1e6feb95 35993if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 35994 cat >>confdefs.h <<\_ACEOF
1e6feb95 35995#define wxUSE_MIMETYPE 1
e6cc62c6 35996_ACEOF
10f2d63a 35997
10f2d63a
VZ
35998fi
35999
36000if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 36001 cat >>confdefs.h <<\_ACEOF
10f2d63a 36002#define wxUSE_MINIFRAME 1
e6cc62c6 36003_ACEOF
10f2d63a
VZ
36004
36005 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
36006fi
36007
e46d2a18 36008if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 36009 cat >>confdefs.h <<\_ACEOF
e46d2a18 36010#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 36011_ACEOF
10f2d63a 36012
e46d2a18
VS
36013 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
36014 "$TOOLKIT" = "MOTIF"; then
36015 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
36016 fi
10f2d63a
VZ
36017fi
36018
e46d2a18 36019
10f2d63a 36020if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 36021 cat >>confdefs.h <<\_ACEOF
1e487827 36022#define wxUSE_VALIDATORS 1
e6cc62c6 36023_ACEOF
703e0a69 36024
698dcdb6
VZ
36025 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
36026fi
36027
edae8572 36028if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 36029 cat >>confdefs.h <<\_ACEOF
edae8572 36030#define wxUSE_PALETTE 1
e6cc62c6 36031_ACEOF
edae8572
VZ
36032
36033fi
36034
e46d2a18
VS
36035if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
36036 LIBS=" -lunicows $LIBS"
36037fi
36038
36039
698dcdb6 36040if test "$wxUSE_IMAGE" = "yes" ; then
e46d2a18 36041 cat >>confdefs.h <<\_ACEOF
698dcdb6 36042#define wxUSE_IMAGE 1
e6cc62c6 36043_ACEOF
698dcdb6 36044
698dcdb6 36045
e46d2a18
VS
36046 if test "$wxUSE_GIF" = "yes" ; then
36047 cat >>confdefs.h <<\_ACEOF
698dcdb6 36048#define wxUSE_GIF 1
e6cc62c6 36049_ACEOF
698dcdb6 36050
e46d2a18 36051 fi
698dcdb6 36052
e46d2a18
VS
36053 if test "$wxUSE_PCX" = "yes" ; then
36054 cat >>confdefs.h <<\_ACEOF
698dcdb6 36055#define wxUSE_PCX 1
e6cc62c6 36056_ACEOF
698dcdb6 36057
e46d2a18 36058 fi
698dcdb6 36059
e46d2a18
VS
36060 if test "$wxUSE_IFF" = "yes" ; then
36061 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 36062#define wxUSE_IFF 1
e6cc62c6 36063_ACEOF
4b6b4dfc 36064
e46d2a18 36065 fi
4b6b4dfc 36066
e46d2a18
VS
36067 if test "$wxUSE_PNM" = "yes" ; then
36068 cat >>confdefs.h <<\_ACEOF
698dcdb6 36069#define wxUSE_PNM 1
e6cc62c6 36070_ACEOF
698dcdb6 36071
e46d2a18 36072 fi
698dcdb6 36073
e46d2a18
VS
36074 if test "$wxUSE_XPM" = "yes" ; then
36075 cat >>confdefs.h <<\_ACEOF
698dcdb6 36076#define wxUSE_XPM 1
e6cc62c6 36077_ACEOF
698dcdb6 36078
e46d2a18 36079 fi
698dcdb6 36080
e46d2a18
VS
36081 if test "$wxUSE_ICO_CUR" = "yes" ; then
36082 cat >>confdefs.h <<\_ACEOF
658974ae 36083#define wxUSE_ICO_CUR 1
e6cc62c6 36084_ACEOF
658974ae 36085
e46d2a18 36086 fi
a72a4bfa
VS
36087fi
36088
8284b0c5 36089
1e6feb95 36090if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 36091 cat >>confdefs.h <<\_ACEOF
1e6feb95 36092#define wxUSE_CHOICEDLG 1
e6cc62c6 36093_ACEOF
1e6feb95
VZ
36094
36095fi
36096
36097if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 36098 cat >>confdefs.h <<\_ACEOF
1e6feb95 36099#define wxUSE_COLOURDLG 1
e6cc62c6 36100_ACEOF
1e6feb95
VZ
36101
36102fi
36103
36104if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 36105 cat >>confdefs.h <<\_ACEOF
1e6feb95 36106#define wxUSE_FILEDLG 1
e6cc62c6 36107_ACEOF
1e6feb95
VZ
36108
36109fi
36110
8db37e06 36111if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 36112 cat >>confdefs.h <<\_ACEOF
8db37e06 36113#define wxUSE_FINDREPLDLG 1
e6cc62c6 36114_ACEOF
8db37e06
VZ
36115
36116fi
36117
1e6feb95 36118if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 36119 cat >>confdefs.h <<\_ACEOF
1e6feb95 36120#define wxUSE_FONTDLG 1
e6cc62c6 36121_ACEOF
1e6feb95
VZ
36122
36123fi
36124
36125if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 36126 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
36127 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
36128echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 36129 else
e6cc62c6 36130 cat >>confdefs.h <<\_ACEOF
1e6feb95 36131#define wxUSE_DIRDLG 1
e6cc62c6 36132_ACEOF
1e6feb95 36133
1e6feb95
VZ
36134 fi
36135fi
36136
36137if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 36138 cat >>confdefs.h <<\_ACEOF
1e6feb95 36139#define wxUSE_MSGDLG 1
e6cc62c6 36140_ACEOF
1e6feb95
VZ
36141
36142fi
36143
36144if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 36145 cat >>confdefs.h <<\_ACEOF
1e6feb95 36146#define wxUSE_NUMBERDLG 1
e6cc62c6 36147_ACEOF
1e6feb95
VZ
36148
36149fi
36150
36151if test "$wxUSE_PROGRESSDLG" = "yes"; then
36152 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
36153 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
36154echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 36155 else
e6cc62c6 36156 cat >>confdefs.h <<\_ACEOF
1e6feb95 36157#define wxUSE_PROGRESSDLG 1
e6cc62c6 36158_ACEOF
1e6feb95
VZ
36159
36160 fi
36161fi
36162
cbca9943 36163if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 36164 cat >>confdefs.h <<\_ACEOF
cbca9943 36165#define wxUSE_SPLASH 1
e6cc62c6 36166_ACEOF
cbca9943
VZ
36167
36168fi
36169
1e6feb95
VZ
36170if test "$wxUSE_STARTUP_TIPS" = "yes"; then
36171 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
36172 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
36173echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 36174 else
e6cc62c6 36175 cat >>confdefs.h <<\_ACEOF
1e6feb95 36176#define wxUSE_STARTUP_TIPS 1
e6cc62c6 36177_ACEOF
1e6feb95 36178
7b4a847f
RR
36179 fi
36180fi
579d8138 36181
8284b0c5 36182if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 36183 cat >>confdefs.h <<\_ACEOF
8284b0c5 36184#define wxUSE_TEXTDLG 1
e6cc62c6 36185_ACEOF
8284b0c5
MB
36186
36187fi
36188
36189if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 36190 cat >>confdefs.h <<\_ACEOF
8284b0c5 36191#define wxUSE_WIZARDDLG 1
e6cc62c6 36192_ACEOF
8284b0c5
MB
36193
36194 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
36195fi
36196
36197
36198if test "$cross_compiling" = "yes"; then
36199 OSINFO="\"$host\""
36200else
36201 OSINFO=`uname -s -r -m`
36202 OSINFO="\"$OSINFO\""
36203fi
36204
e6cc62c6 36205cat >>confdefs.h <<_ACEOF
8284b0c5 36206#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 36207_ACEOF
8284b0c5
MB
36208
36209
36210
36211if test "x$prefix" != "xNONE"; then
36212 wxPREFIX=$prefix
36213else
36214 wxPREFIX=$ac_default_prefix
36215fi
36216
e6cc62c6 36217cat >>confdefs.h <<_ACEOF
8284b0c5 36218#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 36219_ACEOF
8284b0c5
MB
36220
36221
e6cc62c6 36222top_builddir_wxconfig=`pwd`
52c71b80 36223
8284b0c5
MB
36224
36225
edd891e2
VS
36226CORE_BASE_LIBS="net base"
36227CORE_GUI_LIBS="adv core"
36228
36229if test "$wxUSE_XML" = "yes" ; then
36230 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
36231fi
45293562
VS
36232if test "$wxUSE_ODBC" != "no" ; then
36233 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
36234 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
edd891e2
VS
36235fi
36236if test "$wxUSE_HTML" = "yes" ; then
36237 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
36238fi
36239
57e7d4ac
VS
36240if test "$wxUSE_GUI" != "yes"; then
36241 CORE_GUI_LIBS=""
36242fi
36243
edd891e2
VS
36244
36245
36246
36247
36248
36249
8284b0c5
MB
36250
36251if test "$wxUSE_MAC" = 1 ; then
36252 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
36253fi
ac0c4cc3
DE
36254if test "$wxUSE_COCOA" = 1 ; then
36255 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
36256fi
8284b0c5
MB
36257
36258
2b5f62a0
VZ
36259LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
36260
36261have_cos=0
36262have_floor=0
e6cc62c6 36263
2b5f62a0
VZ
36264for ac_func in cos
36265do
e6cc62c6
VS
36266as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36267echo "$as_me:$LINENO: checking for $ac_func" >&5
36268echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36269if eval "test \"\${$as_ac_var+set}\" = set"; then
36270 echo $ECHO_N "(cached) $ECHO_C" >&6
36271else
36272 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36273/* confdefs.h. */
36274_ACEOF
36275cat confdefs.h >>conftest.$ac_ext
36276cat >>conftest.$ac_ext <<_ACEOF
36277/* end confdefs.h. */
eea650d8
VS
36278/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36280#define $ac_func innocuous_$ac_func
36281
2b5f62a0 36282/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
36283 which can conflict with char $ac_func (); below.
36284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36285 <limits.h> exists even on freestanding compilers. */
eea650d8 36286
e6cc62c6
VS
36287#ifdef __STDC__
36288# include <limits.h>
36289#else
36290# include <assert.h>
36291#endif
eea650d8
VS
36292
36293#undef $ac_func
36294
2b5f62a0 36295/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
36296#ifdef __cplusplus
36297extern "C"
36298{
36299#endif
2b5f62a0 36300/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
36301 builtin and then its argument prototype would still apply. */
36302char $ac_func ();
2b5f62a0
VZ
36303/* The GNU C library defines this for functions which it implements
36304 to always fail with ENOSYS. Some functions are actually named
36305 something starting with __ and the normal name is an alias. */
36306#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36307choke me
36308#else
e6cc62c6
VS
36309char (*f) () = $ac_func;
36310#endif
36311#ifdef __cplusplus
36312}
2b5f62a0
VZ
36313#endif
36314
e6cc62c6
VS
36315int
36316main ()
36317{
36318return f != $ac_func;
36319 ;
36320 return 0;
36321}
36322_ACEOF
36323rm -f conftest.$ac_objext conftest$ac_exeext
36324if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 36325 (eval $ac_link) 2>conftest.er1
e6cc62c6 36326 ac_status=$?
eea650d8
VS
36327 grep -v '^ *+' conftest.er1 >conftest.err
36328 rm -f conftest.er1
36329 cat conftest.err >&5
e6cc62c6
VS
36330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36331 (exit $ac_status); } &&
eea650d8
VS
36332 { ac_try='test -z "$ac_c_werror_flag"
36333 || test ! -s conftest.err'
36334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36335 (eval $ac_try) 2>&5
36336 ac_status=$?
36337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36338 (exit $ac_status); }; } &&
36339 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
36340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36341 (eval $ac_try) 2>&5
36342 ac_status=$?
36343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36344 (exit $ac_status); }; }; then
36345 eval "$as_ac_var=yes"
36346else
36347 echo "$as_me: failed program was:" >&5
36348sed 's/^/| /' conftest.$ac_ext >&5
36349
36350eval "$as_ac_var=no"
36351fi
eea650d8
VS
36352rm -f conftest.err conftest.$ac_objext \
36353 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
36354fi
36355echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36356echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36357if test `eval echo '${'$as_ac_var'}'` = yes; then
36358 cat >>confdefs.h <<_ACEOF
36359#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36360_ACEOF
2b5f62a0 36361 have_cos=1
2b5f62a0
VZ
36362fi
36363done
36364
e6cc62c6 36365
2b5f62a0
VZ
36366for ac_func in floor
36367do
e6cc62c6
VS
36368as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36369echo "$as_me:$LINENO: checking for $ac_func" >&5
36370echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36371if eval "test \"\${$as_ac_var+set}\" = set"; then
36372 echo $ECHO_N "(cached) $ECHO_C" >&6
36373else
36374 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36375/* confdefs.h. */
36376_ACEOF
36377cat confdefs.h >>conftest.$ac_ext
36378cat >>conftest.$ac_ext <<_ACEOF
36379/* end confdefs.h. */
eea650d8
VS
36380/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36382#define $ac_func innocuous_$ac_func
36383
2b5f62a0 36384/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
36385 which can conflict with char $ac_func (); below.
36386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36387 <limits.h> exists even on freestanding compilers. */
eea650d8 36388
e6cc62c6
VS
36389#ifdef __STDC__
36390# include <limits.h>
36391#else
36392# include <assert.h>
36393#endif
eea650d8
VS
36394
36395#undef $ac_func
36396
2b5f62a0 36397/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
36398#ifdef __cplusplus
36399extern "C"
36400{
36401#endif
2b5f62a0 36402/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
36403 builtin and then its argument prototype would still apply. */
36404char $ac_func ();
2b5f62a0
VZ
36405/* The GNU C library defines this for functions which it implements
36406 to always fail with ENOSYS. Some functions are actually named
36407 something starting with __ and the normal name is an alias. */
36408#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36409choke me
36410#else
e6cc62c6
VS
36411char (*f) () = $ac_func;
36412#endif
36413#ifdef __cplusplus
36414}
2b5f62a0
VZ
36415#endif
36416
e6cc62c6
VS
36417int
36418main ()
36419{
36420return f != $ac_func;
36421 ;
36422 return 0;
36423}
36424_ACEOF
36425rm -f conftest.$ac_objext conftest$ac_exeext
36426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 36427 (eval $ac_link) 2>conftest.er1
e6cc62c6 36428 ac_status=$?
eea650d8
VS
36429 grep -v '^ *+' conftest.er1 >conftest.err
36430 rm -f conftest.er1
36431 cat conftest.err >&5
e6cc62c6
VS
36432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36433 (exit $ac_status); } &&
eea650d8
VS
36434 { ac_try='test -z "$ac_c_werror_flag"
36435 || test ! -s conftest.err'
36436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36437 (eval $ac_try) 2>&5
36438 ac_status=$?
36439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36440 (exit $ac_status); }; } &&
36441 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
36442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36443 (eval $ac_try) 2>&5
36444 ac_status=$?
36445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36446 (exit $ac_status); }; }; then
36447 eval "$as_ac_var=yes"
36448else
36449 echo "$as_me: failed program was:" >&5
36450sed 's/^/| /' conftest.$ac_ext >&5
36451
36452eval "$as_ac_var=no"
36453fi
eea650d8
VS
36454rm -f conftest.err conftest.$ac_objext \
36455 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
36456fi
36457echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36458echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36459if test `eval echo '${'$as_ac_var'}'` = yes; then
36460 cat >>confdefs.h <<_ACEOF
36461#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36462_ACEOF
2b5f62a0 36463 have_floor=1
2b5f62a0
VZ
36464fi
36465done
36466
e6cc62c6
VS
36467echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
36468echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 36469if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
36470 echo "$as_me:$LINENO: result: yes" >&5
36471echo "${ECHO_T}yes" >&6
2b5f62a0 36472else
e6cc62c6
VS
36473 echo "$as_me:$LINENO: result: no" >&5
36474echo "${ECHO_T}no" >&6
2b5f62a0
VZ
36475 LIBS="$LIBS -lm"
36476 # use different functions to avoid configure caching
36477 have_sin=0
36478 have_ceil=0
e6cc62c6
VS
36479
36480for ac_func in sin
2b5f62a0 36481do
e6cc62c6
VS
36482as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36483echo "$as_me:$LINENO: checking for $ac_func" >&5
36484echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36485if eval "test \"\${$as_ac_var+set}\" = set"; then
36486 echo $ECHO_N "(cached) $ECHO_C" >&6
36487else
36488 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36489/* confdefs.h. */
36490_ACEOF
36491cat confdefs.h >>conftest.$ac_ext
36492cat >>conftest.$ac_ext <<_ACEOF
36493/* end confdefs.h. */
eea650d8
VS
36494/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36496#define $ac_func innocuous_$ac_func
36497
2b5f62a0 36498/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
36499 which can conflict with char $ac_func (); below.
36500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36501 <limits.h> exists even on freestanding compilers. */
eea650d8 36502
e6cc62c6
VS
36503#ifdef __STDC__
36504# include <limits.h>
36505#else
36506# include <assert.h>
36507#endif
eea650d8
VS
36508
36509#undef $ac_func
36510
2b5f62a0 36511/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
36512#ifdef __cplusplus
36513extern "C"
36514{
36515#endif
2b5f62a0 36516/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
36517 builtin and then its argument prototype would still apply. */
36518char $ac_func ();
2b5f62a0
VZ
36519/* The GNU C library defines this for functions which it implements
36520 to always fail with ENOSYS. Some functions are actually named
36521 something starting with __ and the normal name is an alias. */
36522#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36523choke me
36524#else
e6cc62c6
VS
36525char (*f) () = $ac_func;
36526#endif
36527#ifdef __cplusplus
36528}
2b5f62a0
VZ
36529#endif
36530
e6cc62c6
VS
36531int
36532main ()
36533{
36534return f != $ac_func;
36535 ;
36536 return 0;
36537}
36538_ACEOF
36539rm -f conftest.$ac_objext conftest$ac_exeext
36540if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 36541 (eval $ac_link) 2>conftest.er1
e6cc62c6 36542 ac_status=$?
eea650d8
VS
36543 grep -v '^ *+' conftest.er1 >conftest.err
36544 rm -f conftest.er1
36545 cat conftest.err >&5
e6cc62c6
VS
36546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36547 (exit $ac_status); } &&
eea650d8
VS
36548 { ac_try='test -z "$ac_c_werror_flag"
36549 || test ! -s conftest.err'
36550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36551 (eval $ac_try) 2>&5
36552 ac_status=$?
36553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36554 (exit $ac_status); }; } &&
36555 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
36556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36557 (eval $ac_try) 2>&5
36558 ac_status=$?
36559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36560 (exit $ac_status); }; }; then
36561 eval "$as_ac_var=yes"
36562else
36563 echo "$as_me: failed program was:" >&5
36564sed 's/^/| /' conftest.$ac_ext >&5
36565
36566eval "$as_ac_var=no"
36567fi
eea650d8
VS
36568rm -f conftest.err conftest.$ac_objext \
36569 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
36570fi
36571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36572echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36573if test `eval echo '${'$as_ac_var'}'` = yes; then
36574 cat >>confdefs.h <<_ACEOF
36575#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36576_ACEOF
2b5f62a0 36577 have_sin=1
2b5f62a0
VZ
36578fi
36579done
36580
e6cc62c6
VS
36581
36582for ac_func in ceil
2b5f62a0 36583do
e6cc62c6
VS
36584as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36585echo "$as_me:$LINENO: checking for $ac_func" >&5
36586echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36587if eval "test \"\${$as_ac_var+set}\" = set"; then
36588 echo $ECHO_N "(cached) $ECHO_C" >&6
36589else
36590 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36591/* confdefs.h. */
36592_ACEOF
36593cat confdefs.h >>conftest.$ac_ext
36594cat >>conftest.$ac_ext <<_ACEOF
36595/* end confdefs.h. */
eea650d8
VS
36596/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36597 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36598#define $ac_func innocuous_$ac_func
36599
2b5f62a0 36600/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
36601 which can conflict with char $ac_func (); below.
36602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36603 <limits.h> exists even on freestanding compilers. */
eea650d8 36604
e6cc62c6
VS
36605#ifdef __STDC__
36606# include <limits.h>
36607#else
36608# include <assert.h>
36609#endif
eea650d8
VS
36610
36611#undef $ac_func
36612
2b5f62a0 36613/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
36614#ifdef __cplusplus
36615extern "C"
36616{
36617#endif
2b5f62a0 36618/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
36619 builtin and then its argument prototype would still apply. */
36620char $ac_func ();
2b5f62a0
VZ
36621/* The GNU C library defines this for functions which it implements
36622 to always fail with ENOSYS. Some functions are actually named
36623 something starting with __ and the normal name is an alias. */
36624#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36625choke me
36626#else
e6cc62c6
VS
36627char (*f) () = $ac_func;
36628#endif
36629#ifdef __cplusplus
36630}
2b5f62a0
VZ
36631#endif
36632
e6cc62c6
VS
36633int
36634main ()
36635{
36636return f != $ac_func;
36637 ;
36638 return 0;
36639}
36640_ACEOF
36641rm -f conftest.$ac_objext conftest$ac_exeext
36642if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
eea650d8 36643 (eval $ac_link) 2>conftest.er1
e6cc62c6 36644 ac_status=$?
eea650d8
VS
36645 grep -v '^ *+' conftest.er1 >conftest.err
36646 rm -f conftest.er1
36647 cat conftest.err >&5
e6cc62c6
VS
36648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36649 (exit $ac_status); } &&
eea650d8
VS
36650 { ac_try='test -z "$ac_c_werror_flag"
36651 || test ! -s conftest.err'
36652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36653 (eval $ac_try) 2>&5
36654 ac_status=$?
36655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36656 (exit $ac_status); }; } &&
36657 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
36658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36659 (eval $ac_try) 2>&5
36660 ac_status=$?
36661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36662 (exit $ac_status); }; }; then
36663 eval "$as_ac_var=yes"
36664else
36665 echo "$as_me: failed program was:" >&5
36666sed 's/^/| /' conftest.$ac_ext >&5
36667
36668eval "$as_ac_var=no"
36669fi
eea650d8
VS
36670rm -f conftest.err conftest.$ac_objext \
36671 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
36672fi
36673echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36674echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36675if test `eval echo '${'$as_ac_var'}'` = yes; then
36676 cat >>confdefs.h <<_ACEOF
36677#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36678_ACEOF
2b5f62a0 36679 have_ceil=1
2b5f62a0
VZ
36680fi
36681done
36682
e6cc62c6
VS
36683 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
36684echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 36685 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
36686 echo "$as_me:$LINENO: result: yes" >&5
36687echo "${ECHO_T}yes" >&6
2b5f62a0 36688 else
e6cc62c6
VS
36689 echo "$as_me:$LINENO: result: no" >&5
36690echo "${ECHO_T}no" >&6
2b5f62a0
VZ
36691 # not sure we should warn the user, crash, etc.
36692 fi
36693fi
8284b0c5
MB
36694
36695if test "$wxUSE_GUI" = "yes"; then
36696
e6cc62c6 36697
8284b0c5
MB
36698 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
36699 drawing dynamic erase event exec font image \
1dd02ac0 36700 minimal propsize rotate shaped widgets render"
b625909c
VS
36701
36702 if test "$wxUSE_MONOLITHIC" != "yes"; then
36703 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
36704 fi
8284b0c5
MB
36705else
36706 SAMPLES_SUBDIRS="console"
36707fi
36708
36709
e6cc62c6 36710INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
eea650d8 36711-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
8284b0c5 36712
fddeb06b
VS
36713if test "$GXX" = yes ; then
36714 CXXWARNINGS="-Wall"
36715 fi
36716
36717EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
36718
95318f7d 36719CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
36720CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
36721CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
36722
36723
fddeb06b 36724LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 36725EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 36726EXTRALIBS_XML="$EXPAT_LINK"
3527f29c 36727EXTRALIBS_HTML="$MSPACK_LINK"
bb41dcbe 36728EXTRALIBS_ODBC="$ODBC_LINK"
c74dc163
VS
36729if test "$wxUSE_GUI" = "yes"; then
36730 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
36731fi
34b08d2c
VS
36732if test "$wxUSE_OPENGL" = "yes"; then
36733 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
36734fi
fddeb06b
VS
36735
36736LDFLAGS="$LDFLAGS $PROFILE"
36737
8284b0c5
MB
36738if test "$wxUSE_GTK" = 1; then
36739 WXCONFIG_INCLUDE=
36740else
36741 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
36742fi
36743
67c13b6c
VS
36744WXCONFIG_EXTRALIBS="$LIBS"
36745
36746if test "$wxUSE_REGEX" = "builtin" ; then
36747 wxconfig_3rdparty="$wxconfig_3rdparty regex"
36748fi
36749if test "$wxUSE_EXPAT" = "builtin" ; then
36750 wxconfig_3rdparty="$wxconfig_3rdparty expat"
36751fi
36752if test "$wxUSE_ODBC" = "builtin" ; then
36753 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
36754fi
36755if test "$wxUSE_LIBTIFF" = "builtin" ; then
36756 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
36757fi
36758if test "$wxUSE_LIBJPEG" = "builtin" ; then
36759 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
36760fi
36761if test "$wxUSE_LIBPNG" = "builtin" ; then
36762 wxconfig_3rdparty="$wxconfig_3rdparty png"
36763fi
36764if test "$wxUSE_ZLIB" = "builtin" ; then
36765 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
36766fi
bb41dcbe
VS
36767if test "$wxUSE_ODBC" = "builtin" ; then
36768 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
36769fi
67c13b6c
VS
36770
36771for i in $wxconfig_3rdparty ; do
36772 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
36773done
36774
36775
fe0895cf
VS
36776if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
36777 WXUNIV=1
36778else
36779 WXUNIV=0
8284b0c5
MB
36780fi
36781
8284b0c5
MB
36782
36783
36784
36785
36786
36787
36788
672abd7a 36789
9747f85d
VS
36790if test $wxUSE_MONOLITHIC = "yes" ; then
36791 MONOLITHIC=1
36792else
36793 MONOLITHIC=0
36794fi
8284b0c5 36795
bb41dcbe
VS
36796if test $wxUSE_ODBC != "no" ; then
36797 USE_ODBC=1
36798else
36799 USE_ODBC=0
36800fi
36801
029b47ad
VS
36802if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
36803 OFFICIAL_BUILD=1
36804else
36805 OFFICIAL_BUILD=0
36806fi
36807
8ee2dd05
VS
36808
36809
36810
8284b0c5
MB
36811
36812
36813
36814
36815
36816
c74dc163 36817
34b08d2c 36818
672abd7a 36819
cf615ebb 36820
6c67131a
VS
36821
36822
bb41dcbe 36823
3527f29c 36824
89fe663f 36825TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
8284b0c5
MB
36826
36827
36828
36829
36830
ea66c762 36831
0f1bc9c2 36832
fe0895cf 36833 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
36834
36835 if test -n "$ac_tool_prefix"; then
36836 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
36837set dummy ${ac_tool_prefix}ranlib; ac_word=$2
36838echo "$as_me:$LINENO: checking for $ac_word" >&5
36839echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36840if test "${ac_cv_prog_RANLIB+set}" = set; then
36841 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 36842else
fe0895cf
VS
36843 if test -n "$RANLIB"; then
36844 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 36845else
e6cc62c6
VS
36846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36847for as_dir in $PATH
36848do
36849 IFS=$as_save_IFS
36850 test -z "$as_dir" && as_dir=.
36851 for ac_exec_ext in '' $ac_executable_extensions; do
36852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36853 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
36854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36855 break 2
36856 fi
36857done
36858done
36859
10f2d63a 36860fi
10f2d63a 36861fi
e6cc62c6 36862RANLIB=$ac_cv_prog_RANLIB
fe0895cf 36863if test -n "$RANLIB"; then
e6cc62c6
VS
36864 echo "$as_me:$LINENO: result: $RANLIB" >&5
36865echo "${ECHO_T}$RANLIB" >&6
36866else
36867 echo "$as_me:$LINENO: result: no" >&5
36868echo "${ECHO_T}no" >&6
36869fi
36870
36871fi
36872if test -z "$ac_cv_prog_RANLIB"; then
36873 ac_ct_RANLIB=$RANLIB
36874 # Extract the first word of "ranlib", so it can be a program name with args.
36875set dummy ranlib; ac_word=$2
36876echo "$as_me:$LINENO: checking for $ac_word" >&5
36877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36878if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
36879 echo $ECHO_N "(cached) $ECHO_C" >&6
36880else
36881 if test -n "$ac_ct_RANLIB"; then
36882 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
36883else
36884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36885for as_dir in $PATH
36886do
36887 IFS=$as_save_IFS
36888 test -z "$as_dir" && as_dir=.
36889 for ac_exec_ext in '' $ac_executable_extensions; do
36890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36891 ac_cv_prog_ac_ct_RANLIB="ranlib"
36892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36893 break 2
36894 fi
36895done
36896done
36897
36898 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
36899fi
36900fi
36901ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
36902if test -n "$ac_ct_RANLIB"; then
36903 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
36904echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 36905else
e6cc62c6
VS
36906 echo "$as_me:$LINENO: result: no" >&5
36907echo "${ECHO_T}no" >&6
36908fi
36909
36910 RANLIB=$ac_ct_RANLIB
36911else
36912 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 36913fi
665bbe97 36914
fe0895cf
VS
36915 # Find a good install program. We prefer a C program (faster),
36916# so one script is as good as another. But avoid the broken or
36917# incompatible versions:
36918# SysV /etc/install, /usr/sbin/install
36919# SunOS /usr/etc/install
36920# IRIX /sbin/install
36921# AIX /bin/install
e6cc62c6 36922# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
36923# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
36924# AFS /usr/afsws/bin/install, which mishandles nonexistent args
36925# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
eea650d8 36926# OS/2's system install, which has a completely different semantic
fe0895cf 36927# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
36928echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
36929echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 36930if test -z "$INSTALL"; then
e6cc62c6
VS
36931if test "${ac_cv_path_install+set}" = set; then
36932 echo $ECHO_N "(cached) $ECHO_C" >&6
36933else
36934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36935for as_dir in $PATH
36936do
36937 IFS=$as_save_IFS
36938 test -z "$as_dir" && as_dir=.
36939 # Account for people who put trailing slashes in PATH elements.
36940case $as_dir/ in
36941 ./ | .// | /cC/* | \
36942 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
eea650d8 36943 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
e6cc62c6
VS
36944 /usr/ucb/* ) ;;
36945 *)
36946 # OSF1 and SCO ODT 3.0 have their own names for install.
36947 # Don't use installbsd from OSF since it installs stuff as root
36948 # by default.
36949 for ac_prog in ginstall scoinst install; do
36950 for ac_exec_ext in '' $ac_executable_extensions; do
eea650d8
VS
36951 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
36952 if test $ac_prog = install &&
36953 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36954 # AIX install. It has an incompatible calling convention.
36955 :
36956 elif test $ac_prog = install &&
36957 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36958 # program-specific install script used by HP pwplus--don't use.
36959 :
36960 else
36961 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
36962 break 3
36963 fi
36964 fi
fe0895cf 36965 done
e6cc62c6
VS
36966 done
36967 ;;
36968esac
36969done
36970
fe0895cf
VS
36971
36972fi
36973 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 36974 INSTALL=$ac_cv_path_install
fe0895cf
VS
36975 else
36976 # As a last resort, use the slow shell script. We don't cache a
36977 # path for INSTALL within a source directory, because that will
36978 # break other packages using the cache if that directory is
36979 # removed, or if the path is relative.
e6cc62c6 36980 INSTALL=$ac_install_sh
fe0895cf
VS
36981 fi
36982fi
e6cc62c6
VS
36983echo "$as_me:$LINENO: result: $INSTALL" >&5
36984echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
36985
36986# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
36987# It thinks the first close brace ends the variable substitution.
36988test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
36989
e6cc62c6 36990test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
36991
36992test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
36993
e6cc62c6
VS
36994 echo "$as_me:$LINENO: checking whether ln -s works" >&5
36995echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
36996LN_S=$as_ln_s
36997if test "$LN_S" = "ln -s"; then
36998 echo "$as_me:$LINENO: result: yes" >&5
36999echo "${ECHO_T}yes" >&6
fe0895cf 37000else
e6cc62c6
VS
37001 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
37002echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
37003fi
37004
37005
e6cc62c6
VS
37006 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
37007echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
eea650d8 37008set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
e6cc62c6
VS
37009if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
37010 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 37011else
e6cc62c6 37012 cat >conftest.make <<\_ACEOF
fe0895cf 37013all:
e6cc62c6
VS
37014 @echo 'ac_maketemp="$(MAKE)"'
37015_ACEOF
fe0895cf 37016# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 37017eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
37018if test -n "$ac_maketemp"; then
37019 eval ac_cv_prog_make_${ac_make}_set=yes
37020else
37021 eval ac_cv_prog_make_${ac_make}_set=no
37022fi
e6cc62c6 37023rm -f conftest.make
fe0895cf
VS
37024fi
37025if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
37026 echo "$as_me:$LINENO: result: yes" >&5
37027echo "${ECHO_T}yes" >&6
fe0895cf
VS
37028 SET_MAKE=
37029else
e6cc62c6
VS
37030 echo "$as_me:$LINENO: result: no" >&5
37031echo "${ECHO_T}no" >&6
fe0895cf
VS
37032 SET_MAKE="MAKE=${MAKE-make}"
37033fi
37034
e6cc62c6
VS
37035
37036
874d12cf
VS
37037 if test -n "$ac_tool_prefix"; then
37038 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
37039set dummy ${ac_tool_prefix}ar; ac_word=$2
e6cc62c6
VS
37040echo "$as_me:$LINENO: checking for $ac_word" >&5
37041echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37042if test "${ac_cv_prog_AR+set}" = set; then
37043 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37044else
37045 if test -n "$AR"; then
37046 ac_cv_prog_AR="$AR" # Let the user override the test.
37047else
e6cc62c6
VS
37048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37049for as_dir in $PATH
37050do
37051 IFS=$as_save_IFS
37052 test -z "$as_dir" && as_dir=.
37053 for ac_exec_ext in '' $ac_executable_extensions; do
37054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 37055 ac_cv_prog_AR="${ac_tool_prefix}ar"
e6cc62c6
VS
37056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37057 break 2
37058 fi
37059done
37060done
37061
fe0895cf
VS
37062fi
37063fi
e6cc62c6 37064AR=$ac_cv_prog_AR
fe0895cf 37065if test -n "$AR"; then
e6cc62c6
VS
37066 echo "$as_me:$LINENO: result: $AR" >&5
37067echo "${ECHO_T}$AR" >&6
fe0895cf 37068else
e6cc62c6
VS
37069 echo "$as_me:$LINENO: result: no" >&5
37070echo "${ECHO_T}no" >&6
fe0895cf
VS
37071fi
37072
874d12cf
VS
37073fi
37074if test -z "$ac_cv_prog_AR"; then
37075 ac_ct_AR=$AR
37076 # Extract the first word of "ar", so it can be a program name with args.
37077set dummy ar; ac_word=$2
37078echo "$as_me:$LINENO: checking for $ac_word" >&5
37079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37080if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
37081 echo $ECHO_N "(cached) $ECHO_C" >&6
37082else
37083 if test -n "$ac_ct_AR"; then
37084 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
37085else
37086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37087for as_dir in $PATH
37088do
37089 IFS=$as_save_IFS
37090 test -z "$as_dir" && as_dir=.
37091 for ac_exec_ext in '' $ac_executable_extensions; do
37092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37093 ac_cv_prog_ac_ct_AR="ar"
37094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37095 break 2
37096 fi
37097done
37098done
37099
37100 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
37101fi
37102fi
37103ac_ct_AR=$ac_cv_prog_ac_ct_AR
37104if test -n "$ac_ct_AR"; then
37105 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
37106echo "${ECHO_T}$ac_ct_AR" >&6
37107else
37108 echo "$as_me:$LINENO: result: no" >&5
37109echo "${ECHO_T}no" >&6
37110fi
37111
37112 AR=$ac_ct_AR
37113else
37114 AR="$ac_cv_prog_AR"
37115fi
37116
37117 if test -n "$ac_tool_prefix"; then
37118 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
37119set dummy ${ac_tool_prefix}strip; ac_word=$2
e6cc62c6
VS
37120echo "$as_me:$LINENO: checking for $ac_word" >&5
37121echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37122if test "${ac_cv_prog_STRIP+set}" = set; then
37123 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37124else
37125 if test -n "$STRIP"; then
37126 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
37127else
e6cc62c6
VS
37128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37129for as_dir in $PATH
37130do
37131 IFS=$as_save_IFS
37132 test -z "$as_dir" && as_dir=.
37133 for ac_exec_ext in '' $ac_executable_extensions; do
37134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 37135 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
e6cc62c6
VS
37136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37137 break 2
37138 fi
37139done
37140done
37141
fe0895cf
VS
37142fi
37143fi
e6cc62c6 37144STRIP=$ac_cv_prog_STRIP
fe0895cf 37145if test -n "$STRIP"; then
e6cc62c6
VS
37146 echo "$as_me:$LINENO: result: $STRIP" >&5
37147echo "${ECHO_T}$STRIP" >&6
fe0895cf 37148else
e6cc62c6
VS
37149 echo "$as_me:$LINENO: result: no" >&5
37150echo "${ECHO_T}no" >&6
fe0895cf
VS
37151fi
37152
874d12cf
VS
37153fi
37154if test -z "$ac_cv_prog_STRIP"; then
37155 ac_ct_STRIP=$STRIP
37156 # Extract the first word of "strip", so it can be a program name with args.
37157set dummy strip; ac_word=$2
37158echo "$as_me:$LINENO: checking for $ac_word" >&5
37159echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37160if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
37161 echo $ECHO_N "(cached) $ECHO_C" >&6
37162else
37163 if test -n "$ac_ct_STRIP"; then
37164 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
37165else
37166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37167for as_dir in $PATH
37168do
37169 IFS=$as_save_IFS
37170 test -z "$as_dir" && as_dir=.
37171 for ac_exec_ext in '' $ac_executable_extensions; do
37172 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37173 ac_cv_prog_ac_ct_STRIP="strip"
37174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37175 break 2
37176 fi
37177done
37178done
37179
37180 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
37181fi
37182fi
37183ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
37184if test -n "$ac_ct_STRIP"; then
37185 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
37186echo "${ECHO_T}$ac_ct_STRIP" >&6
37187else
37188 echo "$as_me:$LINENO: result: no" >&5
37189echo "${ECHO_T}no" >&6
37190fi
37191
37192 STRIP=$ac_ct_STRIP
37193else
37194 STRIP="$ac_cv_prog_STRIP"
37195fi
37196
37197 if test -n "$ac_tool_prefix"; then
37198 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
37199set dummy ${ac_tool_prefix}nm; ac_word=$2
37200echo "$as_me:$LINENO: checking for $ac_word" >&5
37201echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37202if test "${ac_cv_prog_NM+set}" = set; then
37203 echo $ECHO_N "(cached) $ECHO_C" >&6
37204else
37205 if test -n "$NM"; then
37206 ac_cv_prog_NM="$NM" # Let the user override the test.
37207else
37208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37209for as_dir in $PATH
37210do
37211 IFS=$as_save_IFS
37212 test -z "$as_dir" && as_dir=.
37213 for ac_exec_ext in '' $ac_executable_extensions; do
37214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37215 ac_cv_prog_NM="${ac_tool_prefix}nm"
37216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37217 break 2
37218 fi
37219done
37220done
37221
37222fi
37223fi
37224NM=$ac_cv_prog_NM
37225if test -n "$NM"; then
37226 echo "$as_me:$LINENO: result: $NM" >&5
37227echo "${ECHO_T}$NM" >&6
37228else
37229 echo "$as_me:$LINENO: result: no" >&5
37230echo "${ECHO_T}no" >&6
37231fi
37232
37233fi
37234if test -z "$ac_cv_prog_NM"; then
37235 ac_ct_NM=$NM
37236 # Extract the first word of "nm", so it can be a program name with args.
37237set dummy nm; ac_word=$2
37238echo "$as_me:$LINENO: checking for $ac_word" >&5
37239echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37240if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
37241 echo $ECHO_N "(cached) $ECHO_C" >&6
37242else
37243 if test -n "$ac_ct_NM"; then
37244 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
37245else
37246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37247for as_dir in $PATH
37248do
37249 IFS=$as_save_IFS
37250 test -z "$as_dir" && as_dir=.
37251 for ac_exec_ext in '' $ac_executable_extensions; do
37252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37253 ac_cv_prog_ac_ct_NM="nm"
37254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37255 break 2
37256 fi
37257done
37258done
37259
37260 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
37261fi
37262fi
37263ac_ct_NM=$ac_cv_prog_ac_ct_NM
37264if test -n "$ac_ct_NM"; then
37265 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
37266echo "${ECHO_T}$ac_ct_NM" >&6
37267else
37268 echo "$as_me:$LINENO: result: no" >&5
37269echo "${ECHO_T}no" >&6
37270fi
37271
37272 NM=$ac_ct_NM
37273else
37274 NM="$ac_cv_prog_NM"
37275fi
37276
fe0895cf
VS
37277
37278 case ${host} in
37279 *-hp-hpux* )
37280 INSTALL_DIR="mkdir"
37281 ;;
37282 *) INSTALL_DIR="$INSTALL -d"
37283 ;;
37284 esac
e6cc62c6 37285
fe0895cf 37286
6b9d41a5
VS
37287 LDFLAGS_GUI=
37288 case ${host} in
37289 *-*-cygwin* | *-*-mingw32* )
37290 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
37291 esac
37292
37293
fe0895cf 37294 fi
e6cc62c6
VS
37295
37296 echo "$as_me:$LINENO: checking if make is GNU make" >&5
37297echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 37298if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 37299 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 37300else
e6cc62c6 37301
fe0895cf
VS
37302 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
37303 egrep -s GNU > /dev/null); then
37304 bakefile_cv_prog_makeisgnu="yes"
37305 else
37306 bakefile_cv_prog_makeisgnu="no"
37307 fi
fe0895cf 37308
e6cc62c6 37309fi
49b0a3aa
VS
37310echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
37311echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
37312
37313 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
37314 IF_GNU_MAKE=""
37315 else
37316 IF_GNU_MAKE="#"
37317 fi
fe0895cf 37318
e6cc62c6
VS
37319
37320
fe0895cf
VS
37321 PLATFORM_UNIX=0
37322 PLATFORM_WIN32=0
37323 PLATFORM_MSDOS=0
37324 PLATFORM_MAC=0
37325 PLATFORM_MACOSX=0
96c1699d 37326 PLATFORM_OS2=0
e6cc62c6 37327
fe0895cf
VS
37328 case "${host}" in
37329 *-*-cygwin* | *-*-mingw32* )
37330 PLATFORM_WIN32=1
37331 ;;
96c1699d 37332 *-pc-msdosdjgpp )
fe0895cf
VS
37333 PLATFORM_MSDOS=1
37334 ;;
96c1699d
VS
37335 *-pc-os2_emx | *-pc-os2-emx )
37336 PLATFORM_OS2=1
37337 ;;
fe0895cf
VS
37338 powerpc-*-darwin* )
37339 PLATFORM_MAC=1
37340 PLATFORM_MACOSX=1
37341 ;;
37342 * )
37343 PLATFORM_UNIX=1
37344 ;;
37345 esac
37346
fe0895cf 37347
e6cc62c6
VS
37348
37349
37350
37351
37352
37353
96c1699d 37354
fe0895cf 37355 SO_SUFFIX="so"
131f235d 37356 SO_SUFFIX_MODULE="so"
fe0895cf 37357 EXEEXT=""
4b1f6360 37358 LIBPREFIX=lib
fe0895cf 37359 DLLPREFIX=lib
131f235d 37360 DLLPREFIX_MODULE=
e6cc62c6 37361
fe0895cf
VS
37362 case "${host}" in
37363 *-hp-hpux* )
37364 SO_SUFFIX="sl"
131f235d 37365 SO_SUFFIX_MODULE="sl"
fe0895cf
VS
37366 ;;
37367 *-*-aix* )
37368 SO_SUFFIX="a"
131f235d 37369 SO_SUFFIX_MODULE="a"
fe0895cf
VS
37370 ;;
37371 *-*-cygwin* | *-*-mingw32* )
37372 SO_SUFFIX="dll"
131f235d 37373 SO_SUFFIX_MODULE="dll"
fe0895cf
VS
37374 EXEEXT=".exe"
37375 DLLPREFIX=""
37376 ;;
4b1f6360
VS
37377 *-pc-msdosdjgpp )
37378 EXEEXT=".exe"
37379 DLLPREFIX=""
37380 ;;
37381 *-pc-os2_emx | *-pc-os2-emx )
fe0895cf
VS
37382 EXEEXT=".exe"
37383 DLLPREFIX=""
4b1f6360 37384 LIBPREFIX=""
fe0895cf
VS
37385 ;;
37386 powerpc-*-darwin* )
37387 SO_SUFFIX="dylib"
131f235d 37388 SO_SUFFIX_MODULE="bundle"
fe0895cf
VS
37389 ;;
37390 esac
37391
fe0895cf 37392
e6cc62c6
VS
37393
37394
37395
37396
131f235d
VS
37397
37398
4b1f6360 37399
fe0895cf
VS
37400 SHARED_LD_CC="\$(CC) -shared -o"
37401 SHARED_LD_CXX="\$(CXX) -shared -o"
37402
37403 if test "x$GCC" = "xyes"; then
37404 PIC_FLAG="-fPIC"
37405 fi
37406
37407 case "${host}" in
37408 *-hp-hpux* )
37409 if test "x$GCC" = "xyes"; then
37410 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
37411 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
37412 else
37413 LDFLAGS="$LDFLAGS -L/usr/lib"
37414
37415 SHARED_LD_CC="${CC} -b -o"
37416 SHARED_LD_CXX="${CXX} -b -o"
37417 PIC_FLAG="+Z"
37418 fi
37419 ;;
37420
37421 *-*-linux* )
37422 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
37423 echo "$as_me:$LINENO: checking for Intel compiler" >&5
37424echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
37425if test "${bakefile_cv_prog_icc+set}" = set; then
37426 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 37427else
fe0895cf 37428
e6cc62c6 37429 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
37430/* confdefs.h. */
37431_ACEOF
37432cat confdefs.h >>conftest.$ac_ext
37433cat >>conftest.$ac_ext <<_ACEOF
37434/* end confdefs.h. */
37435
37436int
37437main ()
37438{
fe0895cf
VS
37439
37440 #ifndef __INTEL_COMPILER
37441 #error Not icc
37442 #endif
e6cc62c6
VS
37443
37444 ;
37445 return 0;
37446}
37447_ACEOF
37448rm -f conftest.$ac_objext
37449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 37450 (eval $ac_compile) 2>conftest.er1
e6cc62c6 37451 ac_status=$?
eea650d8
VS
37452 grep -v '^ *+' conftest.er1 >conftest.err
37453 rm -f conftest.er1
37454 cat conftest.err >&5
e6cc62c6
VS
37455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37456 (exit $ac_status); } &&
eea650d8
VS
37457 { ac_try='test -z "$ac_c_werror_flag"
37458 || test ! -s conftest.err'
37459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37460 (eval $ac_try) 2>&5
37461 ac_status=$?
37462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37463 (exit $ac_status); }; } &&
37464 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
37465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37466 (eval $ac_try) 2>&5
37467 ac_status=$?
37468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37469 (exit $ac_status); }; }; then
fe0895cf
VS
37470 bakefile_cv_prog_icc=yes
37471else
e6cc62c6
VS
37472 echo "$as_me: failed program was:" >&5
37473sed 's/^/| /' conftest.$ac_ext >&5
37474
37475bakefile_cv_prog_icc=no
37476
fe0895cf 37477fi
eea650d8 37478rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fe0895cf 37479
e6cc62c6
VS
37480fi
37481echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
37482echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
37483 if test "$bakefile_cv_prog_icc" = "yes"; then
37484 PIC_FLAG="-KPIC"
37485 fi
37486 fi
37487 ;;
37488
37489 *-*-solaris2* )
37490 if test "x$GCC" != xyes ; then
37491 SHARED_LD_CC="${CC} -G -o"
37492 SHARED_LD_CXX="${CXX} -G -o"
37493 PIC_FLAG="-KPIC"
37494 fi
37495 ;;
37496
37497 *-*-darwin* )
37498 CFLAGS="$CFLAGS -fno-common"
37499 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
37500
37501
2a879853 37502 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
43948499
RD
37503echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
37504if test "${wx_cv_gcc31+set}" = set; then
37505 echo $ECHO_N "(cached) $ECHO_C" >&6
37506else
37507
2a879853 37508 cat >conftest.$ac_ext <<_ACEOF
43948499
RD
37509/* confdefs.h. */
37510_ACEOF
37511cat confdefs.h >>conftest.$ac_ext
37512cat >>conftest.$ac_ext <<_ACEOF
37513/* end confdefs.h. */
37514
37515int
37516main ()
37517{
37518
2a879853
VS
37519 #if (__GNUC__ < 3) || \
37520 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
37521 #error old gcc
37522 #endif
43948499
RD
37523
37524 ;
37525 return 0;
37526}
37527_ACEOF
37528rm -f conftest.$ac_objext
37529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 37530 (eval $ac_compile) 2>conftest.er1
43948499 37531 ac_status=$?
eea650d8
VS
37532 grep -v '^ *+' conftest.er1 >conftest.err
37533 rm -f conftest.er1
37534 cat conftest.err >&5
43948499
RD
37535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37536 (exit $ac_status); } &&
eea650d8
VS
37537 { ac_try='test -z "$ac_c_werror_flag"
37538 || test ! -s conftest.err'
37539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37540 (eval $ac_try) 2>&5
37541 ac_status=$?
37542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37543 (exit $ac_status); }; } &&
37544 { ac_try='test -s conftest.$ac_objext'
43948499
RD
37545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37546 (eval $ac_try) 2>&5
37547 ac_status=$?
37548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37549 (exit $ac_status); }; }; then
37550
2a879853 37551 wx_cv_gcc31=yes
43948499
RD
37552
37553else
37554 echo "$as_me: failed program was:" >&5
37555sed 's/^/| /' conftest.$ac_ext >&5
37556
37557
2a879853 37558 wx_cv_gcc31=no
43948499
RD
37559
37560
37561fi
eea650d8 37562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43948499
RD
37563
37564fi
37565echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
37566echo "${ECHO_T}$wx_cv_gcc31" >&6
2a879853 37567 if test "$wx_cv_gcc31" = "no"; then
43948499 37568 cat <<EOF >shared-ld-sh
fe0895cf
VS
37569#!/bin/sh
37570#-----------------------------------------------------------------------------
37571#-- Name: distrib/mac/shared-ld-sh
37572#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
37573#-- Author: Gilles Depeyrot
37574#-- Copyright: (c) 2002 Gilles Depeyrot
37575#-- Licence: any use permitted
37576#-----------------------------------------------------------------------------
37577
37578verbose=0
37579args=""
37580objects=""
131f235d 37581linking_flag="-dynamiclib"
fe0895cf
VS
37582
37583while test \${#} -gt 0; do
37584 case \${1} in
37585
37586 -v)
37587 verbose=1
37588 ;;
37589
37590 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
37591 # collect these options and values
37592 args="\${args} \${1} \${2}"
37593 shift
37594 ;;
37595
74500461 37596 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
fe0895cf
VS
37597 # collect these options
37598 args="\${args} \${1}"
37599 ;;
37600
131f235d
VS
37601 -dynamiclib|-bundle)
37602 linking_flag="\${1}"
fe0895cf
VS
37603 ;;
37604
37605 -*)
37606 echo "shared-ld: unhandled option '\${1}'"
37607 exit 1
37608 ;;
37609
4d264332 37610 *.o | *.a | *.dylib)
fe0895cf
VS
37611 # collect object files
37612 objects="\${objects} \${1}"
37613 ;;
37614
37615 *)
37616 echo "shared-ld: unhandled argument '\${1}'"
37617 exit 1
37618 ;;
37619
37620 esac
37621 shift
37622done
37623
37624#
37625# Link one module containing all the others
37626#
37627if test \${verbose} = 1; then
37628 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
37629fi
37630c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
37631status=\$?
37632if test \${status} != 0; then
37633 exit \${status}
37634fi
37635
37636#
37637# Link the shared library from the single module created
37638#
37639if test \${verbose} = 1; then
2a879853 37640 echo "cc \${linking_flag} master.\$\$.o \${args}"
fe0895cf 37641fi
131f235d 37642c++ \${linking_flag} master.\$\$.o \${args}
fe0895cf
VS
37643status=\$?
37644if test \${status} != 0; then
37645 exit \${status}
37646fi
37647
37648#
37649# Remove intermediate module
37650#
37651rm -f master.\$\$.o
37652
37653exit 0
37654EOF
43948499 37655 chmod +x shared-ld-sh
fe0895cf 37656
7f523214
VS
37657 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
37658 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
2a879853
VS
37659 SHARED_LD_CXX="$SHARED_LD_CC"
37660 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
37661 else
7f523214
VS
37662 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
37663 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
37664 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
37665 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
2a879853
VS
37666 fi
37667
fe0895cf 37668 PIC_FLAG="-dynamic -fPIC"
2a879853 37669 ;;
fe0895cf
VS
37670
37671 *-*-aix* )
37672 if test "x$GCC" != "xyes"; then
37673 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
37674set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
37675echo "$as_me:$LINENO: checking for $ac_word" >&5
37676echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37677if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
37678 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37679else
37680 if test -n "$AIX_CXX_LD"; then
37681 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
37682else
e6cc62c6
VS
37683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37684for as_dir in $PATH
37685do
37686 IFS=$as_save_IFS
37687 test -z "$as_dir" && as_dir=.
37688 for ac_exec_ext in '' $ac_executable_extensions; do
37689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37690 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
37691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37692 break 2
37693 fi
37694done
37695done
37696
fe0895cf
VS
37697 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
37698fi
37699fi
e6cc62c6 37700AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 37701if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
37702 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
37703echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 37704else
e6cc62c6
VS
37705 echo "$as_me:$LINENO: result: no" >&5
37706echo "${ECHO_T}no" >&6
fe0895cf
VS
37707fi
37708
37709 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
37710 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
37711 fi
37712 ;;
37713
37714 *-*-beos* )
37715 SHARED_LD_CC="${LD} -shared -o"
37716 SHARED_LD_CXX="${LD} -shared -o"
37717 ;;
37718
37719 *-*-irix* )
37720 if test "x$GCC" != "xyes"; then
37721 PIC_FLAG="-KPIC"
37722 fi
37723 ;;
e6cc62c6 37724
fe0895cf
VS
37725 *-*-cygwin* | *-*-mingw32* )
37726 PIC_FLAG=""
37727 ;;
e6cc62c6 37728
fe0895cf
VS
37729 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
37730 *-*-sunos4* | \
37731 *-*-osf* | \
37732 *-*-dgux5* | \
4b1f6360 37733 *-pc-os2_emx | *-pc-os2-emx | \
fe0895cf
VS
37734 *-*-sysv5* )
37735 ;;
37736
37737 *)
e6cc62c6
VS
37738 { { echo "$as_me:$LINENO: error: unknown system type $host." >&5
37739echo "$as_me: error: unknown system type $host." >&2;}
37740 { (exit 1); exit 1; }; }
fe0895cf
VS
37741 esac
37742
131f235d
VS
37743 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
37744 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
37745 fi
37746 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
239394fb 37747 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
131f235d
VS
37748 fi
37749
37750
37751
fe0895cf 37752
e6cc62c6
VS
37753
37754
37755
37756
fe0895cf
VS
37757 USE_SOVERSION=0
37758 USE_SOVERLINUX=0
37759 USE_SOVERSOLARIS=0
37760 USE_SOSYMLINKS=0
37761 USE_MACVERSION=0
37762 SONAME_FLAG=
37763
37764 case "${host}" in
37765 *-*-linux* )
37766 SONAME_FLAG="-Wl,-soname,"
37767 USE_SOVERSION=1
37768 USE_SOVERLINUX=1
37769 USE_SOSYMLINKS=1
37770 ;;
37771
37772 *-*-solaris2* )
37773 SONAME_FLAG="-h "
37774 USE_SOVERSION=1
37775 USE_SOVERSOLARIS=1
37776 USE_SOSYMLINKS=1
37777 ;;
37778
37779 *-*-darwin* )
37780 USE_MACVERSION=1
37781 USE_SOVERSION=1
37782 USE_SOSYMLINKS=1
e6cc62c6 37783 ;;
fe0895cf
VS
37784 esac
37785
fe0895cf 37786
e6cc62c6
VS
37787
37788
37789
37790
37791
37792
37793
49b0a3aa
VS
37794 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
37795echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
37796 DEPS_TRACKING=0
37797
fe0895cf 37798 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
37799 DEPSMODE=gcc
37800 DEPS_TRACKING=1
3e5c3c83
VS
37801 case "${host}" in
37802 powerpc-*-darwin* )
37803 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
37804 ;;
37805 * )
37806 DEPSFLAG_GCC="-MMD"
37807 ;;
37808 esac
49b0a3aa
VS
37809 echo "$as_me:$LINENO: result: gcc" >&5
37810echo "${ECHO_T}gcc" >&6
37811 else
37812 echo "$as_me:$LINENO: result: none" >&5
37813echo "${ECHO_T}none" >&6
37814 fi
37815
37816 if test $DEPS_TRACKING = 1 ; then
37817 cat <<EOF >bk-deps
37818#!/bin/sh
37819
45842500
VS
37820# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
37821# script. It is used to track C/C++ files dependencies in portable way.
49b0a3aa
VS
37822#
37823# Permission is given to use this file in any way.
37824
37825DEPSMODE=$DEPSMODE
37826DEPSDIR=.deps
3e5c3c83 37827DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
37828
37829mkdir -p \$DEPSDIR
37830
37831if test \$DEPSMODE = gcc ; then
3e5c3c83 37832 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
37833 status=\${?}
37834 if test \${status} != 0 ; then
37835 exit \${status}
37836 fi
37837 # move created file to the location we want it in:
37838 while test \${#} -gt 0; do
37839 case "\${1}" in
37840 -o )
37841 shift
37842 objfile=\${1}
37843 ;;
37844 -* )
37845 ;;
37846 * )
37847 srcfile=\${1}
37848 ;;
37849 esac
37850 shift
37851 done
37852 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
37853 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
37854 if test -f \$depfile ; then
37855 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
37856 rm -f \$depfile
37857 else
37858 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
37859 if test -f \$depfile ; then
9d0be83a 37860 sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
37861 rm -f \$depfile
37862 fi
37863 fi
49b0a3aa
VS
37864 exit 0
37865else
37866 \${*}
37867 exit \${?}
37868fi
37869EOF
37870 chmod +x bk-deps
fe0895cf 37871 fi
fe0895cf 37872
e6cc62c6
VS
37873
37874
37875
fe0895cf
VS
37876 RESCOMP=
37877 SETFILE=
37878
e6cc62c6 37879 case ${host} in
fe0895cf
VS
37880 *-*-cygwin* | *-*-mingw32* )
37881 if test "$build" != "$host" ; then
37882 RESCOMP=$host_alias-windres
37883 else
37884 # Extract the first word of "windres", so it can be a program name with args.
37885set dummy windres; ac_word=$2
e6cc62c6
VS
37886echo "$as_me:$LINENO: checking for $ac_word" >&5
37887echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37888if test "${ac_cv_prog_RESCOMP+set}" = set; then
37889 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37890else
37891 if test -n "$RESCOMP"; then
37892 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
37893else
e6cc62c6
VS
37894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37895for as_dir in $PATH
37896do
37897 IFS=$as_save_IFS
37898 test -z "$as_dir" && as_dir=.
37899 for ac_exec_ext in '' $ac_executable_extensions; do
37900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37901 ac_cv_prog_RESCOMP="windres"
37902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37903 break 2
37904 fi
37905done
37906done
37907
fe0895cf
VS
37908 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
37909fi
37910fi
e6cc62c6 37911RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 37912if test -n "$RESCOMP"; then
e6cc62c6
VS
37913 echo "$as_me:$LINENO: result: $RESCOMP" >&5
37914echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 37915else
e6cc62c6
VS
37916 echo "$as_me:$LINENO: result: no" >&5
37917echo "${ECHO_T}no" >&6
fe0895cf
VS
37918fi
37919
37920 fi
37921 ;;
e6cc62c6 37922
fe0895cf
VS
37923 *-*-darwin* )
37924 # Extract the first word of "Rez", so it can be a program name with args.
37925set dummy Rez; ac_word=$2
e6cc62c6
VS
37926echo "$as_me:$LINENO: checking for $ac_word" >&5
37927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37928if test "${ac_cv_prog_RESCOMP+set}" = set; then
37929 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37930else
37931 if test -n "$RESCOMP"; then
37932 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
37933else
e6cc62c6
VS
37934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37935for as_dir in $PATH
37936do
37937 IFS=$as_save_IFS
37938 test -z "$as_dir" && as_dir=.
37939 for ac_exec_ext in '' $ac_executable_extensions; do
37940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37941 ac_cv_prog_RESCOMP="Rez"
37942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37943 break 2
37944 fi
37945done
37946done
37947
fe0895cf
VS
37948 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
37949fi
37950fi
e6cc62c6 37951RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 37952if test -n "$RESCOMP"; then
e6cc62c6
VS
37953 echo "$as_me:$LINENO: result: $RESCOMP" >&5
37954echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 37955else
e6cc62c6
VS
37956 echo "$as_me:$LINENO: result: no" >&5
37957echo "${ECHO_T}no" >&6
fe0895cf
VS
37958fi
37959
37960 # Extract the first word of "SetFile", so it can be a program name with args.
37961set dummy SetFile; ac_word=$2
e6cc62c6
VS
37962echo "$as_me:$LINENO: checking for $ac_word" >&5
37963echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37964if test "${ac_cv_prog_SETFILE+set}" = set; then
37965 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37966else
37967 if test -n "$SETFILE"; then
37968 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
37969else
e6cc62c6
VS
37970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37971for as_dir in $PATH
37972do
37973 IFS=$as_save_IFS
37974 test -z "$as_dir" && as_dir=.
37975 for ac_exec_ext in '' $ac_executable_extensions; do
37976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37977 ac_cv_prog_SETFILE="SetFile"
37978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37979 break 2
37980 fi
37981done
37982done
37983
fe0895cf
VS
37984 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
37985fi
37986fi
e6cc62c6 37987SETFILE=$ac_cv_prog_SETFILE
fe0895cf 37988if test -n "$SETFILE"; then
e6cc62c6
VS
37989 echo "$as_me:$LINENO: result: $SETFILE" >&5
37990echo "${ECHO_T}$SETFILE" >&6
fe0895cf 37991else
e6cc62c6
VS
37992 echo "$as_me:$LINENO: result: no" >&5
37993echo "${ECHO_T}no" >&6
fe0895cf
VS
37994fi
37995
37996 ;;
37997 esac
37998
fe0895cf
VS
37999
38000
e6cc62c6
VS
38001
38002
38003
38004
45842500 38005
74500461
VS
38006
38007
45842500
VS
38008 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
38009if test "${enable_precomp_headers+set}" = set; then
38010 enableval="$enable_precomp_headers"
38011 bk_use_pch="$enableval"
38012fi;
38013
38014 GCC_PCH=0
38015
38016 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
38017 if test "x$GCC" = "xyes"; then
38018 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
38019echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
38020 cat >conftest.$ac_ext <<_ACEOF
45842500
VS
38021/* confdefs.h. */
38022_ACEOF
38023cat confdefs.h >>conftest.$ac_ext
38024cat >>conftest.$ac_ext <<_ACEOF
38025/* end confdefs.h. */
38026
38027int
38028main ()
38029{
38030
8bcf2d20
VS
38031 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
38032 #error "no pch support"
38033 #endif
38034 #if (__GNUC__ < 3)
38035 #error "no pch support"
38036 #endif
38037 #if (__GNUC__ == 3) && \
38038 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
38039 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
38040 #error "no pch support"
45842500
VS
38041 #endif
38042
38043 ;
38044 return 0;
38045}
38046_ACEOF
38047rm -f conftest.$ac_objext
38048if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
eea650d8 38049 (eval $ac_compile) 2>conftest.er1
45842500 38050 ac_status=$?
eea650d8
VS
38051 grep -v '^ *+' conftest.er1 >conftest.err
38052 rm -f conftest.er1
38053 cat conftest.err >&5
45842500
VS
38054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38055 (exit $ac_status); } &&
eea650d8
VS
38056 { ac_try='test -z "$ac_c_werror_flag"
38057 || test ! -s conftest.err'
38058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38059 (eval $ac_try) 2>&5
38060 ac_status=$?
38061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38062 (exit $ac_status); }; } &&
38063 { ac_try='test -s conftest.$ac_objext'
45842500
VS
38064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38065 (eval $ac_try) 2>&5
38066 ac_status=$?
38067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38068 (exit $ac_status); }; }; then
38069
38070 echo "$as_me:$LINENO: result: yes" >&5
38071echo "${ECHO_T}yes" >&6
38072 CPPFLAGS="-fpch-deps $CPPFLAGS"
38073 GCC_PCH=1
38074
38075else
38076 echo "$as_me: failed program was:" >&5
38077sed 's/^/| /' conftest.$ac_ext >&5
38078
38079
38080 echo "$as_me:$LINENO: result: no" >&5
38081echo "${ECHO_T}no" >&6
38082
38083fi
eea650d8 38084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45842500
VS
38085 if test $GCC_PCH = 1 ; then
38086 cat <<EOF >bk-make-pch
38087#!/bin/sh
38088
38089# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
38090# script. It is used to generated precompiled headers.
38091#
38092# Permission is given to use this file in any way.
38093
38094outfile="\${1}"
38095header="\${2}"
38096shift
38097shift
38098
38099compiler=
38100headerfile=
38101while test \${#} -gt 0; do
38102 case "\${1}" in
38103 -I* )
38104 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
38105 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
38106 headerfile="\${incdir}/\${header}"
38107 fi
38108 ;;
38109 esac
38110 compiler="\${compiler} \${1}"
38111 shift
38112done
38113
38114if test "x\${headerfile}" = "x" ; then
38115 echo "error: can't find header \${header} in include paths" >2
38116else
38117 if test -f \${outfile} ; then
38118 rm -f \${outfile}
38119 else
38120 mkdir -p \`dirname \${outfile}\`
38121 fi
38122 depsfile=".deps/\`basename \${outfile}\`.d"
38123 mkdir -p .deps
38124 # can do this because gcc is >= 3.4:
38125 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
38126 exit \${?}
38127fi
38128EOF
38129 chmod +x bk-make-pch
38130 fi
38131 fi
38132 fi
38133
38134
38135
38136
38137
d78c94f2 38138 COND_BUILD_DEBUG="#"
6f628073 38139 if test "x$BUILD" = "xdebug" ; then
d78c94f2 38140 COND_BUILD_DEBUG=""
6f628073
VS
38141 fi
38142
6c67131a
VS
38143 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
38144 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
38145 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
38146 fi
38147
38148 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
38149 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
38150 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
38151 fi
38152
d78c94f2 38153 COND_BUILD_RELEASE="#"
6f628073 38154 if test "x$BUILD" = "xrelease" ; then
d78c94f2 38155 COND_BUILD_RELEASE=""
6b9d41a5
VS
38156 fi
38157
6c67131a
VS
38158 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
38159 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
38160 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
38161 fi
38162
38163 COND_DEBUG_FLAG_1="#"
38164 if test "x$DEBUG_FLAG" = "x1" ; then
38165 COND_DEBUG_FLAG_1=""
38166 fi
38167
38168 COND_DEBUG_INFO_0="#"
38169 if test "x$DEBUG_INFO" = "x0" ; then
38170 COND_DEBUG_INFO_0=""
38171 fi
38172
38173 COND_DEBUG_INFO_1="#"
38174 if test "x$DEBUG_INFO" = "x1" ; then
38175 COND_DEBUG_INFO_1=""
38176 fi
38177
f95cd8fa
VS
38178 COND_DEPS_TRACKING_0="#"
38179 if test "x$DEPS_TRACKING" = "x0" ; then
38180 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
38181 fi
38182
8ee2dd05
VS
38183 COND_DEPS_TRACKING_1="#"
38184 if test "x$DEPS_TRACKING" = "x1" ; then
38185 COND_DEPS_TRACKING_1=""
38186 fi
38187
45842500
VS
38188 COND_GCC_PCH_1="#"
38189 if test "x$GCC_PCH" = "x1" ; then
38190 COND_GCC_PCH_1=""
38191 fi
38192
6f628073
VS
38193 COND_MONOLITHIC_0="#"
38194 if test "x$MONOLITHIC" = "x0" ; then
38195 COND_MONOLITHIC_0=""
6b9d41a5
VS
38196 fi
38197
6f628073
VS
38198 COND_MONOLITHIC_0_SHARED_0="#"
38199 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
38200 COND_MONOLITHIC_0_SHARED_0=""
38201 fi
38202
38203 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
38204 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
38205 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 38206 fi
e6cc62c6 38207
8772a1a7
VS
38208 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
38209 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
38210 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
38211 fi
38212
250700e4
RD
38213 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
38214 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
38215 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
38216 fi
38217
eb69fda5
VS
38218 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
38219 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
38220 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
38221 fi
38222
8ee2dd05
VS
38223 COND_MONOLITHIC_0_SHARED_1="#"
38224 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
38225 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 38226 fi
e6cc62c6 38227
6f628073
VS
38228 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
38229 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
38230 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
38231 fi
38232
8772a1a7
VS
38233 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
38234 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
38235 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
38236 fi
38237
250700e4
RD
38238 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
38239 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
38240 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
38241 fi
38242
eb69fda5
VS
38243 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
38244 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
38245 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
38246 fi
38247
3af038c0
VS
38248 COND_MONOLITHIC_1="#"
38249 if test "x$MONOLITHIC" = "x1" ; then
38250 COND_MONOLITHIC_1=""
38251 fi
38252
6f628073
VS
38253 COND_MONOLITHIC_1_SHARED_0="#"
38254 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
38255 COND_MONOLITHIC_1_SHARED_0=""
38256 fi
38257
38258 COND_MONOLITHIC_1_SHARED_1="#"
38259 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
38260 COND_MONOLITHIC_1_SHARED_1=""
38261 fi
38262
3af038c0
VS
38263 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
38264 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
38265 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
38266 fi
38267
38268 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
38269 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
38270 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
38271 fi
38272
6f628073
VS
38273 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
38274 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
38275 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
38276 fi
38277
3af038c0
VS
38278 COND_PLATFORM_MACOSX_1="#"
38279 if test "x$PLATFORM_MACOSX" = "x1" ; then
38280 COND_PLATFORM_MACOSX_1=""
38281 fi
38282
250700e4
RD
38283 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
38284 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
38285 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
38286 fi
38287
38288 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
38289 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
38290 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
38291 fi
38292
38293 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
38294 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
38295 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
38296 fi
38297
3527f29c
VS
38298 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
38299 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
38300 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
38301 fi
38302
8ee2dd05
VS
38303 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
38304 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
38305 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
38306 fi
38307
45842500
VS
38308 COND_PLATFORM_MAC_1="#"
38309 if test "x$PLATFORM_MAC" = "x1" ; then
38310 COND_PLATFORM_MAC_1=""
38311 fi
38312
3d8c1de0
VS
38313 COND_PLATFORM_OS2_1="#"
38314 if test "x$PLATFORM_OS2" = "x1" ; then
38315 COND_PLATFORM_OS2_1=""
38316 fi
38317
8772a1a7
VS
38318 COND_PLATFORM_UNIX_0="#"
38319 if test "x$PLATFORM_UNIX" = "x0" ; then
38320 COND_PLATFORM_UNIX_0=""
38321 fi
38322
3af038c0
VS
38323 COND_PLATFORM_UNIX_1="#"
38324 if test "x$PLATFORM_UNIX" = "x1" ; then
38325 COND_PLATFORM_UNIX_1=""
38326 fi
38327
3527f29c
VS
38328 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
38329 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
38330 COND_PLATFORM_UNIX_1_USE_GUI_1=""
38331 fi
38332
3af038c0
VS
38333 COND_PLATFORM_WIN32_0="#"
38334 if test "x$PLATFORM_WIN32" = "x0" ; then
38335 COND_PLATFORM_WIN32_0=""
38336 fi
38337
38338 COND_PLATFORM_WIN32_1="#"
38339 if test "x$PLATFORM_WIN32" = "x1" ; then
38340 COND_PLATFORM_WIN32_1=""
38341 fi
38342
45842500
VS
38343 COND_SHARED_0="#"
38344 if test "x$SHARED" = "x0" ; then
38345 COND_SHARED_0=""
38346 fi
38347
250700e4
RD
38348 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
38349 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
38350 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
38351 fi
38352
52a5a009
VS
38353 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
38354 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38355 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
38356 fi
38357
38358 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
38359 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38360 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
38361 fi
38362
38363 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
38364 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38365 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
38366 fi
38367
38368 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
38369 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
38370 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
38371 fi
38372
38373 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
38374 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
38375 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
38376 fi
38377
38378 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
38379 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
38380 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
38381 fi
38382
38383 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
38384 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
38385 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
38386 fi
38387
45842500
VS
38388 COND_SHARED_1="#"
38389 if test "x$SHARED" = "x1" ; then
38390 COND_SHARED_1=""
38391 fi
38392
250700e4
RD
38393 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
38394 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
38395 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
38396 fi
38397
6f628073
VS
38398 COND_TOOLKIT_COCOA="#"
38399 if test "x$TOOLKIT" = "xCOCOA" ; then
38400 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
38401 fi
38402
6f628073
VS
38403 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
38404 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38405 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
38406 fi
38407
6f628073
VS
38408 COND_TOOLKIT_GTK="#"
38409 if test "x$TOOLKIT" = "xGTK" ; then
38410 COND_TOOLKIT_GTK=""
f95cd8fa
VS
38411 fi
38412
6f628073
VS
38413 COND_TOOLKIT_GTK_USE_GUI_1="#"
38414 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
38415 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
38416 fi
38417
6f628073
VS
38418 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
38419 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38420 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
38421 fi
38422
3af038c0
VS
38423 COND_TOOLKIT_MAC="#"
38424 if test "x$TOOLKIT" = "xMAC" ; then
38425 COND_TOOLKIT_MAC=""
38426 fi
38427
8772a1a7
VS
38428 COND_TOOLKIT_MAC_USE_GUI_1="#"
38429 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
38430 COND_TOOLKIT_MAC_USE_GUI_1=""
38431 fi
38432
6f628073
VS
38433 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
38434 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38435 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
38436 fi
38437
6f628073
VS
38438 COND_TOOLKIT_MGL="#"
38439 if test "x$TOOLKIT" = "xMGL" ; then
38440 COND_TOOLKIT_MGL=""
8ee2dd05
VS
38441 fi
38442
6f628073
VS
38443 COND_TOOLKIT_MGL_USE_GUI_1="#"
38444 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
38445 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
38446 fi
38447
6f628073
VS
38448 COND_TOOLKIT_MOTIF="#"
38449 if test "x$TOOLKIT" = "xMOTIF" ; then
38450 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
38451 fi
38452
6f628073
VS
38453 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
38454 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
38455 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 38456 fi
e6cc62c6 38457
6f628073
VS
38458 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
38459 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38460 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
38461 fi
38462
6f628073
VS
38463 COND_TOOLKIT_MSW="#"
38464 if test "x$TOOLKIT" = "xMSW" ; then
38465 COND_TOOLKIT_MSW=""
8ee2dd05
VS
38466 fi
38467
6f628073
VS
38468 COND_TOOLKIT_MSW_USE_GUI_1="#"
38469 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
38470 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 38471 fi
e6cc62c6 38472
6f628073
VS
38473 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
38474 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38475 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 38476 fi
e6cc62c6 38477
96c1699d
VS
38478 COND_TOOLKIT_PM="#"
38479 if test "x$TOOLKIT" = "xPM" ; then
38480 COND_TOOLKIT_PM=""
38481 fi
38482
38483 COND_TOOLKIT_PM_USE_GUI_1="#"
38484 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
38485 COND_TOOLKIT_PM_USE_GUI_1=""
38486 fi
38487
38488 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
38489 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38490 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
38491 fi
38492
6f628073
VS
38493 COND_TOOLKIT_X11="#"
38494 if test "x$TOOLKIT" = "xX11" ; then
38495 COND_TOOLKIT_X11=""
9747f85d
VS
38496 fi
38497
6f628073
VS
38498 COND_TOOLKIT_X11_USE_GUI_1="#"
38499 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
38500 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
38501 fi
38502
3af038c0
VS
38503 COND_UNICODE_1="#"
38504 if test "x$UNICODE" = "x1" ; then
38505 COND_UNICODE_1=""
38506 fi
38507
7015ef3a
VZ
38508 COND_USE_EXCEPTIONS_0="#"
38509 if test "x$USE_EXCEPTIONS" = "x0" ; then
38510 COND_USE_EXCEPTIONS_0=""
38511 fi
38512
38513 COND_USE_EXCEPTIONS_1="#"
38514 if test "x$USE_EXCEPTIONS" = "x1" ; then
38515 COND_USE_EXCEPTIONS_1=""
38516 fi
38517
3af038c0
VS
38518 COND_USE_GUI_0="#"
38519 if test "x$USE_GUI" = "x0" ; then
38520 COND_USE_GUI_0=""
38521 fi
38522
38523 COND_USE_GUI_1="#"
38524 if test "x$USE_GUI" = "x1" ; then
38525 COND_USE_GUI_1=""
38526 fi
38527
e6cc62c6 38528 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
38529 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38530 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 38531 fi
e6cc62c6
VS
38532
38533 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
38534 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
38535 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
38536 fi
38537
66a96744
VS
38538 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
38539 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38540 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
38541 fi
38542
38543 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
38544 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38545 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
38546 fi
38547
38548 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
38549 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38550 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
38551 fi
38552
57e7d4ac
VS
38553 COND_USE_ODBC_1="#"
38554 if test "x$USE_ODBC" = "x1" ; then
38555 COND_USE_ODBC_1=""
38556 fi
38557
6f628073
VS
38558 COND_USE_SOSYMLINKS_1="#"
38559 if test "x$USE_SOSYMLINKS" = "x1" ; then
38560 COND_USE_SOSYMLINKS_1=""
b625909c
VS
38561 fi
38562
6f628073
VS
38563 COND_USE_SOVERLINUX_1="#"
38564 if test "x$USE_SOVERLINUX" = "x1" ; then
38565 COND_USE_SOVERLINUX_1=""
b625909c
VS
38566 fi
38567
6f628073
VS
38568 COND_USE_SOVERSION_0="#"
38569 if test "x$USE_SOVERSION" = "x0" ; then
38570 COND_USE_SOVERSION_0=""
fddeb06b 38571 fi
fe0895cf 38572
6f628073
VS
38573 COND_USE_SOVERSOLARIS_1="#"
38574 if test "x$USE_SOVERSOLARIS" = "x1" ; then
38575 COND_USE_SOVERSOLARIS_1=""
fddeb06b 38576 fi
fe0895cf 38577
3af038c0
VS
38578 COND_WXUNIV_1="#"
38579 if test "x$WXUNIV" = "x1" ; then
38580 COND_WXUNIV_1=""
38581 fi
38582
66a96744
VS
38583 COND_WXUSE_EXPAT_BUILTIN="#"
38584 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
38585 COND_WXUSE_EXPAT_BUILTIN=""
38586 fi
38587
02980527
VS
38588 COND_WXUSE_LIBJPEG_BUILTIN="#"
38589 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38590 COND_WXUSE_LIBJPEG_BUILTIN=""
38591 fi
38592
38593 COND_WXUSE_LIBPNG_BUILTIN="#"
38594 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38595 COND_WXUSE_LIBPNG_BUILTIN=""
38596 fi
38597
38598 COND_WXUSE_LIBTIFF_BUILTIN="#"
38599 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38600 COND_WXUSE_LIBTIFF_BUILTIN=""
38601 fi
38602
38603 COND_WXUSE_ODBC_BUILTIN="#"
38604 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
38605 COND_WXUSE_ODBC_BUILTIN=""
38606 fi
38607
38608 COND_WXUSE_REGEX_BUILTIN="#"
38609 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
38610 COND_WXUSE_REGEX_BUILTIN=""
38611 fi
38612
38613 COND_WXUSE_ZLIB_BUILTIN="#"
38614 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
38615 COND_WXUSE_ZLIB_BUILTIN=""
38616 fi
38617
1772d20c 38618
fe0895cf 38619
fe0895cf 38620
fe0895cf 38621
45842500 38622if test $GCC_PCH = 1 ; then
130711ba 38623 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
45842500
VS
38624 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
38625else
38626 case "${host}" in
38627 powerpc-*-darwin* )
130711ba
VS
38628 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
38629 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
45842500 38630 ;;
45842500
VS
38631 esac
38632fi
fe0895cf
VS
38633
38634
fddeb06b 38635SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
38636
38637
38638
38639
38640
38641
38642
38643
38644
38645
38646
38647
38648
38649
38650
38651
38652
38653
38654
38655
38656
38657
38658
38659
38660
38661
38662
38663
38664
38665
38666
38667
38668
38669
38670
38671
38672
38673
38674
38675
38676
38677
38678
38679
38680
38681
38682
38683
38684
38685
38686
38687
38688
38689
38690
38691
38692
38693
38694
38695
38696
38697
38698
38699
38700
38701
38702
38703
38704
38705
38706
38707
38708
38709
38710
38711
38712
38713
38714
38715
38716
38717
38718
38719
38720
38721
38722
38723
38724
38725
38726
38727
38728
38729
fe0895cf 38730
f0290fca
VS
38731
38732
67c13b6c 38733
e6cc62c6
VS
38734
38735
38736echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38737echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
eea650d8 38738set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
e6cc62c6
VS
38739if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38740 echo $ECHO_N "(cached) $ECHO_C" >&6
38741else
38742 cat >conftest.make <<\_ACEOF
38743all:
38744 @echo 'ac_maketemp="$(MAKE)"'
38745_ACEOF
38746# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38747eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38748if test -n "$ac_maketemp"; then
38749 eval ac_cv_prog_make_${ac_make}_set=yes
38750else
38751 eval ac_cv_prog_make_${ac_make}_set=no
38752fi
38753rm -f conftest.make
38754fi
38755if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38756 echo "$as_me:$LINENO: result: yes" >&5
38757echo "${ECHO_T}yes" >&6
38758 SET_MAKE=
38759else
38760 echo "$as_me:$LINENO: result: no" >&5
38761echo "${ECHO_T}no" >&6
38762 SET_MAKE="MAKE=${MAKE-make}"
38763fi
38764
38765
38766if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
38767 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
38768fi
38769
38770 ac_config_headers="$ac_config_headers setup.h"
38771
38772
81345eef 38773 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
38774
38775
38776 ac_config_commands="$ac_config_commands default"
38777
38778
9de9b8f0 38779
6c3e36af
VZ
38780if test "$wxUSE_GUI" = "yes"; then
38781 SUBDIRS="samples demos utils contrib"
38782else SUBDIRS="samples utils"
38783fi
e6cc62c6 38784
166263e6 38785for subdir in `echo $SUBDIRS`; do
9747f85d 38786 if test -d ${srcdir}/${subdir} ; then
6c3e36af 38787 if test "$wxUSE_GUI" = "yes"; then
166263e6 38788 if test ${subdir} = "samples"; then
8772a1a7
VS
38789 makefiles="samples/Makefile.in $makefiles"
38790 for sample in `echo $SAMPLES_SUBDIRS`; do
166263e6
VZ
38791 if test -d $srcdir/samples/$sample; then
38792 makefiles="samples/$sample/Makefile.in $makefiles"
38793 fi
38794 done
38795 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
38796 fi
6c3e36af 38797 else if test ${subdir} = "samples"; then
8772a1a7 38798 makefiles="samples/Makefile.in samples/console/Makefile.in"
6c3e36af 38799 else makefiles="utils/HelpGen/Makefile.in \
2bf8cafb
VS
38800 utils/HelpGen/src/Makefile.in \
38801 utils/tex2rtf/Makefile.in \
38802 utils/tex2rtf/src/Makefile.in"
6c3e36af
VZ
38803 fi
38804 fi
38805
9747f85d
VS
38806 for mkin in $makefiles ; do
38807 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
38808 ac_config_files="$ac_config_files $mk"
e6cc62c6 38809
9747f85d
VS
38810 done
38811 fi
38812done
e6cc62c6 38813
9de9b8f0 38814
e6cc62c6
VS
38815cat >confcache <<\_ACEOF
38816# This file is a shell script that caches the results of configure
38817# tests run on this system so they can be shared between configure
38818# scripts and configure runs, see configure's option --config-cache.
38819# It is not useful on other systems. If it contains results you don't
38820# want to keep, you may remove or edit it.
38821#
38822# config.status only pays attention to the cache file if you give it
38823# the --recheck option to rerun configure.
38824#
38825# `ac_cv_env_foo' variables (set or unset) will be overridden when
38826# loading this file, other *unset* `ac_cv_foo' will be assigned the
38827# following values.
38828
38829_ACEOF
38830
38831# The following way of writing the cache mishandles newlines in values,
38832# but we know of no workaround that is simple, portable, and efficient.
38833# So, don't put newlines in cache variables' values.
38834# Ultrix sh set writes to stderr and can't be redirected directly,
38835# and sets the high bit in the cache file unless we assign to the vars.
38836{
38837 (set) 2>&1 |
38838 case `(ac_space=' '; set | grep ac_space) 2>&1` in
38839 *ac_space=\ *)
38840 # `set' does not quote correctly, so add quotes (double-quote
38841 # substitution turns \\\\ into \\, and sed turns \\ into \).
38842 sed -n \
eea650d8
VS
38843 "s/'/'\\\\''/g;
38844 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
38845 ;;
38846 *)
38847 # `set' quotes correctly as required by POSIX, so do not add quotes.
38848 sed -n \
eea650d8 38849 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
38850 ;;
38851 esac;
38852} |
38853 sed '
38854 t clear
38855 : clear
38856 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38857 t end
38858 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38859 : end' >>confcache
38860if diff $cache_file confcache >/dev/null 2>&1; then :; else
38861 if test -w $cache_file; then
38862 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
38863 cat confcache >$cache_file
38864 else
38865 echo "not updating unwritable cache $cache_file"
38866 fi
38867fi
38868rm -f confcache
38869
38870test "x$prefix" = xNONE && prefix=$ac_default_prefix
38871# Let make expand exec_prefix.
38872test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38873
38874# VPATH may cause trouble with some makes, so we remove $(srcdir),
38875# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
38876# trailing colons and then remove the whole line if VPATH becomes empty
38877# (actually we leave an empty line to preserve line numbers).
38878if test "x$srcdir" = x.; then
eea650d8 38879 ac_vpsub='/^[ ]*VPATH[ ]*=/{
e6cc62c6
VS
38880s/:*\$(srcdir):*/:/;
38881s/:*\${srcdir}:*/:/;
38882s/:*@srcdir@:*/:/;
eea650d8 38883s/^\([^=]*=[ ]*\):*/\1/;
e6cc62c6 38884s/:*$//;
eea650d8 38885s/^[^=]*=[ ]*$//;
e6cc62c6
VS
38886}'
38887fi
38888
38889DEFS=-DHAVE_CONFIG_H
38890
38891ac_libobjs=
38892ac_ltlibobjs=
38893for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38894 # 1. Remove the extension, and $U if already installed.
38895 ac_i=`echo "$ac_i" |
eea650d8 38896 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
e6cc62c6
VS
38897 # 2. Add them.
38898 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
38899 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
38900done
38901LIBOBJS=$ac_libobjs
38902
38903LTLIBOBJS=$ac_ltlibobjs
38904
38905
38906
38907: ${CONFIG_STATUS=./config.status}
38908ac_clean_files_save=$ac_clean_files
38909ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38910{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38911echo "$as_me: creating $CONFIG_STATUS" >&6;}
38912cat >$CONFIG_STATUS <<_ACEOF
38913#! $SHELL
38914# Generated by $as_me.
38915# Run this file to recreate the current configuration.
38916# Compiler output produced by configure, useful for debugging
38917# configure, is in config.log if it exists.
38918
38919debug=false
38920ac_cs_recheck=false
38921ac_cs_silent=false
38922SHELL=\${CONFIG_SHELL-$SHELL}
38923_ACEOF
38924
38925cat >>$CONFIG_STATUS <<\_ACEOF
38926## --------------------- ##
38927## M4sh Initialization. ##
38928## --------------------- ##
38929
38930# Be Bourne compatible
38931if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38932 emulate sh
38933 NULLCMD=:
38934 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38935 # is contrary to our usage. Disable this feature.
38936 alias -g '${1+"$@"}'='"$@"'
38937elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
38938 set -o posix
38939fi
eea650d8 38940DUALCASE=1; export DUALCASE # for MKS sh
e6cc62c6
VS
38941
38942# Support unset when possible.
eea650d8 38943if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
e6cc62c6
VS
38944 as_unset=unset
38945else
38946 as_unset=false
38947fi
38948
38949
38950# Work around bugs in pre-3.0 UWIN ksh.
38951$as_unset ENV MAIL MAILPATH
38952PS1='$ '
38953PS2='> '
38954PS4='+ '
38955
38956# NLS nuisances.
38957for as_var in \
38958 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
38959 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
38960 LC_TELEPHONE LC_TIME
38961do
eea650d8 38962 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
e6cc62c6
VS
38963 eval $as_var=C; export $as_var
38964 else
38965 $as_unset $as_var
38966 fi
38967done
38968
38969# Required to use basename.
38970if expr a : '\(a\)' >/dev/null 2>&1; then
38971 as_expr=expr
38972else
38973 as_expr=false
38974fi
38975
38976if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
38977 as_basename=basename
38978else
38979 as_basename=false
38980fi
38981
38982
38983# Name of the executable.
38984as_me=`$as_basename "$0" ||
38985$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38986 X"$0" : 'X\(//\)$' \| \
38987 X"$0" : 'X\(/\)$' \| \
38988 . : '\(.\)' 2>/dev/null ||
38989echo X/"$0" |
38990 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
38991 /^X\/\(\/\/\)$/{ s//\1/; q; }
38992 /^X\/\(\/\).*/{ s//\1/; q; }
38993 s/.*/./; q'`
38994
38995
38996# PATH needs CR, and LINENO needs CR and PATH.
38997# Avoid depending upon Character Ranges.
38998as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38999as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39000as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39001as_cr_digits='0123456789'
39002as_cr_alnum=$as_cr_Letters$as_cr_digits
39003
39004# The user is always right.
39005if test "${PATH_SEPARATOR+set}" != set; then
39006 echo "#! /bin/sh" >conf$$.sh
39007 echo "exit 0" >>conf$$.sh
39008 chmod +x conf$$.sh
39009 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39010 PATH_SEPARATOR=';'
39011 else
39012 PATH_SEPARATOR=:
39013 fi
39014 rm -f conf$$.sh
39015fi
39016
39017
39018 as_lineno_1=$LINENO
39019 as_lineno_2=$LINENO
39020 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39021 test "x$as_lineno_1" != "x$as_lineno_2" &&
39022 test "x$as_lineno_3" = "x$as_lineno_2" || {
39023 # Find who we are. Look in the path if we contain no path at all
39024 # relative or not.
39025 case $0 in
39026 *[\\/]* ) as_myself=$0 ;;
39027 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39028for as_dir in $PATH
39029do
39030 IFS=$as_save_IFS
39031 test -z "$as_dir" && as_dir=.
39032 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39033done
39034
39035 ;;
39036 esac
39037 # We did not find ourselves, most probably we were run as `sh COMMAND'
39038 # in which case we are not to be found in the path.
39039 if test "x$as_myself" = x; then
39040 as_myself=$0
39041 fi
39042 if test ! -f "$as_myself"; then
39043 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
39044echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
39045 { (exit 1); exit 1; }; }
39046 fi
39047 case $CONFIG_SHELL in
39048 '')
39049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39050for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
39051do
39052 IFS=$as_save_IFS
39053 test -z "$as_dir" && as_dir=.
39054 for as_base in sh bash ksh sh5; do
39055 case $as_dir in
39056 /*)
39057 if ("$as_dir/$as_base" -c '
39058 as_lineno_1=$LINENO
39059 as_lineno_2=$LINENO
39060 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
39061 test "x$as_lineno_1" != "x$as_lineno_2" &&
39062 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
39063 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39064 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39065 CONFIG_SHELL=$as_dir/$as_base
39066 export CONFIG_SHELL
39067 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39068 fi;;
39069 esac
39070 done
39071done
39072;;
39073 esac
39074
39075 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39076 # uniformly replaced by the line number. The first 'sed' inserts a
39077 # line-number line before each line; the second 'sed' does the real
39078 # work. The second script uses 'N' to pair each line-number line
39079 # with the numbered line, and appends trailing '-' during
39080 # substitution so that $LINENO is not a special case at line end.
39081 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39082 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
39083 sed '=' <$as_myself |
39084 sed '
39085 N
39086 s,$,-,
39087 : loop
39088 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39089 t loop
39090 s,-$,,
39091 s,^['$as_cr_digits']*\n,,
39092 ' >$as_me.lineno &&
39093 chmod +x $as_me.lineno ||
39094 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39095echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39096 { (exit 1); exit 1; }; }
39097
39098 # Don't try to exec as it changes $[0], causing all sort of problems
39099 # (the dirname of $[0] is not the place where we might find the
39100 # original and so on. Autoconf is especially sensible to this).
39101 . ./$as_me.lineno
39102 # Exit status is that of the last command.
39103 exit
39104}
39105
39106
39107case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39108 *c*,-n*) ECHO_N= ECHO_C='
39109' ECHO_T=' ' ;;
39110 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39111 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
39112esac
39113
39114if expr a : '\(a\)' >/dev/null 2>&1; then
39115 as_expr=expr
39116else
39117 as_expr=false
39118fi
39119
39120rm -f conf$$ conf$$.exe conf$$.file
39121echo >conf$$.file
39122if ln -s conf$$.file conf$$ 2>/dev/null; then
39123 # We could just check for DJGPP; but this test a) works b) is more generic
39124 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39125 if test -f conf$$.exe; then
39126 # Don't use ln at all; we don't have any links
39127 as_ln_s='cp -p'
39128 else
39129 as_ln_s='ln -s'
39130 fi
39131elif ln conf$$.file conf$$ 2>/dev/null; then
39132 as_ln_s=ln
39133else
39134 as_ln_s='cp -p'
39135fi
39136rm -f conf$$ conf$$.exe conf$$.file
39137
39138if mkdir -p . 2>/dev/null; then
39139 as_mkdir_p=:
39140else
eea650d8 39141 test -d ./-p && rmdir ./-p
e6cc62c6
VS
39142 as_mkdir_p=false
39143fi
39144
39145as_executable_p="test -f"
39146
39147# Sed expression to map a string onto a valid CPP name.
eea650d8 39148as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
e6cc62c6
VS
39149
39150# Sed expression to map a string onto a valid variable name.
eea650d8 39151as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e6cc62c6
VS
39152
39153
39154# IFS
39155# We need space, tab and new line, in precisely that order.
39156as_nl='
39157'
39158IFS=" $as_nl"
39159
39160# CDPATH.
39161$as_unset CDPATH
39162
39163exec 6>&1
39164
39165# Open the log real soon, to keep \$[0] and so on meaningful, and to
39166# report actual input values of CONFIG_FILES etc. instead of their
39167# values after options handling. Logging --version etc. is OK.
39168exec 5>>config.log
39169{
39170 echo
39171 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39172## Running $as_me. ##
39173_ASBOX
39174} >&5
39175cat >&5 <<_CSEOF
39176
e46d2a18 39177This file was extended by wxWindows $as_me 2.5.1, which was
eea650d8 39178generated by GNU Autoconf 2.58. Invocation command line was
e6cc62c6
VS
39179
39180 CONFIG_FILES = $CONFIG_FILES
39181 CONFIG_HEADERS = $CONFIG_HEADERS
39182 CONFIG_LINKS = $CONFIG_LINKS
39183 CONFIG_COMMANDS = $CONFIG_COMMANDS
39184 $ $0 $@
39185
39186_CSEOF
39187echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39188echo >&5
39189_ACEOF
39190
39191# Files that config.status was made for.
39192if test -n "$ac_config_files"; then
39193 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39194fi
39195
39196if test -n "$ac_config_headers"; then
39197 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39198fi
39199
39200if test -n "$ac_config_links"; then
39201 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39202fi
39203
39204if test -n "$ac_config_commands"; then
39205 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39206fi
39207
39208cat >>$CONFIG_STATUS <<\_ACEOF
39209
39210ac_cs_usage="\
39211\`$as_me' instantiates files from templates according to the
39212current configuration.
39213
39214Usage: $0 [OPTIONS] [FILE]...
39215
39216 -h, --help print this help, then exit
39217 -V, --version print version number, then exit
39218 -q, --quiet do not print progress messages
39219 -d, --debug don't remove temporary files
39220 --recheck update $as_me by reconfiguring in the same conditions
39221 --file=FILE[:TEMPLATE]
eea650d8 39222 instantiate the configuration file FILE
e6cc62c6 39223 --header=FILE[:TEMPLATE]
eea650d8 39224 instantiate the configuration header FILE
e6cc62c6
VS
39225
39226Configuration files:
39227$config_files
39228
39229Configuration headers:
39230$config_headers
39231
39232Configuration commands:
39233$config_commands
39234
39235Report bugs to <bug-autoconf@gnu.org>."
39236_ACEOF
39237
39238cat >>$CONFIG_STATUS <<_ACEOF
39239ac_cs_version="\\
e46d2a18 39240wxWindows config.status 2.5.1
eea650d8 39241configured by $0, generated by GNU Autoconf 2.58,
e6cc62c6
VS
39242 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39243
eea650d8 39244Copyright (C) 2003 Free Software Foundation, Inc.
e6cc62c6
VS
39245This config.status script is free software; the Free Software Foundation
39246gives unlimited permission to copy, distribute and modify it."
39247srcdir=$srcdir
39248INSTALL="$INSTALL"
39249_ACEOF
39250
39251cat >>$CONFIG_STATUS <<\_ACEOF
39252# If no file are specified by the user, then we need to provide default
39253# value. By we need to know if files were specified by the user.
39254ac_need_defaults=:
39255while test $# != 0
39256do
39257 case $1 in
39258 --*=*)
39259 ac_option=`expr "x$1" : 'x\([^=]*\)='`
39260 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39261 ac_shift=:
39262 ;;
39263 -*)
39264 ac_option=$1
39265 ac_optarg=$2
39266 ac_shift=shift
39267 ;;
39268 *) # This is not an option, so the user has probably given explicit
39269 # arguments.
39270 ac_option=$1
39271 ac_need_defaults=false;;
39272 esac
39273
39274 case $ac_option in
39275 # Handling of the options.
39276_ACEOF
39277cat >>$CONFIG_STATUS <<\_ACEOF
39278 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39279 ac_cs_recheck=: ;;
39280 --version | --vers* | -V )
39281 echo "$ac_cs_version"; exit 0 ;;
39282 --he | --h)
39283 # Conflict between --help and --header
39284 { { echo "$as_me:$LINENO: error: ambiguous option: $1
39285Try \`$0 --help' for more information." >&5
39286echo "$as_me: error: ambiguous option: $1
39287Try \`$0 --help' for more information." >&2;}
39288 { (exit 1); exit 1; }; };;
39289 --help | --hel | -h )
39290 echo "$ac_cs_usage"; exit 0 ;;
39291 --debug | --d* | -d )
39292 debug=: ;;
39293 --file | --fil | --fi | --f )
39294 $ac_shift
39295 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39296 ac_need_defaults=false;;
39297 --header | --heade | --head | --hea )
39298 $ac_shift
39299 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39300 ac_need_defaults=false;;
39301 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39302 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39303 ac_cs_silent=: ;;
39304
39305 # This is an error.
39306 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39307Try \`$0 --help' for more information." >&5
39308echo "$as_me: error: unrecognized option: $1
39309Try \`$0 --help' for more information." >&2;}
39310 { (exit 1); exit 1; }; } ;;
39311
39312 *) ac_config_targets="$ac_config_targets $1" ;;
39313
39314 esac
39315 shift
39316done
39317
39318ac_configure_extra_args=
39319
39320if $ac_cs_silent; then
39321 exec 6>/dev/null
39322 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
39323fi
39324
e6cc62c6
VS
39325_ACEOF
39326cat >>$CONFIG_STATUS <<_ACEOF
39327if \$ac_cs_recheck; then
39328 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39329 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
39330fi
39331
e6cc62c6 39332_ACEOF
fe0895cf 39333
e6cc62c6 39334cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 39335#
e6cc62c6 39336# INIT-COMMANDS section.
10f2d63a 39337#
10f2d63a 39338
a0b9e27f 39339
e6cc62c6
VS
39340 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
39341 LN_S="${LN_S}"
10f2d63a 39342
10f2d63a 39343
10f2d63a 39344
e6cc62c6 39345_ACEOF
8284b0c5 39346
52127426 39347
247f5006 39348
e6cc62c6
VS
39349cat >>$CONFIG_STATUS <<\_ACEOF
39350for ac_config_target in $ac_config_targets
247f5006 39351do
e6cc62c6
VS
39352 case "$ac_config_target" in
39353 # Handling of arguments.
81345eef
VZ
39354 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
39355 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
39356 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 39357 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
39358 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39359 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
39360 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39361echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39362 { (exit 1); exit 1; }; };;
247f5006
VZ
39363 esac
39364done
39365
e6cc62c6
VS
39366# If the user did not use the arguments to specify the items to instantiate,
39367# then the envvar interface is used. Set only those that are not.
39368# We use the long form for the default assignment because of an extremely
39369# bizarre bug on SunOS 4.1.3.
39370if $ac_need_defaults; then
39371 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39372 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39373 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39374fi
39375
39376# Have a temporary directory for convenience. Make it in the build tree
39377# simply because there is no reason to put it here, and in addition,
39378# creating and moving files from /tmp can sometimes cause problems.
39379# Create a temporary directory, and hook for its removal unless debugging.
39380$debug ||
39381{
39382 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
39383 trap '{ (exit 1); exit 1; }' 1 2 13 15
39384}
247f5006 39385
e6cc62c6 39386# Create a (secure) tmp directory for tmp files.
247f5006 39387
e6cc62c6
VS
39388{
39389 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
39390 test -n "$tmp" && test -d "$tmp"
39391} ||
39392{
39393 tmp=./confstat$$-$RANDOM
39394 (umask 077 && mkdir $tmp)
39395} ||
39396{
39397 echo "$me: cannot create a temporary directory in ." >&2
39398 { (exit 1); exit 1; }
39399}
39400
39401_ACEOF
39402
39403cat >>$CONFIG_STATUS <<_ACEOF
39404
39405#
39406# CONFIG_FILES section.
39407#
247f5006 39408
e6cc62c6
VS
39409# No need to generate the scripts if there are no CONFIG_FILES.
39410# This happens for instance when ./config.status config.h
39411if test -n "\$CONFIG_FILES"; then
39412 # Protect against being on the right side of a sed subst in config.status.
39413 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
39414 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
39415s,@SHELL@,$SHELL,;t t
39416s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
39417s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
39418s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
39419s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
39420s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
39421s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
39422s,@exec_prefix@,$exec_prefix,;t t
39423s,@prefix@,$prefix,;t t
39424s,@program_transform_name@,$program_transform_name,;t t
39425s,@bindir@,$bindir,;t t
39426s,@sbindir@,$sbindir,;t t
39427s,@libexecdir@,$libexecdir,;t t
39428s,@datadir@,$datadir,;t t
39429s,@sysconfdir@,$sysconfdir,;t t
39430s,@sharedstatedir@,$sharedstatedir,;t t
39431s,@localstatedir@,$localstatedir,;t t
39432s,@libdir@,$libdir,;t t
39433s,@includedir@,$includedir,;t t
39434s,@oldincludedir@,$oldincludedir,;t t
39435s,@infodir@,$infodir,;t t
39436s,@mandir@,$mandir,;t t
39437s,@build_alias@,$build_alias,;t t
39438s,@host_alias@,$host_alias,;t t
39439s,@target_alias@,$target_alias,;t t
39440s,@DEFS@,$DEFS,;t t
39441s,@ECHO_C@,$ECHO_C,;t t
39442s,@ECHO_N@,$ECHO_N,;t t
39443s,@ECHO_T@,$ECHO_T,;t t
39444s,@LIBS@,$LIBS,;t t
39445s,@build@,$build,;t t
39446s,@build_cpu@,$build_cpu,;t t
39447s,@build_vendor@,$build_vendor,;t t
39448s,@build_os@,$build_os,;t t
39449s,@host@,$host,;t t
39450s,@host_cpu@,$host_cpu,;t t
39451s,@host_vendor@,$host_vendor,;t t
39452s,@host_os@,$host_os,;t t
39453s,@target@,$target,;t t
39454s,@target_cpu@,$target_cpu,;t t
39455s,@target_vendor@,$target_vendor,;t t
39456s,@target_os@,$target_os,;t t
39457s,@CC@,$CC,;t t
39458s,@CFLAGS@,$CFLAGS,;t t
39459s,@LDFLAGS@,$LDFLAGS,;t t
39460s,@CPPFLAGS@,$CPPFLAGS,;t t
39461s,@ac_ct_CC@,$ac_ct_CC,;t t
39462s,@EXEEXT@,$EXEEXT,;t t
39463s,@OBJEXT@,$OBJEXT,;t t
39464s,@CPP@,$CPP,;t t
39465s,@EGREP@,$EGREP,;t t
39466s,@CXX@,$CXX,;t t
39467s,@CXXFLAGS@,$CXXFLAGS,;t t
39468s,@ac_ct_CXX@,$ac_ct_CXX,;t t
39469s,@RANLIB@,$RANLIB,;t t
39470s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
39471s,@AR@,$AR,;t t
39472s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
39473s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
39474s,@INSTALL_DATA@,$INSTALL_DATA,;t t
39475s,@STRIP@,$STRIP,;t t
39476s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
e6cc62c6
VS
39477s,@LN_S@,$LN_S,;t t
39478s,@CXXCPP@,$CXXCPP,;t t
672abd7a 39479s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
39480s,@PKG_CONFIG@,$PKG_CONFIG,;t t
39481s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
39482s,@GTK_LIBS@,$GTK_LIBS,;t t
39483s,@GTK_CONFIG@,$GTK_CONFIG,;t t
39484s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
39485s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
39486s,@X_CFLAGS@,$X_CFLAGS,;t t
39487s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
39488s,@X_LIBS@,$X_LIBS,;t t
39489s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
39490s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
39491s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
39492s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
39493s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
39494s,@RESCOMP@,$RESCOMP,;t t
39495s,@DEREZ@,$DEREZ,;t t
39496s,@SETFILE@,$SETFILE,;t t
39497s,@LIBICONV@,$LIBICONV,;t t
edd891e2
VS
39498s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
39499s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
39500s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
e6cc62c6
VS
39501s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
39502s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 39503s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
39504s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
39505s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
39506s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
39507s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
39508s,@VENDOR@,$VENDOR,;t t
39509s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
39510s,@WXUNIV@,$WXUNIV,;t t
39511s,@MONOLITHIC@,$MONOLITHIC,;t t
39512s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 39513s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
3527f29c 39514s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
bb41dcbe 39515s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
c74dc163 39516s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 39517s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
e6cc62c6
VS
39518s,@UNICODE@,$UNICODE,;t t
39519s,@BUILD@,$BUILD,;t t
6c67131a
VS
39520s,@DEBUG_INFO@,$DEBUG_INFO,;t t
39521s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
e6cc62c6
VS
39522s,@SHARED@,$SHARED,;t t
39523s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
39524s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
39525s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
0f1bc9c2 39526s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
ea66c762 39527s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
39528s,@SET_MAKE@,$SET_MAKE,;t t
39529s,@MAKE_SET@,$MAKE_SET,;t t
874d12cf
VS
39530s,@ac_ct_AR@,$ac_ct_AR,;t t
39531s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
39532s,@NM@,$NM,;t t
39533s,@ac_ct_NM@,$ac_ct_NM,;t t
e6cc62c6 39534s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 39535s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
39536s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
39537s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
39538s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
39539s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
39540s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
96c1699d 39541s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
e6cc62c6 39542s,@SO_SUFFIX@,$SO_SUFFIX,;t t
131f235d 39543s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
4b1f6360 39544s,@LIBPREFIX@,$LIBPREFIX,;t t
e6cc62c6 39545s,@DLLPREFIX@,$DLLPREFIX,;t t
131f235d 39546s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
dc838d98 39547s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
39548s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
39549s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
131f235d
VS
39550s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
39551s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
e6cc62c6
VS
39552s,@PIC_FLAG@,$PIC_FLAG,;t t
39553s,@USE_SOVERSION@,$USE_SOVERSION,;t t
39554s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
39555s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
39556s,@USE_MACVERSION@,$USE_MACVERSION,;t t
39557s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
39558s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 39559s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45842500 39560s,@GCC_PCH@,$GCC_PCH,;t t
d78c94f2 39561s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
6c67131a
VS
39562s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
39563s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
d78c94f2 39564s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
6c67131a
VS
39565s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
39566s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
39567s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
39568s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
f95cd8fa 39569s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 39570s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45842500 39571s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
6f628073 39572s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
39573s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
39574s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8772a1a7 39575s,@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 39576s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
eb69fda5 39577s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8ee2dd05 39578s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 39579s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
8772a1a7 39580s,@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 39581s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
eb69fda5 39582s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
3af038c0 39583s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
39584s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
39585s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
39586s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
39587s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 39588s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 39589s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
39590s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
39591s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
39592s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
3527f29c 39593s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
8ee2dd05 39594s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
45842500 39595s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
3d8c1de0 39596s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
8772a1a7 39597s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
3af038c0 39598s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
3527f29c 39599s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
3af038c0
VS
39600s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
39601s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45842500 39602s,@COND_SHARED_0@,$COND_SHARED_0,;t t
250700e4 39603s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
52a5a009
VS
39604s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
39605s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
39606s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
39607s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
39608s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
39609s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
39610s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45842500 39611s,@COND_SHARED_1@,$COND_SHARED_1,;t t
250700e4 39612s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
39613s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
39614s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
39615s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
39616s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05 39617s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
3af038c0 39618s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
8772a1a7 39619s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
6f628073
VS
39620s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
39621s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
39622s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
6f628073
VS
39623s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
39624s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
39625s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 39626s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
39627s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
39628s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
96c1699d
VS
39629s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
39630s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
39631s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
6f628073
VS
39632s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
39633s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
3af038c0 39634s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
7015ef3a
VZ
39635s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
39636s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
3af038c0
VS
39637s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
39638s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
39639s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
39640s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
39641s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
39642s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
39643s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
57e7d4ac 39644s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
6f628073
VS
39645s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
39646s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
39647s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
39648s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
3af038c0 39649s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 39650s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
39651s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
39652s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
39653s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
39654s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
39655s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
39656s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6
VS
39657s,@PATH_IFS@,$PATH_IFS,;t t
39658s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
39659s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
39660s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
39661s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
39662s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
cf615ebb
VS
39663s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
39664s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
e6cc62c6
VS
39665s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
39666s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
39667s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
39668s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
39669s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
39670s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
39671s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
39672s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
39673s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
39674s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
39675s,@WX_ALL@,$WX_ALL,;t t
39676s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
39677s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
39678s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
39679s,@STATIC_FLAG@,$STATIC_FLAG,;t t
39680s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
39681s,@USE_GUI@,$USE_GUI,;t t
39682s,@AFMINSTALL@,$AFMINSTALL,;t t
39683s,@WIN32INSTALL@,$WIN32INSTALL,;t t
39684s,@TOOLKIT@,$TOOLKIT,;t t
39685s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
39686s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
39687s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
39688s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
39689s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
39690s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
39691s,@cross_compiling@,$cross_compiling,;t t
67c13b6c 39692s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
e6cc62c6
VS
39693s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
39694s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
39695s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
39696s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
39697s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
39698s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
ffef10f6 39699s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
e6cc62c6 39700s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
39701s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
39702s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
39703s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
39704s,@ALL_HEADERS@,$ALL_HEADERS,;t t
39705s,@ALL_SOURCES@,$ALL_SOURCES,;t t
39706s,@GUIDIST@,$GUIDIST,;t t
39707s,@PORT_FILES@,$PORT_FILES,;t t
39708s,@DISTDIR@,$DISTDIR,;t t
39709s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
39710s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
39711s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
39712s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
39713s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
39714s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
39715s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
39716s,@RESFLAGS@,$RESFLAGS,;t t
39717s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
39718s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
39719s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
39720s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t
39721s,@LIBWXMACRES@,$LIBWXMACRES,;t t
39722s,@MACRESCOMP@,$MACRESCOMP,;t t
39723s,@MACSETFILE@,$MACSETFILE,;t t
39724s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
39725s,@GCC@,$GCC,;t t
39726s,@DLLTOOL@,$DLLTOOL,;t t
39727s,@AS@,$AS,;t t
e6cc62c6
VS
39728s,@LD@,$LD,;t t
39729s,@MAKEINFO@,$MAKEINFO,;t t
39730s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
e6cc62c6
VS
39731s,@LIBOBJS@,$LIBOBJS,;t t
39732s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
39733CEOF
39734
e6cc62c6
VS
39735_ACEOF
39736
39737 cat >>$CONFIG_STATUS <<\_ACEOF
39738 # Split the substitutions into bite-sized pieces for seds with
39739 # small command number limits, like on Digital OSF/1 and HP-UX.
39740 ac_max_sed_lines=48
39741 ac_sed_frag=1 # Number of current file.
39742 ac_beg=1 # First line for current file.
39743 ac_end=$ac_max_sed_lines # Line after last line for current file.
39744 ac_more_lines=:
39745 ac_sed_cmds=
39746 while $ac_more_lines; do
39747 if test $ac_beg -gt 1; then
39748 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 39749 else
e6cc62c6
VS
39750 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39751 fi
39752 if test ! -s $tmp/subs.frag; then
39753 ac_more_lines=false
39754 else
39755 # The purpose of the label and of the branching condition is to
39756 # speed up the sed processing (if there are no `@' at all, there
39757 # is no need to browse any of the substitutions).
39758 # These are the two extra sed commands mentioned above.
39759 (echo ':t
39760 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
39761 if test -z "$ac_sed_cmds"; then
eea650d8 39762 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6 39763 else
eea650d8 39764 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6
VS
39765 fi
39766 ac_sed_frag=`expr $ac_sed_frag + 1`
39767 ac_beg=$ac_end
39768 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 39769 fi
e6cc62c6
VS
39770 done
39771 if test -z "$ac_sed_cmds"; then
39772 ac_sed_cmds=cat
10f2d63a 39773 fi
e6cc62c6 39774fi # test -n "$CONFIG_FILES"
10f2d63a 39775
e6cc62c6
VS
39776_ACEOF
39777cat >>$CONFIG_STATUS <<\_ACEOF
39778for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 39779 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
39780 case $ac_file in
39781 - | *:- | *:-:* ) # input from stdin
eea650d8
VS
39782 cat >$tmp/stdin
39783 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39784 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 39785 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
eea650d8 39786 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 39787 * ) ac_file_in=$ac_file.in ;;
10f2d63a 39788 esac
247f5006 39789
e6cc62c6
VS
39790 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
39791 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
39792$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
eea650d8
VS
39793 X"$ac_file" : 'X\(//\)[^/]' \| \
39794 X"$ac_file" : 'X\(//\)$' \| \
39795 X"$ac_file" : 'X\(/\)' \| \
39796 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
39797echo X"$ac_file" |
39798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39799 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39800 /^X\(\/\/\)$/{ s//\1/; q; }
39801 /^X\(\/\).*/{ s//\1/; q; }
39802 s/.*/./; q'`
39803 { if $as_mkdir_p; then
39804 mkdir -p "$ac_dir"
a0b9e27f 39805 else
e6cc62c6
VS
39806 as_dir="$ac_dir"
39807 as_dirs=
39808 while test ! -d "$as_dir"; do
39809 as_dirs="$as_dir $as_dirs"
39810 as_dir=`(dirname "$as_dir") 2>/dev/null ||
39811$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
eea650d8
VS
39812 X"$as_dir" : 'X\(//\)[^/]' \| \
39813 X"$as_dir" : 'X\(//\)$' \| \
39814 X"$as_dir" : 'X\(/\)' \| \
39815 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
39816echo X"$as_dir" |
39817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39818 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39819 /^X\(\/\/\)$/{ s//\1/; q; }
39820 /^X\(\/\).*/{ s//\1/; q; }
39821 s/.*/./; q'`
39822 done
39823 test ! -n "$as_dirs" || mkdir $as_dirs
39824 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
39825echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
39826 { (exit 1); exit 1; }; }; }
39827
39828 ac_builddir=.
39829
39830if test "$ac_dir" != .; then
39831 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39832 # A "../" for each directory in $ac_dir_suffix.
39833 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
39834else
39835 ac_dir_suffix= ac_top_builddir=
39836fi
247f5006 39837
e6cc62c6
VS
39838case $srcdir in
39839 .) # No --srcdir option. We are building in place.
39840 ac_srcdir=.
39841 if test -z "$ac_top_builddir"; then
39842 ac_top_srcdir=.
39843 else
39844 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
39845 fi ;;
39846 [\\/]* | ?:[\\/]* ) # Absolute path.
39847 ac_srcdir=$srcdir$ac_dir_suffix;
39848 ac_top_srcdir=$srcdir ;;
247f5006 39849 *) # Relative path.
e6cc62c6
VS
39850 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
39851 ac_top_srcdir=$ac_top_builddir$srcdir ;;
39852esac
eea650d8
VS
39853case "$ac_dir" in
39854.) ac_abs_builddir=$ac_builddir;;
39855*)
39856 case $ac_builddir in
39857 .) ac_abs_builddir="$ac_dir";;
39858 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
39859 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
39860 esac;;
39861esac
39862case "$ac_dir" in
39863.) ac_abs_top_builddir=${ac_top_builddir}.;;
39864*)
39865 case ${ac_top_builddir}. in
39866 .) ac_abs_top_builddir="$ac_dir";;
39867 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
39868 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
39869 esac;;
39870esac
39871case "$ac_dir" in
39872.) ac_abs_srcdir=$ac_srcdir;;
39873*)
39874 case $ac_srcdir in
39875 .) ac_abs_srcdir="$ac_dir";;
39876 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
39877 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
39878 esac;;
39879esac
39880case "$ac_dir" in
39881.) ac_abs_top_srcdir=$ac_top_srcdir;;
39882*)
39883 case $ac_top_srcdir in
39884 .) ac_abs_top_srcdir="$ac_dir";;
39885 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
39886 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
39887 esac;;
39888esac
10f2d63a 39889
247f5006 39890
e6cc62c6
VS
39891 case $INSTALL in
39892 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39893 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 39894 esac
247f5006 39895
e6cc62c6
VS
39896 if test x"$ac_file" != x-; then
39897 { echo "$as_me:$LINENO: creating $ac_file" >&5
39898echo "$as_me: creating $ac_file" >&6;}
39899 rm -f "$ac_file"
39900 fi
39901 # Let's still pretend it is `configure' which instantiates (i.e., don't
39902 # use $as_me), people would be surprised to read:
39903 # /* config.h. Generated by config.status. */
39904 if test x"$ac_file" = x-; then
39905 configure_input=
39906 else
39907 configure_input="$ac_file. "
39908 fi
39909 configure_input=$configure_input"Generated from `echo $ac_file_in |
eea650d8 39910 sed 's,.*/,,'` by configure."
e6cc62c6
VS
39911
39912 # First look for the input files in the build tree, otherwise in the
39913 # src tree.
39914 ac_file_inputs=`IFS=:
39915 for f in $ac_file_in; do
39916 case $f in
39917 -) echo $tmp/stdin ;;
39918 [\\/$]*)
eea650d8
VS
39919 # Absolute (can't be DOS-style, as IFS=:)
39920 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
39921echo "$as_me: error: cannot find input file: $f" >&2;}
39922 { (exit 1); exit 1; }; }
eea650d8 39923 echo "$f";;
e6cc62c6 39924 *) # Relative
eea650d8
VS
39925 if test -f "$f"; then
39926 # Build tree
39927 echo "$f"
39928 elif test -f "$srcdir/$f"; then
39929 # Source tree
39930 echo "$srcdir/$f"
39931 else
39932 # /dev/null tree
39933 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
39934echo "$as_me: error: cannot find input file: $f" >&2;}
39935 { (exit 1); exit 1; }; }
eea650d8 39936 fi;;
e6cc62c6
VS
39937 esac
39938 done` || { (exit 1); exit 1; }
39939_ACEOF
39940cat >>$CONFIG_STATUS <<_ACEOF
39941 sed "$ac_vpsub
39942$extrasub
39943_ACEOF
39944cat >>$CONFIG_STATUS <<\_ACEOF
39945:t
39946/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39947s,@configure_input@,$configure_input,;t t
39948s,@srcdir@,$ac_srcdir,;t t
39949s,@abs_srcdir@,$ac_abs_srcdir,;t t
39950s,@top_srcdir@,$ac_top_srcdir,;t t
39951s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
39952s,@builddir@,$ac_builddir,;t t
39953s,@abs_builddir@,$ac_abs_builddir,;t t
39954s,@top_builddir@,$ac_top_builddir,;t t
39955s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
39956s,@INSTALL@,$ac_INSTALL,;t t
39957" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
39958 rm -f $tmp/stdin
39959 if test x"$ac_file" != x-; then
39960 mv $tmp/out $ac_file
39961 else
39962 cat $tmp/out
39963 rm -f $tmp/out
39964 fi
39965
39966done
39967_ACEOF
39968cat >>$CONFIG_STATUS <<\_ACEOF
39969
39970#
39971# CONFIG_HEADER section.
39972#
10f2d63a
VZ
39973
39974# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
39975# NAME is the cpp macro being defined and VALUE is the value it is being given.
39976#
39977# ac_d sets the value in "#define NAME VALUE" lines.
eea650d8
VS
39978ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
39979ac_dB='[ ].*$,\1#\2'
e6cc62c6
VS
39980ac_dC=' '
39981ac_dD=',;t'
39982# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
eea650d8 39983ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
e6cc62c6 39984ac_uB='$,\1#\2define\3'
10f2d63a 39985ac_uC=' '
e6cc62c6
VS
39986ac_uD=',;t'
39987
39988for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 39989 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
39990 case $ac_file in
39991 - | *:- | *:-:* ) # input from stdin
eea650d8
VS
39992 cat >$tmp/stdin
39993 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39994 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 39995 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
eea650d8 39996 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 39997 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
39998 esac
39999
e6cc62c6
VS
40000 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
40001echo "$as_me: creating $ac_file" >&6;}
40002
40003 # First look for the input files in the build tree, otherwise in the
40004 # src tree.
40005 ac_file_inputs=`IFS=:
40006 for f in $ac_file_in; do
40007 case $f in
40008 -) echo $tmp/stdin ;;
40009 [\\/$]*)
eea650d8
VS
40010 # Absolute (can't be DOS-style, as IFS=:)
40011 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
40012echo "$as_me: error: cannot find input file: $f" >&2;}
40013 { (exit 1); exit 1; }; }
eea650d8
VS
40014 # Do quote $f, to prevent DOS paths from being IFS'd.
40015 echo "$f";;
e6cc62c6 40016 *) # Relative
eea650d8
VS
40017 if test -f "$f"; then
40018 # Build tree
40019 echo "$f"
40020 elif test -f "$srcdir/$f"; then
40021 # Source tree
40022 echo "$srcdir/$f"
40023 else
40024 # /dev/null tree
40025 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
40026echo "$as_me: error: cannot find input file: $f" >&2;}
40027 { (exit 1); exit 1; }; }
eea650d8 40028 fi;;
e6cc62c6
VS
40029 esac
40030 done` || { (exit 1); exit 1; }
40031 # Remove the trailing spaces.
eea650d8 40032 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
e6cc62c6
VS
40033
40034_ACEOF
40035
40036# Transform confdefs.h into two sed scripts, `conftest.defines' and
40037# `conftest.undefs', that substitutes the proper values into
40038# config.h.in to produce config.h. The first handles `#define'
40039# templates, and the second `#undef' templates.
40040# And first: Protect against being on the right side of a sed subst in
40041# config.status. Protect against being in an unquoted here document
40042# in config.status.
40043rm -f conftest.defines conftest.undefs
40044# Using a here document instead of a string reduces the quoting nightmare.
40045# Putting comments in sed scripts is not portable.
40046#
40047# `end' is used to avoid that the second main sed command (meant for
40048# 0-ary CPP macros) applies to n-ary macro definitions.
40049# See the Autoconf documentation for `clear'.
40050cat >confdef2sed.sed <<\_ACEOF
40051s/[\\&,]/\\&/g
40052s,[\\$`],\\&,g
40053t clear
40054: clear
eea650d8 40055s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
e6cc62c6 40056t end
eea650d8 40057s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
e6cc62c6
VS
40058: end
40059_ACEOF
40060# If some macros were called several times there might be several times
40061# the same #defines, which is useless. Nevertheless, we may not want to
40062# sort them, since we want the *last* AC-DEFINE to be honored.
40063uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40064sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40065rm -f confdef2sed.sed
10f2d63a
VZ
40066
40067# This sed command replaces #undef with comments. This is necessary, for
40068# example, in the case of _POSIX_SOURCE, which is predefined and required
40069# on some systems where configure will not decide to define it.
e6cc62c6 40070cat >>conftest.undefs <<\_ACEOF
eea650d8 40071s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
e6cc62c6
VS
40072_ACEOF
40073
40074# Break up conftest.defines because some shells have a limit on the size
40075# of here documents, and old seds have small limits too (100 cmds).
40076echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
eea650d8 40077echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
e6cc62c6
VS
40078echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40079echo ' :' >>$CONFIG_STATUS
40080rm -f conftest.tail
40081while grep . conftest.defines >/dev/null
40082do
40083 # Write a limited-size here document to $tmp/defines.sed.
40084 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40085 # Speed up: don't consider the non `#define' lines.
eea650d8 40086 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
e6cc62c6
VS
40087 # Work around the forget-to-reset-the-flag bug.
40088 echo 't clr' >>$CONFIG_STATUS
40089 echo ': clr' >>$CONFIG_STATUS
40090 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40091 echo 'CEOF
40092 sed -f $tmp/defines.sed $tmp/in >$tmp/out
40093 rm -f $tmp/in
40094 mv $tmp/out $tmp/in
40095' >>$CONFIG_STATUS
40096 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40097 rm -f conftest.defines
40098 mv conftest.tail conftest.defines
40099done
40100rm -f conftest.defines
40101echo ' fi # grep' >>$CONFIG_STATUS
40102echo >>$CONFIG_STATUS
10f2d63a 40103
e6cc62c6
VS
40104# Break up conftest.undefs because some shells have a limit on the size
40105# of here documents, and old seds have small limits too (100 cmds).
40106echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 40107rm -f conftest.tail
e6cc62c6 40108while grep . conftest.undefs >/dev/null
10f2d63a 40109do
e6cc62c6
VS
40110 # Write a limited-size here document to $tmp/undefs.sed.
40111 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40112 # Speed up: don't consider the non `#undef'
eea650d8 40113 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
e6cc62c6
VS
40114 # Work around the forget-to-reset-the-flag bug.
40115 echo 't clr' >>$CONFIG_STATUS
40116 echo ': clr' >>$CONFIG_STATUS
40117 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 40118 echo 'CEOF
e6cc62c6
VS
40119 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40120 rm -f $tmp/in
40121 mv $tmp/out $tmp/in
40122' >>$CONFIG_STATUS
40123 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40124 rm -f conftest.undefs
40125 mv conftest.tail conftest.undefs
10f2d63a 40126done
e6cc62c6
VS
40127rm -f conftest.undefs
40128
40129cat >>$CONFIG_STATUS <<\_ACEOF
40130 # Let's still pretend it is `configure' which instantiates (i.e., don't
40131 # use $as_me), people would be surprised to read:
40132 # /* config.h. Generated by config.status. */
40133 if test x"$ac_file" = x-; then
40134 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 40135 else
e6cc62c6 40136 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 40137 fi
e6cc62c6
VS
40138 cat $tmp/in >>$tmp/config.h
40139 rm -f $tmp/in
40140 if test x"$ac_file" != x-; then
40141 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40142 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40143echo "$as_me: $ac_file is unchanged" >&6;}
40144 else
40145 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40146$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
eea650d8
VS
40147 X"$ac_file" : 'X\(//\)[^/]' \| \
40148 X"$ac_file" : 'X\(//\)$' \| \
40149 X"$ac_file" : 'X\(/\)' \| \
40150 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
40151echo X"$ac_file" |
40152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40153 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40154 /^X\(\/\/\)$/{ s//\1/; q; }
40155 /^X\(\/\).*/{ s//\1/; q; }
40156 s/.*/./; q'`
40157 { if $as_mkdir_p; then
40158 mkdir -p "$ac_dir"
40159 else
40160 as_dir="$ac_dir"
40161 as_dirs=
40162 while test ! -d "$as_dir"; do
40163 as_dirs="$as_dir $as_dirs"
40164 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40165$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
eea650d8
VS
40166 X"$as_dir" : 'X\(//\)[^/]' \| \
40167 X"$as_dir" : 'X\(//\)$' \| \
40168 X"$as_dir" : 'X\(/\)' \| \
40169 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
40170echo X"$as_dir" |
40171 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40172 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40173 /^X\(\/\/\)$/{ s//\1/; q; }
40174 /^X\(\/\).*/{ s//\1/; q; }
40175 s/.*/./; q'`
40176 done
40177 test ! -n "$as_dirs" || mkdir $as_dirs
40178 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40179echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40180 { (exit 1); exit 1; }; }; }
a0b9e27f 40181
e6cc62c6
VS
40182 rm -f $ac_file
40183 mv $tmp/config.h $ac_file
40184 fi
40185 else
40186 cat $tmp/config.h
40187 rm -f $tmp/config.h
40188 fi
40189done
40190_ACEOF
40191cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 40192
e6cc62c6
VS
40193#
40194# CONFIG_COMMANDS section.
40195#
40196for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40197 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40198 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40199 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40200$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
eea650d8
VS
40201 X"$ac_dest" : 'X\(//\)[^/]' \| \
40202 X"$ac_dest" : 'X\(//\)$' \| \
40203 X"$ac_dest" : 'X\(/\)' \| \
40204 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
40205echo X"$ac_dest" |
40206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40207 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40208 /^X\(\/\/\)$/{ s//\1/; q; }
40209 /^X\(\/\).*/{ s//\1/; q; }
40210 s/.*/./; q'`
eea650d8
VS
40211 { if $as_mkdir_p; then
40212 mkdir -p "$ac_dir"
40213 else
40214 as_dir="$ac_dir"
40215 as_dirs=
40216 while test ! -d "$as_dir"; do
40217 as_dirs="$as_dir $as_dirs"
40218 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40219$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40220 X"$as_dir" : 'X\(//\)[^/]' \| \
40221 X"$as_dir" : 'X\(//\)$' \| \
40222 X"$as_dir" : 'X\(/\)' \| \
40223 . : '\(.\)' 2>/dev/null ||
40224echo X"$as_dir" |
40225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40226 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40227 /^X\(\/\/\)$/{ s//\1/; q; }
40228 /^X\(\/\).*/{ s//\1/; q; }
40229 s/.*/./; q'`
40230 done
40231 test ! -n "$as_dirs" || mkdir $as_dirs
40232 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40233echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40234 { (exit 1); exit 1; }; }; }
40235
e6cc62c6
VS
40236 ac_builddir=.
40237
40238if test "$ac_dir" != .; then
40239 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40240 # A "../" for each directory in $ac_dir_suffix.
40241 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40242else
40243 ac_dir_suffix= ac_top_builddir=
40244fi
40245
40246case $srcdir in
40247 .) # No --srcdir option. We are building in place.
40248 ac_srcdir=.
40249 if test -z "$ac_top_builddir"; then
40250 ac_top_srcdir=.
40251 else
40252 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40253 fi ;;
40254 [\\/]* | ?:[\\/]* ) # Absolute path.
40255 ac_srcdir=$srcdir$ac_dir_suffix;
40256 ac_top_srcdir=$srcdir ;;
40257 *) # Relative path.
40258 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40259 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40260esac
eea650d8
VS
40261case "$ac_dir" in
40262.) ac_abs_builddir=$ac_builddir;;
40263*)
40264 case $ac_builddir in
40265 .) ac_abs_builddir="$ac_dir";;
40266 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
40267 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
40268 esac;;
40269esac
40270case "$ac_dir" in
40271.) ac_abs_top_builddir=${ac_top_builddir}.;;
40272*)
40273 case ${ac_top_builddir}. in
40274 .) ac_abs_top_builddir="$ac_dir";;
40275 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40276 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
40277 esac;;
40278esac
40279case "$ac_dir" in
40280.) ac_abs_srcdir=$ac_srcdir;;
40281*)
40282 case $ac_srcdir in
40283 .) ac_abs_srcdir="$ac_dir";;
40284 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40285 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
40286 esac;;
40287esac
40288case "$ac_dir" in
40289.) ac_abs_top_srcdir=$ac_top_srcdir;;
40290*)
40291 case $ac_top_srcdir in
40292 .) ac_abs_top_srcdir="$ac_dir";;
40293 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40294 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
40295 esac;;
40296esac
e6cc62c6
VS
40297
40298
40299 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40300echo "$as_me: executing $ac_dest commands" >&6;}
40301 case $ac_dest in
40302 default )
652d930d 40303 if test ! -h wx-config; then
991a5759 40304 chmod +x wx-config
3a922bb4
RL
40305 mv wx-config wx${TOOLCHAIN_NAME}-config
40306 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 40307 fi
665bbe97 40308
00cf1208
RR
40309 if test ! -d lib; then
40310 mkdir lib
40311 fi
40312 if test ! -d lib/wx; then
40313 mkdir lib/wx
40314 fi
40315 if test ! -d lib/wx/include; then
40316 mkdir lib/wx/include
40317 fi
3a922bb4
RL
40318 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
40319 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 40320 fi
3a922bb4
RL
40321 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
40322 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
40323 fi
40324 if test -f setup.h; then
3a922bb4 40325 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 40326 fi
e6cc62c6
VS
40327 ;;
40328 esac
40329done
40330_ACEOF
2224580a 40331
e6cc62c6 40332cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 40333
e6cc62c6
VS
40334{ (exit 0); exit 0; }
40335_ACEOF
40336chmod +x $CONFIG_STATUS
40337ac_clean_files=$ac_clean_files_save
40338
40339
40340# configure is writing to config.log, and then calls config.status.
40341# config.status does its own redirection, appending to config.log.
40342# Unfortunately, on DOS this fails, as config.log is still kept open
40343# by configure, so config.status won't be able to write to it; its
40344# output is simply discarded. So we exec the FD to /dev/null,
40345# effectively closing config.log, so it can be properly (re)opened and
40346# appended to by config.status. When coming back to configure, we
40347# need to make the FD available again.
40348if test "$no_create" != yes; then
40349 ac_cs_success=:
40350 ac_config_status_args=
40351 test "$silent" = yes &&
40352 ac_config_status_args="$ac_config_status_args --quiet"
40353 exec 5>/dev/null
40354 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40355 exec 5>>config.log
40356 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40357 # would make configure fail if this is the last instruction.
40358 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
40359fi
40360
672abd7a
VS
40361#
40362# CONFIG_SUBDIRS section.
40363#
40364if test "$no_recursion" != yes; then
40365
40366 # Remove --cache-file and --srcdir arguments so they do not pile up.
40367 ac_sub_configure_args=
40368 ac_prev=
40369 for ac_arg in $ac_configure_args; do
40370 if test -n "$ac_prev"; then
40371 ac_prev=
40372 continue
40373 fi
40374 case $ac_arg in
40375 -cache-file | --cache-file | --cache-fil | --cache-fi \
40376 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
40377 ac_prev=cache_file ;;
40378 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
40379 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
40380 | --c=*)
40381 ;;
40382 --config-cache | -C)
40383 ;;
40384 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
40385 ac_prev=srcdir ;;
40386 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
40387 ;;
40388 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
40389 ac_prev=prefix ;;
40390 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
40391 ;;
40392 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
40393 esac
40394 done
40395
40396 # Always prepend --prefix to ensure using the same prefix
40397 # in subdir configurations.
40398 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
40399
40400 ac_popdir=`pwd`
40401 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
40402
40403 # Do not complain, so a configure script can configure whichever
40404 # parts of a large source tree are present.
40405 test -d $srcdir/$ac_dir || continue
40406
40407 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
40408echo "$as_me: configuring in $ac_dir" >&6;}
40409 { if $as_mkdir_p; then
40410 mkdir -p "$ac_dir"
40411 else
40412 as_dir="$ac_dir"
40413 as_dirs=
40414 while test ! -d "$as_dir"; do
40415 as_dirs="$as_dir $as_dirs"
40416 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40417$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
eea650d8
VS
40418 X"$as_dir" : 'X\(//\)[^/]' \| \
40419 X"$as_dir" : 'X\(//\)$' \| \
40420 X"$as_dir" : 'X\(/\)' \| \
40421 . : '\(.\)' 2>/dev/null ||
672abd7a
VS
40422echo X"$as_dir" |
40423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40424 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40425 /^X\(\/\/\)$/{ s//\1/; q; }
40426 /^X\(\/\).*/{ s//\1/; q; }
40427 s/.*/./; q'`
40428 done
40429 test ! -n "$as_dirs" || mkdir $as_dirs
40430 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40431echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40432 { (exit 1); exit 1; }; }; }
40433
40434 ac_builddir=.
40435
40436if test "$ac_dir" != .; then
40437 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40438 # A "../" for each directory in $ac_dir_suffix.
40439 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40440else
40441 ac_dir_suffix= ac_top_builddir=
40442fi
40443
40444case $srcdir in
40445 .) # No --srcdir option. We are building in place.
40446 ac_srcdir=.
40447 if test -z "$ac_top_builddir"; then
40448 ac_top_srcdir=.
40449 else
40450 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40451 fi ;;
40452 [\\/]* | ?:[\\/]* ) # Absolute path.
40453 ac_srcdir=$srcdir$ac_dir_suffix;
40454 ac_top_srcdir=$srcdir ;;
40455 *) # Relative path.
40456 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40457 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40458esac
eea650d8
VS
40459case "$ac_dir" in
40460.) ac_abs_builddir=$ac_builddir;;
40461*)
40462 case $ac_builddir in
40463 .) ac_abs_builddir="$ac_dir";;
40464 [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;;
40465 *) ac_abs_builddir="$ac_dir"/$ac_builddir;;
40466 esac;;
40467esac
40468case "$ac_dir" in
40469.) ac_abs_top_builddir=${ac_top_builddir}.;;
40470*)
40471 case ${ac_top_builddir}. in
40472 .) ac_abs_top_builddir="$ac_dir";;
40473 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40474 *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;;
40475 esac;;
40476esac
40477case "$ac_dir" in
40478.) ac_abs_srcdir=$ac_srcdir;;
40479*)
40480 case $ac_srcdir in
40481 .) ac_abs_srcdir="$ac_dir";;
40482 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40483 *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;;
40484 esac;;
40485esac
40486case "$ac_dir" in
40487.) ac_abs_top_srcdir=$ac_top_srcdir;;
40488*)
40489 case $ac_top_srcdir in
40490 .) ac_abs_top_srcdir="$ac_dir";;
40491 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40492 *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;;
40493 esac;;
40494esac
672abd7a
VS
40495
40496
40497 cd $ac_dir
40498
40499 # Check for guested configure; otherwise get Cygnus style configure.
40500 if test -f $ac_srcdir/configure.gnu; then
40501 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
40502 elif test -f $ac_srcdir/configure; then
40503 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
40504 elif test -f $ac_srcdir/configure.in; then
40505 ac_sub_configure=$ac_configure
40506 else
40507 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
40508echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
40509 ac_sub_configure=
40510 fi
40511
40512 # The recursion is here.
40513 if test -n "$ac_sub_configure"; then
40514 # Make the cache file name correct relative to the subdirectory.
40515 case $cache_file in
40516 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
40517 *) # Relative path.
eea650d8 40518 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
672abd7a
VS
40519 esac
40520
40521 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
40522echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
40523 # The eval makes quoting arguments work.
40524 eval $ac_sub_configure $ac_sub_configure_args \
eea650d8
VS
40525 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
40526 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
672abd7a
VS
40527echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
40528 { (exit 1); exit 1; }; }
40529 fi
40530
40531 cd $ac_popdir
40532 done
40533fi
40534
8284b0c5 40535
2b5f62a0
VZ
40536echo
40537echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
40538echo ""
89fe663f 40539echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}"
9747f85d 40540echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
40541
40542echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
40543echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
40544echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
40545
0c98a14e 40546echo " What level of wxWindows compatibility should be enabled?"
65d8ef1e
VS
40547echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
40548echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 40549
2b5f62a0
VZ
40550echo " Which libraries should wxWindows use?"
40551echo " jpeg ${wxUSE_LIBJPEG-none}"
40552echo " png ${wxUSE_LIBPNG-none}"
40553echo " regex ${wxUSE_REGEX}"
40554echo " tiff ${wxUSE_LIBTIFF-none}"
89fe663f
VZ
40555if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
40556echo " xpm ${wxUSE_LIBXPM-none}"
40557fi
2b5f62a0 40558echo " zlib ${wxUSE_ZLIB}"
fd3d7534 40559echo " odbc ${wxUSE_ODBC}"
5f0b6dff 40560echo " expat ${wxUSE_EXPAT}"
3527f29c 40561echo " libmspack ${wxUSE_LIBMSPACK}"
2b5f62a0
VZ
40562
40563echo ""
40564