]> git.saurik.com Git - wxWidgets.git/blame - configure
Use wxBitmap::GetNSImage(false) instead of duplicating code.
[wxWidgets.git] / configure
CommitLineData
10f2d63a 1#! /bin/sh
e6cc62c6
VS
2# From configure.in Id: configure.in.
3# Guess values for system-dependent variables and create Makefiles.
f95e4495 4# Generated by GNU Autoconf 2.59 for wxWindows 2.5.1.
e6cc62c6
VS
5#
6# Report bugs to <wx-dev@lists.wxwindows.org>.
7#
f95e4495 8# Copyright (C) 2003 Free Software Foundation, Inc.
e6cc62c6
VS
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
fe0895cf 14
e6cc62c6
VS
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
f95e4495 25DUALCASE=1; export DUALCASE # for MKS sh
fe0895cf 26
e6cc62c6 27# Support unset when possible.
f95e4495 28if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
e6cc62c6
VS
29 as_unset=unset
30else
31 as_unset=false
32fi
fe0895cf
VS
33
34
e6cc62c6
VS
35# Work around bugs in pre-3.0 UWIN ksh.
36$as_unset ENV MAIL MAILPATH
37PS1='$ '
38PS2='> '
39PS4='+ '
fe0895cf 40
e6cc62c6
VS
41# NLS nuisances.
42for as_var in \
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 LC_TELEPHONE LC_TIME
46do
f95e4495 47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
e6cc62c6
VS
48 eval $as_var=C; export $as_var
49 else
50 $as_unset $as_var
51 fi
52done
fe0895cf 53
e6cc62c6
VS
54# Required to use basename.
55if expr a : '\(a\)' >/dev/null 2>&1; then
56 as_expr=expr
57else
58 as_expr=false
59fi
fe0895cf 60
e6cc62c6
VS
61if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62 as_basename=basename
63else
64 as_basename=false
65fi
fe0895cf
VS
66
67
e6cc62c6
VS
68# Name of the executable.
69as_me=`$as_basename "$0" ||
70$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
74echo X/"$0" |
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
78 s/.*/./; q'`
fe0895cf
VS
79
80
e6cc62c6
VS
81# PATH needs CR, and LINENO needs CR and PATH.
82# Avoid depending upon Character Ranges.
83as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86as_cr_digits='0123456789'
87as_cr_alnum=$as_cr_Letters$as_cr_digits
fe0895cf 88
e6cc62c6
VS
89# The user is always right.
90if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
93 chmod +x conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95 PATH_SEPARATOR=';'
96 else
97 PATH_SEPARATOR=:
98 fi
99 rm -f conf$$.sh
100fi
fe0895cf
VS
101
102
e6cc62c6
VS
103 as_lineno_1=$LINENO
104 as_lineno_2=$LINENO
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
109 # relative or not.
110 case $0 in
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113for as_dir in $PATH
114do
115 IFS=$as_save_IFS
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118done
fe0895cf 119
e6cc62c6
VS
120 ;;
121 esac
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
125 as_myself=$0
126 fi
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155done
156;;
157 esac
fe0895cf 158
e6cc62c6
VS
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
180
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
184 . ./$as_me.lineno
185 # Exit status is that of the last command.
186 exit
187}
fe0895cf
VS
188
189
e6cc62c6
VS
190case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
192' ECHO_T=' ' ;;
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195esac
fe0895cf 196
e6cc62c6
VS
197if expr a : '\(a\)' >/dev/null 2>&1; then
198 as_expr=expr
199else
200 as_expr=false
201fi
fe0895cf 202
e6cc62c6
VS
203rm -f conf$$ conf$$.exe conf$$.file
204echo >conf$$.file
205if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
210 as_ln_s='cp -p'
211 else
212 as_ln_s='ln -s'
213 fi
214elif ln conf$$.file conf$$ 2>/dev/null; then
215 as_ln_s=ln
216else
217 as_ln_s='cp -p'
218fi
219rm -f conf$$ conf$$.exe conf$$.file
fe0895cf 220
e6cc62c6
VS
221if mkdir -p . 2>/dev/null; then
222 as_mkdir_p=:
223else
f95e4495 224 test -d ./-p && rmdir ./-p
e6cc62c6
VS
225 as_mkdir_p=false
226fi
fe0895cf 227
e6cc62c6 228as_executable_p="test -f"
fe0895cf 229
e6cc62c6 230# Sed expression to map a string onto a valid CPP name.
f95e4495 231as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
fe0895cf 232
e6cc62c6 233# Sed expression to map a string onto a valid variable name.
f95e4495 234as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
fe0895cf
VS
235
236
e6cc62c6
VS
237# IFS
238# We need space, tab and new line, in precisely that order.
239as_nl='
240'
241IFS=" $as_nl"
fe0895cf 242
e6cc62c6
VS
243# CDPATH.
244$as_unset CDPATH
fe0895cf
VS
245
246
e6cc62c6
VS
247# Name of the host.
248# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249# so uname gets run too.
250ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
fe0895cf 251
e6cc62c6 252exec 6>&1
fe0895cf 253
a0b9e27f 254#
e6cc62c6
VS
255# Initializations.
256#
a0b9e27f 257ac_default_prefix=/usr/local
e6cc62c6
VS
258ac_config_libobj_dir=.
259cross_compiling=no
260subdirs=
261MFLAGS=
262MAKEFLAGS=
263SHELL=${CONFIG_SHELL-/bin/sh}
264
265# Maximum number of lines to put in a shell here document.
266# This variable seems obsolete. It should probably be removed, and
267# only ac_max_sed_lines should be used.
268: ${ac_max_here_lines=38}
269
270# Identity of this package.
271PACKAGE_NAME='wxWindows'
272PACKAGE_TARNAME='wxwindows'
e46d2a18
VS
273PACKAGE_VERSION='2.5.1'
274PACKAGE_STRING='wxWindows 2.5.1'
e6cc62c6
VS
275PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org'
276
277ac_unique_file="wx-config.in"
278# Factoring default headers for most tests.
279ac_includes_default="\
280#include <stdio.h>
281#if HAVE_SYS_TYPES_H
282# include <sys/types.h>
283#endif
284#if HAVE_SYS_STAT_H
285# include <sys/stat.h>
286#endif
287#if STDC_HEADERS
288# include <stdlib.h>
289# include <stddef.h>
290#else
291# if HAVE_STDLIB_H
292# include <stdlib.h>
293# endif
294#endif
295#if HAVE_STRING_H
296# if !STDC_HEADERS && HAVE_MEMORY_H
297# include <memory.h>
298# endif
299# include <string.h>
300#endif
301#if HAVE_STRINGS_H
302# include <strings.h>
303#endif
304#if HAVE_INTTYPES_H
305# include <inttypes.h>
306#else
307# if HAVE_STDINT_H
308# include <stdint.h>
309# endif
310#endif
311#if HAVE_UNISTD_H
312# include <unistd.h>
313#endif"
314
672abd7a 315ac_subdirs_all="$ac_subdirs_all src/expat"
f95e4495 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_0_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_GUI_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_UNIX_1_USE_GUI_1 COND_PLATFORM_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 LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS'
e6cc62c6 317ac_subst_files=''
10f2d63a
VZ
318
319# Initialize some variables set by options.
e6cc62c6
VS
320ac_init_help=
321ac_init_version=false
10f2d63a
VZ
322# The variables have the same names as the options, with
323# dashes changed to underlines.
e6cc62c6 324cache_file=/dev/null
10f2d63a 325exec_prefix=NONE
10f2d63a 326no_create=
10f2d63a
VZ
327no_recursion=
328prefix=NONE
329program_prefix=NONE
330program_suffix=NONE
331program_transform_name=s,x,x,
332silent=
333site=
334srcdir=
10f2d63a
VZ
335verbose=
336x_includes=NONE
337x_libraries=NONE
e6cc62c6
VS
338
339# Installation directory options.
340# These are left unexpanded so users can "make install exec_prefix=/foo"
341# and all the variables that are supposed to be based on exec_prefix
342# by default will actually change.
343# Use braces instead of parens because sh, perl, etc. also accept them.
10f2d63a
VZ
344bindir='${exec_prefix}/bin'
345sbindir='${exec_prefix}/sbin'
346libexecdir='${exec_prefix}/libexec'
347datadir='${prefix}/share'
348sysconfdir='${prefix}/etc'
349sharedstatedir='${prefix}/com'
350localstatedir='${prefix}/var'
351libdir='${exec_prefix}/lib'
352includedir='${prefix}/include'
353oldincludedir='/usr/include'
354infodir='${prefix}/info'
355mandir='${prefix}/man'
356
10f2d63a
VZ
357ac_prev=
358for ac_option
359do
10f2d63a
VZ
360 # If the previous option needs an argument, assign it.
361 if test -n "$ac_prev"; then
362 eval "$ac_prev=\$ac_option"
363 ac_prev=
364 continue
365 fi
366
e6cc62c6 367 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
10f2d63a
VZ
368
369 # Accept the important Cygnus configure options, so we can diagnose typos.
370
e6cc62c6 371 case $ac_option in
10f2d63a
VZ
372
373 -bindir | --bindir | --bindi | --bind | --bin | --bi)
374 ac_prev=bindir ;;
375 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
e6cc62c6 376 bindir=$ac_optarg ;;
10f2d63a
VZ
377
378 -build | --build | --buil | --bui | --bu)
e6cc62c6 379 ac_prev=build_alias ;;
10f2d63a 380 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
e6cc62c6 381 build_alias=$ac_optarg ;;
10f2d63a
VZ
382
383 -cache-file | --cache-file | --cache-fil | --cache-fi \
384 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385 ac_prev=cache_file ;;
386 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
e6cc62c6
VS
388 cache_file=$ac_optarg ;;
389
390 --config-cache | -C)
391 cache_file=config.cache ;;
10f2d63a
VZ
392
393 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394 ac_prev=datadir ;;
395 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396 | --da=*)
e6cc62c6 397 datadir=$ac_optarg ;;
10f2d63a
VZ
398
399 -disable-* | --disable-*)
e6cc62c6 400 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
10f2d63a 401 # Reject names that are not valid shell variable names.
e6cc62c6
VS
402 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404 { (exit 1); exit 1; }; }
405 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406 eval "enable_$ac_feature=no" ;;
10f2d63a
VZ
407
408 -enable-* | --enable-*)
e6cc62c6 409 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
10f2d63a 410 # Reject names that are not valid shell variable names.
e6cc62c6
VS
411 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413 { (exit 1); exit 1; }; }
414 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415 case $ac_option in
416 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
417 *) ac_optarg=yes ;;
418 esac
e6cc62c6 419 eval "enable_$ac_feature='$ac_optarg'" ;;
10f2d63a
VZ
420
421 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423 | --exec | --exe | --ex)
424 ac_prev=exec_prefix ;;
425 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427 | --exec=* | --exe=* | --ex=*)
e6cc62c6 428 exec_prefix=$ac_optarg ;;
10f2d63a
VZ
429
430 -gas | --gas | --ga | --g)
431 # Obsolete; use --with-gas.
432 with_gas=yes ;;
433
e6cc62c6
VS
434 -help | --help | --hel | --he | -h)
435 ac_init_help=long ;;
436 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437 ac_init_help=recursive ;;
438 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439 ac_init_help=short ;;
10f2d63a
VZ
440
441 -host | --host | --hos | --ho)
e6cc62c6 442 ac_prev=host_alias ;;
10f2d63a 443 -host=* | --host=* | --hos=* | --ho=*)
e6cc62c6 444 host_alias=$ac_optarg ;;
10f2d63a
VZ
445
446 -includedir | --includedir | --includedi | --included | --include \
447 | --includ | --inclu | --incl | --inc)
448 ac_prev=includedir ;;
449 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450 | --includ=* | --inclu=* | --incl=* | --inc=*)
e6cc62c6 451 includedir=$ac_optarg ;;
10f2d63a
VZ
452
453 -infodir | --infodir | --infodi | --infod | --info | --inf)
454 ac_prev=infodir ;;
455 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
e6cc62c6 456 infodir=$ac_optarg ;;
10f2d63a
VZ
457
458 -libdir | --libdir | --libdi | --libd)
459 ac_prev=libdir ;;
460 -libdir=* | --libdir=* | --libdi=* | --libd=*)
e6cc62c6 461 libdir=$ac_optarg ;;
10f2d63a
VZ
462
463 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464 | --libexe | --libex | --libe)
465 ac_prev=libexecdir ;;
466 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467 | --libexe=* | --libex=* | --libe=*)
e6cc62c6 468 libexecdir=$ac_optarg ;;
10f2d63a
VZ
469
470 -localstatedir | --localstatedir | --localstatedi | --localstated \
471 | --localstate | --localstat | --localsta | --localst \
472 | --locals | --local | --loca | --loc | --lo)
473 ac_prev=localstatedir ;;
474 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
e6cc62c6 477 localstatedir=$ac_optarg ;;
10f2d63a
VZ
478
479 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480 ac_prev=mandir ;;
481 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
e6cc62c6 482 mandir=$ac_optarg ;;
10f2d63a
VZ
483
484 -nfp | --nfp | --nf)
485 # Obsolete; use --without-fp.
486 with_fp=no ;;
487
488 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
e6cc62c6 489 | --no-cr | --no-c | -n)
10f2d63a
VZ
490 no_create=yes ;;
491
492 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494 no_recursion=yes ;;
495
496 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498 | --oldin | --oldi | --old | --ol | --o)
499 ac_prev=oldincludedir ;;
500 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
e6cc62c6 503 oldincludedir=$ac_optarg ;;
10f2d63a
VZ
504
505 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506 ac_prev=prefix ;;
507 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
e6cc62c6 508 prefix=$ac_optarg ;;
10f2d63a
VZ
509
510 -program-prefix | --program-prefix | --program-prefi | --program-pref \
511 | --program-pre | --program-pr | --program-p)
512 ac_prev=program_prefix ;;
513 -program-prefix=* | --program-prefix=* | --program-prefi=* \
514 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
e6cc62c6 515 program_prefix=$ac_optarg ;;
10f2d63a
VZ
516
517 -program-suffix | --program-suffix | --program-suffi | --program-suff \
518 | --program-suf | --program-su | --program-s)
519 ac_prev=program_suffix ;;
520 -program-suffix=* | --program-suffix=* | --program-suffi=* \
521 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
e6cc62c6 522 program_suffix=$ac_optarg ;;
10f2d63a
VZ
523
524 -program-transform-name | --program-transform-name \
525 | --program-transform-nam | --program-transform-na \
526 | --program-transform-n | --program-transform- \
527 | --program-transform | --program-transfor \
528 | --program-transfo | --program-transf \
529 | --program-trans | --program-tran \
530 | --progr-tra | --program-tr | --program-t)
531 ac_prev=program_transform_name ;;
532 -program-transform-name=* | --program-transform-name=* \
533 | --program-transform-nam=* | --program-transform-na=* \
534 | --program-transform-n=* | --program-transform-=* \
535 | --program-transform=* | --program-transfor=* \
536 | --program-transfo=* | --program-transf=* \
537 | --program-trans=* | --program-tran=* \
538 | --progr-tra=* | --program-tr=* | --program-t=*)
e6cc62c6 539 program_transform_name=$ac_optarg ;;
10f2d63a
VZ
540
541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542 | -silent | --silent | --silen | --sile | --sil)
543 silent=yes ;;
544
545 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546 ac_prev=sbindir ;;
547 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548 | --sbi=* | --sb=*)
e6cc62c6 549 sbindir=$ac_optarg ;;
10f2d63a
VZ
550
551 -sharedstatedir | --sharedstatedir | --sharedstatedi \
552 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553 | --sharedst | --shareds | --shared | --share | --shar \
554 | --sha | --sh)
555 ac_prev=sharedstatedir ;;
556 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559 | --sha=* | --sh=*)
e6cc62c6 560 sharedstatedir=$ac_optarg ;;
10f2d63a
VZ
561
562 -site | --site | --sit)
563 ac_prev=site ;;
564 -site=* | --site=* | --sit=*)
e6cc62c6 565 site=$ac_optarg ;;
10f2d63a
VZ
566
567 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568 ac_prev=srcdir ;;
569 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
e6cc62c6 570 srcdir=$ac_optarg ;;
10f2d63a
VZ
571
572 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573 | --syscon | --sysco | --sysc | --sys | --sy)
574 ac_prev=sysconfdir ;;
575 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
e6cc62c6 577 sysconfdir=$ac_optarg ;;
10f2d63a
VZ
578
579 -target | --target | --targe | --targ | --tar | --ta | --t)
e6cc62c6 580 ac_prev=target_alias ;;
10f2d63a 581 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
e6cc62c6 582 target_alias=$ac_optarg ;;
10f2d63a
VZ
583
584 -v | -verbose | --verbose | --verbos | --verbo | --verb)
585 verbose=yes ;;
586
e6cc62c6
VS
587 -version | --version | --versio | --versi | --vers | -V)
588 ac_init_version=: ;;
10f2d63a
VZ
589
590 -with-* | --with-*)
e6cc62c6 591 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10f2d63a 592 # Reject names that are not valid shell variable names.
e6cc62c6
VS
593 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594 { echo "$as_me: error: invalid package name: $ac_package" >&2
595 { (exit 1); exit 1; }; }
10f2d63a 596 ac_package=`echo $ac_package| sed 's/-/_/g'`
e6cc62c6
VS
597 case $ac_option in
598 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
10f2d63a
VZ
599 *) ac_optarg=yes ;;
600 esac
e6cc62c6 601 eval "with_$ac_package='$ac_optarg'" ;;
10f2d63a
VZ
602
603 -without-* | --without-*)
e6cc62c6 604 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10f2d63a 605 # Reject names that are not valid shell variable names.
e6cc62c6
VS
606 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607 { echo "$as_me: error: invalid package name: $ac_package" >&2
608 { (exit 1); exit 1; }; }
609 ac_package=`echo $ac_package | sed 's/-/_/g'`
610 eval "with_$ac_package=no" ;;
10f2d63a
VZ
611
612 --x)
613 # Obsolete; use --with-x.
614 with_x=yes ;;
615
616 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617 | --x-incl | --x-inc | --x-in | --x-i)
618 ac_prev=x_includes ;;
619 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
e6cc62c6 621 x_includes=$ac_optarg ;;
10f2d63a
VZ
622
623 -x-libraries | --x-libraries | --x-librarie | --x-librari \
624 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625 ac_prev=x_libraries ;;
626 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
e6cc62c6 628 x_libraries=$ac_optarg ;;
10f2d63a 629
e6cc62c6
VS
630 -*) { echo "$as_me: error: unrecognized option: $ac_option
631Try \`$0 --help' for more information." >&2
632 { (exit 1); exit 1; }; }
10f2d63a
VZ
633 ;;
634
e6cc62c6
VS
635 *=*)
636 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637 # Reject names that are not valid shell variable names.
638 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640 { (exit 1); exit 1; }; }
641 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642 eval "$ac_envvar='$ac_optarg'"
643 export $ac_envvar ;;
644
10f2d63a 645 *)
e6cc62c6
VS
646 # FIXME: should be removed in autoconf 3.0.
647 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
10f2d63a
VZ
651 ;;
652
653 esac
654done
655
656if test -n "$ac_prev"; then
e6cc62c6
VS
657 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658 { echo "$as_me: error: missing argument to $ac_option" >&2
659 { (exit 1); exit 1; }; }
a0b9e27f 660fi
a0b9e27f 661
e6cc62c6
VS
662# Be sure to have absolute paths.
663for ac_var in exec_prefix prefix
664do
665 eval ac_val=$`echo $ac_var`
666 case $ac_val in
667 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669 { (exit 1); exit 1; }; };;
670 esac
671done
8284b0c5 672
e6cc62c6
VS
673# Be sure to have absolute paths.
674for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
f95e4495 675 localstatedir libdir includedir oldincludedir infodir mandir
10f2d63a 676do
e6cc62c6
VS
677 eval ac_val=$`echo $ac_var`
678 case $ac_val in
679 [\\/$]* | ?:[\\/]* ) ;;
680 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681 { (exit 1); exit 1; }; };;
10f2d63a
VZ
682 esac
683done
684
e6cc62c6
VS
685# There might be people who depend on the old broken behavior: `$host'
686# used to hold the argument of --host etc.
687# FIXME: To remove some day.
688build=$build_alias
689host=$host_alias
690target=$target_alias
691
692# FIXME: To remove some day.
693if test "x$host_alias" != x; then
694 if test "x$build_alias" = x; then
695 cross_compiling=maybe
696 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697 If a cross compiler is detected then cross compile mode will be used." >&2
698 elif test "x$build_alias" != "x$host_alias"; then
699 cross_compiling=yes
700 fi
701fi
247f5006 702
e6cc62c6
VS
703ac_tool_prefix=
704test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706test "$silent" = yes && exec 6>/dev/null
10f2d63a 707
10f2d63a
VZ
708
709# Find the source files, if location was not specified.
710if test -z "$srcdir"; then
711 ac_srcdir_defaulted=yes
712 # Try the directory containing this script, then its parent.
e6cc62c6
VS
713 ac_confdir=`(dirname "$0") 2>/dev/null ||
714$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f95e4495
VS
715 X"$0" : 'X\(//\)[^/]' \| \
716 X"$0" : 'X\(//\)$' \| \
717 X"$0" : 'X\(/\)' \| \
718 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
719echo X"$0" |
720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722 /^X\(\/\/\)$/{ s//\1/; q; }
723 /^X\(\/\).*/{ s//\1/; q; }
724 s/.*/./; q'`
10f2d63a
VZ
725 srcdir=$ac_confdir
726 if test ! -r $srcdir/$ac_unique_file; then
727 srcdir=..
728 fi
729else
730 ac_srcdir_defaulted=no
731fi
732if test ! -r $srcdir/$ac_unique_file; then
733 if test "$ac_srcdir_defaulted" = yes; then
e6cc62c6
VS
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735 { (exit 1); exit 1; }; }
10f2d63a 736 else
e6cc62c6
VS
737 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738 { (exit 1); exit 1; }; }
10f2d63a
VZ
739 fi
740fi
e6cc62c6
VS
741(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743 { (exit 1); exit 1; }; }
744srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745ac_env_build_alias_set=${build_alias+set}
746ac_env_build_alias_value=$build_alias
747ac_cv_env_build_alias_set=${build_alias+set}
748ac_cv_env_build_alias_value=$build_alias
749ac_env_host_alias_set=${host_alias+set}
750ac_env_host_alias_value=$host_alias
751ac_cv_env_host_alias_set=${host_alias+set}
752ac_cv_env_host_alias_value=$host_alias
753ac_env_target_alias_set=${target_alias+set}
754ac_env_target_alias_value=$target_alias
755ac_cv_env_target_alias_set=${target_alias+set}
756ac_cv_env_target_alias_value=$target_alias
757ac_env_CC_set=${CC+set}
758ac_env_CC_value=$CC
759ac_cv_env_CC_set=${CC+set}
760ac_cv_env_CC_value=$CC
761ac_env_CFLAGS_set=${CFLAGS+set}
762ac_env_CFLAGS_value=$CFLAGS
763ac_cv_env_CFLAGS_set=${CFLAGS+set}
764ac_cv_env_CFLAGS_value=$CFLAGS
765ac_env_LDFLAGS_set=${LDFLAGS+set}
766ac_env_LDFLAGS_value=$LDFLAGS
767ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768ac_cv_env_LDFLAGS_value=$LDFLAGS
769ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_env_CPPFLAGS_value=$CPPFLAGS
771ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773ac_env_CPP_set=${CPP+set}
774ac_env_CPP_value=$CPP
775ac_cv_env_CPP_set=${CPP+set}
776ac_cv_env_CPP_value=$CPP
777ac_env_CXX_set=${CXX+set}
778ac_env_CXX_value=$CXX
779ac_cv_env_CXX_set=${CXX+set}
780ac_cv_env_CXX_value=$CXX
781ac_env_CXXFLAGS_set=${CXXFLAGS+set}
782ac_env_CXXFLAGS_value=$CXXFLAGS
783ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
784ac_cv_env_CXXFLAGS_value=$CXXFLAGS
785ac_env_CXXCPP_set=${CXXCPP+set}
786ac_env_CXXCPP_value=$CXXCPP
787ac_cv_env_CXXCPP_set=${CXXCPP+set}
788ac_cv_env_CXXCPP_value=$CXXCPP
328a083c 789
e6cc62c6
VS
790#
791# Report the --help message.
792#
793if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
796 cat <<_ACEOF
e46d2a18 797\`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems.
10f2d63a 798
e6cc62c6 799Usage: $0 [OPTION]... [VAR=VALUE]...
10f2d63a 800
e6cc62c6
VS
801To assign environment variables (e.g., CC, CFLAGS...), specify them as
802VAR=VALUE. See below for descriptions of some of the useful variables.
8284b0c5 803
e6cc62c6
VS
804Defaults for the options are specified in brackets.
805
806Configuration:
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
816
817_ACEOF
818
819 cat <<_ACEOF
820Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
f95e4495 822 [$ac_default_prefix]
e6cc62c6 823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
f95e4495 824 [PREFIX]
e6cc62c6
VS
825
826By default, \`make install' will install all the files in
827\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829for instance \`--prefix=\$HOME'.
830
831For better control, use the options below.
832
833Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
846_ACEOF
847
848 cat <<\_ACEOF
849
850X features:
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
853
854System types:
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
857 --target=TARGET configure for building compilers for TARGET [HOST]
858_ACEOF
859fi
860
861if test -n "$ac_init_help"; then
862 case $ac_init_help in
e46d2a18 863 short | recursive ) echo "Configuration of wxWindows 2.5.1:";;
e6cc62c6
VS
864 esac
865 cat <<\_ACEOF
866
867Optional Features:
868 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
869 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
870 --enable-gui use GUI classes
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
f95e4495
VS
1114
1115# Do not use `cd foo && pwd` to compute absolute paths, because
1116# the directories may not exist.
1117case `pwd` in
1118.) ac_abs_builddir="$ac_dir";;
1119*)
1120 case "$ac_dir" in
1121 .) ac_abs_builddir=`pwd`;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1123 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1124 esac;;
1125esac
1126case $ac_abs_builddir in
1127.) ac_abs_top_builddir=${ac_top_builddir}.;;
1128*)
1129 case ${ac_top_builddir}. in
1130 .) ac_abs_top_builddir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1132 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1133 esac;;
1134esac
1135case $ac_abs_builddir in
1136.) ac_abs_srcdir=$ac_srcdir;;
1137*)
1138 case $ac_srcdir in
1139 .) ac_abs_srcdir=$ac_abs_builddir;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1141 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1142 esac;;
1143esac
1144case $ac_abs_builddir in
1145.) ac_abs_top_srcdir=$ac_top_srcdir;;
1146*)
1147 case $ac_top_srcdir in
1148 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1149 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1150 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1151 esac;;
1152esac
e6cc62c6
VS
1153
1154 cd $ac_dir
1155 # Check for guested configure; otherwise get Cygnus style configure.
1156 if test -f $ac_srcdir/configure.gnu; then
1157 echo
1158 $SHELL $ac_srcdir/configure.gnu --help=recursive
1159 elif test -f $ac_srcdir/configure; then
1160 echo
1161 $SHELL $ac_srcdir/configure --help=recursive
1162 elif test -f $ac_srcdir/configure.ac ||
f95e4495 1163 test -f $ac_srcdir/configure.in; then
e6cc62c6
VS
1164 echo
1165 $ac_configure --help
1166 else
1167 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1168 fi
1169 cd $ac_popdir
1170 done
1171fi
8284b0c5 1172
e6cc62c6
VS
1173test -n "$ac_init_help" && exit 0
1174if $ac_init_version; then
1175 cat <<\_ACEOF
e46d2a18 1176wxWindows configure 2.5.1
f95e4495 1177generated by GNU Autoconf 2.59
10f2d63a 1178
f95e4495 1179Copyright (C) 2003 Free Software Foundation, Inc.
e6cc62c6
VS
1180This configure script is free software; the Free Software Foundation
1181gives unlimited permission to copy, distribute and modify it.
1182_ACEOF
1183 exit 0
7c66a493 1184fi
e6cc62c6
VS
1185exec 5>config.log
1186cat >&5 <<_ACEOF
1187This file contains any messages produced by compilers while
1188running configure, to aid debugging if configure makes a mistake.
1189
e46d2a18 1190It was created by wxWindows $as_me 2.5.1, which was
f95e4495 1191generated by GNU Autoconf 2.59. Invocation command line was
e6cc62c6
VS
1192
1193 $ $0 $@
1194
1195_ACEOF
1196{
1197cat <<_ASUNAME
1198## --------- ##
1199## Platform. ##
1200## --------- ##
1201
1202hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1203uname -m = `(uname -m) 2>/dev/null || echo unknown`
1204uname -r = `(uname -r) 2>/dev/null || echo unknown`
1205uname -s = `(uname -s) 2>/dev/null || echo unknown`
1206uname -v = `(uname -v) 2>/dev/null || echo unknown`
1207
1208/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1209/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1210
1211/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1212/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1213/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1214hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1215/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1216/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1217/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1218
1219_ASUNAME
1220
1221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1222for as_dir in $PATH
1223do
1224 IFS=$as_save_IFS
1225 test -z "$as_dir" && as_dir=.
1226 echo "PATH: $as_dir"
1227done
1228
1229} >&5
1230
1231cat >&5 <<_ACEOF
1232
1233
1234## ----------- ##
1235## Core tests. ##
1236## ----------- ##
1237
1238_ACEOF
1239
1240
1241# Keep a trace of the command line.
1242# Strip out --no-create and --no-recursion so they do not pile up.
1243# Strip out --silent because we don't want to record it for future runs.
1244# Also quote any args containing shell meta-characters.
1245# Make two passes to allow for proper duplicate-argument suppression.
1246ac_configure_args=
1247ac_configure_args0=
1248ac_configure_args1=
1249ac_sep=
1250ac_must_keep_next=false
1251for ac_pass in 1 2
1252do
1253 for ac_arg
1254 do
1255 case $ac_arg in
1256 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1258 | -silent | --silent | --silen | --sile | --sil)
1259 continue ;;
1260 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1261 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1262 esac
1263 case $ac_pass in
1264 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1265 2)
1266 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1267 if test $ac_must_keep_next = true; then
f95e4495 1268 ac_must_keep_next=false # Got value, back to normal.
e6cc62c6 1269 else
f95e4495
VS
1270 case $ac_arg in
1271 *=* | --config-cache | -C | -disable-* | --disable-* \
1272 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1273 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1274 | -with-* | --with-* | -without-* | --without-* | --x)
1275 case "$ac_configure_args0 " in
1276 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1277 esac
1278 ;;
1279 -* ) ac_must_keep_next=true ;;
1280 esac
e6cc62c6
VS
1281 fi
1282 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1283 # Get rid of the leading space.
1284 ac_sep=" "
1285 ;;
1286 esac
1287 done
1288done
1289$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1290$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1291
1292# When interrupted or exit'd, cleanup temporary files, and complete
1293# config.log. We remove comments because anyway the quotes in there
1294# would cause problems or look ugly.
1295# WARNING: Be sure not to use single quotes in there, as some shells,
1296# such as our DU 5.0 friend, will then `close' the trap.
1297trap 'exit_status=$?
1298 # Save into config.log some information that might help in debugging.
1299 {
1300 echo
1301
1302 cat <<\_ASBOX
1303## ---------------- ##
1304## Cache variables. ##
1305## ---------------- ##
1306_ASBOX
1307 echo
1308 # The following way of writing the cache mishandles newlines in values,
1309{
1310 (set) 2>&1 |
1311 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1312 *ac_space=\ *)
1313 sed -n \
f95e4495
VS
1314 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1315 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
e6cc62c6
VS
1316 ;;
1317 *)
1318 sed -n \
f95e4495 1319 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
1320 ;;
1321 esac;
1322}
1323 echo
1324
1325 cat <<\_ASBOX
1326## ----------------- ##
1327## Output variables. ##
1328## ----------------- ##
1329_ASBOX
1330 echo
1331 for ac_var in $ac_subst_vars
1332 do
1333 eval ac_val=$`echo $ac_var`
1334 echo "$ac_var='"'"'$ac_val'"'"'"
1335 done | sort
1336 echo
1337
1338 if test -n "$ac_subst_files"; then
1339 cat <<\_ASBOX
1340## ------------- ##
1341## Output files. ##
1342## ------------- ##
1343_ASBOX
1344 echo
1345 for ac_var in $ac_subst_files
1346 do
1347 eval ac_val=$`echo $ac_var`
f95e4495 1348 echo "$ac_var='"'"'$ac_val'"'"'"
e6cc62c6
VS
1349 done | sort
1350 echo
1351 fi
1352
1353 if test -s confdefs.h; then
1354 cat <<\_ASBOX
1355## ----------- ##
1356## confdefs.h. ##
1357## ----------- ##
1358_ASBOX
1359 echo
1360 sed "/^$/d" confdefs.h | sort
1361 echo
1362 fi
1363 test "$ac_signal" != 0 &&
1364 echo "$as_me: caught signal $ac_signal"
1365 echo "$as_me: exit $exit_status"
1366 } >&5
f95e4495 1367 rm -f core *.core &&
e6cc62c6
VS
1368 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1369 exit $exit_status
1370 ' 0
1371for ac_signal in 1 2 13 15; do
1372 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1373done
1374ac_signal=0
1375
1376# confdefs.h avoids OS command line length limits that DEFS can exceed.
1377rm -rf conftest* confdefs.h
1378# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1379echo >confdefs.h
1380
1381# Predefined preprocessor variables.
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_NAME "$PACKAGE_NAME"
1385_ACEOF
1386
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1390_ACEOF
1391
1392
1393cat >>confdefs.h <<_ACEOF
1394#define PACKAGE_VERSION "$PACKAGE_VERSION"
1395_ACEOF
1396
1397
1398cat >>confdefs.h <<_ACEOF
1399#define PACKAGE_STRING "$PACKAGE_STRING"
1400_ACEOF
1401
1402
1403cat >>confdefs.h <<_ACEOF
1404#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1405_ACEOF
1406
1407
1408# Let the site file select an alternate cache file if it wants to.
1409# Prefer explicitly selected file to automatically selected ones.
1410if test -z "$CONFIG_SITE"; then
1411 if test "x$prefix" != xNONE; then
1412 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1413 else
1414 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1415 fi
1416fi
1417for ac_site_file in $CONFIG_SITE; do
1418 if test -r "$ac_site_file"; then
1419 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1420echo "$as_me: loading site script $ac_site_file" >&6;}
1421 sed 's/^/| /' "$ac_site_file" >&5
1422 . "$ac_site_file"
1423 fi
1424done
1425
1426if test -r "$cache_file"; then
1427 # Some versions of bash will fail to source /dev/null (special
1428 # files actually), so we avoid doing that.
1429 if test -f "$cache_file"; then
1430 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1431echo "$as_me: loading cache $cache_file" >&6;}
1432 case $cache_file in
1433 [\\/]* | ?:[\\/]* ) . $cache_file;;
1434 *) . ./$cache_file;;
1435 esac
1436 fi
1437else
1438 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1439echo "$as_me: creating cache $cache_file" >&6;}
1440 >$cache_file
1441fi
1442
1443# Check that the precious variables saved in the cache have kept the same
1444# value.
1445ac_cache_corrupted=false
1446for ac_var in `(set) 2>&1 |
f95e4495 1447 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
e6cc62c6
VS
1448 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1449 eval ac_new_set=\$ac_env_${ac_var}_set
1450 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1451 eval ac_new_val="\$ac_env_${ac_var}_value"
1452 case $ac_old_set,$ac_new_set in
1453 set,)
1454 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1455echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1456 ac_cache_corrupted=: ;;
1457 ,set)
1458 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1459echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1460 ac_cache_corrupted=: ;;
1461 ,);;
1462 *)
1463 if test "x$ac_old_val" != "x$ac_new_val"; then
f95e4495 1464 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
e6cc62c6 1465echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
f95e4495 1466 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
e6cc62c6 1467echo "$as_me: former value: $ac_old_val" >&2;}
f95e4495 1468 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
e6cc62c6 1469echo "$as_me: current value: $ac_new_val" >&2;}
f95e4495 1470 ac_cache_corrupted=:
e6cc62c6
VS
1471 fi;;
1472 esac
1473 # Pass precious variables to config.status.
1474 if test "$ac_new_set" = set; then
1475 case $ac_new_val in
1476 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1477 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1478 *) ac_arg=$ac_var=$ac_new_val ;;
1479 esac
1480 case " $ac_configure_args " in
1481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1482 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1483 esac
1484 fi
1485done
1486if $ac_cache_corrupted; then
1487 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1488echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1489 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1490echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1491 { (exit 1); exit 1; }; }
1492fi
1493
1494ac_ext=c
1495ac_cpp='$CPP $CPPFLAGS'
1496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1498ac_compiler_gnu=$ac_cv_c_compiler_gnu
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
698dcdb6 1516
8284b0c5 1517
7c66a493 1518
a0b9e27f
MB
1519
1520
a0b9e27f 1521
a0b9e27f 1522
a0b9e27f 1523
a0b9e27f 1524
a0b9e27f 1525
a0b9e27f 1526
e6cc62c6
VS
1527
1528
1529ac_aux_dir=
1530for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1531 if test -f $ac_dir/install-sh; then
1532 ac_aux_dir=$ac_dir
1533 ac_install_sh="$ac_aux_dir/install-sh -c"
1534 break
1535 elif test -f $ac_dir/install.sh; then
1536 ac_aux_dir=$ac_dir
1537 ac_install_sh="$ac_aux_dir/install.sh -c"
1538 break
1539 elif test -f $ac_dir/shtool; then
1540 ac_aux_dir=$ac_dir
1541 ac_install_sh="$ac_aux_dir/shtool install -c"
1542 break
1543 fi
1544done
1545if test -z "$ac_aux_dir"; then
1546 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1547echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1548 { (exit 1); exit 1; }; }
1549fi
1550ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1551ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1552ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1553
1554# Make sure we can run config.sub.
1555$ac_config_sub sun4 >/dev/null 2>&1 ||
1556 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1557echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1558 { (exit 1); exit 1; }; }
1559
1560echo "$as_me:$LINENO: checking build system type" >&5
1561echo $ECHO_N "checking build system type... $ECHO_C" >&6
1562if test "${ac_cv_build+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1564else
1565 ac_cv_build_alias=$build_alias
1566test -z "$ac_cv_build_alias" &&
1567 ac_cv_build_alias=`$ac_config_guess`
1568test -z "$ac_cv_build_alias" &&
1569 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1570echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1571 { (exit 1); exit 1; }; }
1572ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1573 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1574echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1575 { (exit 1); exit 1; }; }
1576
1577fi
1578echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1579echo "${ECHO_T}$ac_cv_build" >&6
1580build=$ac_cv_build
1581build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1582build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1583build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1584
1585
1586echo "$as_me:$LINENO: checking host system type" >&5
1587echo $ECHO_N "checking host system type... $ECHO_C" >&6
1588if test "${ac_cv_host+set}" = set; then
1589 echo $ECHO_N "(cached) $ECHO_C" >&6
1590else
1591 ac_cv_host_alias=$host_alias
1592test -z "$ac_cv_host_alias" &&
1593 ac_cv_host_alias=$ac_cv_build_alias
1594ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1595 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1596echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1597 { (exit 1); exit 1; }; }
1598
1599fi
1600echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1601echo "${ECHO_T}$ac_cv_host" >&6
1602host=$ac_cv_host
1603host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1604host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1605host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1606
1607
1608echo "$as_me:$LINENO: checking target system type" >&5
1609echo $ECHO_N "checking target system type... $ECHO_C" >&6
1610if test "${ac_cv_target+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1612else
1613 ac_cv_target_alias=$target_alias
1614test "x$ac_cv_target_alias" = "x" &&
1615 ac_cv_target_alias=$ac_cv_host_alias
1616ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1617 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1618echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1619 { (exit 1); exit 1; }; }
1620
1621fi
1622echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1623echo "${ECHO_T}$ac_cv_target" >&6
1624target=$ac_cv_target
1625target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1626target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1627target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1628
1629
1630# The aliases save the names the user supplied, while $host etc.
1631# will get canonicalized.
1632test -n "$target_alias" &&
7c66a493
VZ
1633 test "$program_prefix$program_suffix$program_transform_name" = \
1634 NONENONEs,x,x, &&
1635 program_prefix=${target_alias}-
8284b0c5
MB
1636
1637
a0b9e27f 1638
10f2d63a 1639WX_MAJOR_VERSION_NUMBER=2
34bed6d9 1640WX_MINOR_VERSION_NUMBER=5
e46d2a18 1641WX_RELEASE_NUMBER=1
10f2d63a 1642
10f2d63a 1643WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
10f2d63a 1644WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
6426998c 1645
978f1259
RL
1646WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1647
7015ef3a 1648WX_CURRENT=1
6426998c
RL
1649WX_REVISION=0
1650WX_AGE=0
1651
8284b0c5
MB
1652
1653
10f2d63a 1654USE_UNIX=1
73d617c9 1655USE_OS2=0
10f2d63a 1656USE_WIN32=0
f9bc1684 1657USE_DOS=0
b12915c1 1658USE_BEOS=0
1216f52d 1659USE_MAC=0
b12915c1 1660
10f2d63a 1661USE_AIX=
fe0895cf
VS
1662USE_BSD= USE_DARWIN= USE_FREEBSD=
1663USE_GNU= USE_HPUX=
89e3b3e4 1664USE_LINUX=
f6bcfd97 1665USE_NETBSD=
89e3b3e4 1666USE_OPENBSD=
fe0895cf
VS
1667USE_OSF= USE_SGI=
1668USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS=
10f2d63a 1669USE_ULTRIX=
89e3b3e4
VZ
1670USE_UNIXWARE=
1671
1672USE_ALPHA=
10f2d63a 1673
ab9b9eab
VZ
1674NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1675
ac0c4cc3 1676ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11"
10f2d63a 1677
ac0c4cc3 1678DEFAULT_wxUSE_COCOA=0
10f2d63a 1679DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1680DEFAULT_wxUSE_MAC=0
1681DEFAULT_wxUSE_MGL=0
1725144d 1682DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1683DEFAULT_wxUSE_MOTIF=0
1684DEFAULT_wxUSE_MSW=0
e07802fc 1685DEFAULT_wxUSE_PM=0
f79bd02d 1686DEFAULT_wxUSE_X11=0
10f2d63a 1687
ac0c4cc3 1688DEFAULT_DEFAULT_wxUSE_COCOA=0
10f2d63a 1689DEFAULT_DEFAULT_wxUSE_GTK=0
1e6feb95
VZ
1690DEFAULT_DEFAULT_wxUSE_MAC=0
1691DEFAULT_DEFAULT_wxUSE_MGL=0
1725144d 1692DEFAULT_DEFAULT_wxUSE_MICROWIN=0
10f2d63a
VZ
1693DEFAULT_DEFAULT_wxUSE_MOTIF=0
1694DEFAULT_DEFAULT_wxUSE_MSW=0
e07802fc 1695DEFAULT_DEFAULT_wxUSE_PM=0
f79bd02d 1696DEFAULT_DEFAULT_wxUSE_X11=0
10f2d63a 1697
d6a55c4b 1698PROGRAM_EXT=
3a922bb4 1699SO_SUFFIX=so
fe0895cf 1700SAMPLES_RPATH_FLAG=
0f1bc9c2 1701SAMPLES_RPATH_POSTLINK=
d6a55c4b 1702
10f2d63a
VZ
1703case "${host}" in
1704 *-hp-hpux* )
1705 USE_HPUX=1
1706 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1707 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
3a922bb4 1708 SO_SUFFIX=sl
e6cc62c6 1709 cat >>confdefs.h <<\_ACEOF
10f2d63a 1710#define __HPUX__ 1
e6cc62c6 1711_ACEOF
10f2d63a
VZ
1712
1713 ;;
1714 *-*-linux* )
1715 USE_LINUX=1
e6cc62c6 1716 cat >>confdefs.h <<\_ACEOF
10f2d63a 1717#define __LINUX__ 1
e6cc62c6 1718_ACEOF
10f2d63a
VZ
1719
1720 TMP=`uname -m`
1721 if test "x$TMP" = "xalpha"; then
1722 USE_ALPHA=1
e6cc62c6 1723 cat >>confdefs.h <<\_ACEOF
10f2d63a 1724#define __ALPHA__ 1
e6cc62c6 1725_ACEOF
fe0895cf
VS
1726
1727 fi
1728 DEFAULT_DEFAULT_wxUSE_GTK=1
1729 ;;
1730 *-*-gnu* )
1731 USE_GNU=1
e6cc62c6 1732 cat >>confdefs.h <<\_ACEOF
fe0895cf 1733#define __GNU__ 1
e6cc62c6 1734_ACEOF
fe0895cf
VS
1735
1736 TMP=`uname -m`
1737 if test "x$TMP" = "xalpha"; then
1738 USE_ALPHA=1
e6cc62c6 1739 cat >>confdefs.h <<\_ACEOF
fe0895cf 1740#define __ALPHA__ 1
e6cc62c6 1741_ACEOF
10f2d63a
VZ
1742
1743 fi
1744 DEFAULT_DEFAULT_wxUSE_GTK=1
1745 ;;
1746 *-*-irix5* | *-*-irix6* )
1747 USE_SGI=1
1748 USE_SVR4=1
e6cc62c6 1749 cat >>confdefs.h <<\_ACEOF
10f2d63a 1750#define __SGI__ 1
e6cc62c6 1751_ACEOF
10f2d63a 1752
e6cc62c6 1753 cat >>confdefs.h <<\_ACEOF
10f2d63a 1754#define __SVR4__ 1
e6cc62c6 1755_ACEOF
10f2d63a
VZ
1756
1757 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1758 ;;
1759 *-*-solaris2* )
1760 USE_SUN=1
1761 USE_SOLARIS=1
1762 USE_SVR4=1
e6cc62c6 1763 cat >>confdefs.h <<\_ACEOF
10f2d63a 1764#define __SUN__ 1
e6cc62c6 1765_ACEOF
10f2d63a 1766
e6cc62c6 1767 cat >>confdefs.h <<\_ACEOF
10f2d63a 1768#define __SOLARIS__ 1
e6cc62c6 1769_ACEOF
10f2d63a 1770
e6cc62c6 1771 cat >>confdefs.h <<\_ACEOF
10f2d63a 1772#define __SVR4__ 1
e6cc62c6 1773_ACEOF
10f2d63a
VZ
1774
1775 DEFAULT_DEFAULT_wxUSE_MOTIF=1
ab9b9eab 1776 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1777 ;;
1778 *-*-sunos4* )
1779 USE_SUN=1
1780 USE_SUNOS=1
1781 USE_BSD=1
e6cc62c6 1782 cat >>confdefs.h <<\_ACEOF
10f2d63a 1783#define __SUN__ 1
e6cc62c6 1784_ACEOF
10f2d63a 1785
e6cc62c6 1786 cat >>confdefs.h <<\_ACEOF
10f2d63a 1787#define __SUNOS__ 1
e6cc62c6 1788_ACEOF
10f2d63a 1789
e6cc62c6 1790 cat >>confdefs.h <<\_ACEOF
10f2d63a 1791#define __BSD__ 1
e6cc62c6 1792_ACEOF
10f2d63a
VZ
1793
1794 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1795 ;;
f6bcfd97 1796 *-*-freebsd*)
10f2d63a
VZ
1797 USE_BSD=1
1798 USE_FREEBSD=1
e6cc62c6 1799 cat >>confdefs.h <<\_ACEOF
10f2d63a 1800#define __FREEBSD__ 1
e6cc62c6 1801_ACEOF
10f2d63a 1802
e6cc62c6 1803 cat >>confdefs.h <<\_ACEOF
10f2d63a 1804#define __BSD__ 1
e6cc62c6 1805_ACEOF
95c8801c
VS
1806
1807 DEFAULT_DEFAULT_wxUSE_GTK=1
1808 ;;
1809 *-*-openbsd*)
1810 USE_BSD=1
1811 USE_OPENBSD=1
e6cc62c6 1812 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1813#define __OPENBSD__ 1
e6cc62c6 1814_ACEOF
95c8801c 1815
e6cc62c6 1816 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1817#define __BSD__ 1
e6cc62c6 1818_ACEOF
f6bcfd97
BP
1819
1820 DEFAULT_DEFAULT_wxUSE_GTK=1
1821 ;;
1822 *-*-netbsd*)
1823 USE_BSD=1
1824 USE_NETBSD=1
e6cc62c6 1825 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1826#define __NETBSD__ 1
e6cc62c6 1827_ACEOF
f6bcfd97 1828
e6cc62c6 1829 cat >>confdefs.h <<\_ACEOF
2b5f62a0 1830#define __BSD__ 1
e6cc62c6 1831_ACEOF
10f2d63a
VZ
1832
1833 DEFAULT_DEFAULT_wxUSE_GTK=1
1834 ;;
1835 *-*-osf* )
1836 USE_ALPHA=1
1837 USE_OSF=1
e6cc62c6 1838 cat >>confdefs.h <<\_ACEOF
10f2d63a 1839#define __ALPHA__ 1
e6cc62c6 1840_ACEOF
10f2d63a 1841
e6cc62c6 1842 cat >>confdefs.h <<\_ACEOF
10f2d63a 1843#define __OSF__ 1
e6cc62c6 1844_ACEOF
10f2d63a
VZ
1845
1846 DEFAULT_DEFAULT_wxUSE_MOTIF=1
f6bcfd97 1847 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
10f2d63a
VZ
1848 ;;
1849 *-*-dgux5* )
1850 USE_ALPHA=1
1851 USE_SVR4=1
e6cc62c6 1852 cat >>confdefs.h <<\_ACEOF
10f2d63a 1853#define __ALPHA__ 1
e6cc62c6 1854_ACEOF
10f2d63a 1855
e6cc62c6 1856 cat >>confdefs.h <<\_ACEOF
10f2d63a 1857#define __SVR4__ 1
e6cc62c6 1858_ACEOF
10f2d63a
VZ
1859
1860 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1861 ;;
1862 *-*-sysv5* )
1863 USE_SYSV=1
1864 USE_SVR4=1
e6cc62c6 1865 cat >>confdefs.h <<\_ACEOF
10f2d63a 1866#define __SYSV__ 1
e6cc62c6 1867_ACEOF
10f2d63a 1868
e6cc62c6 1869 cat >>confdefs.h <<\_ACEOF
10f2d63a 1870#define __SVR4__ 1
e6cc62c6 1871_ACEOF
10f2d63a
VZ
1872
1873 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1874 ;;
1875 *-*-aix* )
1876 USE_AIX=1
1877 USE_SYSV=1
1878 USE_SVR4=1
2b5f62a0 1879 SO_SUFFIX=a
e6cc62c6 1880 cat >>confdefs.h <<\_ACEOF
10f2d63a 1881#define __AIX__ 1
e6cc62c6 1882_ACEOF
10f2d63a 1883
e6cc62c6 1884 cat >>confdefs.h <<\_ACEOF
10f2d63a 1885#define __SYSV__ 1
e6cc62c6 1886_ACEOF
10f2d63a 1887
e6cc62c6 1888 cat >>confdefs.h <<\_ACEOF
10f2d63a 1889#define __SVR4__ 1
e6cc62c6 1890_ACEOF
10f2d63a
VZ
1891
1892 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1893 ;;
1894
89e3b3e4
VZ
1895 *-*-*UnixWare*)
1896 USE_SYSV=1
1897 USE_SVR4=1
1898 USE_UNIXWARE=1
e6cc62c6 1899 cat >>confdefs.h <<\_ACEOF
89e3b3e4 1900#define __UNIXWARE__ 1
e6cc62c6 1901_ACEOF
89e3b3e4
VZ
1902
1903 ;;
1904
1c8183e2 1905 *-*-cygwin* | *-*-mingw32* )
17234b26 1906 SO_SUFFIX=dll
cf27ef00 1907 PROGRAM_EXT=".exe"
7b7a7637 1908 RESCOMP=windres
10f2d63a
VZ
1909 DEFAULT_DEFAULT_wxUSE_MSW=1
1910 ;;
1911
f9bc1684
VS
1912 *-pc-msdosdjgpp )
1913 USE_UNIX=0
1914 USE_DOS=1
e6cc62c6 1915 cat >>confdefs.h <<\_ACEOF
f9bc1684 1916#define __DOS__ 1
e6cc62c6 1917_ACEOF
f9bc1684
VS
1918
1919 PROGRAM_EXT=".exe"
1920 DEFAULT_DEFAULT_wxUSE_MGL=1
24f5e003 1921 LIBS="$LIBS -lstdc++"
f9bc1684
VS
1922 ;;
1923
6fa882bd 1924 *-pc-os2_emx | *-pc-os2-emx )
e6cc62c6 1925 cat >>confdefs.h <<\_ACEOF
10f2d63a 1926#define __EMX__ 1
e6cc62c6 1927_ACEOF
10f2d63a 1928
73d617c9 1929 USE_OS2=1
7015ef3a
VZ
1930 cat >>confdefs.h <<\_ACEOF
1931#define __OS2__ 1
1932_ACEOF
1933
cf27ef00 1934 PROGRAM_EXT=".exe"
e07802fc 1935 DEFAULT_DEFAULT_wxUSE_PM=1
eb69fda5 1936 CXX=gcc
73d617c9 1937 LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals"
d5fc095c
VS
1938 ac_executable_extensions=".exe"
1939 export ac_executable_extensions
1940 ac_save_IFS="$IFS"
e46d2a18 1941 IFS='\\'
d5fc095c
VS
1942 ac_TEMP_PATH=
1943 for ac_dir in $PATH; do
1944 IFS=$ac_save_IFS
1945 if test -z "$ac_TEMP_PATH"; then
1946 ac_TEMP_PATH="$ac_dir"
1947 else
1948 ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
1949 fi
1950 done
1951 export PATH="$ac_TEMP_PATH"
1952 unset ac_TEMP_PATH
10f2d63a
VZ
1953 ;;
1954
d08b457b
GD
1955 powerpc-*-darwin* )
1956 USE_BSD=1
f11bdd03 1957 USE_DARWIN=1
3a922bb4 1958 SO_SUFFIX=dylib
e6cc62c6 1959 cat >>confdefs.h <<\_ACEOF
f11bdd03 1960#define __BSD__ 1
e6cc62c6 1961_ACEOF
b4085ce6 1962
e6cc62c6 1963 cat >>confdefs.h <<\_ACEOF
f11bdd03 1964#define __DARWIN__ 1
e6cc62c6 1965_ACEOF
d08b457b 1966
e6cc62c6 1967 cat >>confdefs.h <<\_ACEOF
d08b457b 1968#define __POWERPC__ 1
e6cc62c6 1969_ACEOF
82d43113 1970
e6cc62c6 1971 cat >>confdefs.h <<\_ACEOF
82d43113 1972#define TARGET_CARBON 1
e6cc62c6 1973_ACEOF
b4085ce6
GD
1974
1975 DEFAULT_DEFAULT_wxUSE_MAC=1
1976 ;;
1977
b12915c1
VZ
1978 *-*-beos* )
1979 USE_BEOS=1
e6cc62c6 1980 cat >>confdefs.h <<\_ACEOF
b12915c1 1981#define __BEOS__ 1
e6cc62c6 1982_ACEOF
b12915c1
VZ
1983
1984 ;;
1985
10f2d63a 1986 *)
e6cc62c6
VS
1987 { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5
1988echo "$as_me: error: unknown system type ${host}." >&2;}
1989 { (exit 1); exit 1; }; }
10f2d63a
VZ
1990esac
1991
8284b0c5
MB
1992
1993
1994
1995 wx_arg_cache_file="configarg.cache"
1996 echo "loading argument cache $wx_arg_cache_file"
10f2d63a
VZ
1997 rm -f ${wx_arg_cache_file}.tmp
1998 touch ${wx_arg_cache_file}.tmp
1999 touch ${wx_arg_cache_file}
e6cc62c6 2000
10f2d63a
VZ
2001
2002DEBUG_CONFIGURE=0
2003if test $DEBUG_CONFIGURE = 1; then
1e6feb95 2004 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2005 DEFAULT_wxUSE_STL=no
1e6feb95 2006
d8356fa3
VZ
2007 DEFAULT_wxUSE_NANOX=no
2008
10f2d63a
VZ
2009 DEFAULT_wxUSE_THREADS=yes
2010
2011 DEFAULT_wxUSE_SHARED=yes
1e6feb95 2012 DEFAULT_wxUSE_OPTIMISE=no
10f2d63a
VZ
2013 DEFAULT_wxUSE_PROFILE=no
2014 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2015 DEFAULT_wxUSE_NO_RTTI=no
2016 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2017 DEFAULT_wxUSE_PERMISSIVE=no
2018 DEFAULT_wxUSE_DEBUG_FLAG=yes
2019 DEFAULT_wxUSE_DEBUG_INFO=yes
2020 DEFAULT_wxUSE_DEBUG_GDB=yes
2021 DEFAULT_wxUSE_MEM_TRACING=no
2022 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2023 DEFAULT_wxUSE_DMALLOC=no
2024 DEFAULT_wxUSE_APPLE_IEEE=no
2025
e46d2a18 2026 DEFAULT_wxUSE_EXCEPTIONS=no
10f2d63a 2027 DEFAULT_wxUSE_LOG=yes
1e6feb95
VZ
2028 DEFAULT_wxUSE_LOGWINDOW=no
2029 DEFAULT_wxUSE_LOGGUI=no
69d27ff7 2030 DEFAULT_wxUSE_LOGDIALOG=no
10f2d63a
VZ
2031
2032 DEFAULT_wxUSE_GUI=yes
1e6feb95 2033 DEFAULT_wxUSE_CONTROLS=no
10f2d63a 2034
3e44f09d 2035 DEFAULT_wxUSE_REGEX=no
672abd7a
VS
2036 DEFAULT_wxUSE_XML=no
2037 DEFAULT_wxUSE_EXPAT=no
10f2d63a
VZ
2038 DEFAULT_wxUSE_ZLIB=no
2039 DEFAULT_wxUSE_LIBPNG=no
2040 DEFAULT_wxUSE_LIBJPEG=no
c7a2bf27 2041 DEFAULT_wxUSE_LIBTIFF=no
89fe663f 2042 DEFAULT_wxUSE_LIBXPM=no
10f2d63a 2043 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2044 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2045
eb4efbdc 2046 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
4f3c5f06 2047 DEFAULT_wxUSE_SNGLINST_CHECKER=no
10f2d63a 2048 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2049 DEFAULT_wxUSE_CMDLINE_PARSER=no
2050 DEFAULT_wxUSE_DATETIME=no
1e6feb95
VZ
2051 DEFAULT_wxUSE_TIMER=no
2052 DEFAULT_wxUSE_STOPWATCH=no
10f2d63a 2053 DEFAULT_wxUSE_FILE=no
1e6feb95 2054 DEFAULT_wxUSE_FFILE=no
a3a584a7 2055 DEFAULT_wxUSE_TEXTBUFFER=no
10f2d63a 2056 DEFAULT_wxUSE_TEXTFILE=no
10f2d63a
VZ
2057 DEFAULT_wxUSE_WAVE=no
2058 DEFAULT_wxUSE_INTL=no
2059 DEFAULT_wxUSE_CONFIG=no
1e6feb95 2060 DEFAULT_wxUSE_FONTMAP=no
10f2d63a
VZ
2061 DEFAULT_wxUSE_STREAMS=no
2062 DEFAULT_wxUSE_SOCKETS=no
3bce6687
JS
2063 DEFAULT_wxUSE_OLE=no
2064 DEFAULT_wxUSE_DATAOBJ=no
10f2d63a 2065 DEFAULT_wxUSE_DIALUP_MANAGER=no
10f2d63a 2066 DEFAULT_wxUSE_JOYSTICK=no
6bff71f8 2067 DEFAULT_wxUSE_DYNLIB_CLASS=no
0b9ab0bd 2068 DEFAULT_wxUSE_DYNAMIC_LOADER=no
10f2d63a 2069 DEFAULT_wxUSE_LONGLONG=no
e8f65ba6 2070 DEFAULT_wxUSE_GEOMETRY=no
10f2d63a
VZ
2071
2072 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
2073 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
2074 DEFAULT_wxUSE_POSTSCRIPT=no
2075
10f2d63a
VZ
2076 DEFAULT_wxUSE_CLIPBOARD=no
2077 DEFAULT_wxUSE_TOOLTIPS=no
2078 DEFAULT_wxUSE_DRAG_AND_DROP=no
24fd6d87 2079 DEFAULT_wxUSE_DRAGIMAGE=no
10f2d63a
VZ
2080 DEFAULT_wxUSE_SPLINES=no
2081
2082 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
2083 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
2084 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
2085
10f2d63a
VZ
2086 DEFAULT_wxUSE_RESOURCES=no
2087 DEFAULT_wxUSE_CONSTRAINTS=no
2088 DEFAULT_wxUSE_IPC=no
2089 DEFAULT_wxUSE_HELP=no
29fd3c0c 2090 DEFAULT_wxUSE_MS_HTML_HELP=no
3379ed37 2091 DEFAULT_wxUSE_WXHTML_HELP=no
24176f2c 2092 DEFAULT_wxUSE_TREELAYOUT=no
10f2d63a 2093 DEFAULT_wxUSE_METAFILE=no
1e6feb95 2094 DEFAULT_wxUSE_MIMETYPE=no
4cdb0ab0
VS
2095 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
2096 DEFAULT_wxUSE_PROTOCOL=no
2097 DEFAULT_wxUSE_PROTOCOL_HTTP=no
2098 DEFAULT_wxUSE_PROTOCOL_FTP=no
2099 DEFAULT_wxUSE_PROTOCOL_FILE=no
2100 DEFAULT_wxUSE_URL=no
3bd8fb5f 2101
10f2d63a 2102 DEFAULT_wxUSE_COMMONDLGS=no
1e6feb95
VZ
2103 DEFAULT_wxUSE_CHOICEDLG=no
2104 DEFAULT_wxUSE_COLOURDLG=no
10f2d63a 2105 DEFAULT_wxUSE_DIRDLG=no
1e6feb95 2106 DEFAULT_wxUSE_FILEDLG=no
8db37e06 2107 DEFAULT_wxUSE_FINDREPLDLG=no
1e6feb95
VZ
2108 DEFAULT_wxUSE_FONTDLG=no
2109 DEFAULT_wxUSE_MSGDLG=no
2110 DEFAULT_wxUSE_NUMBERDLG=no
10f2d63a 2111 DEFAULT_wxUSE_TEXTDLG=no
cbca9943 2112 DEFAULT_wxUSE_SPLASH=no
10f2d63a
VZ
2113 DEFAULT_wxUSE_STARTUP_TIPS=no
2114 DEFAULT_wxUSE_PROGRESSDLG=no
b1f5d087
VZ
2115 DEFAULT_wxUSE_WIZARDDLG=no
2116
1e6feb95 2117 DEFAULT_wxUSE_MENUS=no
10f2d63a
VZ
2118 DEFAULT_wxUSE_MINIFRAME=no
2119 DEFAULT_wxUSE_HTML=no
24528b0c 2120 DEFAULT_wxUSE_FILESYSTEM=no
10f2d63a
VZ
2121 DEFAULT_wxUSE_FS_INET=no
2122 DEFAULT_wxUSE_FS_ZIP=no
2123 DEFAULT_wxUSE_BUSYINFO=no
2124 DEFAULT_wxUSE_ZIPSTREAM=no
7015ef3a 2125 DEFAULT_wxUSE_GZSTREAM=no
1e6feb95 2126 DEFAULT_wxUSE_VALIDATORS=no
10f2d63a
VZ
2127
2128 DEFAULT_wxUSE_ACCEL=no
1e6feb95 2129 DEFAULT_wxUSE_BUTTON=no
10f2d63a 2130 DEFAULT_wxUSE_BMPBUTTON=no
1e6feb95
VZ
2131 DEFAULT_wxUSE_CALCTRL=no
2132 DEFAULT_wxUSE_CARET=no
10f2d63a
VZ
2133 DEFAULT_wxUSE_CHECKBOX=no
2134 DEFAULT_wxUSE_CHECKLST=no
1e6feb95 2135 DEFAULT_wxUSE_CHOICE=no
10f2d63a 2136 DEFAULT_wxUSE_COMBOBOX=no
da494b40 2137 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2138 DEFAULT_wxUSE_GAUGE=no
2139 DEFAULT_wxUSE_GRID=no
10f2d63a 2140 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 2141 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
2142 DEFAULT_wxUSE_LISTBOX=no
2143 DEFAULT_wxUSE_LISTCTRL=no
2144 DEFAULT_wxUSE_NOTEBOOK=no
2145 DEFAULT_wxUSE_RADIOBOX=no
2146 DEFAULT_wxUSE_RADIOBTN=no
2147 DEFAULT_wxUSE_SASH=no
2148 DEFAULT_wxUSE_SCROLLBAR=no
2149 DEFAULT_wxUSE_SLIDER=no
2150 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 2151 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
2152 DEFAULT_wxUSE_SPLITTER=no
2153 DEFAULT_wxUSE_STATBMP=no
2154 DEFAULT_wxUSE_STATBOX=no
2155 DEFAULT_wxUSE_STATLINE=no
1e6feb95 2156 DEFAULT_wxUSE_STATTEXT=no
10f2d63a
VZ
2157 DEFAULT_wxUSE_STATUSBAR=yes
2158 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2159 DEFAULT_wxUSE_TEXTCTRL=no
1db8dc4a 2160 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 2161 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
2162 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
2163 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a 2164 DEFAULT_wxUSE_TREECTRL=no
9f41d601 2165 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 2166 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
2167
2168 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2169 DEFAULT_wxUSE_UNICODE_MSLU=no
10f2d63a
VZ
2170 DEFAULT_wxUSE_WCSRTOMBS=no
2171
edae8572 2172 DEFAULT_wxUSE_PALETTE=no
0046ff7c 2173 DEFAULT_wxUSE_IMAGE=no
10f2d63a
VZ
2174 DEFAULT_wxUSE_GIF=no
2175 DEFAULT_wxUSE_PCX=no
2176 DEFAULT_wxUSE_PNM=no
4b6b4dfc 2177 DEFAULT_wxUSE_IFF=no
0046ff7c 2178 DEFAULT_wxUSE_XPM=no
658974ae 2179 DEFAULT_wxUSE_ICO_CUR=no
7bb2947d 2180 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2181
e9e0dc15 2182 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2183 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a 2184else
1e6feb95 2185 DEFAULT_wxUSE_UNIVERSAL=no
df5168c4 2186 DEFAULT_wxUSE_STL=no
1e6feb95 2187
d8356fa3
VZ
2188 DEFAULT_wxUSE_NANOX=no
2189
10f2d63a
VZ
2190 DEFAULT_wxUSE_THREADS=yes
2191
2192 DEFAULT_wxUSE_SHARED=yes
2193 DEFAULT_wxUSE_OPTIMISE=yes
2194 DEFAULT_wxUSE_PROFILE=no
2195 DEFAULT_wxUSE_NO_DEPS=no
8f4a9a10
RR
2196 DEFAULT_wxUSE_NO_RTTI=no
2197 DEFAULT_wxUSE_NO_EXCEPTIONS=no
10f2d63a
VZ
2198 DEFAULT_wxUSE_PERMISSIVE=no
2199 DEFAULT_wxUSE_DEBUG_FLAG=no
2200 DEFAULT_wxUSE_DEBUG_INFO=no
2201 DEFAULT_wxUSE_DEBUG_GDB=no
2202 DEFAULT_wxUSE_MEM_TRACING=no
2203 DEFAULT_wxUSE_DEBUG_CONTEXT=no
2204 DEFAULT_wxUSE_DMALLOC=no
2205 DEFAULT_wxUSE_APPLE_IEEE=yes
2206
e46d2a18 2207 DEFAULT_wxUSE_EXCEPTIONS=yes
10f2d63a 2208 DEFAULT_wxUSE_LOG=yes
d73be714
VZ
2209 DEFAULT_wxUSE_LOGWINDOW=yes
2210 DEFAULT_wxUSE_LOGGUI=yes
69d27ff7 2211 DEFAULT_wxUSE_LOGDIALOG=yes
10f2d63a
VZ
2212
2213 DEFAULT_wxUSE_GUI=yes
2214
aa2d9ecc 2215 DEFAULT_wxUSE_REGEX=yes
672abd7a 2216 DEFAULT_wxUSE_XML=yes
aa2d9ecc
VZ
2217 DEFAULT_wxUSE_EXPAT=yes
2218 DEFAULT_wxUSE_ZLIB=yes
2219 DEFAULT_wxUSE_LIBPNG=yes
2220 DEFAULT_wxUSE_LIBJPEG=yes
2221 DEFAULT_wxUSE_LIBTIFF=yes
2222 DEFAULT_wxUSE_LIBXPM=yes
3527f29c 2223 DEFAULT_wxUSE_LIBMSPACK=yes
16b52fa1 2224 DEFAULT_wxUSE_ODBC=no
bdad4e7e 2225 DEFAULT_wxUSE_OPENGL=no
10f2d63a 2226
eb4efbdc 2227 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
4f3c5f06 2228 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
10f2d63a 2229 DEFAULT_wxUSE_STD_IOSTREAM=no
1e6feb95
VZ
2230 DEFAULT_wxUSE_CMDLINE_PARSER=yes
2231 DEFAULT_wxUSE_DATETIME=yes
1e6feb95
VZ
2232 DEFAULT_wxUSE_TIMER=yes
2233 DEFAULT_wxUSE_STOPWATCH=yes
10f2d63a 2234 DEFAULT_wxUSE_FILE=yes
1e6feb95 2235 DEFAULT_wxUSE_FFILE=yes
a3a584a7 2236 DEFAULT_wxUSE_TEXTBUFFER=yes
10f2d63a 2237 DEFAULT_wxUSE_TEXTFILE=yes
10f2d63a
VZ
2238 DEFAULT_wxUSE_WAVE=no
2239 DEFAULT_wxUSE_INTL=yes
2240 DEFAULT_wxUSE_CONFIG=yes
1e6feb95 2241 DEFAULT_wxUSE_FONTMAP=yes
10f2d63a
VZ
2242 DEFAULT_wxUSE_STREAMS=yes
2243 DEFAULT_wxUSE_SOCKETS=yes
3bce6687
JS
2244 DEFAULT_wxUSE_OLE=yes
2245 DEFAULT_wxUSE_DATAOBJ=yes
10f2d63a 2246 DEFAULT_wxUSE_DIALUP_MANAGER=yes
10f2d63a 2247 DEFAULT_wxUSE_JOYSTICK=yes
6bff71f8 2248 DEFAULT_wxUSE_DYNLIB_CLASS=yes
9337b578 2249 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
b685cd9b 2250 DEFAULT_wxUSE_LONGLONG=yes
e8f65ba6 2251 DEFAULT_wxUSE_GEOMETRY=yes
10f2d63a
VZ
2252
2253 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
2254 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
2255 DEFAULT_wxUSE_POSTSCRIPT=yes
2256
10f2d63a
VZ
2257 DEFAULT_wxUSE_CLIPBOARD=yes
2258 DEFAULT_wxUSE_TOOLTIPS=yes
2259 DEFAULT_wxUSE_DRAG_AND_DROP=yes
24fd6d87 2260 DEFAULT_wxUSE_DRAGIMAGE=yes
10f2d63a
VZ
2261 DEFAULT_wxUSE_SPLINES=yes
2262
2263 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
2264 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
2265 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
2266
2b5f62a0 2267 DEFAULT_wxUSE_RESOURCES=no
10f2d63a
VZ
2268 DEFAULT_wxUSE_CONSTRAINTS=yes
2269 DEFAULT_wxUSE_IPC=yes
2270 DEFAULT_wxUSE_HELP=yes
29fd3c0c 2271 DEFAULT_wxUSE_MS_HTML_HELP=yes
3379ed37 2272 DEFAULT_wxUSE_WXHTML_HELP=yes
24176f2c 2273 DEFAULT_wxUSE_TREELAYOUT=yes
10f2d63a 2274 DEFAULT_wxUSE_METAFILE=yes
1e6feb95 2275 DEFAULT_wxUSE_MIMETYPE=yes
3e44f09d 2276 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
4cdb0ab0
VS
2277 DEFAULT_wxUSE_PROTOCOL=yes
2278 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
2279 DEFAULT_wxUSE_PROTOCOL_FTP=yes
2280 DEFAULT_wxUSE_PROTOCOL_FILE=yes
2281 DEFAULT_wxUSE_URL=yes
10f2d63a
VZ
2282
2283 DEFAULT_wxUSE_COMMONDLGS=yes
1e6feb95
VZ
2284 DEFAULT_wxUSE_CHOICEDLG=yes
2285 DEFAULT_wxUSE_COLOURDLG=yes
10f2d63a 2286 DEFAULT_wxUSE_DIRDLG=yes
1e6feb95 2287 DEFAULT_wxUSE_FILEDLG=yes
8db37e06 2288 DEFAULT_wxUSE_FINDREPLDLG=yes
1e6feb95
VZ
2289 DEFAULT_wxUSE_FONTDLG=yes
2290 DEFAULT_wxUSE_MSGDLG=yes
2291 DEFAULT_wxUSE_NUMBERDLG=yes
10f2d63a 2292 DEFAULT_wxUSE_TEXTDLG=yes
cbca9943 2293 DEFAULT_wxUSE_SPLASH=yes
10f2d63a
VZ
2294 DEFAULT_wxUSE_STARTUP_TIPS=yes
2295 DEFAULT_wxUSE_PROGRESSDLG=yes
f33f19dd
VZ
2296 DEFAULT_wxUSE_WIZARDDLG=yes
2297
1e6feb95 2298 DEFAULT_wxUSE_MENUS=yes
10f2d63a
VZ
2299 DEFAULT_wxUSE_MINIFRAME=yes
2300 DEFAULT_wxUSE_HTML=yes
24528b0c 2301 DEFAULT_wxUSE_FILESYSTEM=yes
10f2d63a
VZ
2302 DEFAULT_wxUSE_FS_INET=yes
2303 DEFAULT_wxUSE_FS_ZIP=yes
2304 DEFAULT_wxUSE_BUSYINFO=yes
2305 DEFAULT_wxUSE_ZIPSTREAM=yes
7015ef3a 2306 DEFAULT_wxUSE_GZSTREAM=yes
10f2d63a
VZ
2307 DEFAULT_wxUSE_VALIDATORS=yes
2308
2309 DEFAULT_wxUSE_ACCEL=yes
1e6feb95 2310 DEFAULT_wxUSE_BUTTON=yes
10f2d63a 2311 DEFAULT_wxUSE_BMPBUTTON=yes
1e6feb95
VZ
2312 DEFAULT_wxUSE_CALCTRL=yes
2313 DEFAULT_wxUSE_CARET=yes
10f2d63a
VZ
2314 DEFAULT_wxUSE_CHECKBOX=yes
2315 DEFAULT_wxUSE_CHECKLST=yes
2316 DEFAULT_wxUSE_CHOICE=yes
2317 DEFAULT_wxUSE_COMBOBOX=yes
da494b40 2318 DEFAULT_wxUSE_DISPLAY=no
10f2d63a
VZ
2319 DEFAULT_wxUSE_GAUGE=yes
2320 DEFAULT_wxUSE_GRID=yes
10f2d63a 2321 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 2322 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
2323 DEFAULT_wxUSE_LISTBOX=yes
2324 DEFAULT_wxUSE_LISTCTRL=yes
2325 DEFAULT_wxUSE_NOTEBOOK=yes
2326 DEFAULT_wxUSE_RADIOBOX=yes
2327 DEFAULT_wxUSE_RADIOBTN=yes
2328 DEFAULT_wxUSE_SASH=yes
2329 DEFAULT_wxUSE_SCROLLBAR=yes
2330 DEFAULT_wxUSE_SLIDER=yes
2331 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 2332 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
2333 DEFAULT_wxUSE_SPLITTER=yes
2334 DEFAULT_wxUSE_STATBMP=yes
2335 DEFAULT_wxUSE_STATBOX=yes
2336 DEFAULT_wxUSE_STATLINE=yes
1e6feb95 2337 DEFAULT_wxUSE_STATTEXT=yes
10f2d63a
VZ
2338 DEFAULT_wxUSE_STATUSBAR=yes
2339 DEFAULT_wxUSE_TABDIALOG=no
1e6feb95 2340 DEFAULT_wxUSE_TEXTCTRL=yes
1db8dc4a 2341 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 2342 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
2343 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
2344 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a 2345 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 2346 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 2347 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
2348
2349 DEFAULT_wxUSE_UNICODE=no
a72a4bfa 2350 DEFAULT_wxUSE_UNICODE_MSLU=yes
10f2d63a
VZ
2351 DEFAULT_wxUSE_WCSRTOMBS=no
2352
edae8572 2353 DEFAULT_wxUSE_PALETTE=yes
0046ff7c 2354 DEFAULT_wxUSE_IMAGE=yes
10f2d63a
VZ
2355 DEFAULT_wxUSE_GIF=yes
2356 DEFAULT_wxUSE_PCX=yes
cc0e8480 2357 DEFAULT_wxUSE_IFF=no
10f2d63a 2358 DEFAULT_wxUSE_PNM=yes
0046ff7c 2359 DEFAULT_wxUSE_XPM=yes
658974ae 2360 DEFAULT_wxUSE_ICO_CUR=yes
7bb2947d 2361 DEFAULT_wxUSE_ACCESSIBILITY=no
9747f85d 2362
e9e0dc15 2363 DEFAULT_wxUSE_MONOLITHIC=no
029b47ad 2364 DEFAULT_wxUSE_OFFICIAL_BUILD=no
10f2d63a
VZ
2365fi
2366
8284b0c5
MB
2367
2368
10f2d63a 2369for toolkit in `echo $ALL_TOOLKITS`; do
d74f4b5a
VZ
2370 LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2371 if test "x$LINE" != "x" ; then
10f2d63a
VZ
2372 has_toolkit_in_cache=1
2373 eval "DEFAULT_$LINE"
2374 eval "CACHE_$toolkit=1"
2375 fi
2376done
2377
8284b0c5
MB
2378
2379
5005acfe 2380 enablestring=
e6cc62c6
VS
2381 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2382echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6
10f2d63a
VZ
2383 no_cache=0
2384 # Check whether --enable-gui or --disable-gui was given.
2385if test "${enable_gui+set}" = set; then
2386 enableval="$enable_gui"
e6cc62c6 2387
10f2d63a
VZ
2388 if test "$enableval" = yes; then
2389 ac_cv_use_gui='wxUSE_GUI=yes'
2390 else
2391 ac_cv_use_gui='wxUSE_GUI=no'
2392 fi
e6cc62c6 2393
10f2d63a 2394else
e6cc62c6 2395
10f2d63a
VZ
2396 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
2397 if test "x$LINE" != x ; then
2398 eval "DEFAULT_$LINE"
2399 else
2400 no_cache=1
2401 fi
2402
2403 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
10f2d63a 2404
e6cc62c6 2405fi;
10f2d63a
VZ
2406
2407 eval "$ac_cv_use_gui"
2408 if test "$no_cache" != 1; then
2409 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
2410 fi
2411
2412 if test "$wxUSE_GUI" = yes; then
e6cc62c6
VS
2413 echo "$as_me:$LINENO: result: yes" >&5
2414echo "${ECHO_T}yes" >&6
10f2d63a 2415 else
e6cc62c6
VS
2416 echo "$as_me:$LINENO: result: no" >&5
2417echo "${ECHO_T}no" >&6
10f2d63a 2418 fi
e6cc62c6 2419
10f2d63a 2420
9747f85d
VS
2421 enablestring=
2422 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
2423echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6
2424 no_cache=0
2425 # Check whether --enable-monolithic or --disable-monolithic was given.
2426if test "${enable_monolithic+set}" = set; then
2427 enableval="$enable_monolithic"
2428
2429 if test "$enableval" = yes; then
2430 ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
2431 else
2432 ac_cv_use_monolithic='wxUSE_MONOLITHIC=no'
2433 fi
2434
2435else
2436
2437 LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}`
2438 if test "x$LINE" != x ; then
2439 eval "DEFAULT_$LINE"
2440 else
2441 no_cache=1
2442 fi
2443
2444 ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC
2445
2446fi;
2447
2448 eval "$ac_cv_use_monolithic"
2449 if test "$no_cache" != 1; then
2450 echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp
2451 fi
2452
2453 if test "$wxUSE_MONOLITHIC" = yes; then
2454 echo "$as_me:$LINENO: result: yes" >&5
2455echo "${ECHO_T}yes" >&6
2456 else
2457 echo "$as_me:$LINENO: result: no" >&5
2458echo "${ECHO_T}no" >&6
2459 fi
2460
2461
b12915c1 2462if test "$wxUSE_GUI" = "yes"; then
10f2d63a 2463
8284b0c5 2464
5005acfe 2465 enablestring=
e6cc62c6
VS
2466 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
2467echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6
1e6feb95
VZ
2468 no_cache=0
2469 # Check whether --enable-universal or --disable-universal was given.
2470if test "${enable_universal+set}" = set; then
2471 enableval="$enable_universal"
e6cc62c6 2472
1e6feb95
VZ
2473 if test "$enableval" = yes; then
2474 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
2475 else
2476 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
2477 fi
e6cc62c6 2478
1e6feb95 2479else
e6cc62c6 2480
1e6feb95
VZ
2481 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
2482 if test "x$LINE" != x ; then
2483 eval "DEFAULT_$LINE"
2484 else
2485 no_cache=1
2486 fi
2487
2488 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1e6feb95 2489
e6cc62c6 2490fi;
1e6feb95
VZ
2491
2492 eval "$ac_cv_use_universal"
2493 if test "$no_cache" != 1; then
2494 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
2495 fi
2496
2497 if test "$wxUSE_UNIVERSAL" = yes; then
e6cc62c6
VS
2498 echo "$as_me:$LINENO: result: yes" >&5
2499echo "${ECHO_T}yes" >&6
1e6feb95 2500 else
e6cc62c6
VS
2501 echo "$as_me:$LINENO: result: no" >&5
2502echo "${ECHO_T}no" >&6
1e6feb95 2503 fi
e6cc62c6
VS
2504
2505
10f2d63a
VZ
2506# Check whether --with-gtk or --without-gtk was given.
2507if test "${with_gtk+set}" = set; then
2508 withval="$with_gtk"
2509 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
e6cc62c6 2510fi;
10f2d63a
VZ
2511
2512# Check whether --with-motif or --without-motif was given.
2513if test "${with_motif+set}" = set; then
2514 withval="$with_motif"
2515 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
e6cc62c6 2516fi;
10f2d63a 2517
b4085ce6
GD
2518# Check whether --with-mac or --without-mac was given.
2519if test "${with_mac+set}" = set; then
2520 withval="$with_mac"
2521 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2522fi;
b4085ce6 2523
ac0c4cc3
DE
2524# Check whether --with-cocoa or --without-cocoa was given.
2525if test "${with_cocoa+set}" = set; then
2526 withval="$with_cocoa"
2527 wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1
e6cc62c6 2528fi;
ac0c4cc3 2529
10f2d63a
VZ
2530# Check whether --with-wine or --without-wine was given.
2531if test "${with_wine+set}" = set; then
2532 withval="$with_wine"
89e6bf6d 2533 wxUSE_WINE="$withval" CACHE_WINE=1
e6cc62c6 2534fi;
10f2d63a 2535
77e13408
RL
2536# Check whether --with-msw or --without-msw was given.
2537if test "${with_msw+set}" = set; then
2538 withval="$with_msw"
b4efce5e 2539 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
e6cc62c6 2540fi;
10f2d63a 2541
e07802fc
VZ
2542# Check whether --with-pm or --without-pm was given.
2543if test "${with_pm+set}" = set; then
2544 withval="$with_pm"
2545 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
e6cc62c6 2546fi;
698dcdb6 2547
1e6feb95
VZ
2548# Check whether --with-mgl or --without-mgl was given.
2549if test "${with_mgl+set}" = set; then
2550 withval="$with_mgl"
6c657b52 2551 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
e6cc62c6 2552fi;
1e6feb95 2553
1725144d
RR
2554# Check whether --with-microwin or --without-microwin was given.
2555if test "${with_microwin+set}" = set; then
2556 withval="$with_microwin"
2557 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
e6cc62c6 2558fi;
1725144d 2559
f79bd02d
JS
2560# Check whether --with-x11 or --without-x11 was given.
2561if test "${with_x11+set}" = set; then
2562 withval="$with_x11"
3c011993 2563 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
e6cc62c6 2564fi;
a0b9e27f 2565
5005acfe 2566 enablestring=
e6cc62c6
VS
2567 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
2568echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6
d8356fa3 2569 no_cache=0
ba875e66
VZ
2570 # Check whether --enable-nanox or --disable-nanox was given.
2571if test "${enable_nanox+set}" = set; then
2572 enableval="$enable_nanox"
e6cc62c6 2573
d8356fa3 2574 if test "$enableval" = yes; then
ba875e66 2575 ac_cv_use_nanox='wxUSE_NANOX=yes'
d8356fa3 2576 else
ba875e66 2577 ac_cv_use_nanox='wxUSE_NANOX=no'
d8356fa3 2578 fi
e6cc62c6 2579
d8356fa3 2580else
e6cc62c6 2581
d8356fa3
VZ
2582 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
2583 if test "x$LINE" != x ; then
2584 eval "DEFAULT_$LINE"
2585 else
2586 no_cache=1
2587 fi
2588
ba875e66 2589 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
d8356fa3 2590
e6cc62c6 2591fi;
d8356fa3 2592
ba875e66 2593 eval "$ac_cv_use_nanox"
d8356fa3 2594 if test "$no_cache" != 1; then
ba875e66 2595 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
d8356fa3
VZ
2596 fi
2597
2598 if test "$wxUSE_NANOX" = yes; then
e6cc62c6
VS
2599 echo "$as_me:$LINENO: result: yes" >&5
2600echo "${ECHO_T}yes" >&6
d8356fa3 2601 else
e6cc62c6
VS
2602 echo "$as_me:$LINENO: result: no" >&5
2603echo "${ECHO_T}no" >&6
d8356fa3 2604 fi
e6cc62c6 2605
8284b0c5 2606
d74f4b5a 2607
5005acfe 2608 enablestring=
e6cc62c6
VS
2609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5
2610echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6
d74f4b5a
VZ
2611 no_cache=0
2612 # Check whether --enable-gtk2 or --disable-gtk2 was given.
8168de4c
VZ
2613if test "${enable_gtk2+set}" = set; then
2614 enableval="$enable_gtk2"
e6cc62c6 2615
d74f4b5a
VZ
2616 if test "$enableval" = yes; then
2617 ac_cv_use_gtk2='wxUSE_GTK2=yes'
2618 else
2619 ac_cv_use_gtk2='wxUSE_GTK2=no'
2620 fi
e6cc62c6 2621
10f2d63a 2622else
e6cc62c6 2623
d74f4b5a
VZ
2624 LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
2625 if test "x$LINE" != x ; then
2626 eval "DEFAULT_$LINE"
2627 else
2628 no_cache=1
2629 fi
2630
2631 ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
52127426 2632
e6cc62c6 2633fi;
328a083c 2634
d74f4b5a
VZ
2635 eval "$ac_cv_use_gtk2"
2636 if test "$no_cache" != 1; then
2637 echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
2638 fi
2639
2640 if test "$wxUSE_GTK2" = yes; then
e6cc62c6
VS
2641 echo "$as_me:$LINENO: result: yes" >&5
2642echo "${ECHO_T}yes" >&6
d74f4b5a 2643 else
e6cc62c6
VS
2644 echo "$as_me:$LINENO: result: no" >&5
2645echo "${ECHO_T}no" >&6
d74f4b5a 2646 fi
d74f4b5a 2647
5c6fa7d2 2648
e6cc62c6
VS
2649
2650 echo "$as_me:$LINENO: checking for --with-libpng" >&5
2651echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6
8284b0c5 2652 no_cache=0
e6cc62c6
VS
2653
2654# Check whether --with-libpng or --without-libpng was given.
b12915c1
VZ
2655if test "${with_libpng+set}" = set; then
2656 withval="$with_libpng"
e6cc62c6 2657
10f2d63a 2658 if test "$withval" = yes; then
b12915c1 2659 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
422107f9 2660 elif test "$withval" = no; then
b12915c1 2661 ac_cv_use_libpng='wxUSE_LIBPNG=no'
422107f9
VZ
2662 elif test "$withval" = sys; then
2663 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
4f14bcd8
GD
2664 elif test "$withval" = builtin; then
2665 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
422107f9 2666 else
e6cc62c6
VS
2667 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2668echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2669 { (exit 1); exit 1; }; }
10f2d63a 2670 fi
e6cc62c6 2671
10f2d63a 2672else
e6cc62c6 2673
b12915c1 2674 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
10f2d63a
VZ
2675 if test "x$LINE" != x ; then
2676 eval "DEFAULT_$LINE"
2677 else
2678 no_cache=1
2679 fi
2680
b12915c1 2681 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
10f2d63a 2682
e6cc62c6 2683fi;
10f2d63a 2684
b12915c1 2685 eval "$ac_cv_use_libpng"
10f2d63a 2686 if test "$no_cache" != 1; then
b12915c1 2687 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2688 fi
2689
b12915c1 2690 if test "$wxUSE_LIBPNG" = yes; then
e6cc62c6
VS
2691 echo "$as_me:$LINENO: result: yes" >&5
2692echo "${ECHO_T}yes" >&6
422107f9 2693 elif test "$wxUSE_LIBPNG" = no; then
e6cc62c6
VS
2694 echo "$as_me:$LINENO: result: no" >&5
2695echo "${ECHO_T}no" >&6
422107f9 2696 elif test "$wxUSE_LIBPNG" = sys; then
e6cc62c6
VS
2697 echo "$as_me:$LINENO: result: system version" >&5
2698echo "${ECHO_T}system version" >&6
4f14bcd8 2699 elif test "$wxUSE_LIBPNG" = builtin; then
e6cc62c6
VS
2700 echo "$as_me:$LINENO: result: builtin version" >&5
2701echo "${ECHO_T}builtin version" >&6
422107f9 2702 else
e6cc62c6
VS
2703 { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
2704echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
2705 { (exit 1); exit 1; }; }
10f2d63a 2706 fi
10f2d63a 2707
e6cc62c6
VS
2708
2709 echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
2710echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6
10f2d63a 2711 no_cache=0
e6cc62c6
VS
2712
2713# Check whether --with-libjpeg or --without-libjpeg was given.
b12915c1
VZ
2714if test "${with_libjpeg+set}" = set; then
2715 withval="$with_libjpeg"
e6cc62c6 2716
10f2d63a 2717 if test "$withval" = yes; then
b12915c1 2718 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
422107f9 2719 elif test "$withval" = no; then
b12915c1 2720 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
422107f9
VZ
2721 elif test "$withval" = sys; then
2722 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
4f14bcd8
GD
2723 elif test "$withval" = builtin; then
2724 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
422107f9 2725 else
e6cc62c6
VS
2726 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2727echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2728 { (exit 1); exit 1; }; }
10f2d63a 2729 fi
e6cc62c6 2730
10f2d63a 2731else
e6cc62c6 2732
b12915c1 2733 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
10f2d63a
VZ
2734 if test "x$LINE" != x ; then
2735 eval "DEFAULT_$LINE"
2736 else
2737 no_cache=1
2738 fi
2739
b12915c1 2740 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
10f2d63a 2741
e6cc62c6 2742fi;
10f2d63a 2743
b12915c1 2744 eval "$ac_cv_use_libjpeg"
10f2d63a 2745 if test "$no_cache" != 1; then
b12915c1 2746 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2747 fi
2748
b12915c1 2749 if test "$wxUSE_LIBJPEG" = yes; then
e6cc62c6
VS
2750 echo "$as_me:$LINENO: result: yes" >&5
2751echo "${ECHO_T}yes" >&6
422107f9 2752 elif test "$wxUSE_LIBJPEG" = no; then
e6cc62c6
VS
2753 echo "$as_me:$LINENO: result: no" >&5
2754echo "${ECHO_T}no" >&6
422107f9 2755 elif test "$wxUSE_LIBJPEG" = sys; then
e6cc62c6
VS
2756 echo "$as_me:$LINENO: result: system version" >&5
2757echo "${ECHO_T}system version" >&6
4f14bcd8 2758 elif test "$wxUSE_LIBJPEG" = builtin; then
e6cc62c6
VS
2759 echo "$as_me:$LINENO: result: builtin version" >&5
2760echo "${ECHO_T}builtin version" >&6
422107f9 2761 else
e6cc62c6
VS
2762 { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
2763echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
2764 { (exit 1); exit 1; }; }
10f2d63a 2765 fi
10f2d63a 2766
e6cc62c6
VS
2767
2768 echo "$as_me:$LINENO: checking for --with-libtiff" >&5
2769echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6
10f2d63a 2770 no_cache=0
e6cc62c6
VS
2771
2772# Check whether --with-libtiff or --without-libtiff was given.
b12915c1
VZ
2773if test "${with_libtiff+set}" = set; then
2774 withval="$with_libtiff"
e6cc62c6 2775
10f2d63a 2776 if test "$withval" = yes; then
b12915c1 2777 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
0dcf9893 2778 elif test "$withval" = no; then
b12915c1 2779 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
0dcf9893
VZ
2780 elif test "$withval" = sys; then
2781 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
4f14bcd8
GD
2782 elif test "$withval" = builtin; then
2783 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
0dcf9893 2784 else
e6cc62c6
VS
2785 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2786echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2787 { (exit 1); exit 1; }; }
10f2d63a 2788 fi
e6cc62c6 2789
10f2d63a 2790else
e6cc62c6 2791
b12915c1 2792 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
10f2d63a
VZ
2793 if test "x$LINE" != x ; then
2794 eval "DEFAULT_$LINE"
2795 else
2796 no_cache=1
2797 fi
2798
b12915c1 2799 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
10f2d63a 2800
e6cc62c6 2801fi;
10f2d63a 2802
b12915c1 2803 eval "$ac_cv_use_libtiff"
10f2d63a 2804 if test "$no_cache" != 1; then
b12915c1 2805 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2806 fi
2807
b12915c1 2808 if test "$wxUSE_LIBTIFF" = yes; then
e6cc62c6
VS
2809 echo "$as_me:$LINENO: result: yes" >&5
2810echo "${ECHO_T}yes" >&6
0dcf9893 2811 elif test "$wxUSE_LIBTIFF" = no; then
e6cc62c6
VS
2812 echo "$as_me:$LINENO: result: no" >&5
2813echo "${ECHO_T}no" >&6
0dcf9893 2814 elif test "$wxUSE_LIBTIFF" = sys; then
e6cc62c6
VS
2815 echo "$as_me:$LINENO: result: system version" >&5
2816echo "${ECHO_T}system version" >&6
4f14bcd8 2817 elif test "$wxUSE_LIBTIFF" = builtin; then
e6cc62c6
VS
2818 echo "$as_me:$LINENO: result: builtin version" >&5
2819echo "${ECHO_T}builtin version" >&6
0dcf9893 2820 else
e6cc62c6
VS
2821 { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
2822echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
2823 { (exit 1); exit 1; }; }
10f2d63a 2824 fi
10f2d63a 2825
e6cc62c6 2826
89fe663f
VZ
2827 echo "$as_me:$LINENO: checking for --with-libxpm" >&5
2828echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6
2829 no_cache=0
2830
2831# Check whether --with-libxpm or --without-libxpm was given.
2832if test "${with_libxpm+set}" = set; then
2833 withval="$with_libxpm"
2834
2835 if test "$withval" = yes; then
2836 ac_cv_use_libxpm='wxUSE_LIBXPM=yes'
2837 elif test "$withval" = no; then
2838 ac_cv_use_libxpm='wxUSE_LIBXPM=no'
2839 elif test "$withval" = sys; then
2840 ac_cv_use_libxpm='wxUSE_LIBXPM=sys'
2841 elif test "$withval" = builtin; then
2842 ac_cv_use_libxpm='wxUSE_LIBXPM=builtin'
2843 else
2844 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2845echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2846 { (exit 1); exit 1; }; }
2847 fi
2848
2849else
2850
2851 LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}`
2852 if test "x$LINE" != x ; then
2853 eval "DEFAULT_$LINE"
2854 else
2855 no_cache=1
2856 fi
2857
2858 ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM
2859
2860fi;
2861
2862 eval "$ac_cv_use_libxpm"
2863 if test "$no_cache" != 1; then
2864 echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp
2865 fi
2866
2867 if test "$wxUSE_LIBXPM" = yes; then
2868 echo "$as_me:$LINENO: result: yes" >&5
2869echo "${ECHO_T}yes" >&6
2870 elif test "$wxUSE_LIBXPM" = no; then
2871 echo "$as_me:$LINENO: result: no" >&5
2872echo "${ECHO_T}no" >&6
2873 elif test "$wxUSE_LIBXPM" = sys; then
2874 echo "$as_me:$LINENO: result: system version" >&5
2875echo "${ECHO_T}system version" >&6
2876 elif test "$wxUSE_LIBXPM" = builtin; then
2877 echo "$as_me:$LINENO: result: builtin version" >&5
2878echo "${ECHO_T}builtin version" >&6
2879 else
2880 { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
2881echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
2882 { (exit 1); exit 1; }; }
2883 fi
2884
2885
3527f29c
VS
2886 echo "$as_me:$LINENO: checking for --with-libmspack" >&5
2887echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6
2888 no_cache=0
2889
2890# Check whether --with-libmspack or --without-libmspack was given.
2891if test "${with_libmspack+set}" = set; then
2892 withval="$with_libmspack"
2893
2894 if test "$withval" = yes; then
2895 ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
2896 else
2897 ac_cv_use_libmspack='wxUSE_LIBMSPACK=no'
2898 fi
2899
2900else
2901
2902 LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}`
2903 if test "x$LINE" != x ; then
2904 eval "DEFAULT_$LINE"
2905 else
2906 no_cache=1
2907 fi
2908
2909 ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK
2910
2911fi;
2912
2913 eval "$ac_cv_use_libmspack"
2914 if test "$no_cache" != 1; then
2915 echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp
2916 fi
2917
2918 if test "$wxUSE_LIBMSPACK" = yes; then
2919 echo "$as_me:$LINENO: result: yes" >&5
2920echo "${ECHO_T}yes" >&6
2921 else
2922 echo "$as_me:$LINENO: result: no" >&5
2923echo "${ECHO_T}no" >&6
2924 fi
2925
2926
e6cc62c6
VS
2927 echo "$as_me:$LINENO: checking for --with-opengl" >&5
2928echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6
10f2d63a 2929 no_cache=0
e6cc62c6
VS
2930
2931# Check whether --with-opengl or --without-opengl was given.
b12915c1
VZ
2932if test "${with_opengl+set}" = set; then
2933 withval="$with_opengl"
e6cc62c6 2934
10f2d63a 2935 if test "$withval" = yes; then
b12915c1 2936 ac_cv_use_opengl='wxUSE_OPENGL=yes'
10f2d63a 2937 else
b12915c1 2938 ac_cv_use_opengl='wxUSE_OPENGL=no'
10f2d63a 2939 fi
e6cc62c6 2940
10f2d63a 2941else
e6cc62c6 2942
b12915c1 2943 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
10f2d63a
VZ
2944 if test "x$LINE" != x ; then
2945 eval "DEFAULT_$LINE"
2946 else
2947 no_cache=1
2948 fi
2949
b12915c1 2950 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
10f2d63a 2951
e6cc62c6 2952fi;
10f2d63a 2953
b12915c1 2954 eval "$ac_cv_use_opengl"
10f2d63a 2955 if test "$no_cache" != 1; then
b12915c1 2956 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
2957 fi
2958
b12915c1 2959 if test "$wxUSE_OPENGL" = yes; then
e6cc62c6
VS
2960 echo "$as_me:$LINENO: result: yes" >&5
2961echo "${ECHO_T}yes" >&6
10f2d63a 2962 else
e6cc62c6
VS
2963 echo "$as_me:$LINENO: result: no" >&5
2964echo "${ECHO_T}no" >&6
10f2d63a 2965 fi
e6cc62c6 2966
10f2d63a 2967
b12915c1
VZ
2968fi
2969
5c6fa7d2 2970
e6cc62c6
VS
2971 echo "$as_me:$LINENO: checking for --with-dmalloc" >&5
2972echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6
8284b0c5 2973 no_cache=0
e6cc62c6
VS
2974
2975# Check whether --with-dmalloc or --without-dmalloc was given.
b12915c1
VZ
2976if test "${with_dmalloc+set}" = set; then
2977 withval="$with_dmalloc"
e6cc62c6 2978
c7a2bf27 2979 if test "$withval" = yes; then
b12915c1 2980 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
c7a2bf27 2981 else
b12915c1 2982 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
c7a2bf27 2983 fi
e6cc62c6 2984
c7a2bf27 2985else
e6cc62c6 2986
b12915c1 2987 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
c7a2bf27
RR
2988 if test "x$LINE" != x ; then
2989 eval "DEFAULT_$LINE"
2990 else
2991 no_cache=1
2992 fi
2993
b12915c1 2994 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
c7a2bf27 2995
e6cc62c6 2996fi;
c7a2bf27 2997
b12915c1 2998 eval "$ac_cv_use_dmalloc"
c7a2bf27 2999 if test "$no_cache" != 1; then
b12915c1 3000 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
c7a2bf27
RR
3001 fi
3002
b12915c1 3003 if test "$wxUSE_DMALLOC" = yes; then
e6cc62c6
VS
3004 echo "$as_me:$LINENO: result: yes" >&5
3005echo "${ECHO_T}yes" >&6
c7a2bf27 3006 else
e6cc62c6
VS
3007 echo "$as_me:$LINENO: result: no" >&5
3008echo "${ECHO_T}no" >&6
c7a2bf27 3009 fi
c7a2bf27 3010
e6cc62c6
VS
3011
3012 echo "$as_me:$LINENO: checking for --with-regex" >&5
3013echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6
3e44f09d 3014 no_cache=0
e6cc62c6
VS
3015
3016# Check whether --with-regex or --without-regex was given.
3e44f09d
VZ
3017if test "${with_regex+set}" = set; then
3018 withval="$with_regex"
e6cc62c6 3019
3e44f09d
VZ
3020 if test "$withval" = yes; then
3021 ac_cv_use_regex='wxUSE_REGEX=yes'
3022 elif test "$withval" = no; then
3023 ac_cv_use_regex='wxUSE_REGEX=no'
3024 elif test "$withval" = sys; then
3025 ac_cv_use_regex='wxUSE_REGEX=sys'
4f14bcd8
GD
3026 elif test "$withval" = builtin; then
3027 ac_cv_use_regex='wxUSE_REGEX=builtin'
3e44f09d 3028 else
e6cc62c6
VS
3029 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3030echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3031 { (exit 1); exit 1; }; }
3e44f09d 3032 fi
e6cc62c6 3033
3e44f09d 3034else
e6cc62c6 3035
3e44f09d
VZ
3036 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
3037 if test "x$LINE" != x ; then
3038 eval "DEFAULT_$LINE"
3039 else
3040 no_cache=1
3041 fi
3042
3043 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
3e44f09d 3044
e6cc62c6 3045fi;
3e44f09d
VZ
3046
3047 eval "$ac_cv_use_regex"
3048 if test "$no_cache" != 1; then
3049 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
3050 fi
3051
3052 if test "$wxUSE_REGEX" = yes; then
e6cc62c6
VS
3053 echo "$as_me:$LINENO: result: yes" >&5
3054echo "${ECHO_T}yes" >&6
3e44f09d 3055 elif test "$wxUSE_REGEX" = no; then
e6cc62c6
VS
3056 echo "$as_me:$LINENO: result: no" >&5
3057echo "${ECHO_T}no" >&6
3e44f09d 3058 elif test "$wxUSE_REGEX" = sys; then
e6cc62c6
VS
3059 echo "$as_me:$LINENO: result: system version" >&5
3060echo "${ECHO_T}system version" >&6
4f14bcd8 3061 elif test "$wxUSE_REGEX" = builtin; then
e6cc62c6
VS
3062 echo "$as_me:$LINENO: result: builtin version" >&5
3063echo "${ECHO_T}builtin version" >&6
3e44f09d 3064 else
e6cc62c6
VS
3065 { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
3066echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
3067 { (exit 1); exit 1; }; }
3e44f09d 3068 fi
3e44f09d 3069
e6cc62c6
VS
3070
3071 echo "$as_me:$LINENO: checking for --with-zlib" >&5
3072echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6
10f2d63a 3073 no_cache=0
e6cc62c6
VS
3074
3075# Check whether --with-zlib or --without-zlib was given.
b12915c1
VZ
3076if test "${with_zlib+set}" = set; then
3077 withval="$with_zlib"
e6cc62c6 3078
10f2d63a 3079 if test "$withval" = yes; then
b12915c1 3080 ac_cv_use_zlib='wxUSE_ZLIB=yes'
422107f9 3081 elif test "$withval" = no; then
b12915c1 3082 ac_cv_use_zlib='wxUSE_ZLIB=no'
422107f9
VZ
3083 elif test "$withval" = sys; then
3084 ac_cv_use_zlib='wxUSE_ZLIB=sys'
4f14bcd8
GD
3085 elif test "$withval" = builtin; then
3086 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
422107f9 3087 else
e6cc62c6
VS
3088 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3089echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3090 { (exit 1); exit 1; }; }
10f2d63a 3091 fi
e6cc62c6 3092
10f2d63a 3093else
e6cc62c6 3094
b12915c1 3095 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
10f2d63a
VZ
3096 if test "x$LINE" != x ; then
3097 eval "DEFAULT_$LINE"
3098 else
3099 no_cache=1
3100 fi
3101
b12915c1 3102 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
10f2d63a 3103
e6cc62c6 3104fi;
10f2d63a 3105
b12915c1 3106 eval "$ac_cv_use_zlib"
10f2d63a 3107 if test "$no_cache" != 1; then
b12915c1 3108 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
3109 fi
3110
b12915c1 3111 if test "$wxUSE_ZLIB" = yes; then
e6cc62c6
VS
3112 echo "$as_me:$LINENO: result: yes" >&5
3113echo "${ECHO_T}yes" >&6
422107f9 3114 elif test "$wxUSE_ZLIB" = no; then
e6cc62c6
VS
3115 echo "$as_me:$LINENO: result: no" >&5
3116echo "${ECHO_T}no" >&6
422107f9 3117 elif test "$wxUSE_ZLIB" = sys; then
e6cc62c6
VS
3118 echo "$as_me:$LINENO: result: system version" >&5
3119echo "${ECHO_T}system version" >&6
4f14bcd8 3120 elif test "$wxUSE_ZLIB" = builtin; then
e6cc62c6
VS
3121 echo "$as_me:$LINENO: result: builtin version" >&5
3122echo "${ECHO_T}builtin version" >&6
422107f9 3123 else
e6cc62c6
VS
3124 { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
3125echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
3126 { (exit 1); exit 1; }; }
10f2d63a 3127 fi
10f2d63a 3128
e6cc62c6
VS
3129
3130 echo "$as_me:$LINENO: checking for --with-odbc" >&5
3131echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6
10f2d63a 3132 no_cache=0
e6cc62c6
VS
3133
3134# Check whether --with-odbc or --without-odbc was given.
10f2d63a
VZ
3135if test "${with_odbc+set}" = set; then
3136 withval="$with_odbc"
e6cc62c6 3137
10f2d63a
VZ
3138 if test "$withval" = yes; then
3139 ac_cv_use_odbc='wxUSE_ODBC=yes'
8647bec6 3140 elif test "$withval" = no; then
10f2d63a 3141 ac_cv_use_odbc='wxUSE_ODBC=no'
8647bec6
RG
3142 elif test "$withval" = sys; then
3143 ac_cv_use_odbc='wxUSE_ODBC=sys'
3144 elif test "$withval" = builtin; then
3145 ac_cv_use_odbc='wxUSE_ODBC=builtin'
3146 else
e6cc62c6
VS
3147 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3148echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3149 { (exit 1); exit 1; }; }
10f2d63a 3150 fi
e6cc62c6 3151
10f2d63a 3152else
e6cc62c6 3153
10f2d63a
VZ
3154 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
3155 if test "x$LINE" != x ; then
3156 eval "DEFAULT_$LINE"
3157 else
3158 no_cache=1
3159 fi
3160
3161 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
10f2d63a 3162
e6cc62c6 3163fi;
10f2d63a
VZ
3164
3165 eval "$ac_cv_use_odbc"
3166 if test "$no_cache" != 1; then
3167 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
3168 fi
3169
3170 if test "$wxUSE_ODBC" = yes; then
e6cc62c6
VS
3171 echo "$as_me:$LINENO: result: yes" >&5
3172echo "${ECHO_T}yes" >&6
8647bec6 3173 elif test "$wxUSE_ODBC" = no; then
e6cc62c6
VS
3174 echo "$as_me:$LINENO: result: no" >&5
3175echo "${ECHO_T}no" >&6
8647bec6 3176 elif test "$wxUSE_ODBC" = sys; then
e6cc62c6
VS
3177 echo "$as_me:$LINENO: result: system version" >&5
3178echo "${ECHO_T}system version" >&6
8647bec6 3179 elif test "$wxUSE_ODBC" = builtin; then
e6cc62c6
VS
3180 echo "$as_me:$LINENO: result: builtin version" >&5
3181echo "${ECHO_T}builtin version" >&6
8647bec6 3182 else
e6cc62c6
VS
3183 { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
3184echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
3185 { (exit 1); exit 1; }; }
10f2d63a 3186 fi
e6cc62c6 3187
52127426 3188
672abd7a
VS
3189 echo "$as_me:$LINENO: checking for --with-expat" >&5
3190echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6
3191 no_cache=0
3192
3193# Check whether --with-expat or --without-expat was given.
3194if test "${with_expat+set}" = set; then
3195 withval="$with_expat"
3196
3197 if test "$withval" = yes; then
3198 ac_cv_use_expat='wxUSE_EXPAT=yes'
3199 elif test "$withval" = no; then
3200 ac_cv_use_expat='wxUSE_EXPAT=no'
3201 elif test "$withval" = sys; then
3202 ac_cv_use_expat='wxUSE_EXPAT=sys'
3203 elif test "$withval" = builtin; then
3204 ac_cv_use_expat='wxUSE_EXPAT=builtin'
3205 else
3206 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3207echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3208 { (exit 1); exit 1; }; }
3209 fi
3210
3211else
3212
3213 LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}`
3214 if test "x$LINE" != x ; then
3215 eval "DEFAULT_$LINE"
3216 else
3217 no_cache=1
3218 fi
3219
3220 ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT
3221
3222fi;
3223
3224 eval "$ac_cv_use_expat"
3225 if test "$no_cache" != 1; then
3226 echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp
3227 fi
3228
3229 if test "$wxUSE_EXPAT" = yes; then
3230 echo "$as_me:$LINENO: result: yes" >&5
3231echo "${ECHO_T}yes" >&6
3232 elif test "$wxUSE_EXPAT" = no; then
3233 echo "$as_me:$LINENO: result: no" >&5
3234echo "${ECHO_T}no" >&6
3235 elif test "$wxUSE_EXPAT" = sys; then
3236 echo "$as_me:$LINENO: result: system version" >&5
3237echo "${ECHO_T}system version" >&6
3238 elif test "$wxUSE_EXPAT" = builtin; then
3239 echo "$as_me:$LINENO: result: builtin version" >&5
3240echo "${ECHO_T}builtin version" >&6
3241 else
3242 { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
3243echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
3244 { (exit 1); exit 1; }; }
3245 fi
3246
3247
8284b0c5
MB
3248
3249
5005acfe 3250 enablestring=
e6cc62c6
VS
3251 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
3252echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6
10f2d63a
VZ
3253 no_cache=0
3254 # Check whether --enable-shared or --disable-shared was given.
3255if test "${enable_shared+set}" = set; then
3256 enableval="$enable_shared"
e6cc62c6 3257
10f2d63a
VZ
3258 if test "$enableval" = yes; then
3259 ac_cv_use_shared='wxUSE_SHARED=yes'
3260 else
3261 ac_cv_use_shared='wxUSE_SHARED=no'
3262 fi
e6cc62c6 3263
10f2d63a 3264else
e6cc62c6 3265
10f2d63a
VZ
3266 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
3267 if test "x$LINE" != x ; then
3268 eval "DEFAULT_$LINE"
3269 else
3270 no_cache=1
3271 fi
3272
3273 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
10f2d63a 3274
e6cc62c6 3275fi;
10f2d63a
VZ
3276
3277 eval "$ac_cv_use_shared"
3278 if test "$no_cache" != 1; then
3279 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
3280 fi
3281
3282 if test "$wxUSE_SHARED" = yes; then
e6cc62c6
VS
3283 echo "$as_me:$LINENO: result: yes" >&5
3284echo "${ECHO_T}yes" >&6
10f2d63a 3285 else
e6cc62c6
VS
3286 echo "$as_me:$LINENO: result: no" >&5
3287echo "${ECHO_T}no" >&6
10f2d63a 3288 fi
e6cc62c6 3289
10f2d63a 3290
5005acfe 3291 enablestring=
e6cc62c6
VS
3292 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
3293echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6
10f2d63a
VZ
3294 no_cache=0
3295 # Check whether --enable-optimise or --disable-optimise was given.
3296if test "${enable_optimise+set}" = set; then
3297 enableval="$enable_optimise"
e6cc62c6 3298
10f2d63a
VZ
3299 if test "$enableval" = yes; then
3300 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
3301 else
3302 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
3303 fi
e6cc62c6 3304
10f2d63a 3305else
e6cc62c6 3306
10f2d63a
VZ
3307 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
3308 if test "x$LINE" != x ; then
3309 eval "DEFAULT_$LINE"
3310 else
3311 no_cache=1
3312 fi
3313
3314 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
10f2d63a 3315
e6cc62c6 3316fi;
10f2d63a
VZ
3317
3318 eval "$ac_cv_use_optimise"
3319 if test "$no_cache" != 1; then
3320 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
3321 fi
3322
3323 if test "$wxUSE_OPTIMISE" = yes; then
e6cc62c6
VS
3324 echo "$as_me:$LINENO: result: yes" >&5
3325echo "${ECHO_T}yes" >&6
10f2d63a 3326 else
e6cc62c6
VS
3327 echo "$as_me:$LINENO: result: no" >&5
3328echo "${ECHO_T}no" >&6
10f2d63a 3329 fi
e6cc62c6 3330
10f2d63a 3331
5005acfe 3332 enablestring=
e6cc62c6
VS
3333 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
3334echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6
10f2d63a
VZ
3335 no_cache=0
3336 # Check whether --enable-debug or --disable-debug was given.
3337if test "${enable_debug+set}" = set; then
3338 enableval="$enable_debug"
e6cc62c6 3339
10f2d63a
VZ
3340 if test "$enableval" = yes; then
3341 ac_cv_use_debug='wxUSE_DEBUG=yes'
3342 else
3343 ac_cv_use_debug='wxUSE_DEBUG=no'
3344 fi
e6cc62c6 3345
10f2d63a 3346else
e6cc62c6 3347
10f2d63a
VZ
3348 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
3349 if test "x$LINE" != x ; then
3350 eval "DEFAULT_$LINE"
3351 else
3352 no_cache=1
3353 fi
3354
3355 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
10f2d63a 3356
e6cc62c6 3357fi;
10f2d63a
VZ
3358
3359 eval "$ac_cv_use_debug"
3360 if test "$no_cache" != 1; then
3361 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
3362 fi
3363
3364 if test "$wxUSE_DEBUG" = yes; then
e6cc62c6
VS
3365 echo "$as_me:$LINENO: result: yes" >&5
3366echo "${ECHO_T}yes" >&6
10f2d63a 3367 else
e6cc62c6
VS
3368 echo "$as_me:$LINENO: result: no" >&5
3369echo "${ECHO_T}no" >&6
10f2d63a 3370 fi
e6cc62c6 3371
52127426 3372
df5168c4
MB
3373 enablestring=
3374 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
3375echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6
3376 no_cache=0
3377 # Check whether --enable-stl or --disable-stl was given.
3378if test "${enable_stl+set}" = set; then
3379 enableval="$enable_stl"
3380
3381 if test "$enableval" = yes; then
3382 ac_cv_use_stl='wxUSE_STL=yes'
3383 else
3384 ac_cv_use_stl='wxUSE_STL=no'
3385 fi
3386
3387else
3388
3389 LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}`
3390 if test "x$LINE" != x ; then
3391 eval "DEFAULT_$LINE"
3392 else
3393 no_cache=1
3394 fi
3395
3396 ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL
3397
3398fi;
3399
3400 eval "$ac_cv_use_stl"
3401 if test "$no_cache" != 1; then
3402 echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp
3403 fi
3404
3405 if test "$wxUSE_STL" = yes; then
3406 echo "$as_me:$LINENO: result: yes" >&5
3407echo "${ECHO_T}yes" >&6
3408 else
3409 echo "$as_me:$LINENO: result: no" >&5
3410echo "${ECHO_T}no" >&6
3411 fi
3412
3413
10f2d63a
VZ
3414if test "$wxUSE_DEBUG" = "yes"; then
3415 DEFAULT_wxUSE_DEBUG_FLAG=yes
3416 DEFAULT_wxUSE_DEBUG_INFO=yes
6c67131a 3417 BUILD=debug
10f2d63a
VZ
3418elif test "$wxUSE_DEBUG" = "no"; then
3419 DEFAULT_wxUSE_DEBUG_FLAG=no
3420 DEFAULT_wxUSE_DEBUG_INFO=no
6c67131a 3421 BUILD=release
10f2d63a
VZ
3422fi
3423
8284b0c5 3424
5005acfe 3425 enablestring=
e6cc62c6
VS
3426 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
3427echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6
10f2d63a
VZ
3428 no_cache=0
3429 # Check whether --enable-debug_flag or --disable-debug_flag was given.
3430if test "${enable_debug_flag+set}" = set; then
3431 enableval="$enable_debug_flag"
e6cc62c6 3432
10f2d63a
VZ
3433 if test "$enableval" = yes; then
3434 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
3435 else
3436 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
3437 fi
e6cc62c6 3438
10f2d63a 3439else
e6cc62c6 3440
10f2d63a
VZ
3441 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
3442 if test "x$LINE" != x ; then
3443 eval "DEFAULT_$LINE"
3444 else
3445 no_cache=1
3446 fi
3447
3448 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
10f2d63a 3449
e6cc62c6 3450fi;
10f2d63a
VZ
3451
3452 eval "$ac_cv_use_debug_flag"
3453 if test "$no_cache" != 1; then
3454 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
3455 fi
3456
3457 if test "$wxUSE_DEBUG_FLAG" = yes; then
e6cc62c6
VS
3458 echo "$as_me:$LINENO: result: yes" >&5
3459echo "${ECHO_T}yes" >&6
10f2d63a 3460 else
e6cc62c6
VS
3461 echo "$as_me:$LINENO: result: no" >&5
3462echo "${ECHO_T}no" >&6
10f2d63a 3463 fi
e6cc62c6 3464
10f2d63a 3465
5005acfe 3466 enablestring=
e6cc62c6
VS
3467 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
3468echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6
10f2d63a
VZ
3469 no_cache=0
3470 # Check whether --enable-debug_info or --disable-debug_info was given.
3471if test "${enable_debug_info+set}" = set; then
3472 enableval="$enable_debug_info"
e6cc62c6 3473
10f2d63a
VZ
3474 if test "$enableval" = yes; then
3475 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
3476 else
3477 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
3478 fi
e6cc62c6 3479
10f2d63a 3480else
e6cc62c6 3481
10f2d63a
VZ
3482 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
3483 if test "x$LINE" != x ; then
3484 eval "DEFAULT_$LINE"
3485 else
3486 no_cache=1
3487 fi
3488
3489 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
10f2d63a 3490
e6cc62c6 3491fi;
10f2d63a
VZ
3492
3493 eval "$ac_cv_use_debug_info"
3494 if test "$no_cache" != 1; then
3495 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
3496 fi
3497
3498 if test "$wxUSE_DEBUG_INFO" = yes; then
e6cc62c6
VS
3499 echo "$as_me:$LINENO: result: yes" >&5
3500echo "${ECHO_T}yes" >&6
10f2d63a 3501 else
e6cc62c6
VS
3502 echo "$as_me:$LINENO: result: no" >&5
3503echo "${ECHO_T}no" >&6
10f2d63a 3504 fi
e6cc62c6 3505
10f2d63a 3506
5005acfe 3507 enablestring=
e6cc62c6
VS
3508 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
3509echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6
10f2d63a
VZ
3510 no_cache=0
3511 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
3512if test "${enable_debug_gdb+set}" = set; then
3513 enableval="$enable_debug_gdb"
e6cc62c6 3514
10f2d63a
VZ
3515 if test "$enableval" = yes; then
3516 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
3517 else
3518 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
3519 fi
e6cc62c6 3520
10f2d63a 3521else
e6cc62c6 3522
10f2d63a
VZ
3523 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
3524 if test "x$LINE" != x ; then
3525 eval "DEFAULT_$LINE"
3526 else
3527 no_cache=1
3528 fi
3529
3530 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
10f2d63a 3531
e6cc62c6 3532fi;
10f2d63a
VZ
3533
3534 eval "$ac_cv_use_debug_gdb"
3535 if test "$no_cache" != 1; then
3536 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
3537 fi
3538
3539 if test "$wxUSE_DEBUG_GDB" = yes; then
e6cc62c6
VS
3540 echo "$as_me:$LINENO: result: yes" >&5
3541echo "${ECHO_T}yes" >&6
10f2d63a 3542 else
e6cc62c6
VS
3543 echo "$as_me:$LINENO: result: no" >&5
3544echo "${ECHO_T}no" >&6
10f2d63a 3545 fi
e6cc62c6 3546
10f2d63a 3547
5005acfe 3548 enablestring=
e6cc62c6
VS
3549 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
3550echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6
10f2d63a
VZ
3551 no_cache=0
3552 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
3553if test "${enable_debug_cntxt+set}" = set; then
3554 enableval="$enable_debug_cntxt"
e6cc62c6 3555
10f2d63a
VZ
3556 if test "$enableval" = yes; then
3557 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
3558 else
3559 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
3560 fi
e6cc62c6 3561
10f2d63a 3562else
e6cc62c6 3563
10f2d63a
VZ
3564 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
3565 if test "x$LINE" != x ; then
3566 eval "DEFAULT_$LINE"
3567 else
3568 no_cache=1
3569 fi
3570
3571 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
10f2d63a 3572
e6cc62c6 3573fi;
10f2d63a
VZ
3574
3575 eval "$ac_cv_use_debug_cntxt"
3576 if test "$no_cache" != 1; then
3577 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
3578 fi
3579
3580 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
e6cc62c6
VS
3581 echo "$as_me:$LINENO: result: yes" >&5
3582echo "${ECHO_T}yes" >&6
10f2d63a 3583 else
e6cc62c6
VS
3584 echo "$as_me:$LINENO: result: no" >&5
3585echo "${ECHO_T}no" >&6
10f2d63a 3586 fi
e6cc62c6 3587
10f2d63a 3588
5005acfe 3589 enablestring=
e6cc62c6
VS
3590 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
3591echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6
10f2d63a
VZ
3592 no_cache=0
3593 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
3594if test "${enable_mem_tracing+set}" = set; then
3595 enableval="$enable_mem_tracing"
e6cc62c6 3596
10f2d63a
VZ
3597 if test "$enableval" = yes; then
3598 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
3599 else
3600 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
3601 fi
e6cc62c6 3602
10f2d63a 3603else
e6cc62c6 3604
10f2d63a
VZ
3605 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
3606 if test "x$LINE" != x ; then
3607 eval "DEFAULT_$LINE"
3608 else
3609 no_cache=1
3610 fi
3611
3612 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
10f2d63a 3613
e6cc62c6 3614fi;
10f2d63a
VZ
3615
3616 eval "$ac_cv_use_mem_tracing"
3617 if test "$no_cache" != 1; then
3618 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
3619 fi
3620
3621 if test "$wxUSE_MEM_TRACING" = yes; then
e6cc62c6
VS
3622 echo "$as_me:$LINENO: result: yes" >&5
3623echo "${ECHO_T}yes" >&6
10f2d63a 3624 else
e6cc62c6
VS
3625 echo "$as_me:$LINENO: result: no" >&5
3626echo "${ECHO_T}no" >&6
10f2d63a 3627 fi
e6cc62c6 3628
10f2d63a 3629
5005acfe 3630 enablestring=
e6cc62c6
VS
3631 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
3632echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6
10f2d63a
VZ
3633 no_cache=0
3634 # Check whether --enable-profile or --disable-profile was given.
3635if test "${enable_profile+set}" = set; then
3636 enableval="$enable_profile"
e6cc62c6 3637
10f2d63a
VZ
3638 if test "$enableval" = yes; then
3639 ac_cv_use_profile='wxUSE_PROFILE=yes'
3640 else
3641 ac_cv_use_profile='wxUSE_PROFILE=no'
3642 fi
e6cc62c6 3643
10f2d63a 3644else
e6cc62c6 3645
10f2d63a
VZ
3646 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
3647 if test "x$LINE" != x ; then
3648 eval "DEFAULT_$LINE"
3649 else
3650 no_cache=1
3651 fi
3652
3653 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
10f2d63a 3654
e6cc62c6 3655fi;
10f2d63a
VZ
3656
3657 eval "$ac_cv_use_profile"
3658 if test "$no_cache" != 1; then
3659 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
3660 fi
3661
3662 if test "$wxUSE_PROFILE" = yes; then
e6cc62c6
VS
3663 echo "$as_me:$LINENO: result: yes" >&5
3664echo "${ECHO_T}yes" >&6
10f2d63a 3665 else
e6cc62c6
VS
3666 echo "$as_me:$LINENO: result: no" >&5
3667echo "${ECHO_T}no" >&6
10f2d63a 3668 fi
e6cc62c6 3669
10f2d63a 3670
5005acfe 3671 enablestring=
e6cc62c6
VS
3672 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
3673echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6
10f2d63a
VZ
3674 no_cache=0
3675 # Check whether --enable-no_rtti or --disable-no_rtti was given.
3676if test "${enable_no_rtti+set}" = set; then
3677 enableval="$enable_no_rtti"
e6cc62c6 3678
10f2d63a
VZ
3679 if test "$enableval" = yes; then
3680 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
3681 else
3682 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
3683 fi
e6cc62c6 3684
10f2d63a 3685else
e6cc62c6 3686
10f2d63a
VZ
3687 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
3688 if test "x$LINE" != x ; then
3689 eval "DEFAULT_$LINE"
3690 else
3691 no_cache=1
3692 fi
3693
3694 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
10f2d63a 3695
e6cc62c6 3696fi;
10f2d63a
VZ
3697
3698 eval "$ac_cv_use_no_rtti"
3699 if test "$no_cache" != 1; then
3700 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
3701 fi
3702
3703 if test "$wxUSE_NO_RTTI" = yes; then
e6cc62c6
VS
3704 echo "$as_me:$LINENO: result: yes" >&5
3705echo "${ECHO_T}yes" >&6
10f2d63a 3706 else
e6cc62c6
VS
3707 echo "$as_me:$LINENO: result: no" >&5
3708echo "${ECHO_T}no" >&6
10f2d63a 3709 fi
e6cc62c6 3710
10f2d63a 3711
5005acfe 3712 enablestring=
e6cc62c6
VS
3713 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
3714echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6
10f2d63a
VZ
3715 no_cache=0
3716 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
3717if test "${enable_no_exceptions+set}" = set; then
3718 enableval="$enable_no_exceptions"
e6cc62c6 3719
10f2d63a
VZ
3720 if test "$enableval" = yes; then
3721 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
3722 else
3723 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
3724 fi
e6cc62c6 3725
10f2d63a 3726else
e6cc62c6 3727
10f2d63a
VZ
3728 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
3729 if test "x$LINE" != x ; then
3730 eval "DEFAULT_$LINE"
3731 else
3732 no_cache=1
3733 fi
3734
3735 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
10f2d63a 3736
e6cc62c6 3737fi;
10f2d63a
VZ
3738
3739 eval "$ac_cv_use_no_exceptions"
3740 if test "$no_cache" != 1; then
3741 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
3742 fi
3743
3744 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
e6cc62c6
VS
3745 echo "$as_me:$LINENO: result: yes" >&5
3746echo "${ECHO_T}yes" >&6
10f2d63a 3747 else
e6cc62c6
VS
3748 echo "$as_me:$LINENO: result: no" >&5
3749echo "${ECHO_T}no" >&6
10f2d63a 3750 fi
e6cc62c6 3751
10f2d63a 3752
5005acfe 3753 enablestring=
e6cc62c6
VS
3754 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
3755echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6
10f2d63a
VZ
3756 no_cache=0
3757 # Check whether --enable-permissive or --disable-permissive was given.
3758if test "${enable_permissive+set}" = set; then
3759 enableval="$enable_permissive"
e6cc62c6 3760
10f2d63a
VZ
3761 if test "$enableval" = yes; then
3762 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
3763 else
3764 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
3765 fi
e6cc62c6 3766
10f2d63a 3767else
e6cc62c6 3768
10f2d63a
VZ
3769 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
3770 if test "x$LINE" != x ; then
3771 eval "DEFAULT_$LINE"
3772 else
3773 no_cache=1
3774 fi
3775
3776 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
10f2d63a 3777
e6cc62c6 3778fi;
10f2d63a
VZ
3779
3780 eval "$ac_cv_use_permissive"
3781 if test "$no_cache" != 1; then
3782 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
3783 fi
3784
3785 if test "$wxUSE_PERMISSIVE" = yes; then
e6cc62c6
VS
3786 echo "$as_me:$LINENO: result: yes" >&5
3787echo "${ECHO_T}yes" >&6
10f2d63a 3788 else
e6cc62c6
VS
3789 echo "$as_me:$LINENO: result: no" >&5
3790echo "${ECHO_T}no" >&6
10f2d63a 3791 fi
e6cc62c6 3792
10f2d63a 3793
5005acfe 3794 enablestring=
e6cc62c6
VS
3795 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
3796echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6
10f2d63a
VZ
3797 no_cache=0
3798 # Check whether --enable-no_deps or --disable-no_deps was given.
3799if test "${enable_no_deps+set}" = set; then
3800 enableval="$enable_no_deps"
e6cc62c6 3801
10f2d63a
VZ
3802 if test "$enableval" = yes; then
3803 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
3804 else
3805 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
3806 fi
e6cc62c6 3807
10f2d63a 3808else
e6cc62c6 3809
10f2d63a
VZ
3810 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
3811 if test "x$LINE" != x ; then
3812 eval "DEFAULT_$LINE"
3813 else
3814 no_cache=1
3815 fi
3816
3817 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
10f2d63a 3818
e6cc62c6 3819fi;
10f2d63a
VZ
3820
3821 eval "$ac_cv_use_no_deps"
3822 if test "$no_cache" != 1; then
3823 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
3824 fi
3825
3826 if test "$wxUSE_NO_DEPS" = yes; then
e6cc62c6
VS
3827 echo "$as_me:$LINENO: result: yes" >&5
3828echo "${ECHO_T}yes" >&6
10f2d63a 3829 else
e6cc62c6
VS
3830 echo "$as_me:$LINENO: result: no" >&5
3831echo "${ECHO_T}no" >&6
10f2d63a 3832 fi
e6cc62c6 3833
52127426 3834
8284b0c5 3835
65d8ef1e 3836 enablestring=
e6cc62c6
VS
3837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5
3838echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6
54276ccf
VZ
3839 no_cache=0
3840 # Check whether --enable-compat22 or --disable-compat22 was given.
3841if test "${enable_compat22+set}" = set; then
3842 enableval="$enable_compat22"
e6cc62c6 3843
54276ccf
VZ
3844 if test "$enableval" = yes; then
3845 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3846 else
3847 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3848 fi
e6cc62c6 3849
54276ccf 3850else
e6cc62c6 3851
54276ccf
VZ
3852 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3853 if test "x$LINE" != x ; then
3854 eval "DEFAULT_$LINE"
3855 else
3856 no_cache=1
3857 fi
3858
3859 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
54276ccf 3860
e6cc62c6 3861fi;
54276ccf
VZ
3862
3863 eval "$ac_cv_use_compat22"
3864 if test "$no_cache" != 1; then
3865 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3866 fi
3867
3868 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
e6cc62c6
VS
3869 echo "$as_me:$LINENO: result: yes" >&5
3870echo "${ECHO_T}yes" >&6
54276ccf 3871 else
e6cc62c6
VS
3872 echo "$as_me:$LINENO: result: no" >&5
3873echo "${ECHO_T}no" >&6
54276ccf 3874 fi
e6cc62c6 3875
54276ccf 3876
65d8ef1e 3877 enablestring=disable
e6cc62c6
VS
3878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5
3879echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6
65d8ef1e
VS
3880 no_cache=0
3881 # Check whether --enable-compat24 or --disable-compat24 was given.
3882if test "${enable_compat24+set}" = set; then
3883 enableval="$enable_compat24"
e6cc62c6 3884
65d8ef1e
VS
3885 if test "$enableval" = yes; then
3886 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes'
3887 else
3888 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no'
3889 fi
e6cc62c6 3890
65d8ef1e 3891else
e6cc62c6 3892
65d8ef1e
VS
3893 LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}`
3894 if test "x$LINE" != x ; then
3895 eval "DEFAULT_$LINE"
3896 else
3897 no_cache=1
3898 fi
3899
3900 ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4
65d8ef1e 3901
e6cc62c6 3902fi;
65d8ef1e
VS
3903
3904 eval "$ac_cv_use_compat24"
3905 if test "$no_cache" != 1; then
3906 echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp
3907 fi
3908
3909 if test "$WXWIN_COMPATIBILITY_2_4" = yes; then
e6cc62c6
VS
3910 echo "$as_me:$LINENO: result: yes" >&5
3911echo "${ECHO_T}yes" >&6
65d8ef1e 3912 else
e6cc62c6
VS
3913 echo "$as_me:$LINENO: result: no" >&5
3914echo "${ECHO_T}no" >&6
65d8ef1e 3915 fi
e6cc62c6 3916
65d8ef1e 3917
3bd8fb5f
RD
3918# Check whether --enable-rpath or --disable-rpath was given.
3919if test "${enable_rpath+set}" = set; then
3920 enableval="$enable_rpath"
3921 wxRPATH_DIR="$enableval"
e6cc62c6 3922fi;
3bd8fb5f
RD
3923
3924if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
3925 WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
3926fi
3927
8284b0c5
MB
3928
3929
3930
5005acfe 3931 enablestring=
e6cc62c6
VS
3932 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
3933echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6
10f2d63a
VZ
3934 no_cache=0
3935 # Check whether --enable-intl or --disable-intl was given.
3936if test "${enable_intl+set}" = set; then
3937 enableval="$enable_intl"
e6cc62c6 3938
10f2d63a
VZ
3939 if test "$enableval" = yes; then
3940 ac_cv_use_intl='wxUSE_INTL=yes'
3941 else
3942 ac_cv_use_intl='wxUSE_INTL=no'
3943 fi
e6cc62c6 3944
10f2d63a 3945else
e6cc62c6 3946
10f2d63a
VZ
3947 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3948 if test "x$LINE" != x ; then
3949 eval "DEFAULT_$LINE"
3950 else
3951 no_cache=1
3952 fi
3953
3954 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
10f2d63a 3955
e6cc62c6 3956fi;
10f2d63a
VZ
3957
3958 eval "$ac_cv_use_intl"
3959 if test "$no_cache" != 1; then
3960 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3961 fi
3962
3963 if test "$wxUSE_INTL" = yes; then
e6cc62c6
VS
3964 echo "$as_me:$LINENO: result: yes" >&5
3965echo "${ECHO_T}yes" >&6
10f2d63a 3966 else
e6cc62c6
VS
3967 echo "$as_me:$LINENO: result: no" >&5
3968echo "${ECHO_T}no" >&6
10f2d63a 3969 fi
e6cc62c6 3970
10f2d63a 3971
5005acfe 3972 enablestring=
e6cc62c6
VS
3973 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
3974echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6
10f2d63a
VZ
3975 no_cache=0
3976 # Check whether --enable-config or --disable-config was given.
3977if test "${enable_config+set}" = set; then
3978 enableval="$enable_config"
e6cc62c6 3979
10f2d63a
VZ
3980 if test "$enableval" = yes; then
3981 ac_cv_use_config='wxUSE_CONFIG=yes'
3982 else
3983 ac_cv_use_config='wxUSE_CONFIG=no'
3984 fi
e6cc62c6 3985
10f2d63a 3986else
e6cc62c6 3987
10f2d63a
VZ
3988 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3989 if test "x$LINE" != x ; then
3990 eval "DEFAULT_$LINE"
3991 else
3992 no_cache=1
3993 fi
3994
3995 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
10f2d63a 3996
e6cc62c6 3997fi;
10f2d63a
VZ
3998
3999 eval "$ac_cv_use_config"
4000 if test "$no_cache" != 1; then
4001 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
4002 fi
4003
4004 if test "$wxUSE_CONFIG" = yes; then
e6cc62c6
VS
4005 echo "$as_me:$LINENO: result: yes" >&5
4006echo "${ECHO_T}yes" >&6
10f2d63a 4007 else
e6cc62c6
VS
4008 echo "$as_me:$LINENO: result: no" >&5
4009echo "${ECHO_T}no" >&6
10f2d63a 4010 fi
e6cc62c6 4011
52127426 4012
8284b0c5 4013
5005acfe 4014 enablestring=
e6cc62c6
VS
4015 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
4016echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6
a1622950
VZ
4017 no_cache=0
4018 # Check whether --enable-protocols or --disable-protocols was given.
4019if test "${enable_protocols+set}" = set; then
4020 enableval="$enable_protocols"
e6cc62c6 4021
a1622950
VZ
4022 if test "$enableval" = yes; then
4023 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
4024 else
4025 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
4026 fi
e6cc62c6 4027
a1622950 4028else
e6cc62c6 4029
a1622950
VZ
4030 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4031 if test "x$LINE" != x ; then
4032 eval "DEFAULT_$LINE"
4033 else
4034 no_cache=1
4035 fi
4036
4037 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
a1622950 4038
e6cc62c6 4039fi;
a1622950
VZ
4040
4041 eval "$ac_cv_use_protocols"
4042 if test "$no_cache" != 1; then
4043 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
4044 fi
4045
4046 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
4047 echo "$as_me:$LINENO: result: yes" >&5
4048echo "${ECHO_T}yes" >&6
a1622950 4049 else
e6cc62c6
VS
4050 echo "$as_me:$LINENO: result: no" >&5
4051echo "${ECHO_T}no" >&6
a1622950 4052 fi
e6cc62c6 4053
a1622950 4054
5005acfe 4055 enablestring=
e6cc62c6
VS
4056 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
4057echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6
a1622950
VZ
4058 no_cache=0
4059 # Check whether --enable-ftp or --disable-ftp was given.
4060if test "${enable_ftp+set}" = set; then
4061 enableval="$enable_ftp"
e6cc62c6 4062
a1622950
VZ
4063 if test "$enableval" = yes; then
4064 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
4065 else
4066 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
4067 fi
e6cc62c6 4068
a1622950 4069else
e6cc62c6 4070
a1622950
VZ
4071 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4072 if test "x$LINE" != x ; then
4073 eval "DEFAULT_$LINE"
4074 else
4075 no_cache=1
4076 fi
4077
4078 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
a1622950 4079
e6cc62c6 4080fi;
a1622950
VZ
4081
4082 eval "$ac_cv_use_ftp"
4083 if test "$no_cache" != 1; then
4084 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
4085 fi
4086
4087 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
4088 echo "$as_me:$LINENO: result: yes" >&5
4089echo "${ECHO_T}yes" >&6
a1622950 4090 else
e6cc62c6
VS
4091 echo "$as_me:$LINENO: result: no" >&5
4092echo "${ECHO_T}no" >&6
a1622950 4093 fi
e6cc62c6 4094
a1622950 4095
5005acfe 4096 enablestring=
e6cc62c6
VS
4097 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
4098echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6
a1622950
VZ
4099 no_cache=0
4100 # Check whether --enable-http or --disable-http was given.
4101if test "${enable_http+set}" = set; then
4102 enableval="$enable_http"
e6cc62c6 4103
a1622950
VZ
4104 if test "$enableval" = yes; then
4105 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
4106 else
4107 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
4108 fi
e6cc62c6 4109
a1622950 4110else
e6cc62c6 4111
a1622950
VZ
4112 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4113 if test "x$LINE" != x ; then
4114 eval "DEFAULT_$LINE"
4115 else
4116 no_cache=1
4117 fi
4118
4119 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
a1622950 4120
e6cc62c6 4121fi;
a1622950
VZ
4122
4123 eval "$ac_cv_use_http"
4124 if test "$no_cache" != 1; then
4125 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
4126 fi
4127
4128 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
4129 echo "$as_me:$LINENO: result: yes" >&5
4130echo "${ECHO_T}yes" >&6
a1622950 4131 else
e6cc62c6
VS
4132 echo "$as_me:$LINENO: result: no" >&5
4133echo "${ECHO_T}no" >&6
a1622950 4134 fi
e6cc62c6 4135
a1622950 4136
5005acfe 4137 enablestring=
e6cc62c6
VS
4138 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
4139echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6
a1622950
VZ
4140 no_cache=0
4141 # Check whether --enable-fileproto or --disable-fileproto was given.
4142if test "${enable_fileproto+set}" = set; then
4143 enableval="$enable_fileproto"
e6cc62c6 4144
a1622950
VZ
4145 if test "$enableval" = yes; then
4146 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
4147 else
4148 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
4149 fi
e6cc62c6 4150
a1622950 4151else
e6cc62c6 4152
a1622950
VZ
4153 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4154 if test "x$LINE" != x ; then
4155 eval "DEFAULT_$LINE"
4156 else
4157 no_cache=1
4158 fi
4159
4160 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
a1622950 4161
e6cc62c6 4162fi;
a1622950
VZ
4163
4164 eval "$ac_cv_use_fileproto"
4165 if test "$no_cache" != 1; then
4166 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
4167 fi
4168
4169 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
4170 echo "$as_me:$LINENO: result: yes" >&5
4171echo "${ECHO_T}yes" >&6
a1622950 4172 else
e6cc62c6
VS
4173 echo "$as_me:$LINENO: result: no" >&5
4174echo "${ECHO_T}no" >&6
a1622950 4175 fi
e6cc62c6 4176
a1622950 4177
5005acfe 4178 enablestring=
e6cc62c6
VS
4179 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
4180echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6
10f2d63a
VZ
4181 no_cache=0
4182 # Check whether --enable-sockets or --disable-sockets was given.
4183if test "${enable_sockets+set}" = set; then
4184 enableval="$enable_sockets"
e6cc62c6 4185
10f2d63a
VZ
4186 if test "$enableval" = yes; then
4187 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
4188 else
4189 ac_cv_use_sockets='wxUSE_SOCKETS=no'
4190 fi
e6cc62c6 4191
10f2d63a 4192else
e6cc62c6 4193
10f2d63a
VZ
4194 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
4195 if test "x$LINE" != x ; then
4196 eval "DEFAULT_$LINE"
4197 else
4198 no_cache=1
4199 fi
4200
4201 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
10f2d63a 4202
e6cc62c6 4203fi;
10f2d63a
VZ
4204
4205 eval "$ac_cv_use_sockets"
4206 if test "$no_cache" != 1; then
4207 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
4208 fi
4209
4210 if test "$wxUSE_SOCKETS" = yes; then
e6cc62c6
VS
4211 echo "$as_me:$LINENO: result: yes" >&5
4212echo "${ECHO_T}yes" >&6
10f2d63a 4213 else
e6cc62c6
VS
4214 echo "$as_me:$LINENO: result: no" >&5
4215echo "${ECHO_T}no" >&6
10f2d63a 4216 fi
e6cc62c6 4217
8284b0c5 4218
5005acfe 4219 enablestring=
e6cc62c6
VS
4220 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
4221echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6
3bce6687
JS
4222 no_cache=0
4223 # Check whether --enable-ole or --disable-ole was given.
4224if test "${enable_ole+set}" = set; then
4225 enableval="$enable_ole"
e6cc62c6 4226
3bce6687
JS
4227 if test "$enableval" = yes; then
4228 ac_cv_use_ole='wxUSE_OLE=yes'
4229 else
4230 ac_cv_use_ole='wxUSE_OLE=no'
4231 fi
e6cc62c6 4232
3bce6687 4233else
e6cc62c6 4234
3bce6687
JS
4235 LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}`
4236 if test "x$LINE" != x ; then
4237 eval "DEFAULT_$LINE"
4238 else
4239 no_cache=1
4240 fi
4241
4242 ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE
3bce6687 4243
e6cc62c6 4244fi;
3bce6687
JS
4245
4246 eval "$ac_cv_use_ole"
4247 if test "$no_cache" != 1; then
4248 echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp
4249 fi
4250
4251 if test "$wxUSE_OLE" = yes; then
e6cc62c6
VS
4252 echo "$as_me:$LINENO: result: yes" >&5
4253echo "${ECHO_T}yes" >&6
3bce6687 4254 else
e6cc62c6
VS
4255 echo "$as_me:$LINENO: result: no" >&5
4256echo "${ECHO_T}no" >&6
3bce6687 4257 fi
e6cc62c6 4258
3bce6687 4259
5005acfe 4260 enablestring=
e6cc62c6
VS
4261 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
4262echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6
3bce6687
JS
4263 no_cache=0
4264 # Check whether --enable-dataobj or --disable-dataobj was given.
4265if test "${enable_dataobj+set}" = set; then
4266 enableval="$enable_dataobj"
e6cc62c6 4267
3bce6687
JS
4268 if test "$enableval" = yes; then
4269 ac_cv_use_dataobj='wxUSE_DATAOBJ=yes'
4270 else
4271 ac_cv_use_dataobj='wxUSE_DATAOBJ=no'
4272 fi
e6cc62c6 4273
3bce6687 4274else
e6cc62c6 4275
3bce6687
JS
4276 LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}`
4277 if test "x$LINE" != x ; then
4278 eval "DEFAULT_$LINE"
4279 else
4280 no_cache=1
4281 fi
4282
4283 ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ
3bce6687 4284
e6cc62c6 4285fi;
3bce6687
JS
4286
4287 eval "$ac_cv_use_dataobj"
4288 if test "$no_cache" != 1; then
4289 echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp
4290 fi
4291
4292 if test "$wxUSE_DATAOBJ" = yes; then
e6cc62c6
VS
4293 echo "$as_me:$LINENO: result: yes" >&5
4294echo "${ECHO_T}yes" >&6
3bce6687 4295 else
e6cc62c6
VS
4296 echo "$as_me:$LINENO: result: no" >&5
4297echo "${ECHO_T}no" >&6
3bce6687 4298 fi
e6cc62c6 4299
3bce6687 4300
52127426 4301
5005acfe 4302 enablestring=
e6cc62c6
VS
4303 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
4304echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6
10f2d63a 4305 no_cache=0
eb4efbdc
VZ
4306 # Check whether --enable-ipc or --disable-ipc was given.
4307if test "${enable_ipc+set}" = set; then
4308 enableval="$enable_ipc"
e6cc62c6 4309
10f2d63a 4310 if test "$enableval" = yes; then
eb4efbdc 4311 ac_cv_use_ipc='wxUSE_IPC=yes'
10f2d63a 4312 else
eb4efbdc 4313 ac_cv_use_ipc='wxUSE_IPC=no'
10f2d63a 4314 fi
e6cc62c6 4315
10f2d63a 4316else
e6cc62c6 4317
eb4efbdc 4318 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
10f2d63a
VZ
4319 if test "x$LINE" != x ; then
4320 eval "DEFAULT_$LINE"
4321 else
4322 no_cache=1
4323 fi
4324
eb4efbdc 4325 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
10f2d63a 4326
e6cc62c6 4327fi;
10f2d63a 4328
eb4efbdc 4329 eval "$ac_cv_use_ipc"
10f2d63a 4330 if test "$no_cache" != 1; then
eb4efbdc 4331 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4332 fi
4333
eb4efbdc 4334 if test "$wxUSE_IPC" = yes; then
e6cc62c6
VS
4335 echo "$as_me:$LINENO: result: yes" >&5
4336echo "${ECHO_T}yes" >&6
10f2d63a 4337 else
e6cc62c6
VS
4338 echo "$as_me:$LINENO: result: no" >&5
4339echo "${ECHO_T}no" >&6
10f2d63a 4340 fi
e6cc62c6 4341
52127426 4342
8284b0c5 4343
5005acfe 4344 enablestring=
e46d2a18
VS
4345 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
4346echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6
10f2d63a 4347 no_cache=0
e46d2a18
VS
4348 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
4349if test "${enable_apple_ieee+set}" = set; then
4350 enableval="$enable_apple_ieee"
e6cc62c6 4351
10f2d63a 4352 if test "$enableval" = yes; then
e46d2a18 4353 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
10f2d63a 4354 else
e46d2a18 4355 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
10f2d63a 4356 fi
e6cc62c6 4357
10f2d63a 4358else
e6cc62c6 4359
e46d2a18 4360 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
10f2d63a
VZ
4361 if test "x$LINE" != x ; then
4362 eval "DEFAULT_$LINE"
4363 else
4364 no_cache=1
4365 fi
4366
e46d2a18 4367 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
10f2d63a 4368
e6cc62c6 4369fi;
10f2d63a 4370
e46d2a18 4371 eval "$ac_cv_use_apple_ieee"
10f2d63a 4372 if test "$no_cache" != 1; then
e46d2a18 4373 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4374 fi
4375
e46d2a18 4376 if test "$wxUSE_APPLE_IEEE" = yes; then
e6cc62c6
VS
4377 echo "$as_me:$LINENO: result: yes" >&5
4378echo "${ECHO_T}yes" >&6
10f2d63a 4379 else
e6cc62c6
VS
4380 echo "$as_me:$LINENO: result: no" >&5
4381echo "${ECHO_T}no" >&6
10f2d63a 4382 fi
e6cc62c6 4383
10f2d63a 4384
5005acfe 4385 enablestring=
e46d2a18
VS
4386 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
4387echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6
10f2d63a 4388 no_cache=0
e46d2a18
VS
4389 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4390if test "${enable_catch_segvs+set}" = set; then
4391 enableval="$enable_catch_segvs"
e6cc62c6 4392
10f2d63a 4393 if test "$enableval" = yes; then
e46d2a18 4394 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
10f2d63a 4395 else
e46d2a18 4396 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
10f2d63a 4397 fi
e6cc62c6 4398
10f2d63a 4399else
e6cc62c6 4400
e46d2a18 4401 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
10f2d63a
VZ
4402 if test "x$LINE" != x ; then
4403 eval "DEFAULT_$LINE"
4404 else
4405 no_cache=1
4406 fi
4407
e46d2a18 4408 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
10f2d63a 4409
e6cc62c6 4410fi;
10f2d63a 4411
e46d2a18 4412 eval "$ac_cv_use_catch_segvs"
10f2d63a 4413 if test "$no_cache" != 1; then
e46d2a18 4414 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4415 fi
4416
e46d2a18 4417 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
e6cc62c6
VS
4418 echo "$as_me:$LINENO: result: yes" >&5
4419echo "${ECHO_T}yes" >&6
10f2d63a 4420 else
e6cc62c6
VS
4421 echo "$as_me:$LINENO: result: no" >&5
4422echo "${ECHO_T}no" >&6
10f2d63a 4423 fi
e6cc62c6 4424
10f2d63a 4425
5005acfe 4426 enablestring=
e46d2a18
VS
4427 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
4428echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6
10f2d63a 4429 no_cache=0
e46d2a18
VS
4430 # Check whether --enable-cmdline or --disable-cmdline was given.
4431if test "${enable_cmdline+set}" = set; then
4432 enableval="$enable_cmdline"
e6cc62c6 4433
10f2d63a 4434 if test "$enableval" = yes; then
e46d2a18 4435 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
10f2d63a 4436 else
e46d2a18 4437 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
10f2d63a 4438 fi
e6cc62c6 4439
10f2d63a 4440else
e6cc62c6 4441
e46d2a18 4442 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
10f2d63a
VZ
4443 if test "x$LINE" != x ; then
4444 eval "DEFAULT_$LINE"
4445 else
4446 no_cache=1
4447 fi
4448
e46d2a18 4449 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
10f2d63a 4450
e6cc62c6 4451fi;
10f2d63a 4452
e46d2a18 4453 eval "$ac_cv_use_cmdline"
10f2d63a 4454 if test "$no_cache" != 1; then
e46d2a18 4455 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4456 fi
4457
e46d2a18 4458 if test "$wxUSE_CMDLINE_PARSER" = yes; then
e6cc62c6
VS
4459 echo "$as_me:$LINENO: result: yes" >&5
4460echo "${ECHO_T}yes" >&6
10f2d63a 4461 else
e6cc62c6
VS
4462 echo "$as_me:$LINENO: result: no" >&5
4463echo "${ECHO_T}no" >&6
10f2d63a 4464 fi
e6cc62c6 4465
10f2d63a 4466
5005acfe 4467 enablestring=
e46d2a18
VS
4468 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
4469echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6
10f2d63a 4470 no_cache=0
e46d2a18
VS
4471 # Check whether --enable-datetime or --disable-datetime was given.
4472if test "${enable_datetime+set}" = set; then
4473 enableval="$enable_datetime"
e6cc62c6 4474
10f2d63a 4475 if test "$enableval" = yes; then
e46d2a18 4476 ac_cv_use_datetime='wxUSE_DATETIME=yes'
10f2d63a 4477 else
e46d2a18 4478 ac_cv_use_datetime='wxUSE_DATETIME=no'
10f2d63a 4479 fi
e6cc62c6 4480
10f2d63a 4481else
e6cc62c6 4482
e46d2a18 4483 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
10f2d63a
VZ
4484 if test "x$LINE" != x ; then
4485 eval "DEFAULT_$LINE"
4486 else
4487 no_cache=1
4488 fi
4489
e46d2a18 4490 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
10f2d63a 4491
e6cc62c6 4492fi;
10f2d63a 4493
e46d2a18 4494 eval "$ac_cv_use_datetime"
10f2d63a 4495 if test "$no_cache" != 1; then
e46d2a18 4496 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4497 fi
4498
e46d2a18 4499 if test "$wxUSE_DATETIME" = yes; then
e6cc62c6
VS
4500 echo "$as_me:$LINENO: result: yes" >&5
4501echo "${ECHO_T}yes" >&6
10f2d63a 4502 else
e6cc62c6
VS
4503 echo "$as_me:$LINENO: result: no" >&5
4504echo "${ECHO_T}no" >&6
10f2d63a 4505 fi
e6cc62c6 4506
10f2d63a 4507
5005acfe 4508 enablestring=
e46d2a18
VS
4509 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
4510echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6
10f2d63a 4511 no_cache=0
e46d2a18
VS
4512 # Check whether --enable-dialupman or --disable-dialupman was given.
4513if test "${enable_dialupman+set}" = set; then
4514 enableval="$enable_dialupman"
e6cc62c6 4515
10f2d63a 4516 if test "$enableval" = yes; then
e46d2a18 4517 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
10f2d63a 4518 else
e46d2a18 4519 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
10f2d63a 4520 fi
e6cc62c6 4521
10f2d63a 4522else
e6cc62c6 4523
e46d2a18 4524 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
10f2d63a
VZ
4525 if test "x$LINE" != x ; then
4526 eval "DEFAULT_$LINE"
4527 else
4528 no_cache=1
4529 fi
4530
e46d2a18 4531 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
10f2d63a 4532
e6cc62c6 4533fi;
10f2d63a 4534
e46d2a18 4535 eval "$ac_cv_use_dialupman"
10f2d63a 4536 if test "$no_cache" != 1; then
e46d2a18 4537 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4538 fi
4539
e46d2a18 4540 if test "$wxUSE_DIALUP_MANAGER" = yes; then
e6cc62c6
VS
4541 echo "$as_me:$LINENO: result: yes" >&5
4542echo "${ECHO_T}yes" >&6
10f2d63a 4543 else
e6cc62c6
VS
4544 echo "$as_me:$LINENO: result: no" >&5
4545echo "${ECHO_T}no" >&6
10f2d63a 4546 fi
e6cc62c6 4547
10f2d63a 4548
5005acfe 4549 enablestring=
e6cc62c6
VS
4550 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
4551echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6
10f2d63a
VZ
4552 no_cache=0
4553 # Check whether --enable-dynlib or --disable-dynlib was given.
4554if test "${enable_dynlib+set}" = set; then
4555 enableval="$enable_dynlib"
e6cc62c6 4556
10f2d63a
VZ
4557 if test "$enableval" = yes; then
4558 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
4559 else
4560 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
4561 fi
e6cc62c6 4562
10f2d63a 4563else
e6cc62c6 4564
10f2d63a
VZ
4565 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
4566 if test "x$LINE" != x ; then
4567 eval "DEFAULT_$LINE"
4568 else
4569 no_cache=1
4570 fi
4571
4572 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
10f2d63a 4573
e6cc62c6 4574fi;
10f2d63a
VZ
4575
4576 eval "$ac_cv_use_dynlib"
4577 if test "$no_cache" != 1; then
4578 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
4579 fi
4580
4581 if test "$wxUSE_DYNLIB_CLASS" = yes; then
e6cc62c6
VS
4582 echo "$as_me:$LINENO: result: yes" >&5
4583echo "${ECHO_T}yes" >&6
10f2d63a 4584 else
e6cc62c6
VS
4585 echo "$as_me:$LINENO: result: no" >&5
4586echo "${ECHO_T}no" >&6
10f2d63a 4587 fi
e6cc62c6 4588
10f2d63a 4589
5005acfe 4590 enablestring=
e6cc62c6
VS
4591 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
4592echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6
0b9ab0bd
RL
4593 no_cache=0
4594 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
4595if test "${enable_dynamicloader+set}" = set; then
4596 enableval="$enable_dynamicloader"
e6cc62c6 4597
0b9ab0bd
RL
4598 if test "$enableval" = yes; then
4599 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
4600 else
4601 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
4602 fi
e6cc62c6 4603
0b9ab0bd 4604else
e6cc62c6 4605
0b9ab0bd
RL
4606 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
4607 if test "x$LINE" != x ; then
4608 eval "DEFAULT_$LINE"
4609 else
4610 no_cache=1
4611 fi
4612
4613 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
0b9ab0bd 4614
e6cc62c6 4615fi;
0b9ab0bd
RL
4616
4617 eval "$ac_cv_use_dynamicloader"
4618 if test "$no_cache" != 1; then
4619 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
4620 fi
4621
4622 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
e6cc62c6
VS
4623 echo "$as_me:$LINENO: result: yes" >&5
4624echo "${ECHO_T}yes" >&6
0b9ab0bd 4625 else
e6cc62c6
VS
4626 echo "$as_me:$LINENO: result: no" >&5
4627echo "${ECHO_T}no" >&6
0b9ab0bd 4628 fi
e6cc62c6 4629
0b9ab0bd 4630
5005acfe 4631 enablestring=
e46d2a18
VS
4632 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
4633echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6
10f2d63a 4634 no_cache=0
e46d2a18
VS
4635 # Check whether --enable-exceptions or --disable-exceptions was given.
4636if test "${enable_exceptions+set}" = set; then
4637 enableval="$enable_exceptions"
e6cc62c6 4638
10f2d63a 4639 if test "$enableval" = yes; then
e46d2a18 4640 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
10f2d63a 4641 else
e46d2a18 4642 ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
10f2d63a 4643 fi
e6cc62c6 4644
10f2d63a 4645else
e6cc62c6 4646
e46d2a18 4647 LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
4648 if test "x$LINE" != x ; then
4649 eval "DEFAULT_$LINE"
4650 else
4651 no_cache=1
4652 fi
4653
e46d2a18 4654 ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS
10f2d63a 4655
e6cc62c6 4656fi;
10f2d63a 4657
e46d2a18 4658 eval "$ac_cv_use_exceptions"
10f2d63a 4659 if test "$no_cache" != 1; then
e46d2a18 4660 echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4661 fi
4662
e46d2a18 4663 if test "$wxUSE_EXCEPTIONS" = yes; then
e6cc62c6
VS
4664 echo "$as_me:$LINENO: result: yes" >&5
4665echo "${ECHO_T}yes" >&6
10f2d63a 4666 else
e6cc62c6
VS
4667 echo "$as_me:$LINENO: result: no" >&5
4668echo "${ECHO_T}no" >&6
10f2d63a 4669 fi
e6cc62c6 4670
10f2d63a 4671
5005acfe 4672 enablestring=
e46d2a18
VS
4673 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
4674echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6
e8f65ba6 4675 no_cache=0
e46d2a18
VS
4676 # Check whether --enable-ffile or --disable-ffile was given.
4677if test "${enable_ffile+set}" = set; then
4678 enableval="$enable_ffile"
e6cc62c6 4679
e8f65ba6 4680 if test "$enableval" = yes; then
e46d2a18 4681 ac_cv_use_ffile='wxUSE_FFILE=yes'
e8f65ba6 4682 else
e46d2a18 4683 ac_cv_use_ffile='wxUSE_FFILE=no'
e8f65ba6 4684 fi
e6cc62c6 4685
e8f65ba6 4686else
e6cc62c6 4687
e46d2a18 4688 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
e8f65ba6
RR
4689 if test "x$LINE" != x ; then
4690 eval "DEFAULT_$LINE"
4691 else
4692 no_cache=1
4693 fi
4694
e46d2a18 4695 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
e8f65ba6 4696
e6cc62c6 4697fi;
e8f65ba6 4698
e46d2a18 4699 eval "$ac_cv_use_ffile"
e8f65ba6 4700 if test "$no_cache" != 1; then
e46d2a18 4701 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
e8f65ba6
RR
4702 fi
4703
e46d2a18 4704 if test "$wxUSE_FFILE" = yes; then
e6cc62c6
VS
4705 echo "$as_me:$LINENO: result: yes" >&5
4706echo "${ECHO_T}yes" >&6
e8f65ba6 4707 else
e6cc62c6
VS
4708 echo "$as_me:$LINENO: result: no" >&5
4709echo "${ECHO_T}no" >&6
e8f65ba6 4710 fi
e6cc62c6 4711
e8f65ba6 4712
5005acfe 4713 enablestring=
e46d2a18
VS
4714 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
4715echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6
10f2d63a 4716 no_cache=0
e46d2a18
VS
4717 # Check whether --enable-file or --disable-file was given.
4718if test "${enable_file+set}" = set; then
4719 enableval="$enable_file"
e6cc62c6 4720
10f2d63a 4721 if test "$enableval" = yes; then
e46d2a18 4722 ac_cv_use_file='wxUSE_FILE=yes'
10f2d63a 4723 else
e46d2a18 4724 ac_cv_use_file='wxUSE_FILE=no'
10f2d63a 4725 fi
e6cc62c6 4726
10f2d63a 4727else
e6cc62c6 4728
e46d2a18 4729 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
10f2d63a
VZ
4730 if test "x$LINE" != x ; then
4731 eval "DEFAULT_$LINE"
4732 else
4733 no_cache=1
4734 fi
4735
e46d2a18 4736 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
10f2d63a 4737
e6cc62c6 4738fi;
10f2d63a 4739
e46d2a18 4740 eval "$ac_cv_use_file"
10f2d63a 4741 if test "$no_cache" != 1; then
e46d2a18 4742 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4743 fi
4744
e46d2a18 4745 if test "$wxUSE_FILE" = yes; then
e6cc62c6
VS
4746 echo "$as_me:$LINENO: result: yes" >&5
4747echo "${ECHO_T}yes" >&6
10f2d63a 4748 else
e6cc62c6
VS
4749 echo "$as_me:$LINENO: result: no" >&5
4750echo "${ECHO_T}no" >&6
10f2d63a 4751 fi
e6cc62c6 4752
10f2d63a 4753
5005acfe 4754 enablestring=
e46d2a18
VS
4755 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
4756echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6
10f2d63a 4757 no_cache=0
e46d2a18
VS
4758 # Check whether --enable-filesystem or --disable-filesystem was given.
4759if test "${enable_filesystem+set}" = set; then
4760 enableval="$enable_filesystem"
e6cc62c6 4761
10f2d63a 4762 if test "$enableval" = yes; then
e46d2a18 4763 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
10f2d63a 4764 else
e46d2a18 4765 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
10f2d63a 4766 fi
e6cc62c6 4767
10f2d63a 4768else
e6cc62c6 4769
e46d2a18 4770 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
10f2d63a
VZ
4771 if test "x$LINE" != x ; then
4772 eval "DEFAULT_$LINE"
4773 else
4774 no_cache=1
4775 fi
4776
e46d2a18 4777 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
10f2d63a 4778
e6cc62c6 4779fi;
10f2d63a 4780
e46d2a18 4781 eval "$ac_cv_use_filesystem"
10f2d63a 4782 if test "$no_cache" != 1; then
e46d2a18 4783 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4784 fi
4785
e46d2a18 4786 if test "$wxUSE_FILESYSTEM" = yes; then
e6cc62c6
VS
4787 echo "$as_me:$LINENO: result: yes" >&5
4788echo "${ECHO_T}yes" >&6
10f2d63a 4789 else
e6cc62c6
VS
4790 echo "$as_me:$LINENO: result: no" >&5
4791echo "${ECHO_T}no" >&6
10f2d63a 4792 fi
e6cc62c6 4793
10f2d63a 4794
5005acfe 4795 enablestring=
e46d2a18
VS
4796 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
4797echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6
10f2d63a 4798 no_cache=0
e46d2a18
VS
4799 # Check whether --enable-fontmap or --disable-fontmap was given.
4800if test "${enable_fontmap+set}" = set; then
4801 enableval="$enable_fontmap"
e6cc62c6 4802
10f2d63a 4803 if test "$enableval" = yes; then
e46d2a18 4804 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
10f2d63a 4805 else
e46d2a18 4806 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
10f2d63a 4807 fi
e6cc62c6 4808
10f2d63a 4809else
e6cc62c6 4810
e46d2a18 4811 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
10f2d63a
VZ
4812 if test "x$LINE" != x ; then
4813 eval "DEFAULT_$LINE"
4814 else
4815 no_cache=1
4816 fi
4817
e46d2a18 4818 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
10f2d63a 4819
e6cc62c6 4820fi;
10f2d63a 4821
e46d2a18 4822 eval "$ac_cv_use_fontmap"
10f2d63a 4823 if test "$no_cache" != 1; then
e46d2a18 4824 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4825 fi
4826
e46d2a18 4827 if test "$wxUSE_FONTMAP" = yes; then
e6cc62c6
VS
4828 echo "$as_me:$LINENO: result: yes" >&5
4829echo "${ECHO_T}yes" >&6
10f2d63a 4830 else
e6cc62c6
VS
4831 echo "$as_me:$LINENO: result: no" >&5
4832echo "${ECHO_T}no" >&6
10f2d63a 4833 fi
e6cc62c6 4834
10f2d63a 4835
5005acfe 4836 enablestring=
e46d2a18
VS
4837 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
4838echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6
10f2d63a 4839 no_cache=0
e46d2a18
VS
4840 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4841if test "${enable_fs_inet+set}" = set; then
4842 enableval="$enable_fs_inet"
e6cc62c6 4843
10f2d63a 4844 if test "$enableval" = yes; then
e46d2a18 4845 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
10f2d63a 4846 else
e46d2a18 4847 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
10f2d63a 4848 fi
e6cc62c6 4849
10f2d63a 4850else
e6cc62c6 4851
e46d2a18 4852 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
10f2d63a
VZ
4853 if test "x$LINE" != x ; then
4854 eval "DEFAULT_$LINE"
4855 else
4856 no_cache=1
4857 fi
4858
e46d2a18 4859 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
10f2d63a 4860
e6cc62c6 4861fi;
10f2d63a 4862
e46d2a18 4863 eval "$ac_cv_use_fs_inet"
10f2d63a 4864 if test "$no_cache" != 1; then
e46d2a18 4865 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4866 fi
4867
e46d2a18 4868 if test "$wxUSE_FS_INET" = yes; then
e6cc62c6
VS
4869 echo "$as_me:$LINENO: result: yes" >&5
4870echo "${ECHO_T}yes" >&6
10f2d63a 4871 else
e6cc62c6
VS
4872 echo "$as_me:$LINENO: result: no" >&5
4873echo "${ECHO_T}no" >&6
10f2d63a 4874 fi
e6cc62c6 4875
10f2d63a 4876
5005acfe 4877 enablestring=
e46d2a18
VS
4878 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
4879echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6
a3a584a7 4880 no_cache=0
e46d2a18
VS
4881 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4882if test "${enable_fs_zip+set}" = set; then
4883 enableval="$enable_fs_zip"
e6cc62c6 4884
a3a584a7 4885 if test "$enableval" = yes; then
e46d2a18 4886 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
a3a584a7 4887 else
e46d2a18 4888 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
a3a584a7 4889 fi
e6cc62c6 4890
a3a584a7 4891else
e6cc62c6 4892
e46d2a18 4893 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
a3a584a7
VZ
4894 if test "x$LINE" != x ; then
4895 eval "DEFAULT_$LINE"
4896 else
4897 no_cache=1
4898 fi
4899
e46d2a18 4900 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
a3a584a7 4901
e6cc62c6 4902fi;
a3a584a7 4903
e46d2a18 4904 eval "$ac_cv_use_fs_zip"
a3a584a7 4905 if test "$no_cache" != 1; then
e46d2a18 4906 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
a3a584a7
VZ
4907 fi
4908
e46d2a18 4909 if test "$wxUSE_FS_ZIP" = yes; then
e6cc62c6
VS
4910 echo "$as_me:$LINENO: result: yes" >&5
4911echo "${ECHO_T}yes" >&6
a3a584a7 4912 else
e6cc62c6
VS
4913 echo "$as_me:$LINENO: result: no" >&5
4914echo "${ECHO_T}no" >&6
a3a584a7 4915 fi
e6cc62c6 4916
a3a584a7 4917
5005acfe 4918 enablestring=
e46d2a18
VS
4919 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
4920echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6
10f2d63a 4921 no_cache=0
e46d2a18
VS
4922 # Check whether --enable-geometry or --disable-geometry was given.
4923if test "${enable_geometry+set}" = set; then
4924 enableval="$enable_geometry"
e6cc62c6 4925
10f2d63a 4926 if test "$enableval" = yes; then
e46d2a18 4927 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
10f2d63a 4928 else
e46d2a18 4929 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
10f2d63a 4930 fi
e6cc62c6 4931
10f2d63a 4932else
e6cc62c6 4933
e46d2a18 4934 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
10f2d63a
VZ
4935 if test "x$LINE" != x ; then
4936 eval "DEFAULT_$LINE"
4937 else
4938 no_cache=1
4939 fi
4940
e46d2a18 4941 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
10f2d63a 4942
e6cc62c6 4943fi;
10f2d63a 4944
e46d2a18 4945 eval "$ac_cv_use_geometry"
10f2d63a 4946 if test "$no_cache" != 1; then
e46d2a18 4947 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4948 fi
4949
e46d2a18 4950 if test "$wxUSE_GEOMETRY" = yes; then
e6cc62c6
VS
4951 echo "$as_me:$LINENO: result: yes" >&5
4952echo "${ECHO_T}yes" >&6
10f2d63a 4953 else
e6cc62c6
VS
4954 echo "$as_me:$LINENO: result: no" >&5
4955echo "${ECHO_T}no" >&6
10f2d63a 4956 fi
e6cc62c6 4957
10f2d63a 4958
5005acfe 4959 enablestring=
e46d2a18
VS
4960 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
4961echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6
10f2d63a 4962 no_cache=0
e46d2a18
VS
4963 # Check whether --enable-log or --disable-log was given.
4964if test "${enable_log+set}" = set; then
4965 enableval="$enable_log"
e6cc62c6 4966
10f2d63a 4967 if test "$enableval" = yes; then
e46d2a18 4968 ac_cv_use_log='wxUSE_LOG=yes'
10f2d63a 4969 else
e46d2a18 4970 ac_cv_use_log='wxUSE_LOG=no'
10f2d63a 4971 fi
e6cc62c6 4972
10f2d63a 4973else
e6cc62c6 4974
e46d2a18 4975 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
10f2d63a
VZ
4976 if test "x$LINE" != x ; then
4977 eval "DEFAULT_$LINE"
4978 else
4979 no_cache=1
4980 fi
4981
e46d2a18 4982 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
10f2d63a 4983
e6cc62c6 4984fi;
10f2d63a 4985
e46d2a18 4986 eval "$ac_cv_use_log"
10f2d63a 4987 if test "$no_cache" != 1; then
e46d2a18 4988 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
4989 fi
4990
e46d2a18 4991 if test "$wxUSE_LOG" = yes; then
e6cc62c6
VS
4992 echo "$as_me:$LINENO: result: yes" >&5
4993echo "${ECHO_T}yes" >&6
10f2d63a 4994 else
e6cc62c6
VS
4995 echo "$as_me:$LINENO: result: no" >&5
4996echo "${ECHO_T}no" >&6
10f2d63a 4997 fi
e6cc62c6 4998
10f2d63a 4999
5005acfe 5000 enablestring=
e46d2a18
VS
5001 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
5002echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6
10f2d63a 5003 no_cache=0
e46d2a18
VS
5004 # Check whether --enable-longlong or --disable-longlong was given.
5005if test "${enable_longlong+set}" = set; then
5006 enableval="$enable_longlong"
e6cc62c6 5007
1e6feb95 5008 if test "$enableval" = yes; then
e46d2a18 5009 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
1e6feb95 5010 else
e46d2a18 5011 ac_cv_use_longlong='wxUSE_LONGLONG=no'
1e6feb95 5012 fi
e6cc62c6 5013
1e6feb95 5014else
e6cc62c6 5015
e46d2a18 5016 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
1e6feb95
VZ
5017 if test "x$LINE" != x ; then
5018 eval "DEFAULT_$LINE"
5019 else
5020 no_cache=1
5021 fi
5022
e46d2a18 5023 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
1e6feb95 5024
e6cc62c6 5025fi;
1e6feb95 5026
e46d2a18 5027 eval "$ac_cv_use_longlong"
1e6feb95 5028 if test "$no_cache" != 1; then
e46d2a18 5029 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5030 fi
5031
e46d2a18
VS
5032 if test "$wxUSE_LONGLONG" = yes; then
5033 echo "$as_me:$LINENO: result: yes" >&5
5034echo "${ECHO_T}yes" >&6
5035 else
5036 echo "$as_me:$LINENO: result: no" >&5
5037echo "${ECHO_T}no" >&6
5038 fi
5039
5040
5041 enablestring=
5042 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
5043echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6
5044 no_cache=0
5045 # Check whether --enable-mimetype or --disable-mimetype was given.
5046if test "${enable_mimetype+set}" = set; then
5047 enableval="$enable_mimetype"
5048
5049 if test "$enableval" = yes; then
5050 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
5051 else
5052 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
5053 fi
5054
5055else
5056
5057 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
5058 if test "x$LINE" != x ; then
5059 eval "DEFAULT_$LINE"
5060 else
5061 no_cache=1
5062 fi
5063
5064 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
5065
5066fi;
5067
5068 eval "$ac_cv_use_mimetype"
5069 if test "$no_cache" != 1; then
5070 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
5071 fi
5072
5073 if test "$wxUSE_MIMETYPE" = yes; then
e6cc62c6
VS
5074 echo "$as_me:$LINENO: result: yes" >&5
5075echo "${ECHO_T}yes" >&6
1e6feb95 5076 else
e6cc62c6
VS
5077 echo "$as_me:$LINENO: result: no" >&5
5078echo "${ECHO_T}no" >&6
1e6feb95 5079 fi
e6cc62c6 5080
1e6feb95 5081
5005acfe 5082 enablestring=
e6cc62c6
VS
5083 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
5084echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6
a72a4bfa
VS
5085 no_cache=0
5086 # Check whether --enable-mslu or --disable-mslu was given.
5087if test "${enable_mslu+set}" = set; then
5088 enableval="$enable_mslu"
e6cc62c6 5089
a72a4bfa
VS
5090 if test "$enableval" = yes; then
5091 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
5092 else
5093 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
5094 fi
e6cc62c6 5095
a72a4bfa 5096else
e6cc62c6 5097
a72a4bfa
VS
5098 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
5099 if test "x$LINE" != x ; then
5100 eval "DEFAULT_$LINE"
5101 else
5102 no_cache=1
5103 fi
5104
5105 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
a72a4bfa 5106
e6cc62c6 5107fi;
a72a4bfa
VS
5108
5109 eval "$ac_cv_use_mslu"
5110 if test "$no_cache" != 1; then
5111 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
5112 fi
5113
5114 if test "$wxUSE_UNICODE_MSLU" = yes; then
e6cc62c6
VS
5115 echo "$as_me:$LINENO: result: yes" >&5
5116echo "${ECHO_T}yes" >&6
a72a4bfa 5117 else
e6cc62c6
VS
5118 echo "$as_me:$LINENO: result: no" >&5
5119echo "${ECHO_T}no" >&6
a72a4bfa 5120 fi
e6cc62c6 5121
a72a4bfa 5122
5005acfe 5123 enablestring=
e46d2a18
VS
5124 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
5125echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6
1e6feb95 5126 no_cache=0
e46d2a18
VS
5127 # Check whether --enable-snglinst or --disable-snglinst was given.
5128if test "${enable_snglinst+set}" = set; then
5129 enableval="$enable_snglinst"
e6cc62c6 5130
1e6feb95 5131 if test "$enableval" = yes; then
e46d2a18 5132 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
10f2d63a 5133 else
e46d2a18 5134 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
10f2d63a 5135 fi
e6cc62c6 5136
10f2d63a 5137else
e6cc62c6 5138
e46d2a18 5139 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
10f2d63a
VZ
5140 if test "x$LINE" != x ; then
5141 eval "DEFAULT_$LINE"
5142 else
5143 no_cache=1
5144 fi
5145
e46d2a18 5146 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
10f2d63a 5147
e6cc62c6 5148fi;
10f2d63a 5149
e46d2a18 5150 eval "$ac_cv_use_snglinst"
10f2d63a 5151 if test "$no_cache" != 1; then
e46d2a18 5152 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5153 fi
5154
e46d2a18
VS
5155 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
5156 echo "$as_me:$LINENO: result: yes" >&5
5157echo "${ECHO_T}yes" >&6
5158 else
5159 echo "$as_me:$LINENO: result: no" >&5
5160echo "${ECHO_T}no" >&6
5161 fi
5162
5163
5164 enablestring=
5165 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
5166echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6
5167 no_cache=0
5168 # Check whether --enable-streams or --disable-streams was given.
5169if test "${enable_streams+set}" = set; then
5170 enableval="$enable_streams"
5171
5172 if test "$enableval" = yes; then
5173 ac_cv_use_streams='wxUSE_STREAMS=yes'
5174 else
5175 ac_cv_use_streams='wxUSE_STREAMS=no'
5176 fi
5177
5178else
5179
5180 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
5181 if test "x$LINE" != x ; then
5182 eval "DEFAULT_$LINE"
5183 else
5184 no_cache=1
5185 fi
5186
5187 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
5188
5189fi;
5190
5191 eval "$ac_cv_use_streams"
5192 if test "$no_cache" != 1; then
5193 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
5194 fi
5195
5196 if test "$wxUSE_STREAMS" = yes; then
e6cc62c6
VS
5197 echo "$as_me:$LINENO: result: yes" >&5
5198echo "${ECHO_T}yes" >&6
10f2d63a 5199 else
e6cc62c6
VS
5200 echo "$as_me:$LINENO: result: no" >&5
5201echo "${ECHO_T}no" >&6
10f2d63a 5202 fi
e6cc62c6 5203
10f2d63a 5204
5005acfe 5205 enablestring=
e6cc62c6
VS
5206 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
5207echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6
10f2d63a
VZ
5208 no_cache=0
5209 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
5210if test "${enable_std_iostreams+set}" = set; then
5211 enableval="$enable_std_iostreams"
e6cc62c6 5212
10f2d63a
VZ
5213 if test "$enableval" = yes; then
5214 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
5215 else
5216 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
5217 fi
e6cc62c6 5218
10f2d63a 5219else
e6cc62c6 5220
10f2d63a
VZ
5221 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
5222 if test "x$LINE" != x ; then
5223 eval "DEFAULT_$LINE"
5224 else
5225 no_cache=1
5226 fi
5227
5228 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
10f2d63a 5229
e6cc62c6 5230fi;
10f2d63a
VZ
5231
5232 eval "$ac_cv_use_std_iostreams"
5233 if test "$no_cache" != 1; then
5234 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
5235 fi
5236
5237 if test "$wxUSE_STD_IOSTREAM" = yes; then
e6cc62c6
VS
5238 echo "$as_me:$LINENO: result: yes" >&5
5239echo "${ECHO_T}yes" >&6
10f2d63a 5240 else
e6cc62c6
VS
5241 echo "$as_me:$LINENO: result: no" >&5
5242echo "${ECHO_T}no" >&6
10f2d63a 5243 fi
e6cc62c6 5244
10f2d63a 5245
5005acfe 5246 enablestring=
e46d2a18
VS
5247 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
5248echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6
24528b0c 5249 no_cache=0
e46d2a18
VS
5250 # Check whether --enable-stopwatch or --disable-stopwatch was given.
5251if test "${enable_stopwatch+set}" = set; then
5252 enableval="$enable_stopwatch"
e6cc62c6 5253
24528b0c 5254 if test "$enableval" = yes; then
e46d2a18 5255 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
24528b0c 5256 else
e46d2a18 5257 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
24528b0c 5258 fi
e6cc62c6 5259
24528b0c 5260else
e6cc62c6 5261
e46d2a18 5262 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
24528b0c
VS
5263 if test "x$LINE" != x ; then
5264 eval "DEFAULT_$LINE"
5265 else
5266 no_cache=1
5267 fi
5268
e46d2a18 5269 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
24528b0c 5270
e6cc62c6 5271fi;
24528b0c 5272
e46d2a18 5273 eval "$ac_cv_use_stopwatch"
24528b0c 5274 if test "$no_cache" != 1; then
e46d2a18 5275 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
24528b0c
VS
5276 fi
5277
e46d2a18 5278 if test "$wxUSE_STOPWATCH" = yes; then
e6cc62c6
VS
5279 echo "$as_me:$LINENO: result: yes" >&5
5280echo "${ECHO_T}yes" >&6
24528b0c 5281 else
e6cc62c6
VS
5282 echo "$as_me:$LINENO: result: no" >&5
5283echo "${ECHO_T}no" >&6
24528b0c 5284 fi
e6cc62c6 5285
24528b0c 5286
5005acfe 5287 enablestring=
e46d2a18
VS
5288 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
5289echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6
10f2d63a 5290 no_cache=0
e46d2a18
VS
5291 # Check whether --enable-system_options or --disable-system_options was given.
5292if test "${enable_system_options+set}" = set; then
5293 enableval="$enable_system_options"
e6cc62c6 5294
10f2d63a 5295 if test "$enableval" = yes; then
e46d2a18 5296 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
10f2d63a 5297 else
e46d2a18 5298 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
10f2d63a 5299 fi
e6cc62c6 5300
10f2d63a 5301else
e6cc62c6 5302
e46d2a18 5303 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
10f2d63a
VZ
5304 if test "x$LINE" != x ; then
5305 eval "DEFAULT_$LINE"
5306 else
5307 no_cache=1
5308 fi
5309
e46d2a18 5310 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
10f2d63a 5311
e6cc62c6 5312fi;
10f2d63a 5313
e46d2a18 5314 eval "$ac_cv_use_system_options"
10f2d63a 5315 if test "$no_cache" != 1; then
e46d2a18 5316 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5317 fi
5318
e46d2a18 5319 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
e6cc62c6
VS
5320 echo "$as_me:$LINENO: result: yes" >&5
5321echo "${ECHO_T}yes" >&6
10f2d63a 5322 else
e6cc62c6
VS
5323 echo "$as_me:$LINENO: result: no" >&5
5324echo "${ECHO_T}no" >&6
10f2d63a 5325 fi
e6cc62c6 5326
10f2d63a 5327
5005acfe 5328 enablestring=
e46d2a18
VS
5329 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
5330echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6
10f2d63a 5331 no_cache=0
e46d2a18
VS
5332 # Check whether --enable-textbuf or --disable-textbuf was given.
5333if test "${enable_textbuf+set}" = set; then
5334 enableval="$enable_textbuf"
e6cc62c6 5335
10f2d63a 5336 if test "$enableval" = yes; then
e46d2a18 5337 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
10f2d63a 5338 else
e46d2a18 5339 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
10f2d63a 5340 fi
e6cc62c6 5341
10f2d63a 5342else
e6cc62c6 5343
e46d2a18 5344 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
10f2d63a
VZ
5345 if test "x$LINE" != x ; then
5346 eval "DEFAULT_$LINE"
5347 else
5348 no_cache=1
5349 fi
5350
e46d2a18 5351 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
10f2d63a 5352
e6cc62c6 5353fi;
10f2d63a 5354
e46d2a18 5355 eval "$ac_cv_use_textbuf"
10f2d63a 5356 if test "$no_cache" != 1; then
e46d2a18 5357 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5358 fi
5359
e46d2a18 5360 if test "$wxUSE_TEXTBUFFER" = yes; then
e6cc62c6
VS
5361 echo "$as_me:$LINENO: result: yes" >&5
5362echo "${ECHO_T}yes" >&6
10f2d63a 5363 else
e6cc62c6
VS
5364 echo "$as_me:$LINENO: result: no" >&5
5365echo "${ECHO_T}no" >&6
10f2d63a 5366 fi
e6cc62c6 5367
10f2d63a 5368
5005acfe 5369 enablestring=
e46d2a18
VS
5370 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
5371echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6
10f2d63a 5372 no_cache=0
e46d2a18
VS
5373 # Check whether --enable-textfile or --disable-textfile was given.
5374if test "${enable_textfile+set}" = set; then
5375 enableval="$enable_textfile"
e6cc62c6 5376
10f2d63a 5377 if test "$enableval" = yes; then
e46d2a18 5378 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
10f2d63a 5379 else
e46d2a18 5380 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
10f2d63a 5381 fi
e6cc62c6 5382
10f2d63a 5383else
e6cc62c6 5384
e46d2a18 5385 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
10f2d63a
VZ
5386 if test "x$LINE" != x ; then
5387 eval "DEFAULT_$LINE"
5388 else
5389 no_cache=1
5390 fi
5391
e46d2a18 5392 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
10f2d63a 5393
e6cc62c6 5394fi;
10f2d63a 5395
e46d2a18 5396 eval "$ac_cv_use_textfile"
10f2d63a 5397 if test "$no_cache" != 1; then
e46d2a18 5398 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
5399 fi
5400
e46d2a18 5401 if test "$wxUSE_TEXTFILE" = yes; then
e6cc62c6
VS
5402 echo "$as_me:$LINENO: result: yes" >&5
5403echo "${ECHO_T}yes" >&6
10f2d63a 5404 else
e6cc62c6
VS
5405 echo "$as_me:$LINENO: result: no" >&5
5406echo "${ECHO_T}no" >&6
10f2d63a 5407 fi
e6cc62c6 5408
8284b0c5 5409
5005acfe 5410 enablestring=
e46d2a18
VS
5411 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
5412echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6
eb4efbdc 5413 no_cache=0
e46d2a18
VS
5414 # Check whether --enable-timer or --disable-timer was given.
5415if test "${enable_timer+set}" = set; then
5416 enableval="$enable_timer"
e6cc62c6 5417
eb4efbdc 5418 if test "$enableval" = yes; then
e46d2a18 5419 ac_cv_use_timer='wxUSE_TIMER=yes'
eb4efbdc 5420 else
e46d2a18 5421 ac_cv_use_timer='wxUSE_TIMER=no'
eb4efbdc 5422 fi
e6cc62c6 5423
eb4efbdc 5424else
e6cc62c6 5425
e46d2a18 5426 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
eb4efbdc
VZ
5427 if test "x$LINE" != x ; then
5428 eval "DEFAULT_$LINE"
5429 else
5430 no_cache=1
5431 fi
5432
e46d2a18 5433 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
eb4efbdc 5434
e6cc62c6 5435fi;
eb4efbdc 5436
e46d2a18 5437 eval "$ac_cv_use_timer"
eb4efbdc 5438 if test "$no_cache" != 1; then
e46d2a18 5439 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
eb4efbdc
VZ
5440 fi
5441
e46d2a18 5442 if test "$wxUSE_TIMER" = yes; then
e6cc62c6
VS
5443 echo "$as_me:$LINENO: result: yes" >&5
5444echo "${ECHO_T}yes" >&6
eb4efbdc 5445 else
e6cc62c6
VS
5446 echo "$as_me:$LINENO: result: no" >&5
5447echo "${ECHO_T}no" >&6
eb4efbdc 5448 fi
e6cc62c6 5449
eb4efbdc 5450
5005acfe 5451 enablestring=
e46d2a18
VS
5452 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
5453echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6
4f3c5f06 5454 no_cache=0
e46d2a18
VS
5455 # Check whether --enable-unicode or --disable-unicode was given.
5456if test "${enable_unicode+set}" = set; then
5457 enableval="$enable_unicode"
e6cc62c6 5458
4f3c5f06 5459 if test "$enableval" = yes; then
e46d2a18 5460 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4f3c5f06 5461 else
e46d2a18 5462 ac_cv_use_unicode='wxUSE_UNICODE=no'
4f3c5f06 5463 fi
e6cc62c6 5464
4f3c5f06 5465else
e6cc62c6 5466
e46d2a18 5467 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4f3c5f06
VZ
5468 if test "x$LINE" != x ; then
5469 eval "DEFAULT_$LINE"
5470 else
5471 no_cache=1
5472 fi
5473
e46d2a18 5474 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4f3c5f06 5475
e6cc62c6 5476fi;
4f3c5f06 5477
e46d2a18 5478 eval "$ac_cv_use_unicode"
4f3c5f06 5479 if test "$no_cache" != 1; then
e46d2a18 5480 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4f3c5f06
VZ
5481 fi
5482
e46d2a18 5483 if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
5484 echo "$as_me:$LINENO: result: yes" >&5
5485echo "${ECHO_T}yes" >&6
4f3c5f06 5486 else
e6cc62c6
VS
5487 echo "$as_me:$LINENO: result: no" >&5
5488echo "${ECHO_T}no" >&6
4f3c5f06 5489 fi
e6cc62c6 5490
52127426 5491
e46d2a18
VS
5492 enablestring=
5493 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5
5494echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6
5495 no_cache=0
5496 # Check whether --enable-wave or --disable-wave was given.
5497if test "${enable_wave+set}" = set; then
5498 enableval="$enable_wave"
5499
5500 if test "$enableval" = yes; then
5501 ac_cv_use_wave='wxUSE_WAVE=yes'
5502 else
5503 ac_cv_use_wave='wxUSE_WAVE=no'
5504 fi
5505
5506else
5507
5508 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
5509 if test "x$LINE" != x ; then
5510 eval "DEFAULT_$LINE"
5511 else
5512 no_cache=1
5513 fi
5514
5515 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
5516
5517fi;
5518
5519 eval "$ac_cv_use_wave"
5520 if test "$no_cache" != 1; then
5521 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
5522 fi
5523
5524 if test "$wxUSE_WAVE" = yes; then
5525 echo "$as_me:$LINENO: result: yes" >&5
5526echo "${ECHO_T}yes" >&6
5527 else
5528 echo "$as_me:$LINENO: result: no" >&5
5529echo "${ECHO_T}no" >&6
5530 fi
5531
8284b0c5 5532
5005acfe 5533 enablestring=
e46d2a18
VS
5534 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5
5535echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6
1e6feb95 5536 no_cache=0
e46d2a18
VS
5537 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
5538if test "${enable_wxprintfv+set}" = set; then
5539 enableval="$enable_wxprintfv"
e6cc62c6 5540
1e6feb95 5541 if test "$enableval" = yes; then
e46d2a18 5542 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
1e6feb95 5543 else
e46d2a18 5544 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
1e6feb95 5545 fi
e6cc62c6 5546
1e6feb95 5547else
e6cc62c6 5548
e46d2a18 5549 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
1e6feb95
VZ
5550 if test "x$LINE" != x ; then
5551 eval "DEFAULT_$LINE"
5552 else
5553 no_cache=1
5554 fi
5555
e46d2a18 5556 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
1e6feb95 5557
e6cc62c6 5558fi;
1e6feb95 5559
e46d2a18 5560 eval "$ac_cv_use_wxprintfv"
1e6feb95 5561 if test "$no_cache" != 1; then
e46d2a18 5562 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
1e6feb95
VZ
5563 fi
5564
e46d2a18 5565 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
e6cc62c6
VS
5566 echo "$as_me:$LINENO: result: yes" >&5
5567echo "${ECHO_T}yes" >&6
1e6feb95 5568 else
e6cc62c6
VS
5569 echo "$as_me:$LINENO: result: no" >&5
5570echo "${ECHO_T}no" >&6
1e6feb95 5571 fi
e6cc62c6 5572
1e6feb95 5573
5005acfe 5574 enablestring=
e46d2a18
VS
5575 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
5576echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6
3e44f09d 5577 no_cache=0
e46d2a18
VS
5578 # Check whether --enable-zipstream or --disable-zipstream was given.
5579if test "${enable_zipstream+set}" = set; then
5580 enableval="$enable_zipstream"
e6cc62c6 5581
3e44f09d 5582 if test "$enableval" = yes; then
e46d2a18 5583 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3e44f09d 5584 else
e46d2a18 5585 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3e44f09d 5586 fi
e6cc62c6 5587
3e44f09d 5588else
e6cc62c6 5589
e46d2a18 5590 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3e44f09d
VZ
5591 if test "x$LINE" != x ; then
5592 eval "DEFAULT_$LINE"
5593 else
5594 no_cache=1
5595 fi
5596
e46d2a18 5597 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
3e44f09d 5598
e6cc62c6 5599fi;
3e44f09d 5600
e46d2a18 5601 eval "$ac_cv_use_zipstream"
3e44f09d 5602 if test "$no_cache" != 1; then
e46d2a18 5603 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
3e44f09d
VZ
5604 fi
5605
e46d2a18 5606 if test "$wxUSE_ZIPSTREAM" = yes; then
e6cc62c6
VS
5607 echo "$as_me:$LINENO: result: yes" >&5
5608echo "${ECHO_T}yes" >&6
3e44f09d 5609 else
e6cc62c6
VS
5610 echo "$as_me:$LINENO: result: no" >&5
5611echo "${ECHO_T}no" >&6
3e44f09d 5612 fi
e6cc62c6 5613
8284b0c5 5614
7015ef3a
VZ
5615 enablestring=
5616 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5
5617echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6
5618 no_cache=0
5619 # Check whether --enable-gzstream or --disable-gzstream was given.
5620if test "${enable_gzstream+set}" = set; then
5621 enableval="$enable_gzstream"
5622
5623 if test "$enableval" = yes; then
5624 ac_cv_use_gzstream='wxUSE_GZSTREAM=yes'
5625 else
5626 ac_cv_use_gzstream='wxUSE_GZSTREAM=no'
5627 fi
5628
5629else
5630
5631 LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}`
5632 if test "x$LINE" != x ; then
5633 eval "DEFAULT_$LINE"
5634 else
5635 no_cache=1
5636 fi
5637
5638 ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM
5639
5640fi;
5641
5642 eval "$ac_cv_use_gzstream"
5643 if test "$no_cache" != 1; then
5644 echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp
5645 fi
5646
5647 if test "$wxUSE_GZSTREAM" = yes; then
5648 echo "$as_me:$LINENO: result: yes" >&5
5649echo "${ECHO_T}yes" >&6
5650 else
5651 echo "$as_me:$LINENO: result: no" >&5
5652echo "${ECHO_T}no" >&6
5653 fi
5654
5655
52127426 5656
5005acfe 5657 enablestring=
e6cc62c6
VS
5658 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
5659echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6
4cdb0ab0
VS
5660 no_cache=0
5661 # Check whether --enable-url or --disable-url was given.
5662if test "${enable_url+set}" = set; then
5663 enableval="$enable_url"
e6cc62c6 5664
4cdb0ab0
VS
5665 if test "$enableval" = yes; then
5666 ac_cv_use_url='wxUSE_URL=yes'
5667 else
5668 ac_cv_use_url='wxUSE_URL=no'
5669 fi
e6cc62c6 5670
4cdb0ab0 5671else
e6cc62c6 5672
4cdb0ab0
VS
5673 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
5674 if test "x$LINE" != x ; then
5675 eval "DEFAULT_$LINE"
5676 else
5677 no_cache=1
5678 fi
5679
5680 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4cdb0ab0 5681
e6cc62c6 5682fi;
4cdb0ab0
VS
5683
5684 eval "$ac_cv_use_url"
5685 if test "$no_cache" != 1; then
5686 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
5687 fi
5688
5689 if test "$wxUSE_URL" = yes; then
e6cc62c6
VS
5690 echo "$as_me:$LINENO: result: yes" >&5
5691echo "${ECHO_T}yes" >&6
4cdb0ab0 5692 else
e6cc62c6
VS
5693 echo "$as_me:$LINENO: result: no" >&5
5694echo "${ECHO_T}no" >&6
4cdb0ab0 5695 fi
e6cc62c6 5696
4cdb0ab0 5697
5005acfe 5698 enablestring=
e6cc62c6
VS
5699 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
5700echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6
4cdb0ab0
VS
5701 no_cache=0
5702 # Check whether --enable-protocol or --disable-protocol was given.
5703if test "${enable_protocol+set}" = set; then
5704 enableval="$enable_protocol"
e6cc62c6 5705
4cdb0ab0
VS
5706 if test "$enableval" = yes; then
5707 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
5708 else
5709 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
5710 fi
e6cc62c6 5711
4cdb0ab0 5712else
e6cc62c6 5713
4cdb0ab0
VS
5714 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
5715 if test "x$LINE" != x ; then
5716 eval "DEFAULT_$LINE"
5717 else
5718 no_cache=1
5719 fi
5720
5721 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4cdb0ab0 5722
e6cc62c6 5723fi;
4cdb0ab0
VS
5724
5725 eval "$ac_cv_use_protocol"
5726 if test "$no_cache" != 1; then
5727 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
5728 fi
5729
5730 if test "$wxUSE_PROTOCOL" = yes; then
e6cc62c6
VS
5731 echo "$as_me:$LINENO: result: yes" >&5
5732echo "${ECHO_T}yes" >&6
4cdb0ab0 5733 else
e6cc62c6
VS
5734 echo "$as_me:$LINENO: result: no" >&5
5735echo "${ECHO_T}no" >&6
4cdb0ab0 5736 fi
e6cc62c6 5737
4cdb0ab0 5738
5005acfe 5739 enablestring=
e6cc62c6
VS
5740 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
5741echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6
4cdb0ab0
VS
5742 no_cache=0
5743 # Check whether --enable-protocol_http or --disable-protocol_http was given.
5744if test "${enable_protocol_http+set}" = set; then
5745 enableval="$enable_protocol_http"
e6cc62c6 5746
4cdb0ab0
VS
5747 if test "$enableval" = yes; then
5748 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
5749 else
5750 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
5751 fi
e6cc62c6 5752
4cdb0ab0 5753else
e6cc62c6 5754
4cdb0ab0
VS
5755 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
5756 if test "x$LINE" != x ; then
5757 eval "DEFAULT_$LINE"
5758 else
5759 no_cache=1
5760 fi
5761
5762 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4cdb0ab0 5763
e6cc62c6 5764fi;
4cdb0ab0
VS
5765
5766 eval "$ac_cv_use_protocol_http"
5767 if test "$no_cache" != 1; then
5768 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
5769 fi
5770
5771 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
e6cc62c6
VS
5772 echo "$as_me:$LINENO: result: yes" >&5
5773echo "${ECHO_T}yes" >&6
4cdb0ab0 5774 else
e6cc62c6
VS
5775 echo "$as_me:$LINENO: result: no" >&5
5776echo "${ECHO_T}no" >&6
4cdb0ab0 5777 fi
e6cc62c6 5778
4cdb0ab0 5779
5005acfe 5780 enablestring=
e6cc62c6
VS
5781 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
5782echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6
4cdb0ab0
VS
5783 no_cache=0
5784 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
5785if test "${enable_protocol_ftp+set}" = set; then
5786 enableval="$enable_protocol_ftp"
e6cc62c6 5787
4cdb0ab0
VS
5788 if test "$enableval" = yes; then
5789 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
5790 else
5791 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
5792 fi
e6cc62c6 5793
4cdb0ab0 5794else
e6cc62c6 5795
4cdb0ab0
VS
5796 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
5797 if test "x$LINE" != x ; then
5798 eval "DEFAULT_$LINE"
5799 else
5800 no_cache=1
5801 fi
5802
5803 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4cdb0ab0 5804
e6cc62c6 5805fi;
4cdb0ab0
VS
5806
5807 eval "$ac_cv_use_protocol_ftp"
5808 if test "$no_cache" != 1; then
5809 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
5810 fi
5811
5812 if test "$wxUSE_PROTOCOL_FTP" = yes; then
e6cc62c6
VS
5813 echo "$as_me:$LINENO: result: yes" >&5
5814echo "${ECHO_T}yes" >&6
4cdb0ab0 5815 else
e6cc62c6
VS
5816 echo "$as_me:$LINENO: result: no" >&5
5817echo "${ECHO_T}no" >&6
4cdb0ab0 5818 fi
e6cc62c6 5819
4cdb0ab0 5820
5005acfe 5821 enablestring=
e6cc62c6
VS
5822 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
5823echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6
4cdb0ab0
VS
5824 no_cache=0
5825 # Check whether --enable-protocol_file or --disable-protocol_file was given.
5826if test "${enable_protocol_file+set}" = set; then
5827 enableval="$enable_protocol_file"
e6cc62c6 5828
4cdb0ab0
VS
5829 if test "$enableval" = yes; then
5830 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
5831 else
5832 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
5833 fi
e6cc62c6 5834
4cdb0ab0 5835else
e6cc62c6 5836
4cdb0ab0
VS
5837 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
5838 if test "x$LINE" != x ; then
5839 eval "DEFAULT_$LINE"
5840 else
5841 no_cache=1
5842 fi
5843
5844 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4cdb0ab0 5845
e6cc62c6 5846fi;
4cdb0ab0
VS
5847
5848 eval "$ac_cv_use_protocol_file"
5849 if test "$no_cache" != 1; then
5850 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
5851 fi
5852
5853 if test "$wxUSE_PROTOCOL_FILE" = yes; then
e6cc62c6
VS
5854 echo "$as_me:$LINENO: result: yes" >&5
5855echo "${ECHO_T}yes" >&6
4cdb0ab0 5856 else
e6cc62c6
VS
5857 echo "$as_me:$LINENO: result: no" >&5
5858echo "${ECHO_T}no" >&6
4cdb0ab0 5859 fi
e6cc62c6 5860
52127426 5861
8284b0c5
MB
5862
5863
5864
5005acfe 5865 enablestring=
e6cc62c6
VS
5866 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
5867echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6
10f2d63a
VZ
5868 no_cache=0
5869 # Check whether --enable-threads or --disable-threads was given.
5870if test "${enable_threads+set}" = set; then
5871 enableval="$enable_threads"
e6cc62c6 5872
10f2d63a
VZ
5873 if test "$enableval" = yes; then
5874 ac_cv_use_threads='wxUSE_THREADS=yes'
5875 else
5876 ac_cv_use_threads='wxUSE_THREADS=no'
5877 fi
e6cc62c6 5878
10f2d63a 5879else
e6cc62c6 5880
10f2d63a
VZ
5881 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
5882 if test "x$LINE" != x ; then
5883 eval "DEFAULT_$LINE"
5884 else
5885 no_cache=1
5886 fi
5887
5888 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
10f2d63a 5889
e6cc62c6 5890fi;
10f2d63a
VZ
5891
5892 eval "$ac_cv_use_threads"
5893 if test "$no_cache" != 1; then
5894 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
5895 fi
5896
5897 if test "$wxUSE_THREADS" = yes; then
e6cc62c6
VS
5898 echo "$as_me:$LINENO: result: yes" >&5
5899echo "${ECHO_T}yes" >&6
10f2d63a 5900 else
e6cc62c6
VS
5901 echo "$as_me:$LINENO: result: no" >&5
5902echo "${ECHO_T}no" >&6
10f2d63a 5903 fi
e6cc62c6 5904
10f2d63a 5905
b12915c1
VZ
5906if test "$wxUSE_GUI" = "yes"; then
5907
8284b0c5
MB
5908
5909
5005acfe 5910 enablestring=
e6cc62c6
VS
5911 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
5912echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6
10f2d63a
VZ
5913 no_cache=0
5914 # Check whether --enable-docview or --disable-docview was given.
5915if test "${enable_docview+set}" = set; then
5916 enableval="$enable_docview"
e6cc62c6 5917
10f2d63a
VZ
5918 if test "$enableval" = yes; then
5919 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
5920 else
5921 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
5922 fi
e6cc62c6 5923
10f2d63a 5924else
e6cc62c6 5925
10f2d63a
VZ
5926 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
5927 if test "x$LINE" != x ; then
5928 eval "DEFAULT_$LINE"
5929 else
5930 no_cache=1
5931 fi
5932
5933 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
10f2d63a 5934
e6cc62c6 5935fi;
10f2d63a
VZ
5936
5937 eval "$ac_cv_use_docview"
5938 if test "$no_cache" != 1; then
5939 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
5940 fi
5941
5942 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
e6cc62c6
VS
5943 echo "$as_me:$LINENO: result: yes" >&5
5944echo "${ECHO_T}yes" >&6
10f2d63a 5945 else
e6cc62c6
VS
5946 echo "$as_me:$LINENO: result: no" >&5
5947echo "${ECHO_T}no" >&6
10f2d63a 5948 fi
e6cc62c6 5949
10f2d63a 5950
5005acfe 5951 enablestring=
e6cc62c6
VS
5952 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
5953echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6
10f2d63a
VZ
5954 no_cache=0
5955 # Check whether --enable-help or --disable-help was given.
5956if test "${enable_help+set}" = set; then
5957 enableval="$enable_help"
e6cc62c6 5958
10f2d63a
VZ
5959 if test "$enableval" = yes; then
5960 ac_cv_use_help='wxUSE_HELP=yes'
5961 else
5962 ac_cv_use_help='wxUSE_HELP=no'
5963 fi
e6cc62c6 5964
10f2d63a 5965else
e6cc62c6 5966
10f2d63a
VZ
5967 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
5968 if test "x$LINE" != x ; then
5969 eval "DEFAULT_$LINE"
5970 else
5971 no_cache=1
5972 fi
5973
5974 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
10f2d63a 5975
e6cc62c6 5976fi;
10f2d63a
VZ
5977
5978 eval "$ac_cv_use_help"
5979 if test "$no_cache" != 1; then
5980 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
5981 fi
5982
5983 if test "$wxUSE_HELP" = yes; then
e6cc62c6
VS
5984 echo "$as_me:$LINENO: result: yes" >&5
5985echo "${ECHO_T}yes" >&6
10f2d63a 5986 else
e6cc62c6
VS
5987 echo "$as_me:$LINENO: result: no" >&5
5988echo "${ECHO_T}no" >&6
10f2d63a 5989 fi
e6cc62c6 5990
10f2d63a 5991
5005acfe 5992 enablestring=
e6cc62c6
VS
5993 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
5994echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6
29fd3c0c
VS
5995 no_cache=0
5996 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
5997if test "${enable_mshtmlhelp+set}" = set; then
5998 enableval="$enable_mshtmlhelp"
e6cc62c6 5999
29fd3c0c
VS
6000 if test "$enableval" = yes; then
6001 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
6002 else
6003 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
6004 fi
e6cc62c6 6005
29fd3c0c 6006else
e6cc62c6 6007
29fd3c0c
VS
6008 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
6009 if test "x$LINE" != x ; then
6010 eval "DEFAULT_$LINE"
6011 else
6012 no_cache=1
6013 fi
6014
6015 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
29fd3c0c 6016
e6cc62c6 6017fi;
29fd3c0c
VS
6018
6019 eval "$ac_cv_use_mshtmlhelp"
6020 if test "$no_cache" != 1; then
6021 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
6022 fi
6023
6024 if test "$wxUSE_MS_HTML_HELP" = yes; then
e6cc62c6
VS
6025 echo "$as_me:$LINENO: result: yes" >&5
6026echo "${ECHO_T}yes" >&6
29fd3c0c 6027 else
e6cc62c6
VS
6028 echo "$as_me:$LINENO: result: no" >&5
6029echo "${ECHO_T}no" >&6
29fd3c0c 6030 fi
e6cc62c6 6031
29fd3c0c 6032
5005acfe 6033 enablestring=
e6cc62c6
VS
6034 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
6035echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6
3379ed37
VZ
6036 no_cache=0
6037 # Check whether --enable-html or --disable-html was given.
6038if test "${enable_html+set}" = set; then
6039 enableval="$enable_html"
e6cc62c6 6040
3379ed37
VZ
6041 if test "$enableval" = yes; then
6042 ac_cv_use_html='wxUSE_HTML=yes'
6043 else
6044 ac_cv_use_html='wxUSE_HTML=no'
6045 fi
e6cc62c6 6046
3379ed37 6047else
e6cc62c6 6048
3379ed37
VZ
6049 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
6050 if test "x$LINE" != x ; then
6051 eval "DEFAULT_$LINE"
6052 else
6053 no_cache=1
6054 fi
6055
6056 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
3379ed37 6057
e6cc62c6 6058fi;
3379ed37
VZ
6059
6060 eval "$ac_cv_use_html"
6061 if test "$no_cache" != 1; then
6062 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
6063 fi
6064
6065 if test "$wxUSE_HTML" = yes; then
e6cc62c6
VS
6066 echo "$as_me:$LINENO: result: yes" >&5
6067echo "${ECHO_T}yes" >&6
3379ed37 6068 else
e6cc62c6
VS
6069 echo "$as_me:$LINENO: result: no" >&5
6070echo "${ECHO_T}no" >&6
3379ed37 6071 fi
e6cc62c6 6072
3379ed37 6073
5005acfe 6074 enablestring=
e6cc62c6
VS
6075 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
6076echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6
3379ed37
VZ
6077 no_cache=0
6078 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
6079if test "${enable_htmlhelp+set}" = set; then
6080 enableval="$enable_htmlhelp"
e6cc62c6 6081
3379ed37
VZ
6082 if test "$enableval" = yes; then
6083 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
6084 else
6085 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
6086 fi
e6cc62c6 6087
3379ed37 6088else
e6cc62c6 6089
3379ed37
VZ
6090 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
6091 if test "x$LINE" != x ; then
6092 eval "DEFAULT_$LINE"
6093 else
6094 no_cache=1
6095 fi
6096
6097 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
3379ed37 6098
e6cc62c6 6099fi;
3379ed37
VZ
6100
6101 eval "$ac_cv_use_htmlhelp"
6102 if test "$no_cache" != 1; then
6103 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
6104 fi
6105
6106 if test "$wxUSE_WXHTML_HELP" = yes; then
e6cc62c6
VS
6107 echo "$as_me:$LINENO: result: yes" >&5
6108echo "${ECHO_T}yes" >&6
3379ed37 6109 else
e6cc62c6
VS
6110 echo "$as_me:$LINENO: result: no" >&5
6111echo "${ECHO_T}no" >&6
3379ed37 6112 fi
e6cc62c6 6113
3379ed37 6114
5005acfe 6115 enablestring=
e6cc62c6
VS
6116 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
6117echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6
10f2d63a
VZ
6118 no_cache=0
6119 # Check whether --enable-constraints or --disable-constraints was given.
6120if test "${enable_constraints+set}" = set; then
6121 enableval="$enable_constraints"
e6cc62c6 6122
10f2d63a
VZ
6123 if test "$enableval" = yes; then
6124 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
6125 else
6126 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
6127 fi
e6cc62c6 6128
10f2d63a 6129else
e6cc62c6 6130
10f2d63a
VZ
6131 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
6132 if test "x$LINE" != x ; then
6133 eval "DEFAULT_$LINE"
6134 else
6135 no_cache=1
6136 fi
6137
6138 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
10f2d63a 6139
e6cc62c6 6140fi;
10f2d63a
VZ
6141
6142 eval "$ac_cv_use_constraints"
6143 if test "$no_cache" != 1; then
6144 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
6145 fi
6146
6147 if test "$wxUSE_CONSTRAINTS" = yes; then
e6cc62c6
VS
6148 echo "$as_me:$LINENO: result: yes" >&5
6149echo "${ECHO_T}yes" >&6
10f2d63a 6150 else
e6cc62c6
VS
6151 echo "$as_me:$LINENO: result: no" >&5
6152echo "${ECHO_T}no" >&6
10f2d63a 6153 fi
e6cc62c6 6154
10f2d63a 6155
5005acfe 6156 enablestring=
e6cc62c6
VS
6157 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
6158echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6
10f2d63a
VZ
6159 no_cache=0
6160 # Check whether --enable-printarch or --disable-printarch was given.
6161if test "${enable_printarch+set}" = set; then
6162 enableval="$enable_printarch"
e6cc62c6 6163
10f2d63a
VZ
6164 if test "$enableval" = yes; then
6165 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
6166 else
6167 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
6168 fi
e6cc62c6 6169
10f2d63a 6170else
e6cc62c6 6171
10f2d63a
VZ
6172 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
6173 if test "x$LINE" != x ; then
6174 eval "DEFAULT_$LINE"
6175 else
6176 no_cache=1
6177 fi
6178
6179 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
10f2d63a 6180
e6cc62c6 6181fi;
10f2d63a
VZ
6182
6183 eval "$ac_cv_use_printarch"
6184 if test "$no_cache" != 1; then
6185 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
6186 fi
6187
6188 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
e6cc62c6
VS
6189 echo "$as_me:$LINENO: result: yes" >&5
6190echo "${ECHO_T}yes" >&6
10f2d63a 6191 else
e6cc62c6
VS
6192 echo "$as_me:$LINENO: result: no" >&5
6193echo "${ECHO_T}no" >&6
10f2d63a 6194 fi
e6cc62c6 6195
10f2d63a 6196
5005acfe 6197 enablestring=
e6cc62c6
VS
6198 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
6199echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6
10f2d63a
VZ
6200 no_cache=0
6201 # Check whether --enable-mdi or --disable-mdi was given.
6202if test "${enable_mdi+set}" = set; then
6203 enableval="$enable_mdi"
e6cc62c6 6204
10f2d63a
VZ
6205 if test "$enableval" = yes; then
6206 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
6207 else
6208 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
6209 fi
e6cc62c6 6210
10f2d63a 6211else
e6cc62c6 6212
10f2d63a
VZ
6213 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
6214 if test "x$LINE" != x ; then
6215 eval "DEFAULT_$LINE"
6216 else
6217 no_cache=1
6218 fi
6219
6220 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
10f2d63a 6221
e6cc62c6 6222fi;
10f2d63a
VZ
6223
6224 eval "$ac_cv_use_mdi"
6225 if test "$no_cache" != 1; then
6226 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
6227 fi
6228
6229 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
e6cc62c6
VS
6230 echo "$as_me:$LINENO: result: yes" >&5
6231echo "${ECHO_T}yes" >&6
10f2d63a 6232 else
e6cc62c6
VS
6233 echo "$as_me:$LINENO: result: no" >&5
6234echo "${ECHO_T}no" >&6
10f2d63a 6235 fi
e6cc62c6 6236
698dcdb6 6237
5005acfe 6238 enablestring=
e6cc62c6
VS
6239 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
6240echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6
1e6feb95
VZ
6241 no_cache=0
6242 # Check whether --enable-loggui or --disable-loggui was given.
6243if test "${enable_loggui+set}" = set; then
6244 enableval="$enable_loggui"
e6cc62c6 6245
1e6feb95
VZ
6246 if test "$enableval" = yes; then
6247 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
6248 else
6249 ac_cv_use_loggui='wxUSE_LOGGUI=no'
6250 fi
e6cc62c6 6251
1e6feb95 6252else
e6cc62c6 6253
1e6feb95
VZ
6254 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
6255 if test "x$LINE" != x ; then
6256 eval "DEFAULT_$LINE"
6257 else
6258 no_cache=1
6259 fi
6260
6261 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
1e6feb95 6262
e6cc62c6 6263fi;
1e6feb95
VZ
6264
6265 eval "$ac_cv_use_loggui"
6266 if test "$no_cache" != 1; then
6267 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
6268 fi
6269
6270 if test "$wxUSE_LOGGUI" = yes; then
e6cc62c6
VS
6271 echo "$as_me:$LINENO: result: yes" >&5
6272echo "${ECHO_T}yes" >&6
1e6feb95 6273 else
e6cc62c6
VS
6274 echo "$as_me:$LINENO: result: no" >&5
6275echo "${ECHO_T}no" >&6
1e6feb95 6276 fi
e6cc62c6 6277
1e6feb95 6278
5005acfe 6279 enablestring=
e6cc62c6
VS
6280 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
6281echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6
1e6feb95
VZ
6282 no_cache=0
6283 # Check whether --enable-logwin or --disable-logwin was given.
6284if test "${enable_logwin+set}" = set; then
6285 enableval="$enable_logwin"
e6cc62c6 6286
1e6feb95
VZ
6287 if test "$enableval" = yes; then
6288 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
6289 else
6290 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
6291 fi
e6cc62c6 6292
1e6feb95 6293else
e6cc62c6 6294
1e6feb95
VZ
6295 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
6296 if test "x$LINE" != x ; then
6297 eval "DEFAULT_$LINE"
6298 else
6299 no_cache=1
6300 fi
6301
6302 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
1e6feb95 6303
e6cc62c6 6304fi;
1e6feb95
VZ
6305
6306 eval "$ac_cv_use_logwin"
6307 if test "$no_cache" != 1; then
6308 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
6309 fi
6310
6311 if test "$wxUSE_LOGWINDOW" = yes; then
e6cc62c6
VS
6312 echo "$as_me:$LINENO: result: yes" >&5
6313echo "${ECHO_T}yes" >&6
1e6feb95 6314 else
e6cc62c6
VS
6315 echo "$as_me:$LINENO: result: no" >&5
6316echo "${ECHO_T}no" >&6
1e6feb95 6317 fi
e6cc62c6 6318
1e6feb95 6319
5005acfe 6320 enablestring=
e6cc62c6
VS
6321 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
6322echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6
69d27ff7
MB
6323 no_cache=0
6324 # Check whether --enable-logdialog or --disable-logdialog was given.
6325if test "${enable_logdialog+set}" = set; then
6326 enableval="$enable_logdialog"
e6cc62c6 6327
69d27ff7
MB
6328 if test "$enableval" = yes; then
6329 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
6330 else
6331 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
6332 fi
e6cc62c6 6333
69d27ff7 6334else
e6cc62c6 6335
69d27ff7
MB
6336 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
6337 if test "x$LINE" != x ; then
6338 eval "DEFAULT_$LINE"
6339 else
6340 no_cache=1
6341 fi
6342
6343 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
69d27ff7 6344
e6cc62c6 6345fi;
69d27ff7
MB
6346
6347 eval "$ac_cv_use_logdialog"
6348 if test "$no_cache" != 1; then
6349 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
6350 fi
6351
6352 if test "$wxUSE_LOGDIALOG" = yes; then
e6cc62c6
VS
6353 echo "$as_me:$LINENO: result: yes" >&5
6354echo "${ECHO_T}yes" >&6
69d27ff7 6355 else
e6cc62c6
VS
6356 echo "$as_me:$LINENO: result: no" >&5
6357echo "${ECHO_T}no" >&6
69d27ff7 6358 fi
e6cc62c6 6359
8284b0c5 6360
52127426 6361
5005acfe 6362 enablestring=
e6cc62c6
VS
6363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
6364echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6
10f2d63a
VZ
6365 no_cache=0
6366 # Check whether --enable-postscript or --disable-postscript was given.
6367if test "${enable_postscript+set}" = set; then
6368 enableval="$enable_postscript"
e6cc62c6 6369
10f2d63a
VZ
6370 if test "$enableval" = yes; then
6371 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
6372 else
6373 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
6374 fi
e6cc62c6 6375
10f2d63a 6376else
e6cc62c6 6377
10f2d63a
VZ
6378 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
6379 if test "x$LINE" != x ; then
6380 eval "DEFAULT_$LINE"
6381 else
6382 no_cache=1
6383 fi
6384
6385 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
10f2d63a 6386
e6cc62c6 6387fi;
10f2d63a
VZ
6388
6389 eval "$ac_cv_use_postscript"
6390 if test "$no_cache" != 1; then
6391 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
6392 fi
6393
6394 if test "$wxUSE_POSTSCRIPT" = yes; then
e6cc62c6
VS
6395 echo "$as_me:$LINENO: result: yes" >&5
6396echo "${ECHO_T}yes" >&6
10f2d63a 6397 else
e6cc62c6
VS
6398 echo "$as_me:$LINENO: result: no" >&5
6399echo "${ECHO_T}no" >&6
10f2d63a 6400 fi
e6cc62c6 6401
8284b0c5
MB
6402
6403
52127426 6404
8284b0c5 6405
5005acfe 6406 enablestring=
e6cc62c6
VS
6407 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5
6408echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6
10f2d63a 6409 no_cache=0
3c907f20
VZ
6410 # Check whether --enable-prologio or --disable-prologio was given.
6411if test "${enable_prologio+set}" = set; then
6412 enableval="$enable_prologio"
e6cc62c6 6413
10f2d63a 6414 if test "$enableval" = yes; then
3c907f20 6415 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
10f2d63a 6416 else
3c907f20 6417 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
10f2d63a 6418 fi
e6cc62c6 6419
10f2d63a 6420else
e6cc62c6 6421
3c907f20 6422 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
10f2d63a
VZ
6423 if test "x$LINE" != x ; then
6424 eval "DEFAULT_$LINE"
6425 else
6426 no_cache=1
6427 fi
6428
3c907f20 6429 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
10f2d63a 6430
e6cc62c6 6431fi;
10f2d63a 6432
3c907f20 6433 eval "$ac_cv_use_prologio"
10f2d63a 6434 if test "$no_cache" != 1; then
3c907f20 6435 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6436 fi
6437
3c907f20 6438 if test "$wxUSE_PROLOGIO" = yes; then
e6cc62c6
VS
6439 echo "$as_me:$LINENO: result: yes" >&5
6440echo "${ECHO_T}yes" >&6
10f2d63a 6441 else
e6cc62c6
VS
6442 echo "$as_me:$LINENO: result: no" >&5
6443echo "${ECHO_T}no" >&6
10f2d63a 6444 fi
e6cc62c6 6445
8284b0c5 6446
5005acfe 6447 enablestring=
e6cc62c6
VS
6448 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5
6449echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6
10f2d63a 6450 no_cache=0
3c907f20
VZ
6451 # Check whether --enable-resources or --disable-resources was given.
6452if test "${enable_resources+set}" = set; then
6453 enableval="$enable_resources"
e6cc62c6 6454
10f2d63a 6455 if test "$enableval" = yes; then
3c907f20 6456 ac_cv_use_resources='wxUSE_RESOURCES=yes'
10f2d63a 6457 else
3c907f20 6458 ac_cv_use_resources='wxUSE_RESOURCES=no'
10f2d63a 6459 fi
e6cc62c6 6460
10f2d63a 6461else
e6cc62c6 6462
3c907f20 6463 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
10f2d63a
VZ
6464 if test "x$LINE" != x ; then
6465 eval "DEFAULT_$LINE"
6466 else
6467 no_cache=1
6468 fi
6469
3c907f20 6470 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
10f2d63a 6471
e6cc62c6 6472fi;
10f2d63a 6473
3c907f20 6474 eval "$ac_cv_use_resources"
10f2d63a 6475 if test "$no_cache" != 1; then
3c907f20 6476 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6477 fi
6478
3c907f20 6479 if test "$wxUSE_RESOURCES" = yes; then
e6cc62c6
VS
6480 echo "$as_me:$LINENO: result: yes" >&5
6481echo "${ECHO_T}yes" >&6
10f2d63a 6482 else
e6cc62c6
VS
6483 echo "$as_me:$LINENO: result: no" >&5
6484echo "${ECHO_T}no" >&6
10f2d63a 6485 fi
e6cc62c6 6486
8284b0c5
MB
6487
6488
52127426 6489
5005acfe 6490 enablestring=
e6cc62c6
VS
6491 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
6492echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6
10f2d63a
VZ
6493 no_cache=0
6494 # Check whether --enable-clipboard or --disable-clipboard was given.
6495if test "${enable_clipboard+set}" = set; then
6496 enableval="$enable_clipboard"
e6cc62c6 6497
10f2d63a
VZ
6498 if test "$enableval" = yes; then
6499 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
6500 else
6501 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
6502 fi
e6cc62c6 6503
10f2d63a 6504else
e6cc62c6 6505
10f2d63a
VZ
6506 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
6507 if test "x$LINE" != x ; then
6508 eval "DEFAULT_$LINE"
6509 else
6510 no_cache=1
6511 fi
6512
6513 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
10f2d63a 6514
e6cc62c6 6515fi;
10f2d63a
VZ
6516
6517 eval "$ac_cv_use_clipboard"
6518 if test "$no_cache" != 1; then
6519 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
6520 fi
6521
6522 if test "$wxUSE_CLIPBOARD" = yes; then
e6cc62c6
VS
6523 echo "$as_me:$LINENO: result: yes" >&5
6524echo "${ECHO_T}yes" >&6
10f2d63a 6525 else
e6cc62c6
VS
6526 echo "$as_me:$LINENO: result: no" >&5
6527echo "${ECHO_T}no" >&6
10f2d63a 6528 fi
e6cc62c6 6529
10f2d63a 6530
5005acfe 6531 enablestring=
e6cc62c6
VS
6532 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
6533echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6
10f2d63a
VZ
6534 no_cache=0
6535 # Check whether --enable-dnd or --disable-dnd was given.
6536if test "${enable_dnd+set}" = set; then
6537 enableval="$enable_dnd"
e6cc62c6 6538
10f2d63a
VZ
6539 if test "$enableval" = yes; then
6540 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
6541 else
6542 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
6543 fi
e6cc62c6 6544
10f2d63a 6545else
e6cc62c6 6546
10f2d63a
VZ
6547 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
6548 if test "x$LINE" != x ; then
6549 eval "DEFAULT_$LINE"
6550 else
6551 no_cache=1
6552 fi
6553
6554 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
10f2d63a 6555
e6cc62c6 6556fi;
10f2d63a
VZ
6557
6558 eval "$ac_cv_use_dnd"
6559 if test "$no_cache" != 1; then
6560 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
6561 fi
6562
6563 if test "$wxUSE_DRAG_AND_DROP" = yes; then
e6cc62c6
VS
6564 echo "$as_me:$LINENO: result: yes" >&5
6565echo "${ECHO_T}yes" >&6
10f2d63a 6566 else
e6cc62c6
VS
6567 echo "$as_me:$LINENO: result: no" >&5
6568echo "${ECHO_T}no" >&6
10f2d63a 6569 fi
e6cc62c6 6570
10f2d63a 6571
5005acfe 6572 enablestring=
e6cc62c6
VS
6573 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
6574echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
b64f0a5f
RL
6575 no_cache=0
6576 # Check whether --enable-metafile or --disable-metafile was given.
6577if test "${enable_metafile+set}" = set; then
6578 enableval="$enable_metafile"
e6cc62c6 6579
b64f0a5f
RL
6580 if test "$enableval" = yes; then
6581 ac_cv_use_metafile='wxUSE_METAFILE=yes'
6582 else
6583 ac_cv_use_metafile='wxUSE_METAFILE=no'
6584 fi
e6cc62c6 6585
b64f0a5f 6586else
e6cc62c6 6587
b64f0a5f
RL
6588 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
6589 if test "x$LINE" != x ; then
6590 eval "DEFAULT_$LINE"
6591 else
6592 no_cache=1
6593 fi
6594
6595 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
b64f0a5f 6596
e6cc62c6 6597fi;
b64f0a5f
RL
6598
6599 eval "$ac_cv_use_metafile"
6600 if test "$no_cache" != 1; then
6601 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
6602 fi
6603
6604 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
6605 echo "$as_me:$LINENO: result: yes" >&5
6606echo "${ECHO_T}yes" >&6
b64f0a5f 6607 else
e6cc62c6
VS
6608 echo "$as_me:$LINENO: result: no" >&5
6609echo "${ECHO_T}no" >&6
b64f0a5f 6610 fi
e6cc62c6 6611
52127426 6612
8284b0c5 6613
52127426 6614
8284b0c5 6615
5005acfe 6616 enablestring=
e6cc62c6
VS
6617 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
6618echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6
10f2d63a
VZ
6619 no_cache=0
6620 # Check whether --enable-controls or --disable-controls was given.
6621if test "${enable_controls+set}" = set; then
6622 enableval="$enable_controls"
e6cc62c6 6623
10f2d63a
VZ
6624 if test "$enableval" = yes; then
6625 ac_cv_use_controls='wxUSE_CONTROLS=yes'
6626 else
6627 ac_cv_use_controls='wxUSE_CONTROLS=no'
6628 fi
e6cc62c6 6629
10f2d63a 6630else
e6cc62c6 6631
10f2d63a
VZ
6632 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
6633 if test "x$LINE" != x ; then
6634 eval "DEFAULT_$LINE"
6635 else
6636 no_cache=1
6637 fi
6638
6639 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
10f2d63a 6640
e6cc62c6 6641fi;
10f2d63a
VZ
6642
6643 eval "$ac_cv_use_controls"
6644 if test "$no_cache" != 1; then
6645 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
6646 fi
6647
6648 if test "$wxUSE_CONTROLS" = yes; then
e6cc62c6
VS
6649 echo "$as_me:$LINENO: result: yes" >&5
6650echo "${ECHO_T}yes" >&6
10f2d63a 6651 else
e6cc62c6
VS
6652 echo "$as_me:$LINENO: result: no" >&5
6653echo "${ECHO_T}no" >&6
10f2d63a 6654 fi
e6cc62c6 6655
10f2d63a
VZ
6656
6657if test "$wxUSE_CONTROLS" = "yes"; then
6658 DEFAULT_wxUSE_ACCEL=yes
1e6feb95
VZ
6659 DEFAULT_wxUSE_BMPBUTTON=yes
6660 DEFAULT_wxUSE_BUTTON=yes
6661 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6662 DEFAULT_wxUSE_CARET=yes
6663 DEFAULT_wxUSE_COMBOBOX=yes
10f2d63a
VZ
6664 DEFAULT_wxUSE_CHECKBOX=yes
6665 DEFAULT_wxUSE_CHECKLISTBOX=yes
6666 DEFAULT_wxUSE_CHOICE=yes
6667 DEFAULT_wxUSE_GAUGE=yes
6668 DEFAULT_wxUSE_GRID=yes
10f2d63a 6669 DEFAULT_wxUSE_IMAGLIST=yes
0e012a93 6670 DEFAULT_wxUSE_LISTBOOK=yes
10f2d63a
VZ
6671 DEFAULT_wxUSE_LISTBOX=yes
6672 DEFAULT_wxUSE_LISTCTRL=yes
6673 DEFAULT_wxUSE_NOTEBOOK=yes
6674 DEFAULT_wxUSE_RADIOBOX=yes
6675 DEFAULT_wxUSE_RADIOBTN=yes
6676 DEFAULT_wxUSE_SASH=yes
6677 DEFAULT_wxUSE_SCROLLBAR=yes
6678 DEFAULT_wxUSE_SLIDER=yes
6679 DEFAULT_wxUSE_SPINBTN=yes
56cfaa52 6680 DEFAULT_wxUSE_SPINCTRL=yes
10f2d63a
VZ
6681 DEFAULT_wxUSE_SPLITTER=yes
6682 DEFAULT_wxUSE_STATBMP=yes
6683 DEFAULT_wxUSE_STATBOX=yes
6684 DEFAULT_wxUSE_STATLINE=yes
6685 DEFAULT_wxUSE_STATUSBAR=yes
6686 DEFAULT_wxUSE_TAB_DIALOG=yes
1db8dc4a 6687 DEFAULT_wxUSE_TOGGLEBTN=yes
10f2d63a 6688 DEFAULT_wxUSE_TOOLBAR=yes
360d6699
VZ
6689 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
6690 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
10f2d63a
VZ
6691 DEFAULT_wxUSE_TOOLTIPS=yes
6692 DEFAULT_wxUSE_TREECTRL=yes
9f41d601 6693 DEFAULT_wxUSE_POPUPWIN=yes
9926e4a4 6694 DEFAULT_wxUSE_TIPWINDOW=yes
10f2d63a
VZ
6695elif test "$wxUSE_CONTROLS" = "no"; then
6696 DEFAULT_wxUSE_ACCEL=no
1e6feb95
VZ
6697 DEFAULT_wxUSE_BMPBUTTON=no
6698 DEFAULT_wxUSE_BUTTON=no
6699 DEFAULT_wxUSE_CALCTRL=no
10f2d63a
VZ
6700 DEFAULT_wxUSE_CARET=no
6701 DEFAULT_wxUSE_COMBOBOX=no
10f2d63a
VZ
6702 DEFAULT_wxUSE_CHECKBOX=no
6703 DEFAULT_wxUSE_CHECKLISTBOX=no
6704 DEFAULT_wxUSE_CHOICE=no
6705 DEFAULT_wxUSE_GAUGE=no
6706 DEFAULT_wxUSE_GRID=no
10f2d63a 6707 DEFAULT_wxUSE_IMAGLIST=no
0e012a93 6708 DEFAULT_wxUSE_LISTBOOK=no
10f2d63a
VZ
6709 DEFAULT_wxUSE_LISTBOX=no
6710 DEFAULT_wxUSE_LISTCTRL=no
6711 DEFAULT_wxUSE_NOTEBOOK=no
6712 DEFAULT_wxUSE_RADIOBOX=no
6713 DEFAULT_wxUSE_RADIOBTN=no
6714 DEFAULT_wxUSE_SASH=no
6715 DEFAULT_wxUSE_SCROLLBAR=no
6716 DEFAULT_wxUSE_SLIDER=no
6717 DEFAULT_wxUSE_SPINBTN=no
56cfaa52 6718 DEFAULT_wxUSE_SPINCTRL=no
10f2d63a
VZ
6719 DEFAULT_wxUSE_SPLITTER=no
6720 DEFAULT_wxUSE_STATBMP=no
6721 DEFAULT_wxUSE_STATBOX=no
6722 DEFAULT_wxUSE_STATLINE=no
6723 DEFAULT_wxUSE_STATUSBAR=no
6724 DEFAULT_wxUSE_TAB_DIALOG=no
1db8dc4a 6725 DEFAULT_wxUSE_TOGGLEBTN=no
10f2d63a 6726 DEFAULT_wxUSE_TOOLBAR=no
360d6699
VZ
6727 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
6728 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
10f2d63a
VZ
6729 DEFAULT_wxUSE_TOOLTIPS=no
6730 DEFAULT_wxUSE_TREECTRL=no
9f41d601 6731 DEFAULT_wxUSE_POPUPWIN=no
9926e4a4 6732 DEFAULT_wxUSE_TIPWINDOW=no
10f2d63a
VZ
6733fi
6734
ac0c4cc3
DE
6735## FIXME: This is a blatant hack
6736if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then
6737 wxUSE_PRINTING_ARCHITECTURE=no
ac0c4cc3 6738 wxUSE_DRAG_AND_DROP=no
8b389fab
DE
6739 # Generic notebook requires tab dialog
6740 DEFAULT_wxUSE_TABDIALOG=yes
ac0c4cc3 6741 DEFAULT_wxUSE_SCROLLBAR=no
ac0c4cc3 6742 DEFAULT_wxUSE_TOOLTIPS=no
ac0c4cc3 6743 DEFAULT_wxUSE_DRAGIMAGE=no
ac0c4cc3
DE
6744fi
6745
8284b0c5 6746
5005acfe 6747 enablestring=
e6cc62c6
VS
6748 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
6749echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6
10f2d63a
VZ
6750 no_cache=0
6751 # Check whether --enable-accel or --disable-accel was given.
6752if test "${enable_accel+set}" = set; then
6753 enableval="$enable_accel"
e6cc62c6 6754
10f2d63a
VZ
6755 if test "$enableval" = yes; then
6756 ac_cv_use_accel='wxUSE_ACCEL=yes'
6757 else
6758 ac_cv_use_accel='wxUSE_ACCEL=no'
6759 fi
e6cc62c6 6760
10f2d63a 6761else
e6cc62c6 6762
10f2d63a
VZ
6763 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
6764 if test "x$LINE" != x ; then
6765 eval "DEFAULT_$LINE"
6766 else
6767 no_cache=1
6768 fi
6769
6770 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
10f2d63a 6771
e6cc62c6 6772fi;
10f2d63a
VZ
6773
6774 eval "$ac_cv_use_accel"
6775 if test "$no_cache" != 1; then
6776 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
6777 fi
6778
6779 if test "$wxUSE_ACCEL" = yes; then
e6cc62c6
VS
6780 echo "$as_me:$LINENO: result: yes" >&5
6781echo "${ECHO_T}yes" >&6
10f2d63a 6782 else
e6cc62c6
VS
6783 echo "$as_me:$LINENO: result: no" >&5
6784echo "${ECHO_T}no" >&6
10f2d63a 6785 fi
e6cc62c6 6786
10f2d63a 6787
5005acfe 6788 enablestring=
e6cc62c6
VS
6789 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
6790echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6
10f2d63a 6791 no_cache=0
1e6feb95
VZ
6792 # Check whether --enable-button or --disable-button was given.
6793if test "${enable_button+set}" = set; then
6794 enableval="$enable_button"
e6cc62c6 6795
10f2d63a 6796 if test "$enableval" = yes; then
1e6feb95 6797 ac_cv_use_button='wxUSE_BUTTON=yes'
10f2d63a 6798 else
1e6feb95 6799 ac_cv_use_button='wxUSE_BUTTON=no'
10f2d63a 6800 fi
e6cc62c6 6801
10f2d63a 6802else
e6cc62c6 6803
1e6feb95 6804 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
10f2d63a
VZ
6805 if test "x$LINE" != x ; then
6806 eval "DEFAULT_$LINE"
6807 else
6808 no_cache=1
6809 fi
6810
1e6feb95 6811 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
10f2d63a 6812
e6cc62c6 6813fi;
10f2d63a 6814
1e6feb95 6815 eval "$ac_cv_use_button"
10f2d63a 6816 if test "$no_cache" != 1; then
1e6feb95 6817 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
6818 fi
6819
1e6feb95 6820 if test "$wxUSE_BUTTON" = yes; then
e6cc62c6
VS
6821 echo "$as_me:$LINENO: result: yes" >&5
6822echo "${ECHO_T}yes" >&6
10f2d63a 6823 else
e6cc62c6
VS
6824 echo "$as_me:$LINENO: result: no" >&5
6825echo "${ECHO_T}no" >&6
10f2d63a 6826 fi
e6cc62c6 6827
10f2d63a 6828
5005acfe 6829 enablestring=
e6cc62c6
VS
6830 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
6831echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6
10f2d63a
VZ
6832 no_cache=0
6833 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
6834if test "${enable_bmpbutton+set}" = set; then
6835 enableval="$enable_bmpbutton"
e6cc62c6 6836
10f2d63a
VZ
6837 if test "$enableval" = yes; then
6838 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
6839 else
6840 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
6841 fi
e6cc62c6 6842
10f2d63a 6843else
e6cc62c6 6844
10f2d63a
VZ
6845 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
6846 if test "x$LINE" != x ; then
6847 eval "DEFAULT_$LINE"
6848 else
6849 no_cache=1
6850 fi
6851
6852 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
10f2d63a 6853
e6cc62c6 6854fi;
10f2d63a
VZ
6855
6856 eval "$ac_cv_use_bmpbutton"
6857 if test "$no_cache" != 1; then
6858 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
6859 fi
6860
6861 if test "$wxUSE_BMPBUTTON" = yes; then
e6cc62c6
VS
6862 echo "$as_me:$LINENO: result: yes" >&5
6863echo "${ECHO_T}yes" >&6
10f2d63a 6864 else
e6cc62c6
VS
6865 echo "$as_me:$LINENO: result: no" >&5
6866echo "${ECHO_T}no" >&6
10f2d63a 6867 fi
e6cc62c6 6868
10f2d63a 6869
5005acfe 6870 enablestring=
e6cc62c6
VS
6871 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
6872echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6
1e6feb95
VZ
6873 no_cache=0
6874 # Check whether --enable-calendar or --disable-calendar was given.
6875if test "${enable_calendar+set}" = set; then
6876 enableval="$enable_calendar"
e6cc62c6 6877
1e6feb95
VZ
6878 if test "$enableval" = yes; then
6879 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
6880 else
6881 ac_cv_use_calendar='wxUSE_CALCTRL=no'
6882 fi
e6cc62c6 6883
1e6feb95 6884else
e6cc62c6 6885
1e6feb95
VZ
6886 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
6887 if test "x$LINE" != x ; then
6888 eval "DEFAULT_$LINE"
6889 else
6890 no_cache=1
6891 fi
6892
6893 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
1e6feb95 6894
e6cc62c6 6895fi;
1e6feb95
VZ
6896
6897 eval "$ac_cv_use_calendar"
6898 if test "$no_cache" != 1; then
6899 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
6900 fi
6901
6902 if test "$wxUSE_CALCTRL" = yes; then
e6cc62c6
VS
6903 echo "$as_me:$LINENO: result: yes" >&5
6904echo "${ECHO_T}yes" >&6
1e6feb95 6905 else
e6cc62c6
VS
6906 echo "$as_me:$LINENO: result: no" >&5
6907echo "${ECHO_T}no" >&6
1e6feb95 6908 fi
e6cc62c6 6909
1e6feb95 6910
5005acfe 6911 enablestring=
e6cc62c6
VS
6912 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
6913echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6
1e6feb95
VZ
6914 no_cache=0
6915 # Check whether --enable-caret or --disable-caret was given.
6916if test "${enable_caret+set}" = set; then
6917 enableval="$enable_caret"
e6cc62c6 6918
1e6feb95
VZ
6919 if test "$enableval" = yes; then
6920 ac_cv_use_caret='wxUSE_CARET=yes'
6921 else
6922 ac_cv_use_caret='wxUSE_CARET=no'
6923 fi
e6cc62c6 6924
1e6feb95 6925else
e6cc62c6 6926
1e6feb95
VZ
6927 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
6928 if test "x$LINE" != x ; then
6929 eval "DEFAULT_$LINE"
6930 else
6931 no_cache=1
6932 fi
6933
6934 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
1e6feb95 6935
e6cc62c6 6936fi;
1e6feb95
VZ
6937
6938 eval "$ac_cv_use_caret"
6939 if test "$no_cache" != 1; then
6940 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
6941 fi
6942
6943 if test "$wxUSE_CARET" = yes; then
e6cc62c6
VS
6944 echo "$as_me:$LINENO: result: yes" >&5
6945echo "${ECHO_T}yes" >&6
1e6feb95 6946 else
e6cc62c6
VS
6947 echo "$as_me:$LINENO: result: no" >&5
6948echo "${ECHO_T}no" >&6
1e6feb95 6949 fi
e6cc62c6 6950
1e6feb95 6951
5005acfe 6952 enablestring=
e6cc62c6
VS
6953 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
6954echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6
10f2d63a
VZ
6955 no_cache=0
6956 # Check whether --enable-checkbox or --disable-checkbox was given.
6957if test "${enable_checkbox+set}" = set; then
6958 enableval="$enable_checkbox"
e6cc62c6 6959
10f2d63a
VZ
6960 if test "$enableval" = yes; then
6961 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
6962 else
6963 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
6964 fi
e6cc62c6 6965
10f2d63a 6966else
e6cc62c6 6967
10f2d63a
VZ
6968 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
6969 if test "x$LINE" != x ; then
6970 eval "DEFAULT_$LINE"
6971 else
6972 no_cache=1
6973 fi
6974
6975 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
10f2d63a 6976
e6cc62c6 6977fi;
10f2d63a
VZ
6978
6979 eval "$ac_cv_use_checkbox"
6980 if test "$no_cache" != 1; then
6981 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
6982 fi
6983
6984 if test "$wxUSE_CHECKBOX" = yes; then
e6cc62c6
VS
6985 echo "$as_me:$LINENO: result: yes" >&5
6986echo "${ECHO_T}yes" >&6
10f2d63a 6987 else
e6cc62c6
VS
6988 echo "$as_me:$LINENO: result: no" >&5
6989echo "${ECHO_T}no" >&6
10f2d63a 6990 fi
e6cc62c6 6991
10f2d63a 6992
5005acfe 6993 enablestring=
e6cc62c6
VS
6994 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
6995echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6
10f2d63a
VZ
6996 no_cache=0
6997 # Check whether --enable-checklst or --disable-checklst was given.
6998if test "${enable_checklst+set}" = set; then
6999 enableval="$enable_checklst"
e6cc62c6 7000
10f2d63a
VZ
7001 if test "$enableval" = yes; then
7002 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
7003 else
7004 ac_cv_use_checklst='wxUSE_CHECKLST=no'
7005 fi
e6cc62c6 7006
10f2d63a 7007else
e6cc62c6 7008
10f2d63a
VZ
7009 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
7010 if test "x$LINE" != x ; then
7011 eval "DEFAULT_$LINE"
7012 else
7013 no_cache=1
7014 fi
7015
7016 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
10f2d63a 7017
e6cc62c6 7018fi;
10f2d63a
VZ
7019
7020 eval "$ac_cv_use_checklst"
7021 if test "$no_cache" != 1; then
7022 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
7023 fi
7024
7025 if test "$wxUSE_CHECKLST" = yes; then
e6cc62c6
VS
7026 echo "$as_me:$LINENO: result: yes" >&5
7027echo "${ECHO_T}yes" >&6
10f2d63a 7028 else
e6cc62c6
VS
7029 echo "$as_me:$LINENO: result: no" >&5
7030echo "${ECHO_T}no" >&6
10f2d63a 7031 fi
e6cc62c6 7032
10f2d63a 7033
5005acfe 7034 enablestring=
e6cc62c6
VS
7035 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
7036echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6
10f2d63a
VZ
7037 no_cache=0
7038 # Check whether --enable-choice or --disable-choice was given.
7039if test "${enable_choice+set}" = set; then
7040 enableval="$enable_choice"
e6cc62c6 7041
10f2d63a
VZ
7042 if test "$enableval" = yes; then
7043 ac_cv_use_choice='wxUSE_CHOICE=yes'
7044 else
7045 ac_cv_use_choice='wxUSE_CHOICE=no'
7046 fi
e6cc62c6 7047
10f2d63a 7048else
e6cc62c6 7049
10f2d63a
VZ
7050 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
7051 if test "x$LINE" != x ; then
7052 eval "DEFAULT_$LINE"
7053 else
7054 no_cache=1
7055 fi
7056
7057 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
10f2d63a 7058
e6cc62c6 7059fi;
10f2d63a
VZ
7060
7061 eval "$ac_cv_use_choice"
7062 if test "$no_cache" != 1; then
7063 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
7064 fi
7065
7066 if test "$wxUSE_CHOICE" = yes; then
e6cc62c6
VS
7067 echo "$as_me:$LINENO: result: yes" >&5
7068echo "${ECHO_T}yes" >&6
10f2d63a 7069 else
e6cc62c6
VS
7070 echo "$as_me:$LINENO: result: no" >&5
7071echo "${ECHO_T}no" >&6
10f2d63a 7072 fi
e6cc62c6 7073
10f2d63a 7074
5005acfe 7075 enablestring=
e6cc62c6
VS
7076 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
7077echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6
10f2d63a
VZ
7078 no_cache=0
7079 # Check whether --enable-combobox or --disable-combobox was given.
7080if test "${enable_combobox+set}" = set; then
7081 enableval="$enable_combobox"
e6cc62c6 7082
10f2d63a
VZ
7083 if test "$enableval" = yes; then
7084 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
7085 else
7086 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
7087 fi
e6cc62c6 7088
10f2d63a 7089else
e6cc62c6 7090
10f2d63a
VZ
7091 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
7092 if test "x$LINE" != x ; then
7093 eval "DEFAULT_$LINE"
7094 else
7095 no_cache=1
7096 fi
7097
7098 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
10f2d63a 7099
e6cc62c6 7100fi;
10f2d63a
VZ
7101
7102 eval "$ac_cv_use_combobox"
7103 if test "$no_cache" != 1; then
7104 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
7105 fi
7106
7107 if test "$wxUSE_COMBOBOX" = yes; then
e6cc62c6
VS
7108 echo "$as_me:$LINENO: result: yes" >&5
7109echo "${ECHO_T}yes" >&6
10f2d63a 7110 else
e6cc62c6
VS
7111 echo "$as_me:$LINENO: result: no" >&5
7112echo "${ECHO_T}no" >&6
10f2d63a 7113 fi
e6cc62c6 7114
10f2d63a 7115
da494b40 7116 enablestring=
e6cc62c6
VS
7117 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
7118echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6
da494b40
MB
7119 no_cache=0
7120 # Check whether --enable-display or --disable-display was given.
7121if test "${enable_display+set}" = set; then
7122 enableval="$enable_display"
e6cc62c6 7123
da494b40
MB
7124 if test "$enableval" = yes; then
7125 ac_cv_use_display='wxUSE_DISPLAY=yes'
7126 else
7127 ac_cv_use_display='wxUSE_DISPLAY=no'
7128 fi
e6cc62c6 7129
da494b40 7130else
e6cc62c6 7131
da494b40
MB
7132 LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}`
7133 if test "x$LINE" != x ; then
7134 eval "DEFAULT_$LINE"
7135 else
7136 no_cache=1
7137 fi
7138
7139 ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY
da494b40 7140
e6cc62c6 7141fi;
da494b40
MB
7142
7143 eval "$ac_cv_use_display"
7144 if test "$no_cache" != 1; then
7145 echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp
7146 fi
7147
7148 if test "$wxUSE_DISPLAY" = yes; then
e6cc62c6
VS
7149 echo "$as_me:$LINENO: result: yes" >&5
7150echo "${ECHO_T}yes" >&6
da494b40 7151 else
e6cc62c6
VS
7152 echo "$as_me:$LINENO: result: no" >&5
7153echo "${ECHO_T}no" >&6
da494b40 7154 fi
e6cc62c6 7155
da494b40 7156
5005acfe 7157 enablestring=
e6cc62c6
VS
7158 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
7159echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6
10f2d63a
VZ
7160 no_cache=0
7161 # Check whether --enable-gauge or --disable-gauge was given.
7162if test "${enable_gauge+set}" = set; then
7163 enableval="$enable_gauge"
e6cc62c6 7164
10f2d63a
VZ
7165 if test "$enableval" = yes; then
7166 ac_cv_use_gauge='wxUSE_GAUGE=yes'
7167 else
7168 ac_cv_use_gauge='wxUSE_GAUGE=no'
7169 fi
e6cc62c6 7170
10f2d63a 7171else
e6cc62c6 7172
10f2d63a
VZ
7173 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
7174 if test "x$LINE" != x ; then
7175 eval "DEFAULT_$LINE"
7176 else
7177 no_cache=1
7178 fi
7179
7180 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
10f2d63a 7181
e6cc62c6 7182fi;
10f2d63a
VZ
7183
7184 eval "$ac_cv_use_gauge"
7185 if test "$no_cache" != 1; then
7186 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
7187 fi
7188
7189 if test "$wxUSE_GAUGE" = yes; then
e6cc62c6
VS
7190 echo "$as_me:$LINENO: result: yes" >&5
7191echo "${ECHO_T}yes" >&6
10f2d63a 7192 else
e6cc62c6
VS
7193 echo "$as_me:$LINENO: result: no" >&5
7194echo "${ECHO_T}no" >&6
10f2d63a 7195 fi
e6cc62c6 7196
10f2d63a 7197
5005acfe 7198 enablestring=
e6cc62c6
VS
7199 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
7200echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6
10f2d63a
VZ
7201 no_cache=0
7202 # Check whether --enable-grid or --disable-grid was given.
7203if test "${enable_grid+set}" = set; then
7204 enableval="$enable_grid"
e6cc62c6 7205
10f2d63a
VZ
7206 if test "$enableval" = yes; then
7207 ac_cv_use_grid='wxUSE_GRID=yes'
7208 else
7209 ac_cv_use_grid='wxUSE_GRID=no'
7210 fi
e6cc62c6 7211
10f2d63a 7212else
e6cc62c6 7213
10f2d63a
VZ
7214 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
7215 if test "x$LINE" != x ; then
7216 eval "DEFAULT_$LINE"
7217 else
7218 no_cache=1
7219 fi
7220
7221 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
10f2d63a 7222
e6cc62c6 7223fi;
10f2d63a
VZ
7224
7225 eval "$ac_cv_use_grid"
7226 if test "$no_cache" != 1; then
7227 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
7228 fi
7229
7230 if test "$wxUSE_GRID" = yes; then
e6cc62c6
VS
7231 echo "$as_me:$LINENO: result: yes" >&5
7232echo "${ECHO_T}yes" >&6
10f2d63a 7233 else
e6cc62c6
VS
7234 echo "$as_me:$LINENO: result: no" >&5
7235echo "${ECHO_T}no" >&6
10f2d63a 7236 fi
e6cc62c6 7237
10f2d63a 7238
5005acfe 7239 enablestring=
e6cc62c6
VS
7240 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
7241echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6
10f2d63a
VZ
7242 no_cache=0
7243 # Check whether --enable-imaglist or --disable-imaglist was given.
7244if test "${enable_imaglist+set}" = set; then
7245 enableval="$enable_imaglist"
e6cc62c6 7246
10f2d63a
VZ
7247 if test "$enableval" = yes; then
7248 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
7249 else
7250 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
7251 fi
e6cc62c6 7252
10f2d63a 7253else
e6cc62c6 7254
10f2d63a
VZ
7255 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
7256 if test "x$LINE" != x ; then
7257 eval "DEFAULT_$LINE"
7258 else
7259 no_cache=1
7260 fi
7261
7262 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
10f2d63a 7263
e6cc62c6 7264fi;
10f2d63a
VZ
7265
7266 eval "$ac_cv_use_imaglist"
7267 if test "$no_cache" != 1; then
7268 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
7269 fi
7270
7271 if test "$wxUSE_IMAGLIST" = yes; then
e6cc62c6
VS
7272 echo "$as_me:$LINENO: result: yes" >&5
7273echo "${ECHO_T}yes" >&6
10f2d63a 7274 else
e6cc62c6
VS
7275 echo "$as_me:$LINENO: result: no" >&5
7276echo "${ECHO_T}no" >&6
10f2d63a 7277 fi
e6cc62c6 7278
10f2d63a 7279
0e012a93
VZ
7280 enablestring=
7281 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
7282echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6
7283 no_cache=0
7284 # Check whether --enable-listbook or --disable-listbook was given.
7285if test "${enable_listbook+set}" = set; then
7286 enableval="$enable_listbook"
7287
7288 if test "$enableval" = yes; then
7289 ac_cv_use_listbook='wxUSE_LISTBOOK=yes'
7290 else
7291 ac_cv_use_listbook='wxUSE_LISTBOOK=no'
7292 fi
7293
7294else
7295
7296 LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}`
7297 if test "x$LINE" != x ; then
7298 eval "DEFAULT_$LINE"
7299 else
7300 no_cache=1
7301 fi
7302
7303 ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK
7304
7305fi;
7306
7307 eval "$ac_cv_use_listbook"
7308 if test "$no_cache" != 1; then
7309 echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp
7310 fi
7311
7312 if test "$wxUSE_LISTBOOK" = yes; then
7313 echo "$as_me:$LINENO: result: yes" >&5
7314echo "${ECHO_T}yes" >&6
7315 else
7316 echo "$as_me:$LINENO: result: no" >&5
7317echo "${ECHO_T}no" >&6
7318 fi
7319
7320
5005acfe 7321 enablestring=
e6cc62c6
VS
7322 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
7323echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6
10f2d63a
VZ
7324 no_cache=0
7325 # Check whether --enable-listbox or --disable-listbox was given.
7326if test "${enable_listbox+set}" = set; then
7327 enableval="$enable_listbox"
e6cc62c6 7328
10f2d63a
VZ
7329 if test "$enableval" = yes; then
7330 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
7331 else
7332 ac_cv_use_listbox='wxUSE_LISTBOX=no'
7333 fi
e6cc62c6 7334
10f2d63a 7335else
e6cc62c6 7336
10f2d63a
VZ
7337 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
7338 if test "x$LINE" != x ; then
7339 eval "DEFAULT_$LINE"
7340 else
7341 no_cache=1
7342 fi
7343
7344 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
10f2d63a 7345
e6cc62c6 7346fi;
10f2d63a
VZ
7347
7348 eval "$ac_cv_use_listbox"
7349 if test "$no_cache" != 1; then
7350 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
7351 fi
7352
7353 if test "$wxUSE_LISTBOX" = yes; then
e6cc62c6
VS
7354 echo "$as_me:$LINENO: result: yes" >&5
7355echo "${ECHO_T}yes" >&6
10f2d63a 7356 else
e6cc62c6
VS
7357 echo "$as_me:$LINENO: result: no" >&5
7358echo "${ECHO_T}no" >&6
10f2d63a 7359 fi
e6cc62c6 7360
10f2d63a 7361
5005acfe 7362 enablestring=
e6cc62c6
VS
7363 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
7364echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6
10f2d63a
VZ
7365 no_cache=0
7366 # Check whether --enable-listctrl or --disable-listctrl was given.
7367if test "${enable_listctrl+set}" = set; then
7368 enableval="$enable_listctrl"
e6cc62c6 7369
10f2d63a
VZ
7370 if test "$enableval" = yes; then
7371 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
7372 else
7373 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
7374 fi
e6cc62c6 7375
10f2d63a 7376else
e6cc62c6 7377
10f2d63a
VZ
7378 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
7379 if test "x$LINE" != x ; then
7380 eval "DEFAULT_$LINE"
7381 else
7382 no_cache=1
7383 fi
7384
7385 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
10f2d63a 7386
e6cc62c6 7387fi;
10f2d63a
VZ
7388
7389 eval "$ac_cv_use_listctrl"
7390 if test "$no_cache" != 1; then
7391 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
7392 fi
7393
7394 if test "$wxUSE_LISTCTRL" = yes; then
e6cc62c6
VS
7395 echo "$as_me:$LINENO: result: yes" >&5
7396echo "${ECHO_T}yes" >&6
10f2d63a 7397 else
e6cc62c6
VS
7398 echo "$as_me:$LINENO: result: no" >&5
7399echo "${ECHO_T}no" >&6
10f2d63a 7400 fi
e6cc62c6 7401
10f2d63a 7402
5005acfe 7403 enablestring=
e6cc62c6
VS
7404 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
7405echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6
10f2d63a
VZ
7406 no_cache=0
7407 # Check whether --enable-notebook or --disable-notebook was given.
7408if test "${enable_notebook+set}" = set; then
7409 enableval="$enable_notebook"
e6cc62c6 7410
10f2d63a
VZ
7411 if test "$enableval" = yes; then
7412 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
7413 else
7414 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
7415 fi
e6cc62c6 7416
10f2d63a 7417else
e6cc62c6 7418
10f2d63a
VZ
7419 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
7420 if test "x$LINE" != x ; then
7421 eval "DEFAULT_$LINE"
7422 else
7423 no_cache=1
7424 fi
7425
7426 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
10f2d63a 7427
e6cc62c6 7428fi;
10f2d63a
VZ
7429
7430 eval "$ac_cv_use_notebook"
7431 if test "$no_cache" != 1; then
7432 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
7433 fi
7434
7435 if test "$wxUSE_NOTEBOOK" = yes; then
e6cc62c6
VS
7436 echo "$as_me:$LINENO: result: yes" >&5
7437echo "${ECHO_T}yes" >&6
10f2d63a 7438 else
e6cc62c6
VS
7439 echo "$as_me:$LINENO: result: no" >&5
7440echo "${ECHO_T}no" >&6
10f2d63a 7441 fi
e6cc62c6 7442
10f2d63a 7443
5005acfe 7444 enablestring=
e6cc62c6
VS
7445 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
7446echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6
10f2d63a
VZ
7447 no_cache=0
7448 # Check whether --enable-radiobox or --disable-radiobox was given.
7449if test "${enable_radiobox+set}" = set; then
7450 enableval="$enable_radiobox"
e6cc62c6 7451
10f2d63a
VZ
7452 if test "$enableval" = yes; then
7453 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
7454 else
7455 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
7456 fi
e6cc62c6 7457
10f2d63a 7458else
e6cc62c6 7459
10f2d63a
VZ
7460 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
7461 if test "x$LINE" != x ; then
7462 eval "DEFAULT_$LINE"
7463 else
7464 no_cache=1
7465 fi
7466
7467 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
10f2d63a 7468
e6cc62c6 7469fi;
10f2d63a
VZ
7470
7471 eval "$ac_cv_use_radiobox"
7472 if test "$no_cache" != 1; then
7473 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
7474 fi
7475
7476 if test "$wxUSE_RADIOBOX" = yes; then
e6cc62c6
VS
7477 echo "$as_me:$LINENO: result: yes" >&5
7478echo "${ECHO_T}yes" >&6
10f2d63a 7479 else
e6cc62c6
VS
7480 echo "$as_me:$LINENO: result: no" >&5
7481echo "${ECHO_T}no" >&6
10f2d63a 7482 fi
e6cc62c6 7483
10f2d63a 7484
5005acfe 7485 enablestring=
e6cc62c6
VS
7486 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
7487echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6
10f2d63a
VZ
7488 no_cache=0
7489 # Check whether --enable-radiobtn or --disable-radiobtn was given.
7490if test "${enable_radiobtn+set}" = set; then
7491 enableval="$enable_radiobtn"
e6cc62c6 7492
10f2d63a
VZ
7493 if test "$enableval" = yes; then
7494 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
7495 else
7496 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
7497 fi
e6cc62c6 7498
10f2d63a 7499else
e6cc62c6 7500
10f2d63a
VZ
7501 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
7502 if test "x$LINE" != x ; then
7503 eval "DEFAULT_$LINE"
7504 else
7505 no_cache=1
7506 fi
7507
7508 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
10f2d63a 7509
e6cc62c6 7510fi;
10f2d63a
VZ
7511
7512 eval "$ac_cv_use_radiobtn"
7513 if test "$no_cache" != 1; then
7514 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
7515 fi
7516
7517 if test "$wxUSE_RADIOBTN" = yes; then
e6cc62c6
VS
7518 echo "$as_me:$LINENO: result: yes" >&5
7519echo "${ECHO_T}yes" >&6
10f2d63a 7520 else
e6cc62c6
VS
7521 echo "$as_me:$LINENO: result: no" >&5
7522echo "${ECHO_T}no" >&6
10f2d63a 7523 fi
e6cc62c6 7524
10f2d63a 7525
5005acfe 7526 enablestring=
e6cc62c6
VS
7527 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
7528echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6
10f2d63a
VZ
7529 no_cache=0
7530 # Check whether --enable-sash or --disable-sash was given.
7531if test "${enable_sash+set}" = set; then
7532 enableval="$enable_sash"
e6cc62c6 7533
10f2d63a
VZ
7534 if test "$enableval" = yes; then
7535 ac_cv_use_sash='wxUSE_SASH=yes'
7536 else
7537 ac_cv_use_sash='wxUSE_SASH=no'
7538 fi
e6cc62c6 7539
10f2d63a 7540else
e6cc62c6 7541
10f2d63a
VZ
7542 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
7543 if test "x$LINE" != x ; then
7544 eval "DEFAULT_$LINE"
7545 else
7546 no_cache=1
7547 fi
7548
7549 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
10f2d63a 7550
e6cc62c6 7551fi;
10f2d63a
VZ
7552
7553 eval "$ac_cv_use_sash"
7554 if test "$no_cache" != 1; then
7555 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
7556 fi
7557
7558 if test "$wxUSE_SASH" = yes; then
e6cc62c6
VS
7559 echo "$as_me:$LINENO: result: yes" >&5
7560echo "${ECHO_T}yes" >&6
10f2d63a 7561 else
e6cc62c6
VS
7562 echo "$as_me:$LINENO: result: no" >&5
7563echo "${ECHO_T}no" >&6
10f2d63a 7564 fi
e6cc62c6 7565
10f2d63a 7566
5005acfe 7567 enablestring=
e6cc62c6
VS
7568 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
7569echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6
10f2d63a
VZ
7570 no_cache=0
7571 # Check whether --enable-scrollbar or --disable-scrollbar was given.
7572if test "${enable_scrollbar+set}" = set; then
7573 enableval="$enable_scrollbar"
e6cc62c6 7574
10f2d63a
VZ
7575 if test "$enableval" = yes; then
7576 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
7577 else
7578 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
7579 fi
e6cc62c6 7580
10f2d63a 7581else
e6cc62c6 7582
10f2d63a
VZ
7583 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
7584 if test "x$LINE" != x ; then
7585 eval "DEFAULT_$LINE"
7586 else
7587 no_cache=1
7588 fi
7589
7590 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
10f2d63a 7591
e6cc62c6 7592fi;
10f2d63a
VZ
7593
7594 eval "$ac_cv_use_scrollbar"
7595 if test "$no_cache" != 1; then
7596 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
7597 fi
7598
7599 if test "$wxUSE_SCROLLBAR" = yes; then
e6cc62c6
VS
7600 echo "$as_me:$LINENO: result: yes" >&5
7601echo "${ECHO_T}yes" >&6
10f2d63a 7602 else
e6cc62c6
VS
7603 echo "$as_me:$LINENO: result: no" >&5
7604echo "${ECHO_T}no" >&6
10f2d63a 7605 fi
e6cc62c6 7606
10f2d63a 7607
5005acfe 7608 enablestring=
e6cc62c6
VS
7609 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
7610echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6
10f2d63a
VZ
7611 no_cache=0
7612 # Check whether --enable-slider or --disable-slider was given.
7613if test "${enable_slider+set}" = set; then
7614 enableval="$enable_slider"
e6cc62c6 7615
10f2d63a
VZ
7616 if test "$enableval" = yes; then
7617 ac_cv_use_slider='wxUSE_SLIDER=yes'
7618 else
7619 ac_cv_use_slider='wxUSE_SLIDER=no'
7620 fi
e6cc62c6 7621
10f2d63a 7622else
e6cc62c6 7623
10f2d63a
VZ
7624 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
7625 if test "x$LINE" != x ; then
7626 eval "DEFAULT_$LINE"
7627 else
7628 no_cache=1
7629 fi
7630
7631 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
10f2d63a 7632
e6cc62c6 7633fi;
10f2d63a
VZ
7634
7635 eval "$ac_cv_use_slider"
7636 if test "$no_cache" != 1; then
7637 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
7638 fi
7639
7640 if test "$wxUSE_SLIDER" = yes; then
e6cc62c6
VS
7641 echo "$as_me:$LINENO: result: yes" >&5
7642echo "${ECHO_T}yes" >&6
10f2d63a 7643 else
e6cc62c6
VS
7644 echo "$as_me:$LINENO: result: no" >&5
7645echo "${ECHO_T}no" >&6
10f2d63a 7646 fi
e6cc62c6 7647
10f2d63a 7648
5005acfe 7649 enablestring=
e6cc62c6
VS
7650 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
7651echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6
10f2d63a
VZ
7652 no_cache=0
7653 # Check whether --enable-spinbtn or --disable-spinbtn was given.
7654if test "${enable_spinbtn+set}" = set; then
7655 enableval="$enable_spinbtn"
e6cc62c6 7656
10f2d63a
VZ
7657 if test "$enableval" = yes; then
7658 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
7659 else
7660 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
7661 fi
e6cc62c6 7662
10f2d63a 7663else
e6cc62c6 7664
10f2d63a
VZ
7665 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
7666 if test "x$LINE" != x ; then
7667 eval "DEFAULT_$LINE"
7668 else
7669 no_cache=1
7670 fi
7671
7672 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
10f2d63a 7673
e6cc62c6 7674fi;
10f2d63a
VZ
7675
7676 eval "$ac_cv_use_spinbtn"
7677 if test "$no_cache" != 1; then
7678 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
7679 fi
7680
7681 if test "$wxUSE_SPINBTN" = yes; then
e6cc62c6
VS
7682 echo "$as_me:$LINENO: result: yes" >&5
7683echo "${ECHO_T}yes" >&6
10f2d63a 7684 else
e6cc62c6
VS
7685 echo "$as_me:$LINENO: result: no" >&5
7686echo "${ECHO_T}no" >&6
10f2d63a 7687 fi
e6cc62c6 7688
10f2d63a 7689
5005acfe 7690 enablestring=
e6cc62c6
VS
7691 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
7692echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6
56cfaa52
RR
7693 no_cache=0
7694 # Check whether --enable-spinctrl or --disable-spinctrl was given.
7695if test "${enable_spinctrl+set}" = set; then
7696 enableval="$enable_spinctrl"
e6cc62c6 7697
56cfaa52
RR
7698 if test "$enableval" = yes; then
7699 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
7700 else
7701 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
7702 fi
e6cc62c6 7703
56cfaa52 7704else
e6cc62c6 7705
56cfaa52
RR
7706 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
7707 if test "x$LINE" != x ; then
7708 eval "DEFAULT_$LINE"
7709 else
7710 no_cache=1
7711 fi
7712
7713 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
56cfaa52 7714
e6cc62c6 7715fi;
56cfaa52
RR
7716
7717 eval "$ac_cv_use_spinctrl"
7718 if test "$no_cache" != 1; then
7719 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
7720 fi
7721
7722 if test "$wxUSE_SPINCTRL" = yes; then
e6cc62c6
VS
7723 echo "$as_me:$LINENO: result: yes" >&5
7724echo "${ECHO_T}yes" >&6
56cfaa52 7725 else
e6cc62c6
VS
7726 echo "$as_me:$LINENO: result: no" >&5
7727echo "${ECHO_T}no" >&6
56cfaa52 7728 fi
e6cc62c6 7729
56cfaa52 7730
5005acfe 7731 enablestring=
e6cc62c6
VS
7732 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
7733echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6
10f2d63a
VZ
7734 no_cache=0
7735 # Check whether --enable-splitter or --disable-splitter was given.
7736if test "${enable_splitter+set}" = set; then
7737 enableval="$enable_splitter"
e6cc62c6 7738
10f2d63a
VZ
7739 if test "$enableval" = yes; then
7740 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
7741 else
7742 ac_cv_use_splitter='wxUSE_SPLITTER=no'
7743 fi
e6cc62c6 7744
10f2d63a 7745else
e6cc62c6 7746
10f2d63a
VZ
7747 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
7748 if test "x$LINE" != x ; then
7749 eval "DEFAULT_$LINE"
7750 else
7751 no_cache=1
7752 fi
7753
7754 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
10f2d63a 7755
e6cc62c6 7756fi;
10f2d63a
VZ
7757
7758 eval "$ac_cv_use_splitter"
7759 if test "$no_cache" != 1; then
7760 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
7761 fi
7762
7763 if test "$wxUSE_SPLITTER" = yes; then
e6cc62c6
VS
7764 echo "$as_me:$LINENO: result: yes" >&5
7765echo "${ECHO_T}yes" >&6
10f2d63a 7766 else
e6cc62c6
VS
7767 echo "$as_me:$LINENO: result: no" >&5
7768echo "${ECHO_T}no" >&6
10f2d63a 7769 fi
e6cc62c6 7770
10f2d63a 7771
5005acfe 7772 enablestring=
e6cc62c6
VS
7773 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
7774echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6
10f2d63a
VZ
7775 no_cache=0
7776 # Check whether --enable-statbmp or --disable-statbmp was given.
7777if test "${enable_statbmp+set}" = set; then
7778 enableval="$enable_statbmp"
e6cc62c6 7779
10f2d63a
VZ
7780 if test "$enableval" = yes; then
7781 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
7782 else
7783 ac_cv_use_statbmp='wxUSE_STATBMP=no'
7784 fi
e6cc62c6 7785
10f2d63a 7786else
e6cc62c6 7787
10f2d63a
VZ
7788 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
7789 if test "x$LINE" != x ; then
7790 eval "DEFAULT_$LINE"
7791 else
7792 no_cache=1
7793 fi
7794
7795 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
10f2d63a 7796
e6cc62c6 7797fi;
10f2d63a
VZ
7798
7799 eval "$ac_cv_use_statbmp"
7800 if test "$no_cache" != 1; then
7801 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
7802 fi
7803
7804 if test "$wxUSE_STATBMP" = yes; then
e6cc62c6
VS
7805 echo "$as_me:$LINENO: result: yes" >&5
7806echo "${ECHO_T}yes" >&6
10f2d63a 7807 else
e6cc62c6
VS
7808 echo "$as_me:$LINENO: result: no" >&5
7809echo "${ECHO_T}no" >&6
10f2d63a 7810 fi
e6cc62c6 7811
10f2d63a 7812
5005acfe 7813 enablestring=
e6cc62c6
VS
7814 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
7815echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6
10f2d63a
VZ
7816 no_cache=0
7817 # Check whether --enable-statbox or --disable-statbox was given.
7818if test "${enable_statbox+set}" = set; then
7819 enableval="$enable_statbox"
e6cc62c6 7820
10f2d63a
VZ
7821 if test "$enableval" = yes; then
7822 ac_cv_use_statbox='wxUSE_STATBOX=yes'
7823 else
7824 ac_cv_use_statbox='wxUSE_STATBOX=no'
7825 fi
e6cc62c6 7826
10f2d63a 7827else
e6cc62c6 7828
10f2d63a
VZ
7829 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
7830 if test "x$LINE" != x ; then
7831 eval "DEFAULT_$LINE"
7832 else
7833 no_cache=1
7834 fi
7835
7836 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
10f2d63a 7837
e6cc62c6 7838fi;
10f2d63a
VZ
7839
7840 eval "$ac_cv_use_statbox"
7841 if test "$no_cache" != 1; then
7842 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
7843 fi
7844
7845 if test "$wxUSE_STATBOX" = yes; then
e6cc62c6
VS
7846 echo "$as_me:$LINENO: result: yes" >&5
7847echo "${ECHO_T}yes" >&6
10f2d63a 7848 else
e6cc62c6
VS
7849 echo "$as_me:$LINENO: result: no" >&5
7850echo "${ECHO_T}no" >&6
10f2d63a 7851 fi
e6cc62c6 7852
10f2d63a 7853
5005acfe 7854 enablestring=
e6cc62c6
VS
7855 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
7856echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6
10f2d63a
VZ
7857 no_cache=0
7858 # Check whether --enable-statline or --disable-statline was given.
7859if test "${enable_statline+set}" = set; then
7860 enableval="$enable_statline"
e6cc62c6 7861
10f2d63a
VZ
7862 if test "$enableval" = yes; then
7863 ac_cv_use_statline='wxUSE_STATLINE=yes'
7864 else
7865 ac_cv_use_statline='wxUSE_STATLINE=no'
7866 fi
e6cc62c6 7867
10f2d63a 7868else
e6cc62c6 7869
10f2d63a
VZ
7870 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
7871 if test "x$LINE" != x ; then
7872 eval "DEFAULT_$LINE"
7873 else
7874 no_cache=1
7875 fi
7876
7877 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
10f2d63a 7878
e6cc62c6 7879fi;
10f2d63a
VZ
7880
7881 eval "$ac_cv_use_statline"
7882 if test "$no_cache" != 1; then
7883 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
7884 fi
7885
7886 if test "$wxUSE_STATLINE" = yes; then
e6cc62c6
VS
7887 echo "$as_me:$LINENO: result: yes" >&5
7888echo "${ECHO_T}yes" >&6
10f2d63a 7889 else
e6cc62c6
VS
7890 echo "$as_me:$LINENO: result: no" >&5
7891echo "${ECHO_T}no" >&6
10f2d63a 7892 fi
e6cc62c6 7893
10f2d63a 7894
5005acfe 7895 enablestring=
e6cc62c6
VS
7896 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
7897echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6
1e6feb95
VZ
7898 no_cache=0
7899 # Check whether --enable-stattext or --disable-stattext was given.
7900if test "${enable_stattext+set}" = set; then
7901 enableval="$enable_stattext"
e6cc62c6 7902
1e6feb95
VZ
7903 if test "$enableval" = yes; then
7904 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
7905 else
7906 ac_cv_use_stattext='wxUSE_STATTEXT=no'
7907 fi
e6cc62c6 7908
1e6feb95 7909else
e6cc62c6 7910
1e6feb95
VZ
7911 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
7912 if test "x$LINE" != x ; then
7913 eval "DEFAULT_$LINE"
7914 else
7915 no_cache=1
7916 fi
7917
7918 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
1e6feb95 7919
e6cc62c6 7920fi;
1e6feb95
VZ
7921
7922 eval "$ac_cv_use_stattext"
7923 if test "$no_cache" != 1; then
7924 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
7925 fi
7926
7927 if test "$wxUSE_STATTEXT" = yes; then
e6cc62c6
VS
7928 echo "$as_me:$LINENO: result: yes" >&5
7929echo "${ECHO_T}yes" >&6
1e6feb95 7930 else
e6cc62c6
VS
7931 echo "$as_me:$LINENO: result: no" >&5
7932echo "${ECHO_T}no" >&6
1e6feb95 7933 fi
e6cc62c6 7934
1e6feb95 7935
5005acfe 7936 enablestring=
e6cc62c6
VS
7937 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
7938echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6
10f2d63a
VZ
7939 no_cache=0
7940 # Check whether --enable-statusbar or --disable-statusbar was given.
7941if test "${enable_statusbar+set}" = set; then
7942 enableval="$enable_statusbar"
e6cc62c6 7943
10f2d63a
VZ
7944 if test "$enableval" = yes; then
7945 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
7946 else
7947 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
7948 fi
e6cc62c6 7949
10f2d63a 7950else
e6cc62c6 7951
10f2d63a
VZ
7952 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
7953 if test "x$LINE" != x ; then
7954 eval "DEFAULT_$LINE"
7955 else
7956 no_cache=1
7957 fi
7958
7959 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
10f2d63a 7960
e6cc62c6 7961fi;
10f2d63a
VZ
7962
7963 eval "$ac_cv_use_statusbar"
7964 if test "$no_cache" != 1; then
7965 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
7966 fi
7967
7968 if test "$wxUSE_STATUSBAR" = yes; then
e6cc62c6
VS
7969 echo "$as_me:$LINENO: result: yes" >&5
7970echo "${ECHO_T}yes" >&6
10f2d63a 7971 else
e6cc62c6
VS
7972 echo "$as_me:$LINENO: result: no" >&5
7973echo "${ECHO_T}no" >&6
10f2d63a 7974 fi
e6cc62c6 7975
10f2d63a 7976
5005acfe 7977 enablestring=
e6cc62c6
VS
7978 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
7979echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6
10f2d63a
VZ
7980 no_cache=0
7981 # Check whether --enable-tabdialog or --disable-tabdialog was given.
7982if test "${enable_tabdialog+set}" = set; then
7983 enableval="$enable_tabdialog"
e6cc62c6 7984
10f2d63a
VZ
7985 if test "$enableval" = yes; then
7986 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
7987 else
7988 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
7989 fi
e6cc62c6 7990
10f2d63a 7991else
e6cc62c6 7992
10f2d63a
VZ
7993 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
7994 if test "x$LINE" != x ; then
7995 eval "DEFAULT_$LINE"
7996 else
7997 no_cache=1
7998 fi
7999
8000 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
10f2d63a 8001
e6cc62c6 8002fi;
10f2d63a
VZ
8003
8004 eval "$ac_cv_use_tabdialog"
8005 if test "$no_cache" != 1; then
8006 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
8007 fi
8008
8009 if test "$wxUSE_TABDIALOG" = yes; then
e6cc62c6
VS
8010 echo "$as_me:$LINENO: result: yes" >&5
8011echo "${ECHO_T}yes" >&6
10f2d63a 8012 else
e6cc62c6
VS
8013 echo "$as_me:$LINENO: result: no" >&5
8014echo "${ECHO_T}no" >&6
10f2d63a 8015 fi
e6cc62c6 8016
10f2d63a 8017
5005acfe 8018 enablestring=
e6cc62c6
VS
8019 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
8020echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6
1e6feb95
VZ
8021 no_cache=0
8022 # Check whether --enable-textctrl or --disable-textctrl was given.
8023if test "${enable_textctrl+set}" = set; then
8024 enableval="$enable_textctrl"
e6cc62c6 8025
1e6feb95
VZ
8026 if test "$enableval" = yes; then
8027 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
8028 else
8029 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
8030 fi
e6cc62c6 8031
1e6feb95 8032else
e6cc62c6 8033
1e6feb95
VZ
8034 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
8035 if test "x$LINE" != x ; then
8036 eval "DEFAULT_$LINE"
8037 else
8038 no_cache=1
8039 fi
8040
8041 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
1e6feb95 8042
e6cc62c6 8043fi;
1e6feb95
VZ
8044
8045 eval "$ac_cv_use_textctrl"
8046 if test "$no_cache" != 1; then
8047 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
8048 fi
8049
8050 if test "$wxUSE_TEXTCTRL" = yes; then
e6cc62c6
VS
8051 echo "$as_me:$LINENO: result: yes" >&5
8052echo "${ECHO_T}yes" >&6
1e6feb95 8053 else
e6cc62c6
VS
8054 echo "$as_me:$LINENO: result: no" >&5
8055echo "${ECHO_T}no" >&6
1e6feb95 8056 fi
e6cc62c6 8057
1e6feb95 8058
5005acfe 8059 enablestring=
e6cc62c6
VS
8060 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
8061echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6
1db8dc4a
VZ
8062 no_cache=0
8063 # Check whether --enable-togglebtn or --disable-togglebtn was given.
8064if test "${enable_togglebtn+set}" = set; then
8065 enableval="$enable_togglebtn"
e6cc62c6 8066
1db8dc4a
VZ
8067 if test "$enableval" = yes; then
8068 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
8069 else
8070 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
8071 fi
e6cc62c6 8072
1db8dc4a 8073else
e6cc62c6 8074
1db8dc4a
VZ
8075 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
8076 if test "x$LINE" != x ; then
8077 eval "DEFAULT_$LINE"
8078 else
8079 no_cache=1
8080 fi
8081
8082 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
1db8dc4a 8083
e6cc62c6 8084fi;
1db8dc4a
VZ
8085
8086 eval "$ac_cv_use_togglebtn"
8087 if test "$no_cache" != 1; then
8088 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
8089 fi
8090
8091 if test "$wxUSE_TOGGLEBTN" = yes; then
e6cc62c6
VS
8092 echo "$as_me:$LINENO: result: yes" >&5
8093echo "${ECHO_T}yes" >&6
1db8dc4a 8094 else
e6cc62c6
VS
8095 echo "$as_me:$LINENO: result: no" >&5
8096echo "${ECHO_T}no" >&6
1db8dc4a 8097 fi
e6cc62c6 8098
1db8dc4a 8099
5005acfe 8100 enablestring=
e6cc62c6
VS
8101 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
8102echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6
10f2d63a
VZ
8103 no_cache=0
8104 # Check whether --enable-toolbar or --disable-toolbar was given.
8105if test "${enable_toolbar+set}" = set; then
8106 enableval="$enable_toolbar"
e6cc62c6 8107
10f2d63a
VZ
8108 if test "$enableval" = yes; then
8109 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
8110 else
8111 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
8112 fi
e6cc62c6 8113
10f2d63a 8114else
e6cc62c6 8115
10f2d63a
VZ
8116 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
8117 if test "x$LINE" != x ; then
8118 eval "DEFAULT_$LINE"
8119 else
8120 no_cache=1
8121 fi
8122
8123 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
10f2d63a 8124
e6cc62c6 8125fi;
10f2d63a
VZ
8126
8127 eval "$ac_cv_use_toolbar"
8128 if test "$no_cache" != 1; then
8129 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
8130 fi
8131
8132 if test "$wxUSE_TOOLBAR" = yes; then
e6cc62c6
VS
8133 echo "$as_me:$LINENO: result: yes" >&5
8134echo "${ECHO_T}yes" >&6
10f2d63a 8135 else
e6cc62c6
VS
8136 echo "$as_me:$LINENO: result: no" >&5
8137echo "${ECHO_T}no" >&6
10f2d63a 8138 fi
e6cc62c6 8139
10f2d63a 8140
5005acfe 8141 enablestring=
e6cc62c6
VS
8142 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
8143echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6
360d6699
VZ
8144 no_cache=0
8145 # Check whether --enable-tbarnative or --disable-tbarnative was given.
8146if test "${enable_tbarnative+set}" = set; then
8147 enableval="$enable_tbarnative"
e6cc62c6 8148
360d6699
VZ
8149 if test "$enableval" = yes; then
8150 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
8151 else
8152 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
8153 fi
e6cc62c6 8154
360d6699 8155else
e6cc62c6 8156
360d6699
VZ
8157 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
8158 if test "x$LINE" != x ; then
8159 eval "DEFAULT_$LINE"
8160 else
8161 no_cache=1
8162 fi
8163
8164 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
360d6699 8165
e6cc62c6 8166fi;
360d6699
VZ
8167
8168 eval "$ac_cv_use_tbarnative"
8169 if test "$no_cache" != 1; then
8170 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
8171 fi
8172
8173 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
e6cc62c6
VS
8174 echo "$as_me:$LINENO: result: yes" >&5
8175echo "${ECHO_T}yes" >&6
360d6699 8176 else
e6cc62c6
VS
8177 echo "$as_me:$LINENO: result: no" >&5
8178echo "${ECHO_T}no" >&6
360d6699 8179 fi
e6cc62c6 8180
360d6699 8181
5005acfe 8182 enablestring=
e6cc62c6
VS
8183 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5
8184echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6
360d6699
VZ
8185 no_cache=0
8186 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
8187if test "${enable_tbarsmpl+set}" = set; then
8188 enableval="$enable_tbarsmpl"
e6cc62c6 8189
360d6699
VZ
8190 if test "$enableval" = yes; then
8191 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
8192 else
8193 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
8194 fi
e6cc62c6 8195
360d6699 8196else
e6cc62c6 8197
360d6699
VZ
8198 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
8199 if test "x$LINE" != x ; then
8200 eval "DEFAULT_$LINE"
8201 else
8202 no_cache=1
8203 fi
8204
8205 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
360d6699 8206
e6cc62c6 8207fi;
360d6699
VZ
8208
8209 eval "$ac_cv_use_tbarsmpl"
8210 if test "$no_cache" != 1; then
8211 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
8212 fi
8213
8214 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
e6cc62c6
VS
8215 echo "$as_me:$LINENO: result: yes" >&5
8216echo "${ECHO_T}yes" >&6
360d6699 8217 else
e6cc62c6
VS
8218 echo "$as_me:$LINENO: result: no" >&5
8219echo "${ECHO_T}no" >&6
360d6699 8220 fi
e6cc62c6 8221
360d6699 8222
5005acfe 8223 enablestring=
e6cc62c6
VS
8224 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
8225echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6
10f2d63a
VZ
8226 no_cache=0
8227 # Check whether --enable-treectrl or --disable-treectrl was given.
8228if test "${enable_treectrl+set}" = set; then
8229 enableval="$enable_treectrl"
e6cc62c6 8230
10f2d63a
VZ
8231 if test "$enableval" = yes; then
8232 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
8233 else
8234 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
8235 fi
e6cc62c6 8236
10f2d63a 8237else
e6cc62c6 8238
10f2d63a
VZ
8239 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
8240 if test "x$LINE" != x ; then
8241 eval "DEFAULT_$LINE"
8242 else
8243 no_cache=1
8244 fi
8245
8246 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
10f2d63a 8247
e6cc62c6 8248fi;
10f2d63a 8249
1e6feb95
VZ
8250 eval "$ac_cv_use_treectrl"
8251 if test "$no_cache" != 1; then
8252 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
8253 fi
8254
8255 if test "$wxUSE_TREECTRL" = yes; then
e6cc62c6
VS
8256 echo "$as_me:$LINENO: result: yes" >&5
8257echo "${ECHO_T}yes" >&6
1e6feb95 8258 else
e6cc62c6
VS
8259 echo "$as_me:$LINENO: result: no" >&5
8260echo "${ECHO_T}no" >&6
1e6feb95 8261 fi
e6cc62c6 8262
1e6feb95 8263
5005acfe 8264 enablestring=
e6cc62c6
VS
8265 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
8266echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6
9926e4a4
VZ
8267 no_cache=0
8268 # Check whether --enable-tipwindow or --disable-tipwindow was given.
8269if test "${enable_tipwindow+set}" = set; then
8270 enableval="$enable_tipwindow"
e6cc62c6 8271
9926e4a4
VZ
8272 if test "$enableval" = yes; then
8273 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
8274 else
8275 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
8276 fi
e6cc62c6 8277
9926e4a4 8278else
e6cc62c6 8279
9926e4a4
VZ
8280 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
8281 if test "x$LINE" != x ; then
8282 eval "DEFAULT_$LINE"
8283 else
8284 no_cache=1
8285 fi
8286
8287 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
9926e4a4 8288
e6cc62c6 8289fi;
9926e4a4
VZ
8290
8291 eval "$ac_cv_use_tipwindow"
8292 if test "$no_cache" != 1; then
8293 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
8294 fi
8295
8296 if test "$wxUSE_TIPWINDOW" = yes; then
e6cc62c6
VS
8297 echo "$as_me:$LINENO: result: yes" >&5
8298echo "${ECHO_T}yes" >&6
9926e4a4 8299 else
e6cc62c6
VS
8300 echo "$as_me:$LINENO: result: no" >&5
8301echo "${ECHO_T}no" >&6
9926e4a4 8302 fi
e6cc62c6 8303
9926e4a4 8304
5005acfe 8305 enablestring=
e6cc62c6
VS
8306 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
8307echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6
9f41d601
RR
8308 no_cache=0
8309 # Check whether --enable-popupwin or --disable-popupwin was given.
8310if test "${enable_popupwin+set}" = set; then
8311 enableval="$enable_popupwin"
e6cc62c6 8312
9f41d601
RR
8313 if test "$enableval" = yes; then
8314 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
8315 else
8316 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
8317 fi
e6cc62c6 8318
9f41d601 8319else
e6cc62c6 8320
9f41d601
RR
8321 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
8322 if test "x$LINE" != x ; then
8323 eval "DEFAULT_$LINE"
8324 else
8325 no_cache=1
8326 fi
8327
8328 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
9f41d601 8329
e6cc62c6 8330fi;
9f41d601
RR
8331
8332 eval "$ac_cv_use_popupwin"
8333 if test "$no_cache" != 1; then
8334 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
8335 fi
8336
8337 if test "$wxUSE_POPUPWIN" = yes; then
e6cc62c6
VS
8338 echo "$as_me:$LINENO: result: yes" >&5
8339echo "${ECHO_T}yes" >&6
9f41d601 8340 else
e6cc62c6
VS
8341 echo "$as_me:$LINENO: result: no" >&5
8342echo "${ECHO_T}no" >&6
9f41d601 8343 fi
e6cc62c6 8344
52127426 8345
8284b0c5
MB
8346
8347
5005acfe 8348 enablestring=
e6cc62c6
VS
8349 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
8350echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6
1e6feb95
VZ
8351 no_cache=0
8352 # Check whether --enable-commondlg or --disable-commondlg was given.
8353if test "${enable_commondlg+set}" = set; then
8354 enableval="$enable_commondlg"
e6cc62c6 8355
1e6feb95
VZ
8356 if test "$enableval" = yes; then
8357 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
8358 else
8359 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
8360 fi
e6cc62c6 8361
1e6feb95 8362else
e6cc62c6 8363
1e6feb95
VZ
8364 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
8365 if test "x$LINE" != x ; then
8366 eval "DEFAULT_$LINE"
8367 else
8368 no_cache=1
8369 fi
8370
8371 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
1e6feb95 8372
e6cc62c6 8373fi;
1e6feb95
VZ
8374
8375 eval "$ac_cv_use_commondlg"
8376 if test "$no_cache" != 1; then
8377 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
8378 fi
8379
8380 if test "$wxUSE_COMMONDLGS" = yes; then
e6cc62c6
VS
8381 echo "$as_me:$LINENO: result: yes" >&5
8382echo "${ECHO_T}yes" >&6
1e6feb95 8383 else
e6cc62c6
VS
8384 echo "$as_me:$LINENO: result: no" >&5
8385echo "${ECHO_T}no" >&6
1e6feb95 8386 fi
e6cc62c6 8387
1e6feb95 8388
5005acfe 8389 enablestring=
e6cc62c6
VS
8390 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
8391echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6
1e6feb95
VZ
8392 no_cache=0
8393 # Check whether --enable-choicedlg or --disable-choicedlg was given.
8394if test "${enable_choicedlg+set}" = set; then
8395 enableval="$enable_choicedlg"
e6cc62c6 8396
1e6feb95
VZ
8397 if test "$enableval" = yes; then
8398 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
8399 else
8400 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
8401 fi
e6cc62c6 8402
1e6feb95 8403else
e6cc62c6 8404
1e6feb95
VZ
8405 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
8406 if test "x$LINE" != x ; then
8407 eval "DEFAULT_$LINE"
8408 else
8409 no_cache=1
8410 fi
8411
8412 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
1e6feb95 8413
e6cc62c6 8414fi;
1e6feb95
VZ
8415
8416 eval "$ac_cv_use_choicedlg"
8417 if test "$no_cache" != 1; then
8418 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
8419 fi
8420
8421 if test "$wxUSE_CHOICEDLG" = yes; then
e6cc62c6
VS
8422 echo "$as_me:$LINENO: result: yes" >&5
8423echo "${ECHO_T}yes" >&6
1e6feb95 8424 else
e6cc62c6
VS
8425 echo "$as_me:$LINENO: result: no" >&5
8426echo "${ECHO_T}no" >&6
1e6feb95 8427 fi
e6cc62c6 8428
1e6feb95 8429
5005acfe 8430 enablestring=
e6cc62c6
VS
8431 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
8432echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6
1e6feb95
VZ
8433 no_cache=0
8434 # Check whether --enable-coldlg or --disable-coldlg was given.
8435if test "${enable_coldlg+set}" = set; then
8436 enableval="$enable_coldlg"
e6cc62c6 8437
1e6feb95
VZ
8438 if test "$enableval" = yes; then
8439 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
8440 else
8441 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
8442 fi
e6cc62c6 8443
1e6feb95 8444else
e6cc62c6 8445
1e6feb95
VZ
8446 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
8447 if test "x$LINE" != x ; then
8448 eval "DEFAULT_$LINE"
8449 else
8450 no_cache=1
8451 fi
8452
8453 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
1e6feb95 8454
e6cc62c6 8455fi;
1e6feb95
VZ
8456
8457 eval "$ac_cv_use_coldlg"
8458 if test "$no_cache" != 1; then
8459 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
8460 fi
8461
8462 if test "$wxUSE_COLOURDLG" = yes; then
e6cc62c6
VS
8463 echo "$as_me:$LINENO: result: yes" >&5
8464echo "${ECHO_T}yes" >&6
1e6feb95 8465 else
e6cc62c6
VS
8466 echo "$as_me:$LINENO: result: no" >&5
8467echo "${ECHO_T}no" >&6
1e6feb95 8468 fi
e6cc62c6 8469
1e6feb95 8470
5005acfe 8471 enablestring=
e6cc62c6
VS
8472 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
8473echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6
1e6feb95
VZ
8474 no_cache=0
8475 # Check whether --enable-filedlg or --disable-filedlg was given.
8476if test "${enable_filedlg+set}" = set; then
8477 enableval="$enable_filedlg"
e6cc62c6 8478
1e6feb95
VZ
8479 if test "$enableval" = yes; then
8480 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
8481 else
8482 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
8483 fi
e6cc62c6 8484
1e6feb95 8485else
e6cc62c6 8486
1e6feb95
VZ
8487 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
8488 if test "x$LINE" != x ; then
8489 eval "DEFAULT_$LINE"
8490 else
8491 no_cache=1
8492 fi
8493
8494 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
1e6feb95 8495
e6cc62c6 8496fi;
1e6feb95
VZ
8497
8498 eval "$ac_cv_use_filedlg"
8499 if test "$no_cache" != 1; then
8500 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
8501 fi
8502
8503 if test "$wxUSE_FILEDLG" = yes; then
e6cc62c6
VS
8504 echo "$as_me:$LINENO: result: yes" >&5
8505echo "${ECHO_T}yes" >&6
1e6feb95 8506 else
e6cc62c6
VS
8507 echo "$as_me:$LINENO: result: no" >&5
8508echo "${ECHO_T}no" >&6
1e6feb95 8509 fi
e6cc62c6 8510
1e6feb95 8511
5005acfe 8512 enablestring=
e6cc62c6
VS
8513 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
8514echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6
8db37e06 8515 no_cache=0
69d27ff7
MB
8516 # Check whether --enable-finddlg or --disable-finddlg was given.
8517if test "${enable_finddlg+set}" = set; then
8518 enableval="$enable_finddlg"
e6cc62c6 8519
8db37e06 8520 if test "$enableval" = yes; then
69d27ff7 8521 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
8db37e06 8522 else
69d27ff7 8523 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
8db37e06 8524 fi
e6cc62c6 8525
8db37e06 8526else
e6cc62c6 8527
8db37e06
VZ
8528 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
8529 if test "x$LINE" != x ; then
8530 eval "DEFAULT_$LINE"
8531 else
8532 no_cache=1
8533 fi
8534
69d27ff7 8535 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
8db37e06 8536
e6cc62c6 8537fi;
8db37e06 8538
69d27ff7 8539 eval "$ac_cv_use_finddlg"
8db37e06 8540 if test "$no_cache" != 1; then
69d27ff7 8541 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
8db37e06
VZ
8542 fi
8543
8544 if test "$wxUSE_FINDREPLDLG" = yes; then
e6cc62c6
VS
8545 echo "$as_me:$LINENO: result: yes" >&5
8546echo "${ECHO_T}yes" >&6
8db37e06 8547 else
e6cc62c6
VS
8548 echo "$as_me:$LINENO: result: no" >&5
8549echo "${ECHO_T}no" >&6
8db37e06 8550 fi
e6cc62c6 8551
8db37e06 8552
5005acfe 8553 enablestring=
e6cc62c6
VS
8554 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
8555echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6
1e6feb95
VZ
8556 no_cache=0
8557 # Check whether --enable-fontdlg or --disable-fontdlg was given.
8558if test "${enable_fontdlg+set}" = set; then
8559 enableval="$enable_fontdlg"
e6cc62c6 8560
1e6feb95
VZ
8561 if test "$enableval" = yes; then
8562 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
8563 else
8564 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
8565 fi
e6cc62c6 8566
1e6feb95 8567else
e6cc62c6 8568
1e6feb95
VZ
8569 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
8570 if test "x$LINE" != x ; then
8571 eval "DEFAULT_$LINE"
8572 else
8573 no_cache=1
8574 fi
8575
8576 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
1e6feb95 8577
e6cc62c6 8578fi;
1e6feb95
VZ
8579
8580 eval "$ac_cv_use_fontdlg"
8581 if test "$no_cache" != 1; then
8582 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
8583 fi
8584
8585 if test "$wxUSE_FONTDLG" = yes; then
e6cc62c6
VS
8586 echo "$as_me:$LINENO: result: yes" >&5
8587echo "${ECHO_T}yes" >&6
1e6feb95 8588 else
e6cc62c6
VS
8589 echo "$as_me:$LINENO: result: no" >&5
8590echo "${ECHO_T}no" >&6
1e6feb95 8591 fi
e6cc62c6 8592
1e6feb95 8593
5005acfe 8594 enablestring=
e6cc62c6
VS
8595 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
8596echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6
1e6feb95
VZ
8597 no_cache=0
8598 # Check whether --enable-dirdlg or --disable-dirdlg was given.
8599if test "${enable_dirdlg+set}" = set; then
8600 enableval="$enable_dirdlg"
e6cc62c6 8601
1e6feb95
VZ
8602 if test "$enableval" = yes; then
8603 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
8604 else
8605 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
8606 fi
e6cc62c6 8607
1e6feb95 8608else
e6cc62c6 8609
1e6feb95
VZ
8610 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
8611 if test "x$LINE" != x ; then
8612 eval "DEFAULT_$LINE"
8613 else
8614 no_cache=1
8615 fi
8616
8617 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
1e6feb95 8618
e6cc62c6 8619fi;
1e6feb95
VZ
8620
8621 eval "$ac_cv_use_dirdlg"
10f2d63a 8622 if test "$no_cache" != 1; then
1e6feb95 8623 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8624 fi
8625
1e6feb95 8626 if test "$wxUSE_DIRDLG" = yes; then
e6cc62c6
VS
8627 echo "$as_me:$LINENO: result: yes" >&5
8628echo "${ECHO_T}yes" >&6
10f2d63a 8629 else
e6cc62c6
VS
8630 echo "$as_me:$LINENO: result: no" >&5
8631echo "${ECHO_T}no" >&6
10f2d63a 8632 fi
e6cc62c6 8633
698dcdb6 8634
5005acfe 8635 enablestring=
e6cc62c6
VS
8636 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
8637echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6
10f2d63a 8638 no_cache=0
1e6feb95
VZ
8639 # Check whether --enable-msgdlg or --disable-msgdlg was given.
8640if test "${enable_msgdlg+set}" = set; then
8641 enableval="$enable_msgdlg"
e6cc62c6 8642
10f2d63a 8643 if test "$enableval" = yes; then
1e6feb95 8644 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
10f2d63a 8645 else
1e6feb95 8646 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
10f2d63a 8647 fi
e6cc62c6 8648
10f2d63a 8649else
e6cc62c6 8650
1e6feb95 8651 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8652 if test "x$LINE" != x ; then
8653 eval "DEFAULT_$LINE"
8654 else
8655 no_cache=1
8656 fi
8657
1e6feb95 8658 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
10f2d63a 8659
e6cc62c6 8660fi;
10f2d63a 8661
1e6feb95 8662 eval "$ac_cv_use_msgdlg"
10f2d63a 8663 if test "$no_cache" != 1; then
1e6feb95 8664 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8665 fi
8666
1e6feb95 8667 if test "$wxUSE_MSGDLG" = yes; then
e6cc62c6
VS
8668 echo "$as_me:$LINENO: result: yes" >&5
8669echo "${ECHO_T}yes" >&6
10f2d63a 8670 else
e6cc62c6
VS
8671 echo "$as_me:$LINENO: result: no" >&5
8672echo "${ECHO_T}no" >&6
10f2d63a 8673 fi
e6cc62c6 8674
10f2d63a 8675
5005acfe 8676 enablestring=
e6cc62c6
VS
8677 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
8678echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6
10f2d63a 8679 no_cache=0
1e6feb95
VZ
8680 # Check whether --enable-numberdlg or --disable-numberdlg was given.
8681if test "${enable_numberdlg+set}" = set; then
8682 enableval="$enable_numberdlg"
e6cc62c6 8683
10f2d63a 8684 if test "$enableval" = yes; then
1e6feb95 8685 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
10f2d63a 8686 else
1e6feb95 8687 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
10f2d63a 8688 fi
e6cc62c6 8689
10f2d63a 8690else
e6cc62c6 8691
1e6feb95 8692 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
10f2d63a
VZ
8693 if test "x$LINE" != x ; then
8694 eval "DEFAULT_$LINE"
8695 else
8696 no_cache=1
8697 fi
8698
1e6feb95 8699 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
10f2d63a 8700
e6cc62c6 8701fi;
10f2d63a 8702
1e6feb95 8703 eval "$ac_cv_use_numberdlg"
10f2d63a 8704 if test "$no_cache" != 1; then
1e6feb95 8705 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
10f2d63a
VZ
8706 fi
8707
1e6feb95 8708 if test "$wxUSE_NUMBERDLG" = yes; then
e6cc62c6
VS
8709 echo "$as_me:$LINENO: result: yes" >&5
8710echo "${ECHO_T}yes" >&6
10f2d63a 8711 else
e6cc62c6
VS
8712 echo "$as_me:$LINENO: result: no" >&5
8713echo "${ECHO_T}no" >&6
10f2d63a 8714 fi
e6cc62c6 8715
10f2d63a 8716
5005acfe 8717 enablestring=
e6cc62c6
VS
8718 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
8719echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6
cbca9943
VZ
8720 no_cache=0
8721 # Check whether --enable-splash or --disable-splash was given.
8722if test "${enable_splash+set}" = set; then
8723 enableval="$enable_splash"
e6cc62c6 8724
cbca9943
VZ
8725 if test "$enableval" = yes; then
8726 ac_cv_use_splash='wxUSE_SPLASH=yes'
8727 else
8728 ac_cv_use_splash='wxUSE_SPLASH=no'
8729 fi
e6cc62c6 8730
cbca9943 8731else
e6cc62c6 8732
cbca9943
VZ
8733 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
8734 if test "x$LINE" != x ; then
8735 eval "DEFAULT_$LINE"
8736 else
8737 no_cache=1
8738 fi
8739
8740 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
cbca9943 8741
e6cc62c6 8742fi;
cbca9943
VZ
8743
8744 eval "$ac_cv_use_splash"
8745 if test "$no_cache" != 1; then
8746 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
8747 fi
8748
8749 if test "$wxUSE_SPLASH" = yes; then
e6cc62c6
VS
8750 echo "$as_me:$LINENO: result: yes" >&5
8751echo "${ECHO_T}yes" >&6
cbca9943 8752 else
e6cc62c6
VS
8753 echo "$as_me:$LINENO: result: no" >&5
8754echo "${ECHO_T}no" >&6
cbca9943 8755 fi
e6cc62c6 8756
cbca9943 8757
5005acfe 8758 enablestring=
e6cc62c6
VS
8759 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
8760echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6
10f2d63a
VZ
8761 no_cache=0
8762 # Check whether --enable-textdlg or --disable-textdlg was given.
8763if test "${enable_textdlg+set}" = set; then
8764 enableval="$enable_textdlg"
e6cc62c6 8765
10f2d63a
VZ
8766 if test "$enableval" = yes; then
8767 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
8768 else
8769 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
8770 fi
e6cc62c6 8771
10f2d63a 8772else
e6cc62c6 8773
10f2d63a
VZ
8774 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
8775 if test "x$LINE" != x ; then
8776 eval "DEFAULT_$LINE"
8777 else
8778 no_cache=1
8779 fi
8780
8781 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
10f2d63a 8782
e6cc62c6 8783fi;
10f2d63a
VZ
8784
8785 eval "$ac_cv_use_textdlg"
8786 if test "$no_cache" != 1; then
8787 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
8788 fi
8789
8790 if test "$wxUSE_TEXTDLG" = yes; then
e6cc62c6
VS
8791 echo "$as_me:$LINENO: result: yes" >&5
8792echo "${ECHO_T}yes" >&6
10f2d63a 8793 else
e6cc62c6
VS
8794 echo "$as_me:$LINENO: result: no" >&5
8795echo "${ECHO_T}no" >&6
10f2d63a 8796 fi
e6cc62c6 8797
10f2d63a 8798
5005acfe 8799 enablestring=
e6cc62c6
VS
8800 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
8801echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6
10f2d63a
VZ
8802 no_cache=0
8803 # Check whether --enable-tipdlg or --disable-tipdlg was given.
8804if test "${enable_tipdlg+set}" = set; then
8805 enableval="$enable_tipdlg"
e6cc62c6 8806
10f2d63a
VZ
8807 if test "$enableval" = yes; then
8808 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
8809 else
8810 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
8811 fi
e6cc62c6 8812
10f2d63a 8813else
e6cc62c6 8814
10f2d63a
VZ
8815 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
8816 if test "x$LINE" != x ; then
8817 eval "DEFAULT_$LINE"
8818 else
8819 no_cache=1
8820 fi
8821
8822 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
10f2d63a 8823
e6cc62c6 8824fi;
10f2d63a
VZ
8825
8826 eval "$ac_cv_use_tipdlg"
8827 if test "$no_cache" != 1; then
8828 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
8829 fi
8830
8831 if test "$wxUSE_STARTUP_TIPS" = yes; then
e6cc62c6
VS
8832 echo "$as_me:$LINENO: result: yes" >&5
8833echo "${ECHO_T}yes" >&6
10f2d63a 8834 else
e6cc62c6
VS
8835 echo "$as_me:$LINENO: result: no" >&5
8836echo "${ECHO_T}no" >&6
10f2d63a 8837 fi
e6cc62c6 8838
10f2d63a 8839
5005acfe 8840 enablestring=
e6cc62c6
VS
8841 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
8842echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6
10f2d63a
VZ
8843 no_cache=0
8844 # Check whether --enable-progressdlg or --disable-progressdlg was given.
8845if test "${enable_progressdlg+set}" = set; then
8846 enableval="$enable_progressdlg"
e6cc62c6 8847
10f2d63a
VZ
8848 if test "$enableval" = yes; then
8849 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
8850 else
8851 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
8852 fi
e6cc62c6 8853
10f2d63a 8854else
e6cc62c6 8855
10f2d63a
VZ
8856 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
8857 if test "x$LINE" != x ; then
8858 eval "DEFAULT_$LINE"
8859 else
8860 no_cache=1
8861 fi
8862
8863 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
10f2d63a 8864
e6cc62c6 8865fi;
10f2d63a
VZ
8866
8867 eval "$ac_cv_use_progressdlg"
8868 if test "$no_cache" != 1; then
8869 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
8870 fi
8871
8872 if test "$wxUSE_PROGRESSDLG" = yes; then
e6cc62c6
VS
8873 echo "$as_me:$LINENO: result: yes" >&5
8874echo "${ECHO_T}yes" >&6
10f2d63a 8875 else
e6cc62c6
VS
8876 echo "$as_me:$LINENO: result: no" >&5
8877echo "${ECHO_T}no" >&6
10f2d63a 8878 fi
e6cc62c6 8879
10f2d63a 8880
5005acfe 8881 enablestring=
e6cc62c6
VS
8882 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
8883echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6
b1f5d087
VZ
8884 no_cache=0
8885 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
8886if test "${enable_wizarddlg+set}" = set; then
8887 enableval="$enable_wizarddlg"
e6cc62c6 8888
b1f5d087
VZ
8889 if test "$enableval" = yes; then
8890 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
8891 else
8892 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
8893 fi
e6cc62c6 8894
b1f5d087 8895else
e6cc62c6 8896
b1f5d087
VZ
8897 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
8898 if test "x$LINE" != x ; then
8899 eval "DEFAULT_$LINE"
8900 else
8901 no_cache=1
8902 fi
8903
8904 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
b1f5d087 8905
e6cc62c6 8906fi;
b1f5d087
VZ
8907
8908 eval "$ac_cv_use_wizarddlg"
8909 if test "$no_cache" != 1; then
8910 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
8911 fi
8912
8913 if test "$wxUSE_WIZARDDLG" = yes; then
e6cc62c6
VS
8914 echo "$as_me:$LINENO: result: yes" >&5
8915echo "${ECHO_T}yes" >&6
b1f5d087 8916 else
e6cc62c6
VS
8917 echo "$as_me:$LINENO: result: no" >&5
8918echo "${ECHO_T}no" >&6
b1f5d087 8919 fi
e6cc62c6 8920
8284b0c5
MB
8921
8922
52127426 8923
5005acfe 8924 enablestring=
e6cc62c6
VS
8925 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
8926echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6
1e6feb95
VZ
8927 no_cache=0
8928 # Check whether --enable-menus or --disable-menus was given.
8929if test "${enable_menus+set}" = set; then
8930 enableval="$enable_menus"
e6cc62c6 8931
1e6feb95
VZ
8932 if test "$enableval" = yes; then
8933 ac_cv_use_menus='wxUSE_MENUS=yes'
8934 else
8935 ac_cv_use_menus='wxUSE_MENUS=no'
8936 fi
e6cc62c6 8937
1e6feb95 8938else
e6cc62c6 8939
1e6feb95
VZ
8940 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
8941 if test "x$LINE" != x ; then
8942 eval "DEFAULT_$LINE"
8943 else
8944 no_cache=1
8945 fi
8946
8947 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
1e6feb95 8948
e6cc62c6 8949fi;
1e6feb95
VZ
8950
8951 eval "$ac_cv_use_menus"
8952 if test "$no_cache" != 1; then
8953 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
8954 fi
8955
8956 if test "$wxUSE_MENUS" = yes; then
e6cc62c6
VS
8957 echo "$as_me:$LINENO: result: yes" >&5
8958echo "${ECHO_T}yes" >&6
1e6feb95 8959 else
e6cc62c6
VS
8960 echo "$as_me:$LINENO: result: no" >&5
8961echo "${ECHO_T}no" >&6
1e6feb95 8962 fi
e6cc62c6 8963
1e6feb95 8964
5005acfe 8965 enablestring=
e6cc62c6
VS
8966 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
8967echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6
10f2d63a
VZ
8968 no_cache=0
8969 # Check whether --enable-miniframe or --disable-miniframe was given.
8970if test "${enable_miniframe+set}" = set; then
8971 enableval="$enable_miniframe"
e6cc62c6 8972
10f2d63a
VZ
8973 if test "$enableval" = yes; then
8974 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
8975 else
8976 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
8977 fi
e6cc62c6 8978
10f2d63a 8979else
e6cc62c6 8980
10f2d63a
VZ
8981 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
8982 if test "x$LINE" != x ; then
8983 eval "DEFAULT_$LINE"
8984 else
8985 no_cache=1
8986 fi
8987
8988 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
10f2d63a 8989
e6cc62c6 8990fi;
10f2d63a
VZ
8991
8992 eval "$ac_cv_use_miniframe"
8993 if test "$no_cache" != 1; then
8994 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
8995 fi
8996
8997 if test "$wxUSE_MINIFRAME" = yes; then
e6cc62c6
VS
8998 echo "$as_me:$LINENO: result: yes" >&5
8999echo "${ECHO_T}yes" >&6
10f2d63a 9000 else
e6cc62c6
VS
9001 echo "$as_me:$LINENO: result: no" >&5
9002echo "${ECHO_T}no" >&6
10f2d63a 9003 fi
e6cc62c6 9004
10f2d63a 9005
5005acfe 9006 enablestring=
e6cc62c6
VS
9007 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
9008echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6
10f2d63a
VZ
9009 no_cache=0
9010 # Check whether --enable-tooltips or --disable-tooltips was given.
9011if test "${enable_tooltips+set}" = set; then
9012 enableval="$enable_tooltips"
e6cc62c6 9013
10f2d63a
VZ
9014 if test "$enableval" = yes; then
9015 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
9016 else
9017 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
9018 fi
e6cc62c6 9019
10f2d63a 9020else
e6cc62c6 9021
10f2d63a
VZ
9022 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
9023 if test "x$LINE" != x ; then
9024 eval "DEFAULT_$LINE"
9025 else
9026 no_cache=1
9027 fi
9028
9029 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
10f2d63a 9030
e6cc62c6 9031fi;
10f2d63a
VZ
9032
9033 eval "$ac_cv_use_tooltips"
9034 if test "$no_cache" != 1; then
9035 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
9036 fi
9037
9038 if test "$wxUSE_TOOLTIPS" = yes; then
e6cc62c6
VS
9039 echo "$as_me:$LINENO: result: yes" >&5
9040echo "${ECHO_T}yes" >&6
10f2d63a 9041 else
e6cc62c6
VS
9042 echo "$as_me:$LINENO: result: no" >&5
9043echo "${ECHO_T}no" >&6
10f2d63a 9044 fi
e6cc62c6 9045
10f2d63a 9046
5005acfe 9047 enablestring=
e6cc62c6
VS
9048 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
9049echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6
10f2d63a
VZ
9050 no_cache=0
9051 # Check whether --enable-splines or --disable-splines was given.
9052if test "${enable_splines+set}" = set; then
9053 enableval="$enable_splines"
e6cc62c6 9054
10f2d63a
VZ
9055 if test "$enableval" = yes; then
9056 ac_cv_use_splines='wxUSE_SPLINES=yes'
9057 else
9058 ac_cv_use_splines='wxUSE_SPLINES=no'
9059 fi
e6cc62c6 9060
10f2d63a 9061else
e6cc62c6 9062
10f2d63a
VZ
9063 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
9064 if test "x$LINE" != x ; then
9065 eval "DEFAULT_$LINE"
9066 else
9067 no_cache=1
9068 fi
9069
9070 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
10f2d63a 9071
e6cc62c6 9072fi;
10f2d63a
VZ
9073
9074 eval "$ac_cv_use_splines"
9075 if test "$no_cache" != 1; then
9076 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
9077 fi
9078
9079 if test "$wxUSE_SPLINES" = yes; then
e6cc62c6
VS
9080 echo "$as_me:$LINENO: result: yes" >&5
9081echo "${ECHO_T}yes" >&6
10f2d63a 9082 else
e6cc62c6
VS
9083 echo "$as_me:$LINENO: result: no" >&5
9084echo "${ECHO_T}no" >&6
10f2d63a 9085 fi
e6cc62c6 9086
10f2d63a 9087
5005acfe 9088 enablestring=
e6cc62c6
VS
9089 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
9090echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6
10f2d63a
VZ
9091 no_cache=0
9092 # Check whether --enable-validators or --disable-validators was given.
9093if test "${enable_validators+set}" = set; then
9094 enableval="$enable_validators"
e6cc62c6 9095
10f2d63a
VZ
9096 if test "$enableval" = yes; then
9097 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
9098 else
9099 ac_cv_use_validators='wxUSE_VALIDATORS=no'
9100 fi
e6cc62c6 9101
10f2d63a 9102else
e6cc62c6 9103
10f2d63a
VZ
9104 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
9105 if test "x$LINE" != x ; then
9106 eval "DEFAULT_$LINE"
9107 else
9108 no_cache=1
9109 fi
9110
9111 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
10f2d63a 9112
e6cc62c6 9113fi;
10f2d63a
VZ
9114
9115 eval "$ac_cv_use_validators"
9116 if test "$no_cache" != 1; then
9117 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
9118 fi
9119
9120 if test "$wxUSE_VALIDATORS" = yes; then
e6cc62c6
VS
9121 echo "$as_me:$LINENO: result: yes" >&5
9122echo "${ECHO_T}yes" >&6
10f2d63a 9123 else
e6cc62c6
VS
9124 echo "$as_me:$LINENO: result: no" >&5
9125echo "${ECHO_T}no" >&6
10f2d63a 9126 fi
e6cc62c6 9127
10f2d63a 9128
5005acfe 9129 enablestring=
e6cc62c6
VS
9130 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
9131echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6
10f2d63a
VZ
9132 no_cache=0
9133 # Check whether --enable-busyinfo or --disable-busyinfo was given.
9134if test "${enable_busyinfo+set}" = set; then
9135 enableval="$enable_busyinfo"
e6cc62c6 9136
10f2d63a
VZ
9137 if test "$enableval" = yes; then
9138 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
9139 else
9140 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
9141 fi
e6cc62c6 9142
10f2d63a 9143else
e6cc62c6 9144
10f2d63a
VZ
9145 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
9146 if test "x$LINE" != x ; then
9147 eval "DEFAULT_$LINE"
9148 else
9149 no_cache=1
9150 fi
9151
9152 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
10f2d63a 9153
e6cc62c6 9154fi;
10f2d63a
VZ
9155
9156 eval "$ac_cv_use_busyinfo"
9157 if test "$no_cache" != 1; then
9158 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
9159 fi
9160
9161 if test "$wxUSE_BUSYINFO" = yes; then
e6cc62c6
VS
9162 echo "$as_me:$LINENO: result: yes" >&5
9163echo "${ECHO_T}yes" >&6
10f2d63a 9164 else
e6cc62c6
VS
9165 echo "$as_me:$LINENO: result: no" >&5
9166echo "${ECHO_T}no" >&6
10f2d63a 9167 fi
e6cc62c6 9168
10f2d63a 9169
5005acfe 9170 enablestring=
e6cc62c6
VS
9171 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
9172echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6
f6bcfd97
BP
9173 no_cache=0
9174 # Check whether --enable-joystick or --disable-joystick was given.
9175if test "${enable_joystick+set}" = set; then
9176 enableval="$enable_joystick"
e6cc62c6 9177
f6bcfd97
BP
9178 if test "$enableval" = yes; then
9179 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
9180 else
9181 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
9182 fi
e6cc62c6 9183
f6bcfd97 9184else
e6cc62c6 9185
f6bcfd97
BP
9186 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
9187 if test "x$LINE" != x ; then
9188 eval "DEFAULT_$LINE"
9189 else
9190 no_cache=1
9191 fi
9192
9193 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
f6bcfd97 9194
e6cc62c6 9195fi;
f6bcfd97
BP
9196
9197 eval "$ac_cv_use_joystick"
9198 if test "$no_cache" != 1; then
9199 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
9200 fi
9201
9202 if test "$wxUSE_JOYSTICK" = yes; then
e6cc62c6
VS
9203 echo "$as_me:$LINENO: result: yes" >&5
9204echo "${ECHO_T}yes" >&6
f6bcfd97 9205 else
e6cc62c6
VS
9206 echo "$as_me:$LINENO: result: no" >&5
9207echo "${ECHO_T}no" >&6
f6bcfd97 9208 fi
e6cc62c6 9209
698dcdb6 9210
5005acfe 9211 enablestring=
e6cc62c6
VS
9212 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
9213echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6
1e6feb95
VZ
9214 no_cache=0
9215 # Check whether --enable-metafile or --disable-metafile was given.
9216if test "${enable_metafile+set}" = set; then
9217 enableval="$enable_metafile"
e6cc62c6 9218
1e6feb95
VZ
9219 if test "$enableval" = yes; then
9220 ac_cv_use_metafile='wxUSE_METAFILE=yes'
9221 else
9222 ac_cv_use_metafile='wxUSE_METAFILE=no'
9223 fi
e6cc62c6 9224
1e6feb95 9225else
e6cc62c6 9226
1e6feb95
VZ
9227 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
9228 if test "x$LINE" != x ; then
9229 eval "DEFAULT_$LINE"
9230 else
9231 no_cache=1
9232 fi
9233
9234 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
1e6feb95 9235
e6cc62c6 9236fi;
1e6feb95
VZ
9237
9238 eval "$ac_cv_use_metafile"
9239 if test "$no_cache" != 1; then
9240 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
9241 fi
9242
9243 if test "$wxUSE_METAFILE" = yes; then
e6cc62c6
VS
9244 echo "$as_me:$LINENO: result: yes" >&5
9245echo "${ECHO_T}yes" >&6
1e6feb95 9246 else
e6cc62c6
VS
9247 echo "$as_me:$LINENO: result: no" >&5
9248echo "${ECHO_T}no" >&6
1e6feb95 9249 fi
e6cc62c6 9250
1e6feb95 9251
5005acfe 9252 enablestring=
e6cc62c6
VS
9253 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
9254echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6
24fd6d87
VZ
9255 no_cache=0
9256 # Check whether --enable-dragimage or --disable-dragimage was given.
9257if test "${enable_dragimage+set}" = set; then
9258 enableval="$enable_dragimage"
e6cc62c6 9259
24fd6d87
VZ
9260 if test "$enableval" = yes; then
9261 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
9262 else
9263 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
9264 fi
e6cc62c6 9265
24fd6d87 9266else
e6cc62c6 9267
24fd6d87
VZ
9268 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
9269 if test "x$LINE" != x ; then
9270 eval "DEFAULT_$LINE"
9271 else
9272 no_cache=1
9273 fi
9274
9275 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
24fd6d87 9276
e6cc62c6 9277fi;
24fd6d87
VZ
9278
9279 eval "$ac_cv_use_dragimage"
9280 if test "$no_cache" != 1; then
9281 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
9282 fi
9283
9284 if test "$wxUSE_DRAGIMAGE" = yes; then
e6cc62c6
VS
9285 echo "$as_me:$LINENO: result: yes" >&5
9286echo "${ECHO_T}yes" >&6
24fd6d87 9287 else
e6cc62c6
VS
9288 echo "$as_me:$LINENO: result: no" >&5
9289echo "${ECHO_T}no" >&6
24fd6d87 9290 fi
e6cc62c6 9291
52127426 9292
7bb2947d 9293 enablestring=
e6cc62c6
VS
9294 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
9295echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6
7bb2947d
MB
9296 no_cache=0
9297 # Check whether --enable-accessibility or --disable-accessibility was given.
9298if test "${enable_accessibility+set}" = set; then
9299 enableval="$enable_accessibility"
e6cc62c6 9300
7bb2947d
MB
9301 if test "$enableval" = yes; then
9302 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
9303 else
9304 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
9305 fi
e6cc62c6 9306
7bb2947d 9307else
e6cc62c6 9308
7bb2947d
MB
9309 LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}`
9310 if test "x$LINE" != x ; then
9311 eval "DEFAULT_$LINE"
9312 else
9313 no_cache=1
9314 fi
9315
9316 ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY
7bb2947d 9317
e6cc62c6 9318fi;
7bb2947d
MB
9319
9320 eval "$ac_cv_use_accessibility"
9321 if test "$no_cache" != 1; then
9322 echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp
9323 fi
9324
9325 if test "$wxUSE_ACCESSIBILITY" = yes; then
e6cc62c6
VS
9326 echo "$as_me:$LINENO: result: yes" >&5
9327echo "${ECHO_T}yes" >&6
7bb2947d 9328 else
e6cc62c6
VS
9329 echo "$as_me:$LINENO: result: no" >&5
9330echo "${ECHO_T}no" >&6
7bb2947d 9331 fi
e6cc62c6 9332
7bb2947d 9333
8284b0c5
MB
9334
9335
5005acfe 9336 enablestring=
e6cc62c6
VS
9337 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
9338echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6
edae8572
VZ
9339 no_cache=0
9340 # Check whether --enable-palette or --disable-palette was given.
9341if test "${enable_palette+set}" = set; then
9342 enableval="$enable_palette"
e6cc62c6 9343
edae8572
VZ
9344 if test "$enableval" = yes; then
9345 ac_cv_use_palette='wxUSE_PALETTE=yes'
9346 else
9347 ac_cv_use_palette='wxUSE_PALETTE=no'
9348 fi
e6cc62c6 9349
edae8572 9350else
e6cc62c6 9351
edae8572
VZ
9352 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
9353 if test "x$LINE" != x ; then
9354 eval "DEFAULT_$LINE"
9355 else
9356 no_cache=1
9357 fi
9358
9359 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
edae8572 9360
e6cc62c6 9361fi;
edae8572
VZ
9362
9363 eval "$ac_cv_use_palette"
9364 if test "$no_cache" != 1; then
9365 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
9366 fi
9367
9368 if test "$wxUSE_PALETTE" = yes; then
e6cc62c6
VS
9369 echo "$as_me:$LINENO: result: yes" >&5
9370echo "${ECHO_T}yes" >&6
edae8572 9371 else
e6cc62c6
VS
9372 echo "$as_me:$LINENO: result: no" >&5
9373echo "${ECHO_T}no" >&6
edae8572 9374 fi
e6cc62c6 9375
edae8572 9376
5005acfe 9377 enablestring=
e6cc62c6
VS
9378 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
9379echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6
0046ff7c
VS
9380 no_cache=0
9381 # Check whether --enable-image or --disable-image was given.
9382if test "${enable_image+set}" = set; then
9383 enableval="$enable_image"
e6cc62c6 9384
0046ff7c
VS
9385 if test "$enableval" = yes; then
9386 ac_cv_use_image='wxUSE_IMAGE=yes'
9387 else
9388 ac_cv_use_image='wxUSE_IMAGE=no'
9389 fi
e6cc62c6 9390
0046ff7c 9391else
e6cc62c6 9392
0046ff7c
VS
9393 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
9394 if test "x$LINE" != x ; then
9395 eval "DEFAULT_$LINE"
9396 else
9397 no_cache=1
9398 fi
9399
9400 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
0046ff7c 9401
e6cc62c6 9402fi;
0046ff7c
VS
9403
9404 eval "$ac_cv_use_image"
9405 if test "$no_cache" != 1; then
9406 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
9407 fi
9408
9409 if test "$wxUSE_IMAGE" = yes; then
e6cc62c6
VS
9410 echo "$as_me:$LINENO: result: yes" >&5
9411echo "${ECHO_T}yes" >&6
0046ff7c 9412 else
e6cc62c6
VS
9413 echo "$as_me:$LINENO: result: no" >&5
9414echo "${ECHO_T}no" >&6
0046ff7c 9415 fi
e6cc62c6 9416
0046ff7c 9417
5005acfe 9418 enablestring=
e6cc62c6
VS
9419 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
9420echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6
10f2d63a
VZ
9421 no_cache=0
9422 # Check whether --enable-gif or --disable-gif was given.
9423if test "${enable_gif+set}" = set; then
9424 enableval="$enable_gif"
e6cc62c6 9425
10f2d63a
VZ
9426 if test "$enableval" = yes; then
9427 ac_cv_use_gif='wxUSE_GIF=yes'
9428 else
9429 ac_cv_use_gif='wxUSE_GIF=no'
9430 fi
e6cc62c6 9431
10f2d63a 9432else
e6cc62c6 9433
10f2d63a
VZ
9434 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
9435 if test "x$LINE" != x ; then
9436 eval "DEFAULT_$LINE"
9437 else
9438 no_cache=1
9439 fi
9440
9441 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
10f2d63a 9442
e6cc62c6 9443fi;
10f2d63a
VZ
9444
9445 eval "$ac_cv_use_gif"
9446 if test "$no_cache" != 1; then
9447 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
9448 fi
9449
9450 if test "$wxUSE_GIF" = yes; then
e6cc62c6
VS
9451 echo "$as_me:$LINENO: result: yes" >&5
9452echo "${ECHO_T}yes" >&6
10f2d63a 9453 else
e6cc62c6
VS
9454 echo "$as_me:$LINENO: result: no" >&5
9455echo "${ECHO_T}no" >&6
10f2d63a 9456 fi
e6cc62c6 9457
10f2d63a 9458
5005acfe 9459 enablestring=
e6cc62c6
VS
9460 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
9461echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6
10f2d63a
VZ
9462 no_cache=0
9463 # Check whether --enable-pcx or --disable-pcx was given.
9464if test "${enable_pcx+set}" = set; then
9465 enableval="$enable_pcx"
e6cc62c6 9466
10f2d63a
VZ
9467 if test "$enableval" = yes; then
9468 ac_cv_use_pcx='wxUSE_PCX=yes'
9469 else
9470 ac_cv_use_pcx='wxUSE_PCX=no'
9471 fi
e6cc62c6 9472
10f2d63a 9473else
e6cc62c6 9474
10f2d63a
VZ
9475 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
9476 if test "x$LINE" != x ; then
9477 eval "DEFAULT_$LINE"
9478 else
9479 no_cache=1
9480 fi
9481
9482 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
10f2d63a 9483
e6cc62c6 9484fi;
10f2d63a
VZ
9485
9486 eval "$ac_cv_use_pcx"
9487 if test "$no_cache" != 1; then
9488 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
9489 fi
9490
9491 if test "$wxUSE_PCX" = yes; then
e6cc62c6
VS
9492 echo "$as_me:$LINENO: result: yes" >&5
9493echo "${ECHO_T}yes" >&6
10f2d63a 9494 else
e6cc62c6
VS
9495 echo "$as_me:$LINENO: result: no" >&5
9496echo "${ECHO_T}no" >&6
10f2d63a 9497 fi
e6cc62c6 9498
10f2d63a 9499
5005acfe 9500 enablestring=
e6cc62c6
VS
9501 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
9502echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6
4b6b4dfc
RR
9503 no_cache=0
9504 # Check whether --enable-iff or --disable-iff was given.
9505if test "${enable_iff+set}" = set; then
9506 enableval="$enable_iff"
e6cc62c6 9507
4b6b4dfc
RR
9508 if test "$enableval" = yes; then
9509 ac_cv_use_iff='wxUSE_IFF=yes'
9510 else
9511 ac_cv_use_iff='wxUSE_IFF=no'
9512 fi
e6cc62c6 9513
4b6b4dfc 9514else
e6cc62c6 9515
4b6b4dfc
RR
9516 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
9517 if test "x$LINE" != x ; then
9518 eval "DEFAULT_$LINE"
9519 else
9520 no_cache=1
9521 fi
9522
9523 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
4b6b4dfc 9524
e6cc62c6 9525fi;
4b6b4dfc
RR
9526
9527 eval "$ac_cv_use_iff"
9528 if test "$no_cache" != 1; then
9529 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
9530 fi
9531
9532 if test "$wxUSE_IFF" = yes; then
e6cc62c6
VS
9533 echo "$as_me:$LINENO: result: yes" >&5
9534echo "${ECHO_T}yes" >&6
4b6b4dfc 9535 else
e6cc62c6
VS
9536 echo "$as_me:$LINENO: result: no" >&5
9537echo "${ECHO_T}no" >&6
4b6b4dfc 9538 fi
e6cc62c6 9539
4b6b4dfc 9540
5005acfe 9541 enablestring=
e6cc62c6
VS
9542 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
9543echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6
10f2d63a
VZ
9544 no_cache=0
9545 # Check whether --enable-pnm or --disable-pnm was given.
9546if test "${enable_pnm+set}" = set; then
9547 enableval="$enable_pnm"
e6cc62c6 9548
10f2d63a
VZ
9549 if test "$enableval" = yes; then
9550 ac_cv_use_pnm='wxUSE_PNM=yes'
9551 else
9552 ac_cv_use_pnm='wxUSE_PNM=no'
9553 fi
e6cc62c6 9554
10f2d63a 9555else
e6cc62c6 9556
10f2d63a
VZ
9557 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
9558 if test "x$LINE" != x ; then
9559 eval "DEFAULT_$LINE"
9560 else
9561 no_cache=1
9562 fi
9563
9564 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
10f2d63a 9565
e6cc62c6 9566fi;
10f2d63a
VZ
9567
9568 eval "$ac_cv_use_pnm"
9569 if test "$no_cache" != 1; then
9570 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
9571 fi
9572
9573 if test "$wxUSE_PNM" = yes; then
e6cc62c6
VS
9574 echo "$as_me:$LINENO: result: yes" >&5
9575echo "${ECHO_T}yes" >&6
10f2d63a 9576 else
e6cc62c6
VS
9577 echo "$as_me:$LINENO: result: no" >&5
9578echo "${ECHO_T}no" >&6
10f2d63a 9579 fi
e6cc62c6 9580
10f2d63a 9581
5005acfe 9582 enablestring=
e6cc62c6
VS
9583 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
9584echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6
0046ff7c 9585 no_cache=0
69d27ff7
MB
9586 # Check whether --enable-xpm or --disable-xpm was given.
9587if test "${enable_xpm+set}" = set; then
9588 enableval="$enable_xpm"
e6cc62c6 9589
0046ff7c 9590 if test "$enableval" = yes; then
69d27ff7 9591 ac_cv_use_xpm='wxUSE_XPM=yes'
0046ff7c 9592 else
69d27ff7 9593 ac_cv_use_xpm='wxUSE_XPM=no'
0046ff7c 9594 fi
e6cc62c6 9595
0046ff7c 9596else
e6cc62c6 9597
0046ff7c
VS
9598 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
9599 if test "x$LINE" != x ; then
9600 eval "DEFAULT_$LINE"
9601 else
9602 no_cache=1
9603 fi
9604
69d27ff7 9605 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
0046ff7c 9606
e6cc62c6 9607fi;
0046ff7c 9608
69d27ff7 9609 eval "$ac_cv_use_xpm"
0046ff7c 9610 if test "$no_cache" != 1; then
69d27ff7 9611 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
0046ff7c
VS
9612 fi
9613
9614 if test "$wxUSE_XPM" = yes; then
e6cc62c6
VS
9615 echo "$as_me:$LINENO: result: yes" >&5
9616echo "${ECHO_T}yes" >&6
0046ff7c 9617 else
e6cc62c6
VS
9618 echo "$as_me:$LINENO: result: no" >&5
9619echo "${ECHO_T}no" >&6
0046ff7c 9620 fi
e6cc62c6 9621
0046ff7c 9622
5005acfe 9623 enablestring=
e6cc62c6
VS
9624 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
9625echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6
658974ae 9626 no_cache=0
c7206e64
VS
9627 # Check whether --enable-ico_cur or --disable-ico_cur was given.
9628if test "${enable_ico_cur+set}" = set; then
9629 enableval="$enable_ico_cur"
e6cc62c6 9630
658974ae 9631 if test "$enableval" = yes; then
c7206e64 9632 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
658974ae 9633 else
c7206e64 9634 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
658974ae 9635 fi
e6cc62c6 9636
658974ae 9637else
e6cc62c6 9638
658974ae
VS
9639 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
9640 if test "x$LINE" != x ; then
9641 eval "DEFAULT_$LINE"
9642 else
9643 no_cache=1
9644 fi
9645
c7206e64 9646 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
658974ae 9647
e6cc62c6 9648fi;
658974ae 9649
c7206e64 9650 eval "$ac_cv_use_ico_cur"
658974ae 9651 if test "$no_cache" != 1; then
c7206e64 9652 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
658974ae
VS
9653 fi
9654
9655 if test "$wxUSE_ICO_CUR" = yes; then
e6cc62c6
VS
9656 echo "$as_me:$LINENO: result: yes" >&5
9657echo "${ECHO_T}yes" >&6
658974ae 9658 else
e6cc62c6
VS
9659 echo "$as_me:$LINENO: result: no" >&5
9660echo "${ECHO_T}no" >&6
658974ae 9661 fi
e6cc62c6 9662
658974ae 9663
b12915c1
VZ
9664fi
9665
029b47ad
VS
9666
9667
9668 enablestring=
9669 echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
9670echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6
9671 no_cache=0
9672 # Check whether --enable-official_build or --disable-official_build was given.
9673if test "${enable_official_build+set}" = set; then
9674 enableval="$enable_official_build"
9675
9676 if test "$enableval" = yes; then
9677 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
9678 else
9679 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
9680 fi
9681
9682else
9683
9684 LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}`
9685 if test "x$LINE" != x ; then
9686 eval "DEFAULT_$LINE"
9687 else
9688 no_cache=1
9689 fi
9690
9691 ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD
9692
9693fi;
9694
9695 eval "$ac_cv_use_official_build"
9696 if test "$no_cache" != 1; then
9697 echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp
9698 fi
9699
9700 if test "$wxUSE_OFFICIAL_BUILD" = yes; then
9701 echo "$as_me:$LINENO: result: yes" >&5
9702echo "${ECHO_T}yes" >&6
9703 else
9704 echo "$as_me:$LINENO: result: no" >&5
9705echo "${ECHO_T}no" >&6
9706 fi
9707
9708# Check whether --enable-vendor or --disable-vendor was given.
9709if test "${enable_vendor+set}" = set; then
9710 enableval="$enable_vendor"
9711 VENDOR="$enableval"
9712fi;
9713if test "x$VENDOR" = "x"; then
9714 VENDOR="custom"
9715fi
9716
d558c907
VS
9717case "${host}" in
9718 *-pc-os2_emx | *-pc-os2-emx )
6969f178 9719 PATH_IFS=';'
d558c907
VS
9720 ;;
9721 *)
9722 PATH_IFS=':'
d558c907
VS
9723 ;;
9724esac
9725
8284b0c5
MB
9726
9727
10f2d63a
VZ
9728 echo "saving argument cache $wx_arg_cache_file"
9729 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
52127426 9730
8284b0c5 9731
e6cc62c6
VS
9732
9733echo "$as_me:$LINENO: checking for toolkit" >&5
9734echo $ECHO_N "checking for toolkit... $ECHO_C" >&6
89e6bf6d
VZ
9735
9736# In Wine, we need to default to MSW, not GTK or MOTIF
9737if test "$wxUSE_WINE" = "yes"; then
9738 DEFAULT_DEFAULT_wxUSE_GTK=0
9739 DEFAULT_DEFAULT_wxUSE_MOTIF=0
9740 DEFAULT_DEFAULT_wxUSE_MSW=1
74500461 9741 wxUSE_SHARED=no
89e6bf6d 9742fi
10f2d63a
VZ
9743
9744if test "$wxUSE_GUI" = "yes"; then
9745
3a922bb4 9746 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
9747 { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
9748echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
9749 { (exit 1); exit 1; }; }
3a922bb4 9750 fi
b12915c1 9751
3a922bb4
RL
9752 if test "$TOOLKIT_GIVEN" = 1; then
9753 for toolkit in `echo $ALL_TOOLKITS`; do
9754 var=wxUSE_$toolkit
9755 eval "value=\$${var}"
9756 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
9757 done
10f2d63a 9758 else
3a922bb4
RL
9759 for toolkit in `echo $ALL_TOOLKITS`; do
9760 if test "$has_toolkit_in_cache" != 1; then
9761 var=DEFAULT_DEFAULT_wxUSE_$toolkit
9762 else
9763 var=DEFAULT_wxUSE_$toolkit
9764 fi
9765 eval "wxUSE_$toolkit=\$${var}"
9766 done
10f2d63a 9767 fi
10f2d63a 9768
ac0c4cc3
DE
9769 NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
9770 + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \
9771 + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
10f2d63a 9772
d558c907 9773 case "${host}" in
6fa882bd 9774 *-pc-os2_emx | *-pc-os2-emx )
3a922bb4 9775 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
3a922bb4 9776 esac
10f2d63a 9777
3a922bb4
RL
9778 case "$NUM_TOOLKITS" in
9779 1)
9780 ;;
9781 0)
e6cc62c6
VS
9782 { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
9783echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
9784 { (exit 1); exit 1; }; }
3a922bb4
RL
9785 ;;
9786 *)
e6cc62c6
VS
9787 { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
9788echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
9789 { (exit 1); exit 1; }; }
3a922bb4 9790 esac
10f2d63a 9791
3a922bb4
RL
9792 for toolkit in `echo $ALL_TOOLKITS`; do
9793 var=wxUSE_$toolkit
9794 eval "value=\$${var}"
9795 if test "x$value" != x; then
9796 cache_var=CACHE_$toolkit
9797 eval "cache=\$${cache_var}"
9798 if test "$cache" = 1; then
9799 echo "$var=$value" >> ${wx_arg_cache_file}
9800 fi
9801 if test "$value" = 1; then
89fe663f 9802 toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
e6cc62c6
VS
9803 echo "$as_me:$LINENO: result: $toolkit_echo" >&5
9804echo "${ECHO_T}$toolkit_echo" >&6
3a922bb4
RL
9805 fi
9806 fi
9807 done
10f2d63a 9808else
9de9b8f0
VZ
9809 if test "x$host_alias" != "x"; then
9810 echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
e6cc62c6 9811echo "${ECHO_T}base ($host_alias hosted) only" >&6
9de9b8f0
VZ
9812 else
9813 echo "$as_me:$LINENO: result: base only" >&5
9814echo "${ECHO_T}base only" >&6
9815 fi
10f2d63a
VZ
9816fi
9817
43d99b6d
VS
9818wants_win32=0
9819doesnt_want_win32=0
17234b26
MB
9820case "${host}" in
9821 *-*-cygwin*)
9822 if test "$wxUSE_MSW" = 1 ; then
43d99b6d
VS
9823 wants_win32=1
9824 else
9825 doesnt_want_win32=1
17234b26
MB
9826 fi
9827 ;;
9828 *-*-mingw*)
43d99b6d 9829 wants_win32=1
17234b26
MB
9830 ;;
9831esac
9832
89e6bf6d
VZ
9833if test "$wxUSE_WINE" = "yes"; then
9834 wants_win32=1
9835 CC=winegcc
9836 CXX=wineg++
9837 RESCOMP=wrc
30f2fa6c 9838 LDFLAGS_GUI="-mwindows"
89e6bf6d
VZ
9839fi
9840
43d99b6d 9841if test "$wants_win32" = 1 ; then
17234b26
MB
9842 USE_UNIX=0
9843 USE_WIN32=1
e6cc62c6 9844 cat >>confdefs.h <<\_ACEOF
17234b26 9845#define __WIN32__ 1
e6cc62c6 9846_ACEOF
17234b26 9847
e6cc62c6 9848 cat >>confdefs.h <<\_ACEOF
17234b26 9849#define __WIN95__ 1
e6cc62c6 9850_ACEOF
17234b26 9851
e6cc62c6 9852 cat >>confdefs.h <<\_ACEOF
17234b26 9853#define __WINDOWS__ 1
e6cc62c6 9854_ACEOF
17234b26 9855
e6cc62c6 9856 cat >>confdefs.h <<\_ACEOF
17234b26 9857#define __GNUWIN32__ 1
e6cc62c6 9858_ACEOF
17234b26 9859
e6cc62c6 9860 cat >>confdefs.h <<\_ACEOF
17234b26 9861#define STRICT 1
e6cc62c6 9862_ACEOF
17234b26 9863
e6cc62c6 9864 cat >>confdefs.h <<\_ACEOF
17234b26 9865#define WINVER 0x0400
e6cc62c6 9866_ACEOF
17234b26 9867
43d99b6d
VS
9868fi
9869if test "$doesnt_want_win32" = 1 ; then
17234b26
MB
9870 USE_UNIX=1
9871 USE_WIN32=0
9872fi
9873
9874if test "$USE_UNIX" = 1 ; then
9875 wxUSE_UNIX=yes
e6cc62c6 9876 cat >>confdefs.h <<\_ACEOF
17234b26 9877#define __UNIX__ 1
e6cc62c6 9878_ACEOF
17234b26
MB
9879
9880fi
9881
8284b0c5 9882
e6cc62c6 9883cat >confcache <<\_ACEOF
10f2d63a
VZ
9884# This file is a shell script that caches the results of configure
9885# tests run on this system so they can be shared between configure
e6cc62c6
VS
9886# scripts and configure runs, see configure's option --config-cache.
9887# It is not useful on other systems. If it contains results you don't
9888# want to keep, you may remove or edit it.
10f2d63a 9889#
e6cc62c6
VS
9890# config.status only pays attention to the cache file if you give it
9891# the --recheck option to rerun configure.
10f2d63a 9892#
e6cc62c6
VS
9893# `ac_cv_env_foo' variables (set or unset) will be overridden when
9894# loading this file, other *unset* `ac_cv_foo' will be assigned the
9895# following values.
9896
9897_ACEOF
9898
10f2d63a
VZ
9899# The following way of writing the cache mishandles newlines in values,
9900# but we know of no workaround that is simple, portable, and efficient.
9901# So, don't put newlines in cache variables' values.
9902# Ultrix sh set writes to stderr and can't be redirected directly,
9903# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
9904{
9905 (set) 2>&1 |
9906 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9907 *ac_space=\ *)
9908 # `set' does not quote correctly, so add quotes (double-quote
9909 # substitution turns \\\\ into \\, and sed turns \\ into \).
9910 sed -n \
f95e4495
VS
9911 "s/'/'\\\\''/g;
9912 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
9913 ;;
9914 *)
9915 # `set' quotes correctly as required by POSIX, so do not add quotes.
9916 sed -n \
f95e4495 9917 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
9918 ;;
9919 esac;
9920} |
9921 sed '
9922 t clear
9923 : clear
9924 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9925 t end
9926 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9927 : end' >>confcache
9928if diff $cache_file confcache >/dev/null 2>&1; then :; else
10f2d63a 9929 if test -w $cache_file; then
e6cc62c6
VS
9930 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9931 cat confcache >$cache_file
10f2d63a
VZ
9932 else
9933 echo "not updating unwritable cache $cache_file"
9934 fi
9935fi
9936rm -f confcache
9937
e59890c3 9938if test "$build" != "$host" ; then
9d353d4a 9939 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
3a922bb4
RL
9940 CC=$host_alias-gcc
9941 CXX=$host_alias-c++
9942 AR=$host_alias-ar
9943 RANLIB=$host_alias-ranlib
9944 DLLTOOL=$host_alias-dlltool
9945 RESCOMP=$host_alias-windres
9946 LD=$host_alias-ld
9947 NM=$host_alias-nm
9948 STRIP=$host_alias-strip
9949 else
e6cc62c6
VS
9950 { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5
9951echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;}
9952 { (exit 1); exit 1; }; }
3a922bb4 9953 fi
10f2d63a
VZ
9954fi
9955
ec603395 9956CFLAGS=${CFLAGS:=}
e6cc62c6
VS
9957ac_ext=c
9958ac_cpp='$CPP $CPPFLAGS'
9959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9961ac_compiler_gnu=$ac_cv_c_compiler_gnu
9962if test -n "$ac_tool_prefix"; then
9963 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
9964set dummy ${ac_tool_prefix}gcc; ac_word=$2
9965echo "$as_me:$LINENO: checking for $ac_word" >&5
9966echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9967if test "${ac_cv_prog_CC+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9969else
9970 if test -n "$CC"; then
9971 ac_cv_prog_CC="$CC" # Let the user override the test.
9972else
9973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974for as_dir in $PATH
9975do
9976 IFS=$as_save_IFS
9977 test -z "$as_dir" && as_dir=.
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9980 ac_cv_prog_CC="${ac_tool_prefix}gcc"
9981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9982 break 2
9983 fi
9984done
9985done
9986
9987fi
9988fi
9989CC=$ac_cv_prog_CC
9990if test -n "$CC"; then
9991 echo "$as_me:$LINENO: result: $CC" >&5
9992echo "${ECHO_T}$CC" >&6
9993else
9994 echo "$as_me:$LINENO: result: no" >&5
9995echo "${ECHO_T}no" >&6
9996fi
9997
9998fi
9999if test -z "$ac_cv_prog_CC"; then
10000 ac_ct_CC=$CC
10001 # Extract the first word of "gcc", so it can be a program name with args.
8284b0c5 10002set dummy gcc; ac_word=$2
e6cc62c6
VS
10003echo "$as_me:$LINENO: checking for $ac_word" >&5
10004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10005if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10006 echo $ECHO_N "(cached) $ECHO_C" >&6
10007else
10008 if test -n "$ac_ct_CC"; then
10009 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10010else
10011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10012for as_dir in $PATH
10013do
10014 IFS=$as_save_IFS
10015 test -z "$as_dir" && as_dir=.
10016 for ac_exec_ext in '' $ac_executable_extensions; do
10017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10018 ac_cv_prog_ac_ct_CC="gcc"
10019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10020 break 2
10021 fi
10022done
10023done
10024
10025fi
10026fi
10027ac_ct_CC=$ac_cv_prog_ac_ct_CC
10028if test -n "$ac_ct_CC"; then
10029 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10030echo "${ECHO_T}$ac_ct_CC" >&6
10031else
10032 echo "$as_me:$LINENO: result: no" >&5
10033echo "${ECHO_T}no" >&6
10034fi
10035
10036 CC=$ac_ct_CC
10037else
10038 CC="$ac_cv_prog_CC"
10039fi
10040
10041if test -z "$CC"; then
10042 if test -n "$ac_tool_prefix"; then
10043 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10044set dummy ${ac_tool_prefix}cc; ac_word=$2
10045echo "$as_me:$LINENO: checking for $ac_word" >&5
10046echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10047if test "${ac_cv_prog_CC+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
6232543b
VS
10049else
10050 if test -n "$CC"; then
10051 ac_cv_prog_CC="$CC" # Let the user override the test.
10f2d63a 10052else
e6cc62c6
VS
10053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054for as_dir in $PATH
10055do
10056 IFS=$as_save_IFS
10057 test -z "$as_dir" && as_dir=.
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10060 ac_cv_prog_CC="${ac_tool_prefix}cc"
10061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10062 break 2
10063 fi
10064done
10065done
10066
10f2d63a 10067fi
6232543b 10068fi
e6cc62c6 10069CC=$ac_cv_prog_CC
6232543b 10070if test -n "$CC"; then
e6cc62c6
VS
10071 echo "$as_me:$LINENO: result: $CC" >&5
10072echo "${ECHO_T}$CC" >&6
10073else
10074 echo "$as_me:$LINENO: result: no" >&5
10075echo "${ECHO_T}no" >&6
10076fi
10077
10078fi
10079if test -z "$ac_cv_prog_CC"; then
10080 ac_ct_CC=$CC
10081 # Extract the first word of "cc", so it can be a program name with args.
10082set dummy cc; ac_word=$2
10083echo "$as_me:$LINENO: checking for $ac_word" >&5
10084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10085if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10087else
10088 if test -n "$ac_ct_CC"; then
10089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10090else
10091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10092for as_dir in $PATH
10093do
10094 IFS=$as_save_IFS
10095 test -z "$as_dir" && as_dir=.
10096 for ac_exec_ext in '' $ac_executable_extensions; do
10097 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10098 ac_cv_prog_ac_ct_CC="cc"
10099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10100 break 2
10101 fi
10102done
10103done
10104
10105fi
10106fi
10107ac_ct_CC=$ac_cv_prog_ac_ct_CC
10108if test -n "$ac_ct_CC"; then
10109 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10110echo "${ECHO_T}$ac_ct_CC" >&6
10111else
10112 echo "$as_me:$LINENO: result: no" >&5
10113echo "${ECHO_T}no" >&6
10114fi
10115
10116 CC=$ac_ct_CC
247f5006 10117else
e6cc62c6 10118 CC="$ac_cv_prog_CC"
247f5006
VZ
10119fi
10120
e6cc62c6 10121fi
5c6fa7d2
RR
10122if test -z "$CC"; then
10123 # Extract the first word of "cc", so it can be a program name with args.
10124set dummy cc; ac_word=$2
e6cc62c6
VS
10125echo "$as_me:$LINENO: checking for $ac_word" >&5
10126echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10127if test "${ac_cv_prog_CC+set}" = set; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2
RR
10129else
10130 if test -n "$CC"; then
10131 ac_cv_prog_CC="$CC" # Let the user override the test.
10132else
10133 ac_prog_rejected=no
e6cc62c6
VS
10134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10135for as_dir in $PATH
10136do
10137 IFS=$as_save_IFS
10138 test -z "$as_dir" && as_dir=.
10139 for ac_exec_ext in '' $ac_executable_extensions; do
10140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10141 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10142 ac_prog_rejected=yes
10143 continue
10144 fi
10145 ac_cv_prog_CC="cc"
10146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10147 break 2
10148 fi
10149done
10150done
10151
328a083c
RR
10152if test $ac_prog_rejected = yes; then
10153 # We found a bogon in the path, so make sure we never use it.
10154 set dummy $ac_cv_prog_CC
10155 shift
e6cc62c6 10156 if test $# != 0; then
328a083c 10157 # We chose a different compiler from the bogus one.
1e487827
VS
10158 # However, it has the same basename, so the bogon will be chosen
10159 # first if we set CC to just the basename; use the full file name.
10160 shift
e6cc62c6 10161 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
703e0a69 10162 fi
1e487827
VS
10163fi
10164fi
10165fi
e6cc62c6 10166CC=$ac_cv_prog_CC
1e487827 10167if test -n "$CC"; then
e6cc62c6
VS
10168 echo "$as_me:$LINENO: result: $CC" >&5
10169echo "${ECHO_T}$CC" >&6
703e0a69 10170else
e6cc62c6
VS
10171 echo "$as_me:$LINENO: result: no" >&5
10172echo "${ECHO_T}no" >&6
703e0a69 10173fi
1e487827 10174
e6cc62c6
VS
10175fi
10176if test -z "$CC"; then
10177 if test -n "$ac_tool_prefix"; then
10178 for ac_prog in cl
10179 do
10180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10181set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10182echo "$as_me:$LINENO: checking for $ac_word" >&5
10183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10184if test "${ac_cv_prog_CC+set}" = set; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf
VS
10186else
10187 if test -n "$CC"; then
10188 ac_cv_prog_CC="$CC" # Let the user override the test.
10189else
e6cc62c6
VS
10190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10191for as_dir in $PATH
10192do
10193 IFS=$as_save_IFS
10194 test -z "$as_dir" && as_dir=.
10195 for ac_exec_ext in '' $ac_executable_extensions; do
10196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10197 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10199 break 2
10200 fi
10201done
10202done
10203
f09359cf
VS
10204fi
10205fi
e6cc62c6 10206CC=$ac_cv_prog_CC
f09359cf 10207if test -n "$CC"; then
e6cc62c6
VS
10208 echo "$as_me:$LINENO: result: $CC" >&5
10209echo "${ECHO_T}$CC" >&6
f09359cf 10210else
e6cc62c6
VS
10211 echo "$as_me:$LINENO: result: no" >&5
10212echo "${ECHO_T}no" >&6
5c6fa7d2 10213fi
1e487827 10214
e6cc62c6
VS
10215 test -n "$CC" && break
10216 done
10217fi
10218if test -z "$CC"; then
10219 ac_ct_CC=$CC
10220 for ac_prog in cl
10221do
10222 # Extract the first word of "$ac_prog", so it can be a program name with args.
10223set dummy $ac_prog; ac_word=$2
10224echo "$as_me:$LINENO: checking for $ac_word" >&5
10225echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10226if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
10227 echo $ECHO_N "(cached) $ECHO_C" >&6
10228else
10229 if test -n "$ac_ct_CC"; then
10230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10231else
10232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10233for as_dir in $PATH
10234do
10235 IFS=$as_save_IFS
10236 test -z "$as_dir" && as_dir=.
10237 for ac_exec_ext in '' $ac_executable_extensions; do
10238 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10239 ac_cv_prog_ac_ct_CC="$ac_prog"
10240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10241 break 2
10242 fi
10243done
10244done
f09359cf 10245
e6cc62c6
VS
10246fi
10247fi
10248ac_ct_CC=$ac_cv_prog_ac_ct_CC
10249if test -n "$ac_ct_CC"; then
10250 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
10251echo "${ECHO_T}$ac_ct_CC" >&6
10252else
10253 echo "$as_me:$LINENO: result: no" >&5
10254echo "${ECHO_T}no" >&6
10255fi
f09359cf 10256
e6cc62c6
VS
10257 test -n "$ac_ct_CC" && break
10258done
247f5006 10259
e6cc62c6
VS
10260 CC=$ac_ct_CC
10261fi
10262
10263fi
10264
10265
10266test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
10267See \`config.log' for more details." >&5
10268echo "$as_me: error: no acceptable C compiler found in \$PATH
10269See \`config.log' for more details." >&2;}
10270 { (exit 1); exit 1; }; }
10271
10272# Provide some information about the compiler.
10273echo "$as_me:$LINENO:" \
10274 "checking for C compiler version" >&5
10275ac_compiler=`set X $ac_compile; echo $2`
10276{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10277 (eval $ac_compiler --version </dev/null >&5) 2>&5
10278 ac_status=$?
10279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10280 (exit $ac_status); }
10281{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10282 (eval $ac_compiler -v </dev/null >&5) 2>&5
10283 ac_status=$?
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); }
10286{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10287 (eval $ac_compiler -V </dev/null >&5) 2>&5
10288 ac_status=$?
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); }
10291
10292cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10293/* confdefs.h. */
10294_ACEOF
10295cat confdefs.h >>conftest.$ac_ext
10296cat >>conftest.$ac_ext <<_ACEOF
10297/* end confdefs.h. */
10298
10299int
10300main ()
10301{
247f5006 10302
e6cc62c6
VS
10303 ;
10304 return 0;
10305}
10306_ACEOF
10307ac_clean_files_save=$ac_clean_files
10308ac_clean_files="$ac_clean_files a.out a.exe b.out"
10309# Try to create an executable without -o first, disregard a.out.
10310# It will help us diagnose broken compilers, and finding out an intuition
10311# of exeext.
f95e4495
VS
10312echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
10313echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
e6cc62c6
VS
10314ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
10315if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
10316 (eval $ac_link_default) 2>&5
10317 ac_status=$?
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; then
10320 # Find the output, starting from the most likely. This scheme is
10321# not robust to junk in `.', hence go to wildcards (a.*) only as a last
10322# resort.
10323
10324# Be careful to initialize this variable, since it used to be cached.
10325# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
10326ac_cv_exeext=
10327# b.out is created by i960 compilers.
10328for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
10329do
10330 test -f "$ac_file" || continue
10331 case $ac_file in
10332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
f95e4495 10333 ;;
e6cc62c6 10334 conftest.$ac_ext )
f95e4495
VS
10335 # This is the source file.
10336 ;;
e6cc62c6 10337 [ab].out )
f95e4495
VS
10338 # We found the default executable, but exeext='' is most
10339 # certainly right.
10340 break;;
e6cc62c6 10341 *.* )
f95e4495
VS
10342 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
10343 # FIXME: I believe we export ac_cv_exeext for Libtool,
10344 # but it would be cool to find out if it's true. Does anybody
10345 # maintain Libtool? --akim.
10346 export ac_cv_exeext
10347 break;;
e6cc62c6 10348 * )
f95e4495 10349 break;;
e6cc62c6
VS
10350 esac
10351done
10352else
10353 echo "$as_me: failed program was:" >&5
10354sed 's/^/| /' conftest.$ac_ext >&5
10355
10356{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
10357See \`config.log' for more details." >&5
10358echo "$as_me: error: C compiler cannot create executables
10359See \`config.log' for more details." >&2;}
10360 { (exit 77); exit 77; }; }
10361fi
10362
10363ac_exeext=$ac_cv_exeext
10364echo "$as_me:$LINENO: result: $ac_file" >&5
10365echo "${ECHO_T}$ac_file" >&6
10366
10367# Check the compiler produces executables we can run. If not, either
10368# the compiler is broken, or we cross compile.
10369echo "$as_me:$LINENO: checking whether the C compiler works" >&5
10370echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
10371# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
10372# If not cross compiling, check that we can run a simple program.
10373if test "$cross_compiling" != yes; then
10374 if { ac_try='./$ac_file'
10375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10376 (eval $ac_try) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); }; }; then
10380 cross_compiling=no
698dcdb6 10381 else
e6cc62c6
VS
10382 if test "$cross_compiling" = maybe; then
10383 cross_compiling=yes
10384 else
10385 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
10386If you meant to cross compile, use \`--host'.
10387See \`config.log' for more details." >&5
10388echo "$as_me: error: cannot run C compiled programs.
10389If you meant to cross compile, use \`--host'.
10390See \`config.log' for more details." >&2;}
10391 { (exit 1); exit 1; }; }
10392 fi
698dcdb6 10393 fi
52127426 10394fi
e6cc62c6
VS
10395echo "$as_me:$LINENO: result: yes" >&5
10396echo "${ECHO_T}yes" >&6
10397
10398rm -f a.out a.exe conftest$ac_cv_exeext b.out
10399ac_clean_files=$ac_clean_files_save
10400# Check the compiler produces executables we can run. If not, either
10401# the compiler is broken, or we cross compile.
10402echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
10403echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
10404echo "$as_me:$LINENO: result: $cross_compiling" >&5
10405echo "${ECHO_T}$cross_compiling" >&6
10406
10407echo "$as_me:$LINENO: checking for suffix of executables" >&5
10408echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
10409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10410 (eval $ac_link) 2>&5
10411 ac_status=$?
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); }; then
10414 # If both `conftest.exe' and `conftest' are `present' (well, observable)
10415# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
10416# work properly (i.e., refer to `conftest.exe'), while it won't with
10417# `rm'.
10418for ac_file in conftest.exe conftest conftest.*; do
10419 test -f "$ac_file" || continue
10420 case $ac_file in
10421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
10422 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
f95e4495
VS
10423 export ac_cv_exeext
10424 break;;
e6cc62c6
VS
10425 * ) break;;
10426 esac
10427done
5c6fa7d2 10428else
e6cc62c6
VS
10429 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
10430See \`config.log' for more details." >&5
10431echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
10432See \`config.log' for more details." >&2;}
10433 { (exit 1); exit 1; }; }
10434fi
10435
10436rm -f conftest$ac_cv_exeext
10437echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
10438echo "${ECHO_T}$ac_cv_exeext" >&6
10439
10440rm -f conftest.$ac_ext
10441EXEEXT=$ac_cv_exeext
10442ac_exeext=$EXEEXT
10443echo "$as_me:$LINENO: checking for suffix of object files" >&5
10444echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
10445if test "${ac_cv_objext+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10447else
10448 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10449/* confdefs.h. */
10450_ACEOF
10451cat confdefs.h >>conftest.$ac_ext
10452cat >>conftest.$ac_ext <<_ACEOF
10453/* end confdefs.h. */
10454
10455int
10456main ()
10457{
f09359cf 10458
e6cc62c6
VS
10459 ;
10460 return 0;
10461}
10462_ACEOF
10463rm -f conftest.o conftest.obj
10464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10465 (eval $ac_compile) 2>&5
10466 ac_status=$?
10467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10468 (exit $ac_status); }; then
10469 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
10470 case $ac_file in
10471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
10472 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
10473 break;;
10474 esac
10475done
a0b9e27f 10476else
e6cc62c6
VS
10477 echo "$as_me: failed program was:" >&5
10478sed 's/^/| /' conftest.$ac_ext >&5
10479
10480{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
10481See \`config.log' for more details." >&5
10482echo "$as_me: error: cannot compute suffix of object files: cannot compile
10483See \`config.log' for more details." >&2;}
10484 { (exit 1); exit 1; }; }
a0b9e27f 10485fi
247f5006 10486
e6cc62c6
VS
10487rm -f conftest.$ac_cv_objext conftest.$ac_ext
10488fi
10489echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
10490echo "${ECHO_T}$ac_cv_objext" >&6
10491OBJEXT=$ac_cv_objext
10492ac_objext=$OBJEXT
10493echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
10494echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
10495if test "${ac_cv_c_compiler_gnu+set}" = set; then
10496 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 10497else
e6cc62c6 10498 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10499/* confdefs.h. */
10500_ACEOF
10501cat confdefs.h >>conftest.$ac_ext
10502cat >>conftest.$ac_ext <<_ACEOF
10503/* end confdefs.h. */
10504
10505int
10506main ()
10507{
10508#ifndef __GNUC__
10509 choke me
10510#endif
10511
10512 ;
10513 return 0;
10514}
10515_ACEOF
10516rm -f conftest.$ac_objext
10517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 10518 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10519 ac_status=$?
f95e4495
VS
10520 grep -v '^ *+' conftest.er1 >conftest.err
10521 rm -f conftest.er1
10522 cat conftest.err >&5
e6cc62c6
VS
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } &&
f95e4495
VS
10525 { ac_try='test -z "$ac_c_werror_flag"
10526 || test ! -s conftest.err'
10527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10528 (eval $ac_try) 2>&5
10529 ac_status=$?
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); }; } &&
10532 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10534 (eval $ac_try) 2>&5
10535 ac_status=$?
10536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10537 (exit $ac_status); }; }; then
10538 ac_compiler_gnu=yes
10539else
10540 echo "$as_me: failed program was:" >&5
10541sed 's/^/| /' conftest.$ac_ext >&5
10542
10543ac_compiler_gnu=no
10544fi
f95e4495 10545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10546ac_cv_c_compiler_gnu=$ac_compiler_gnu
10547
10548fi
10549echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
10550echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
10551GCC=`test $ac_compiler_gnu = yes && echo yes`
10552ac_test_CFLAGS=${CFLAGS+set}
10553ac_save_CFLAGS=$CFLAGS
10554CFLAGS="-g"
10555echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
10556echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
10557if test "${ac_cv_prog_cc_g+set}" = set; then
10558 echo $ECHO_N "(cached) $ECHO_C" >&6
10559else
10560 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10561/* confdefs.h. */
10562_ACEOF
10563cat confdefs.h >>conftest.$ac_ext
10564cat >>conftest.$ac_ext <<_ACEOF
10565/* end confdefs.h. */
10566
10567int
10568main ()
10569{
10570
10571 ;
10572 return 0;
10573}
10574_ACEOF
10575rm -f conftest.$ac_objext
10576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 10577 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10578 ac_status=$?
f95e4495
VS
10579 grep -v '^ *+' conftest.er1 >conftest.err
10580 rm -f conftest.er1
10581 cat conftest.err >&5
e6cc62c6
VS
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } &&
f95e4495
VS
10584 { ac_try='test -z "$ac_c_werror_flag"
10585 || test ! -s conftest.err'
10586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587 (eval $ac_try) 2>&5
10588 ac_status=$?
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; } &&
10591 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593 (eval $ac_try) 2>&5
10594 ac_status=$?
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); }; }; then
10f2d63a
VZ
10597 ac_cv_prog_cc_g=yes
10598else
e6cc62c6
VS
10599 echo "$as_me: failed program was:" >&5
10600sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 10601
e6cc62c6 10602ac_cv_prog_cc_g=no
10f2d63a 10603fi
f95e4495 10604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10605fi
10606echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
10607echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
f09359cf 10608if test "$ac_test_CFLAGS" = set; then
e6cc62c6 10609 CFLAGS=$ac_save_CFLAGS
f09359cf
VS
10610elif test $ac_cv_prog_cc_g = yes; then
10611 if test "$GCC" = yes; then
10f2d63a
VZ
10612 CFLAGS="-g -O2"
10613 else
f09359cf 10614 CFLAGS="-g"
10f2d63a 10615 fi
5c0a20c3 10616else
f09359cf
VS
10617 if test "$GCC" = yes; then
10618 CFLAGS="-O2"
10619 else
10620 CFLAGS=
10621 fi
10f2d63a 10622fi
e6cc62c6
VS
10623echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
10624echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
10625if test "${ac_cv_prog_cc_stdc+set}" = set; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
10627else
10628 ac_cv_prog_cc_stdc=no
10629ac_save_CC=$CC
10630cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10631/* confdefs.h. */
10632_ACEOF
10633cat confdefs.h >>conftest.$ac_ext
10634cat >>conftest.$ac_ext <<_ACEOF
10635/* end confdefs.h. */
10636#include <stdarg.h>
10637#include <stdio.h>
10638#include <sys/types.h>
10639#include <sys/stat.h>
10640/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
10641struct buf { int x; };
10642FILE * (*rcsopen) (struct buf *, struct stat *, int);
10643static char *e (p, i)
10644 char **p;
10645 int i;
10646{
10647 return p[i];
10648}
10649static char *f (char * (*g) (char **, int), char **p, ...)
10650{
10651 char *s;
10652 va_list v;
10653 va_start (v,p);
10654 s = g (p, va_arg (v,int));
10655 va_end (v);
10656 return s;
10657}
f95e4495
VS
10658
10659/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
10660 function prototypes and stuff, but not '\xHH' hex character constants.
10661 These don't provoke an error unfortunately, instead are silently treated
10662 as 'x'. The following induces an error, until -std1 is added to get
10663 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
10664 array size at least. It's necessary to write '\x00'==0 to get something
10665 that's true only with -std1. */
10666int osf4_cc_array ['\x00' == 0 ? 1 : -1];
10667
e6cc62c6
VS
10668int test (int i, double x);
10669struct s1 {int (*f) (int a);};
10670struct s2 {int (*f) (double a);};
10671int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
10672int argc;
10673char **argv;
10674int
10675main ()
10676{
10677return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
10678 ;
10679 return 0;
10680}
10681_ACEOF
10682# Don't try gcc -ansi; that turns off useful extensions and
10683# breaks some systems' header files.
10684# AIX -qlanglvl=ansi
10685# Ultrix and OSF/1 -std1
10686# HP-UX 10.20 and later -Ae
10687# HP-UX older versions -Aa -D_HPUX_SOURCE
10688# SVR4 -Xc -D__EXTENSIONS__
10689for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
10690do
10691 CC="$ac_save_CC $ac_arg"
10692 rm -f conftest.$ac_objext
10693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 10694 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10695 ac_status=$?
f95e4495
VS
10696 grep -v '^ *+' conftest.er1 >conftest.err
10697 rm -f conftest.er1
10698 cat conftest.err >&5
e6cc62c6
VS
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } &&
f95e4495
VS
10701 { ac_try='test -z "$ac_c_werror_flag"
10702 || test ! -s conftest.err'
10703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704 (eval $ac_try) 2>&5
10705 ac_status=$?
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); }; } &&
10708 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10711 ac_status=$?
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; }; then
10714 ac_cv_prog_cc_stdc=$ac_arg
10715break
10716else
10717 echo "$as_me: failed program was:" >&5
10718sed 's/^/| /' conftest.$ac_ext >&5
10719
10720fi
f95e4495 10721rm -f conftest.err conftest.$ac_objext
e6cc62c6
VS
10722done
10723rm -f conftest.$ac_ext conftest.$ac_objext
10724CC=$ac_save_CC
10725
10726fi
10727
10728case "x$ac_cv_prog_cc_stdc" in
10729 x|xno)
10730 echo "$as_me:$LINENO: result: none needed" >&5
10731echo "${ECHO_T}none needed" >&6 ;;
10732 *)
10733 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
10734echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
10735 CC="$CC $ac_cv_prog_cc_stdc" ;;
10736esac
10737
10738# Some people use a C++ compiler to compile C. Since we use `exit',
10739# in C++ we need to declare it. In case someone uses the same compiler
10740# for both compiling C and C++ we need to have the C++ compiler decide
10741# the declaration of exit, since it's the most demanding environment.
10742cat >conftest.$ac_ext <<_ACEOF
10743#ifndef __cplusplus
10744 choke me
10745#endif
10746_ACEOF
10747rm -f conftest.$ac_objext
10748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 10749 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10750 ac_status=$?
f95e4495
VS
10751 grep -v '^ *+' conftest.er1 >conftest.err
10752 rm -f conftest.er1
10753 cat conftest.err >&5
e6cc62c6
VS
10754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10755 (exit $ac_status); } &&
f95e4495
VS
10756 { ac_try='test -z "$ac_c_werror_flag"
10757 || test ! -s conftest.err'
10758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10759 (eval $ac_try) 2>&5
10760 ac_status=$?
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); }; } &&
10763 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765 (eval $ac_try) 2>&5
10766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; }; then
10769 for ac_declaration in \
f95e4495 10770 '' \
e6cc62c6
VS
10771 'extern "C" void std::exit (int) throw (); using std::exit;' \
10772 'extern "C" void std::exit (int); using std::exit;' \
10773 'extern "C" void exit (int) throw ();' \
10774 'extern "C" void exit (int);' \
10775 'void exit (int);'
10776do
10777 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10778/* confdefs.h. */
10779_ACEOF
10780cat confdefs.h >>conftest.$ac_ext
10781cat >>conftest.$ac_ext <<_ACEOF
10782/* end confdefs.h. */
09d3439c 10783$ac_declaration
f95e4495 10784#include <stdlib.h>
e6cc62c6
VS
10785int
10786main ()
10787{
10788exit (42);
10789 ;
10790 return 0;
10791}
10792_ACEOF
10793rm -f conftest.$ac_objext
10794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 10795 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10796 ac_status=$?
f95e4495
VS
10797 grep -v '^ *+' conftest.er1 >conftest.err
10798 rm -f conftest.er1
10799 cat conftest.err >&5
e6cc62c6
VS
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } &&
f95e4495
VS
10802 { ac_try='test -z "$ac_c_werror_flag"
10803 || test ! -s conftest.err'
10804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805 (eval $ac_try) 2>&5
10806 ac_status=$?
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; } &&
10809 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10812 ac_status=$?
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; }; then
10815 :
10816else
10817 echo "$as_me: failed program was:" >&5
10818sed 's/^/| /' conftest.$ac_ext >&5
10819
10820continue
10821fi
f95e4495 10822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 10823 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10824/* confdefs.h. */
10825_ACEOF
10826cat confdefs.h >>conftest.$ac_ext
10827cat >>conftest.$ac_ext <<_ACEOF
10828/* end confdefs.h. */
10829$ac_declaration
10830int
10831main ()
10832{
10833exit (42);
10834 ;
10835 return 0;
10836}
10837_ACEOF
10838rm -f conftest.$ac_objext
10839if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 10840 (eval $ac_compile) 2>conftest.er1
e6cc62c6 10841 ac_status=$?
f95e4495
VS
10842 grep -v '^ *+' conftest.er1 >conftest.err
10843 rm -f conftest.er1
10844 cat conftest.err >&5
e6cc62c6
VS
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); } &&
f95e4495
VS
10847 { ac_try='test -z "$ac_c_werror_flag"
10848 || test ! -s conftest.err'
10849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10850 (eval $ac_try) 2>&5
10851 ac_status=$?
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); }; } &&
10854 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
10855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10856 (eval $ac_try) 2>&5
10857 ac_status=$?
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; }; then
10860 break
10861else
10862 echo "$as_me: failed program was:" >&5
10863sed 's/^/| /' conftest.$ac_ext >&5
10864
10865fi
f95e4495 10866rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10867done
10868rm -f conftest*
10869if test -n "$ac_declaration"; then
10870 echo '#ifdef __cplusplus' >>confdefs.h
10871 echo $ac_declaration >>confdefs.h
10872 echo '#endif' >>confdefs.h
10873fi
10874
10875else
10876 echo "$as_me: failed program was:" >&5
10877sed 's/^/| /' conftest.$ac_ext >&5
10878
10879fi
f95e4495 10880rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
10881ac_ext=c
10882ac_cpp='$CPP $CPPFLAGS'
10883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10885ac_compiler_gnu=$ac_cv_c_compiler_gnu
10f2d63a
VZ
10886
10887
e6cc62c6
VS
10888
10889ac_ext=c
10890ac_cpp='$CPP $CPPFLAGS'
10891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10893ac_compiler_gnu=$ac_cv_c_compiler_gnu
10894echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
10895echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
10f2d63a
VZ
10896# On Suns, sometimes $CPP names a directory.
10897if test -n "$CPP" && test -d "$CPP"; then
10898 CPP=
10899fi
10900if test -z "$CPP"; then
e6cc62c6
VS
10901 if test "${ac_cv_prog_CPP+set}" = set; then
10902 echo $ECHO_N "(cached) $ECHO_C" >&6
10903else
10904 # Double quotes because CPP needs to be expanded
10905 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
10906 do
10907 ac_preproc_ok=false
10908for ac_c_preproc_warn_flag in '' yes
10909do
10910 # Use a header file that comes with gcc, so configuring glibc
10911 # with a fresh cross-compiler works.
10912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10913 # <limits.h> exists even on freestanding compilers.
10f2d63a 10914 # On the NeXT, cc -E runs the code through the compiler's parser,
e6cc62c6
VS
10915 # not just through cpp. "Syntax error" is here to catch this case.
10916 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10917/* confdefs.h. */
10918_ACEOF
10919cat confdefs.h >>conftest.$ac_ext
10920cat >>conftest.$ac_ext <<_ACEOF
10921/* end confdefs.h. */
10922#ifdef __STDC__
10923# include <limits.h>
10924#else
10925# include <assert.h>
10926#endif
f95e4495 10927 Syntax error
e6cc62c6
VS
10928_ACEOF
10929if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10930 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10931 ac_status=$?
10932 grep -v '^ *+' conftest.er1 >conftest.err
10933 rm -f conftest.er1
10934 cat conftest.err >&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); } >/dev/null; then
10937 if test -s conftest.err; then
10938 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 10939 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
10940 else
10941 ac_cpp_err=
10942 fi
10f2d63a 10943else
e6cc62c6
VS
10944 ac_cpp_err=yes
10945fi
10946if test -z "$ac_cpp_err"; then
a0b9e27f 10947 :
247f5006 10948else
e6cc62c6
VS
10949 echo "$as_me: failed program was:" >&5
10950sed 's/^/| /' conftest.$ac_ext >&5
10951
10952 # Broken: fails on valid input.
10953continue
10954fi
10955rm -f conftest.err conftest.$ac_ext
10956
10957 # OK, works on sane cases. Now check whether non-existent headers
10958 # can be detected and how.
10959 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
10960/* confdefs.h. */
10961_ACEOF
10962cat confdefs.h >>conftest.$ac_ext
10963cat >>conftest.$ac_ext <<_ACEOF
10964/* end confdefs.h. */
10965#include <ac_nonexistent.h>
10966_ACEOF
10967if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10968 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10969 ac_status=$?
10970 grep -v '^ *+' conftest.er1 >conftest.err
10971 rm -f conftest.er1
10972 cat conftest.err >&5
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); } >/dev/null; then
10975 if test -s conftest.err; then
10976 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 10977 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
10978 else
10979 ac_cpp_err=
10980 fi
10f2d63a 10981else
e6cc62c6 10982 ac_cpp_err=yes
579d8138 10983fi
e6cc62c6
VS
10984if test -z "$ac_cpp_err"; then
10985 # Broken: success on invalid input.
10986continue
10987else
10988 echo "$as_me: failed program was:" >&5
10989sed 's/^/| /' conftest.$ac_ext >&5
10990
10991 # Passes both tests.
10992ac_preproc_ok=:
10993break
52127426 10994fi
e6cc62c6
VS
10995rm -f conftest.err conftest.$ac_ext
10996
10997done
10998# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10999rm -f conftest.err conftest.$ac_ext
11000if $ac_preproc_ok; then
11001 break
8284b0c5 11002fi
e6cc62c6
VS
11003
11004 done
11005 ac_cv_prog_CPP=$CPP
11006
11007fi
11008 CPP=$ac_cv_prog_CPP
11009else
11010 ac_cv_prog_CPP=$CPP
11011fi
11012echo "$as_me:$LINENO: result: $CPP" >&5
11013echo "${ECHO_T}$CPP" >&6
11014ac_preproc_ok=false
11015for ac_c_preproc_warn_flag in '' yes
11016do
11017 # Use a header file that comes with gcc, so configuring glibc
11018 # with a fresh cross-compiler works.
11019 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11020 # <limits.h> exists even on freestanding compilers.
11021 # On the NeXT, cc -E runs the code through the compiler's parser,
11022 # not just through cpp. "Syntax error" is here to catch this case.
11023 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11024/* confdefs.h. */
11025_ACEOF
11026cat confdefs.h >>conftest.$ac_ext
11027cat >>conftest.$ac_ext <<_ACEOF
11028/* end confdefs.h. */
11029#ifdef __STDC__
11030# include <limits.h>
11031#else
11032# include <assert.h>
11033#endif
f95e4495 11034 Syntax error
e6cc62c6
VS
11035_ACEOF
11036if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11037 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11038 ac_status=$?
11039 grep -v '^ *+' conftest.er1 >conftest.err
11040 rm -f conftest.er1
11041 cat conftest.err >&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } >/dev/null; then
11044 if test -s conftest.err; then
11045 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 11046 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
11047 else
11048 ac_cpp_err=
11049 fi
11050else
11051 ac_cpp_err=yes
11052fi
11053if test -z "$ac_cpp_err"; then
11054 :
11055else
11056 echo "$as_me: failed program was:" >&5
11057sed 's/^/| /' conftest.$ac_ext >&5
11058
11059 # Broken: fails on valid input.
11060continue
11061fi
11062rm -f conftest.err conftest.$ac_ext
11063
11064 # OK, works on sane cases. Now check whether non-existent headers
11065 # can be detected and how.
11066 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11067/* confdefs.h. */
11068_ACEOF
11069cat confdefs.h >>conftest.$ac_ext
11070cat >>conftest.$ac_ext <<_ACEOF
11071/* end confdefs.h. */
11072#include <ac_nonexistent.h>
11073_ACEOF
11074if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11075 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11076 ac_status=$?
11077 grep -v '^ *+' conftest.er1 >conftest.err
11078 rm -f conftest.er1
11079 cat conftest.err >&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } >/dev/null; then
11082 if test -s conftest.err; then
11083 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 11084 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
11085 else
11086 ac_cpp_err=
11087 fi
11088else
11089 ac_cpp_err=yes
11090fi
11091if test -z "$ac_cpp_err"; then
11092 # Broken: success on invalid input.
11093continue
11094else
11095 echo "$as_me: failed program was:" >&5
11096sed 's/^/| /' conftest.$ac_ext >&5
11097
11098 # Passes both tests.
11099ac_preproc_ok=:
11100break
a0b9e27f 11101fi
e6cc62c6
VS
11102rm -f conftest.err conftest.$ac_ext
11103
11104done
11105# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11106rm -f conftest.err conftest.$ac_ext
11107if $ac_preproc_ok; then
11108 :
11109else
11110 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
11111See \`config.log' for more details." >&5
11112echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
11113See \`config.log' for more details." >&2;}
11114 { (exit 1); exit 1; }; }
11115fi
11116
11117ac_ext=c
11118ac_cpp='$CPP $CPPFLAGS'
11119ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11120ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11121ac_compiler_gnu=$ac_cv_c_compiler_gnu
11122
11123
11124echo "$as_me:$LINENO: checking for egrep" >&5
11125echo $ECHO_N "checking for egrep... $ECHO_C" >&6
11126if test "${ac_cv_prog_egrep+set}" = set; then
11127 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 11128else
e6cc62c6
VS
11129 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
11130 then ac_cv_prog_egrep='grep -E'
11131 else ac_cv_prog_egrep='egrep'
11132 fi
10f2d63a 11133fi
e6cc62c6
VS
11134echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
11135echo "${ECHO_T}$ac_cv_prog_egrep" >&6
11136 EGREP=$ac_cv_prog_egrep
11137
10f2d63a 11138
e6cc62c6
VS
11139if test $ac_cv_c_compiler_gnu = yes; then
11140 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
11141echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
11142if test "${ac_cv_prog_gcc_traditional+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11144else
11145 ac_pattern="Autoconf.*'x'"
e6cc62c6 11146 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11147/* confdefs.h. */
11148_ACEOF
11149cat confdefs.h >>conftest.$ac_ext
11150cat >>conftest.$ac_ext <<_ACEOF
11151/* end confdefs.h. */
10f2d63a
VZ
11152#include <sgtty.h>
11153Autoconf TIOCGETP
e6cc62c6 11154_ACEOF
10f2d63a 11155if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 11156 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11157 ac_cv_prog_gcc_traditional=yes
11158else
10f2d63a
VZ
11159 ac_cv_prog_gcc_traditional=no
11160fi
11161rm -f conftest*
11162
8284b0c5 11163
10f2d63a 11164 if test $ac_cv_prog_gcc_traditional = no; then
e6cc62c6 11165 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11166/* confdefs.h. */
11167_ACEOF
11168cat confdefs.h >>conftest.$ac_ext
11169cat >>conftest.$ac_ext <<_ACEOF
11170/* end confdefs.h. */
10f2d63a
VZ
11171#include <termio.h>
11172Autoconf TCGETA
e6cc62c6 11173_ACEOF
10f2d63a 11174if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 11175 $EGREP "$ac_pattern" >/dev/null 2>&1; then
10f2d63a
VZ
11176 ac_cv_prog_gcc_traditional=yes
11177fi
11178rm -f conftest*
11179
11180 fi
11181fi
e6cc62c6
VS
11182echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
11183echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10f2d63a
VZ
11184 if test $ac_cv_prog_gcc_traditional = yes; then
11185 CC="$CC -traditional"
11186 fi
11187fi
11188
8284b0c5
MB
11189
11190
e6cc62c6
VS
11191
11192ac_ext=cc
1e487827 11193ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
11194ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11195ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11196ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 11197
698dcdb6 11198
ec603395 11199CXXFLAGS=${CXXFLAGS:=}
e6cc62c6
VS
11200ac_ext=cc
11201ac_cpp='$CXXCPP $CPPFLAGS'
11202ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11203ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11204ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11205if test -n "$ac_tool_prefix"; then
11206 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11207 do
11208 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11209set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11210echo "$as_me:$LINENO: checking for $ac_word" >&5
11211echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11212if test "${ac_cv_prog_CXX+set}" = set; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11214else
11215 if test -n "$CXX"; then
11216 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11217else
e6cc62c6
VS
11218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11219for as_dir in $PATH
11220do
11221 IFS=$as_save_IFS
11222 test -z "$as_dir" && as_dir=.
11223 for ac_exec_ext in '' $ac_executable_extensions; do
11224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11225 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11227 break 2
11228 fi
11229done
11230done
11231
10f2d63a
VZ
11232fi
11233fi
e6cc62c6 11234CXX=$ac_cv_prog_CXX
10f2d63a 11235if test -n "$CXX"; then
e6cc62c6
VS
11236 echo "$as_me:$LINENO: result: $CXX" >&5
11237echo "${ECHO_T}$CXX" >&6
10f2d63a 11238else
e6cc62c6
VS
11239 echo "$as_me:$LINENO: result: no" >&5
11240echo "${ECHO_T}no" >&6
10f2d63a
VZ
11241fi
11242
e6cc62c6
VS
11243 test -n "$CXX" && break
11244 done
11245fi
11246if test -z "$CXX"; then
11247 ac_ct_CXX=$CXX
11248 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
11249do
11250 # Extract the first word of "$ac_prog", so it can be a program name with args.
11251set dummy $ac_prog; ac_word=$2
11252echo "$as_me:$LINENO: checking for $ac_word" >&5
11253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11254if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11256else
11257 if test -n "$ac_ct_CXX"; then
11258 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11259else
11260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11261for as_dir in $PATH
11262do
11263 IFS=$as_save_IFS
11264 test -z "$as_dir" && as_dir=.
11265 for ac_exec_ext in '' $ac_executable_extensions; do
11266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11267 ac_cv_prog_ac_ct_CXX="$ac_prog"
11268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11269 break 2
11270 fi
11271done
10f2d63a 11272done
a0b9e27f 11273
8284b0c5 11274fi
a0b9e27f 11275fi
e6cc62c6
VS
11276ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11277if test -n "$ac_ct_CXX"; then
11278 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11279echo "${ECHO_T}$ac_ct_CXX" >&6
11280else
11281 echo "$as_me:$LINENO: result: no" >&5
11282echo "${ECHO_T}no" >&6
a0b9e27f 11283fi
10f2d63a 11284
e6cc62c6
VS
11285 test -n "$ac_ct_CXX" && break
11286done
11287test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
11288
11289 CXX=$ac_ct_CXX
11290fi
11291
11292
11293# Provide some information about the compiler.
11294echo "$as_me:$LINENO:" \
11295 "checking for C++ compiler version" >&5
11296ac_compiler=`set X $ac_compile; echo $2`
11297{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
11298 (eval $ac_compiler --version </dev/null >&5) 2>&5
11299 ac_status=$?
11300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301 (exit $ac_status); }
11302{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
11303 (eval $ac_compiler -v </dev/null >&5) 2>&5
11304 ac_status=$?
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }
11307{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
11308 (eval $ac_compiler -V </dev/null >&5) 2>&5
11309 ac_status=$?
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }
11312
11313echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11314echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
11315if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11316 echo $ECHO_N "(cached) $ECHO_C" >&6
11317else
11318 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11319/* confdefs.h. */
11320_ACEOF
11321cat confdefs.h >>conftest.$ac_ext
11322cat >>conftest.$ac_ext <<_ACEOF
11323/* end confdefs.h. */
11324
11325int
11326main ()
11327{
11328#ifndef __GNUC__
11329 choke me
11330#endif
10f2d63a 11331
e6cc62c6
VS
11332 ;
11333 return 0;
11334}
11335_ACEOF
11336rm -f conftest.$ac_objext
11337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 11338 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11339 ac_status=$?
f95e4495
VS
11340 grep -v '^ *+' conftest.er1 >conftest.err
11341 rm -f conftest.er1
11342 cat conftest.err >&5
e6cc62c6
VS
11343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11344 (exit $ac_status); } &&
f95e4495
VS
11345 { ac_try='test -z "$ac_cxx_werror_flag"
11346 || test ! -s conftest.err'
11347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11348 (eval $ac_try) 2>&5
11349 ac_status=$?
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); }; } &&
11352 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11354 (eval $ac_try) 2>&5
11355 ac_status=$?
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); }; }; then
11358 ac_compiler_gnu=yes
11359else
11360 echo "$as_me: failed program was:" >&5
11361sed 's/^/| /' conftest.$ac_ext >&5
11362
11363ac_compiler_gnu=no
11364fi
f95e4495 11365rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11366ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11367
11368fi
11369echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11370echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
11371GXX=`test $ac_compiler_gnu = yes && echo yes`
11372ac_test_CXXFLAGS=${CXXFLAGS+set}
11373ac_save_CXXFLAGS=$CXXFLAGS
11374CXXFLAGS="-g"
11375echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11376echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
11377if test "${ac_cv_prog_cxx_g+set}" = set; then
11378 echo $ECHO_N "(cached) $ECHO_C" >&6
11379else
11380 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11381/* confdefs.h. */
11382_ACEOF
11383cat confdefs.h >>conftest.$ac_ext
11384cat >>conftest.$ac_ext <<_ACEOF
11385/* end confdefs.h. */
11386
11387int
11388main ()
11389{
f09359cf 11390
e6cc62c6
VS
11391 ;
11392 return 0;
11393}
11394_ACEOF
11395rm -f conftest.$ac_objext
11396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 11397 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11398 ac_status=$?
f95e4495
VS
11399 grep -v '^ *+' conftest.er1 >conftest.err
11400 rm -f conftest.er1
11401 cat conftest.err >&5
e6cc62c6
VS
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); } &&
f95e4495
VS
11404 { ac_try='test -z "$ac_cxx_werror_flag"
11405 || test ! -s conftest.err'
11406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11407 (eval $ac_try) 2>&5
11408 ac_status=$?
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; } &&
11411 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413 (eval $ac_try) 2>&5
11414 ac_status=$?
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; }; then
10f2d63a
VZ
11417 ac_cv_prog_cxx_g=yes
11418else
e6cc62c6
VS
11419 echo "$as_me: failed program was:" >&5
11420sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 11421
e6cc62c6 11422ac_cv_prog_cxx_g=no
10f2d63a 11423fi
f95e4495 11424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11425fi
11426echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11427echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
f09359cf 11428if test "$ac_test_CXXFLAGS" = set; then
e6cc62c6 11429 CXXFLAGS=$ac_save_CXXFLAGS
f09359cf
VS
11430elif test $ac_cv_prog_cxx_g = yes; then
11431 if test "$GXX" = yes; then
10f2d63a
VZ
11432 CXXFLAGS="-g -O2"
11433 else
f09359cf 11434 CXXFLAGS="-g"
10f2d63a 11435 fi
5c0a20c3 11436else
f09359cf
VS
11437 if test "$GXX" = yes; then
11438 CXXFLAGS="-O2"
11439 else
11440 CXXFLAGS=
11441 fi
10f2d63a 11442fi
e6cc62c6 11443for ac_declaration in \
f95e4495 11444 '' \
e6cc62c6
VS
11445 'extern "C" void std::exit (int) throw (); using std::exit;' \
11446 'extern "C" void std::exit (int); using std::exit;' \
11447 'extern "C" void exit (int) throw ();' \
11448 'extern "C" void exit (int);' \
11449 'void exit (int);'
11450do
11451 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11452/* confdefs.h. */
11453_ACEOF
11454cat confdefs.h >>conftest.$ac_ext
11455cat >>conftest.$ac_ext <<_ACEOF
11456/* end confdefs.h. */
09d3439c 11457$ac_declaration
f95e4495 11458#include <stdlib.h>
e6cc62c6
VS
11459int
11460main ()
11461{
11462exit (42);
11463 ;
11464 return 0;
11465}
11466_ACEOF
11467rm -f conftest.$ac_objext
11468if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 11469 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11470 ac_status=$?
f95e4495
VS
11471 grep -v '^ *+' conftest.er1 >conftest.err
11472 rm -f conftest.er1
11473 cat conftest.err >&5
e6cc62c6
VS
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } &&
f95e4495
VS
11476 { ac_try='test -z "$ac_cxx_werror_flag"
11477 || test ! -s conftest.err'
11478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11479 (eval $ac_try) 2>&5
11480 ac_status=$?
11481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11482 (exit $ac_status); }; } &&
11483 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11485 (eval $ac_try) 2>&5
11486 ac_status=$?
11487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488 (exit $ac_status); }; }; then
11489 :
11490else
11491 echo "$as_me: failed program was:" >&5
11492sed 's/^/| /' conftest.$ac_ext >&5
11493
11494continue
11495fi
f95e4495 11496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 11497 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11498/* confdefs.h. */
11499_ACEOF
11500cat confdefs.h >>conftest.$ac_ext
11501cat >>conftest.$ac_ext <<_ACEOF
11502/* end confdefs.h. */
11503$ac_declaration
11504int
11505main ()
11506{
11507exit (42);
11508 ;
11509 return 0;
11510}
11511_ACEOF
11512rm -f conftest.$ac_objext
11513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 11514 (eval $ac_compile) 2>conftest.er1
e6cc62c6 11515 ac_status=$?
f95e4495
VS
11516 grep -v '^ *+' conftest.er1 >conftest.err
11517 rm -f conftest.er1
11518 cat conftest.err >&5
e6cc62c6
VS
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } &&
f95e4495
VS
11521 { ac_try='test -z "$ac_cxx_werror_flag"
11522 || test ! -s conftest.err'
11523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11524 (eval $ac_try) 2>&5
11525 ac_status=$?
11526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11527 (exit $ac_status); }; } &&
11528 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
11529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11530 (eval $ac_try) 2>&5
11531 ac_status=$?
11532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11533 (exit $ac_status); }; }; then
11534 break
11535else
11536 echo "$as_me: failed program was:" >&5
11537sed 's/^/| /' conftest.$ac_ext >&5
11538
11539fi
f95e4495 11540rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
11541done
11542rm -f conftest*
11543if test -n "$ac_declaration"; then
11544 echo '#ifdef __cplusplus' >>confdefs.h
11545 echo $ac_declaration >>confdefs.h
11546 echo '#endif' >>confdefs.h
11547fi
11548
11549ac_ext=cc
11550ac_cpp='$CXXCPP $CPPFLAGS'
11551ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11552ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11553ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10f2d63a
VZ
11554
11555
10f2d63a 11556ac_ext=c
10f2d63a 11557ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
11558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11560ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5
MB
11561
11562
e6cc62c6
VS
11563if test -n "$ac_tool_prefix"; then
11564 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11565set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11566echo "$as_me:$LINENO: checking for $ac_word" >&5
11567echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11568if test "${ac_cv_prog_RANLIB+set}" = set; then
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11570else
11571 if test -n "$RANLIB"; then
11572 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11573else
e6cc62c6
VS
11574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11575for as_dir in $PATH
11576do
11577 IFS=$as_save_IFS
11578 test -z "$as_dir" && as_dir=.
11579 for ac_exec_ext in '' $ac_executable_extensions; do
11580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11581 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11583 break 2
11584 fi
11585done
11586done
11587
10f2d63a
VZ
11588fi
11589fi
e6cc62c6 11590RANLIB=$ac_cv_prog_RANLIB
10f2d63a 11591if test -n "$RANLIB"; then
e6cc62c6
VS
11592 echo "$as_me:$LINENO: result: $RANLIB" >&5
11593echo "${ECHO_T}$RANLIB" >&6
11594else
11595 echo "$as_me:$LINENO: result: no" >&5
11596echo "${ECHO_T}no" >&6
11597fi
11598
11599fi
11600if test -z "$ac_cv_prog_RANLIB"; then
11601 ac_ct_RANLIB=$RANLIB
11602 # Extract the first word of "ranlib", so it can be a program name with args.
11603set dummy ranlib; ac_word=$2
11604echo "$as_me:$LINENO: checking for $ac_word" >&5
11605echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11606if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11607 echo $ECHO_N "(cached) $ECHO_C" >&6
328a083c 11608else
e6cc62c6
VS
11609 if test -n "$ac_ct_RANLIB"; then
11610 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11611else
11612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11613for as_dir in $PATH
11614do
11615 IFS=$as_save_IFS
11616 test -z "$as_dir" && as_dir=.
11617 for ac_exec_ext in '' $ac_executable_extensions; do
11618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11619 ac_cv_prog_ac_ct_RANLIB="ranlib"
11620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11621 break 2
11622 fi
11623done
11624done
11625
11626 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11627fi
11628fi
11629ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11630if test -n "$ac_ct_RANLIB"; then
11631 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11632echo "${ECHO_T}$ac_ct_RANLIB" >&6
11633else
11634 echo "$as_me:$LINENO: result: no" >&5
11635echo "${ECHO_T}no" >&6
11636fi
11637
11638 RANLIB=$ac_ct_RANLIB
11639else
11640 RANLIB="$ac_cv_prog_RANLIB"
328a083c
RR
11641fi
11642
10f2d63a
VZ
11643
11644# Extract the first word of "ar", so it can be a program name with args.
11645set dummy ar; ac_word=$2
e6cc62c6
VS
11646echo "$as_me:$LINENO: checking for $ac_word" >&5
11647echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11648if test "${ac_cv_prog_AR+set}" = set; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11650else
11651 if test -n "$AR"; then
11652 ac_cv_prog_AR="$AR" # Let the user override the test.
11653else
e6cc62c6
VS
11654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655for as_dir in $PATH
11656do
11657 IFS=$as_save_IFS
11658 test -z "$as_dir" && as_dir=.
11659 for ac_exec_ext in '' $ac_executable_extensions; do
11660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11661 ac_cv_prog_AR="ar"
11662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11663 break 2
11664 fi
11665done
11666done
11667
10f2d63a
VZ
11668fi
11669fi
e6cc62c6 11670AR=$ac_cv_prog_AR
10f2d63a 11671if test -n "$AR"; then
e6cc62c6
VS
11672 echo "$as_me:$LINENO: result: $AR" >&5
11673echo "${ECHO_T}$AR" >&6
10f2d63a 11674else
e6cc62c6
VS
11675 echo "$as_me:$LINENO: result: no" >&5
11676echo "${ECHO_T}no" >&6
10f2d63a
VZ
11677fi
11678
911740e7
VS
11679if test "x$AR" = "x" ; then
11680 { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5
11681echo "$as_me: error: ar is needed to build wxWindows" >&2;}
11682 { (exit 1); exit 1; }; }
11683fi
8284b0c5 11684
6054113a 11685# Find a good install program. We prefer a C program (faster),
10f2d63a
VZ
11686# so one script is as good as another. But avoid the broken or
11687# incompatible versions:
11688# SysV /etc/install, /usr/sbin/install
11689# SunOS /usr/etc/install
11690# IRIX /sbin/install
11691# AIX /bin/install
e6cc62c6 11692# AmigaOS /C/install, which installs bootblocks on floppy discs
f09359cf 11693# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10f2d63a
VZ
11694# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11695# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
f95e4495 11696# OS/2's system install, which has a completely different semantic
10f2d63a 11697# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
11698echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11699echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
10f2d63a 11700if test -z "$INSTALL"; then
e6cc62c6
VS
11701if test "${ac_cv_path_install+set}" = set; then
11702 echo $ECHO_N "(cached) $ECHO_C" >&6
11703else
11704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705for as_dir in $PATH
11706do
11707 IFS=$as_save_IFS
11708 test -z "$as_dir" && as_dir=.
11709 # Account for people who put trailing slashes in PATH elements.
11710case $as_dir/ in
11711 ./ | .// | /cC/* | \
11712 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
f95e4495 11713 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
e6cc62c6
VS
11714 /usr/ucb/* ) ;;
11715 *)
11716 # OSF1 and SCO ODT 3.0 have their own names for install.
11717 # Don't use installbsd from OSF since it installs stuff as root
11718 # by default.
11719 for ac_prog in ginstall scoinst install; do
11720 for ac_exec_ext in '' $ac_executable_extensions; do
f95e4495
VS
11721 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
11722 if test $ac_prog = install &&
11723 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11724 # AIX install. It has an incompatible calling convention.
11725 :
11726 elif test $ac_prog = install &&
11727 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11728 # program-specific install script used by HP pwplus--don't use.
11729 :
11730 else
11731 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11732 break 3
11733 fi
11734 fi
10f2d63a 11735 done
e6cc62c6
VS
11736 done
11737 ;;
11738esac
11739done
11740
10f2d63a
VZ
11741
11742fi
11743 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 11744 INSTALL=$ac_cv_path_install
10f2d63a
VZ
11745 else
11746 # As a last resort, use the slow shell script. We don't cache a
11747 # path for INSTALL within a source directory, because that will
11748 # break other packages using the cache if that directory is
11749 # removed, or if the path is relative.
e6cc62c6 11750 INSTALL=$ac_install_sh
10f2d63a
VZ
11751 fi
11752fi
e6cc62c6
VS
11753echo "$as_me:$LINENO: result: $INSTALL" >&5
11754echo "${ECHO_T}$INSTALL" >&6
10f2d63a
VZ
11755
11756# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11757# It thinks the first close brace ends the variable substitution.
11758test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11759
e6cc62c6 11760test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
f09359cf 11761
10f2d63a
VZ
11762test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11763
8284b0c5 11764
1d1b75ac
VZ
11765case ${INSTALL} in
11766 /* ) # Absolute
11767 ;;
4f5a7f74
VZ
11768 ?:* ) # Drive letter, considered as absolute.
11769 ;;
3bd8fb5f 11770 *)
1d1b75ac
VZ
11771 INSTALL=`pwd`/${INSTALL} ;;
11772esac
11773
4f5a7f74
VZ
11774case ${host} in
11775 *-hp-hpux* )
11776 INSTALL_DIR="mkdir"
11777 ;;
11778
11779 *) INSTALL_DIR="$INSTALL -d"
11780 ;;
11781esac
11782
8284b0c5 11783
6054113a
GD
11784case "${host}" in
11785
b5853384 11786 powerpc-*-darwin* )
eb99ae0b
GD
11787 INSTALL_PROGRAM="cp -fp"
11788 INSTALL_DATA="cp -fp"
6054113a
GD
11789 ;;
11790 *)
11791 ;;
d6853540 11792esac
698dcdb6 11793
10f2d63a
VZ
11794# Extract the first word of "strip", so it can be a program name with args.
11795set dummy strip; ac_word=$2
e6cc62c6
VS
11796echo "$as_me:$LINENO: checking for $ac_word" >&5
11797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11798if test "${ac_cv_prog_STRIP+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a
VZ
11800else
11801 if test -n "$STRIP"; then
11802 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11803else
e6cc62c6
VS
11804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11805for as_dir in $PATH
11806do
11807 IFS=$as_save_IFS
11808 test -z "$as_dir" && as_dir=.
11809 for ac_exec_ext in '' $ac_executable_extensions; do
11810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11811 ac_cv_prog_STRIP="strip"
11812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11813 break 2
11814 fi
11815done
11816done
11817
10f2d63a
VZ
11818 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
11819fi
11820fi
e6cc62c6 11821STRIP=$ac_cv_prog_STRIP
10f2d63a 11822if test -n "$STRIP"; then
e6cc62c6
VS
11823 echo "$as_me:$LINENO: result: $STRIP" >&5
11824echo "${ECHO_T}$STRIP" >&6
10f2d63a 11825else
e6cc62c6
VS
11826 echo "$as_me:$LINENO: result: no" >&5
11827echo "${ECHO_T}no" >&6
10f2d63a
VZ
11828fi
11829
5c6fa7d2 11830
e6cc62c6
VS
11831echo "$as_me:$LINENO: checking if make is GNU make" >&5
11832echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
11833if test "${wx_cv_prog_makeisgnu+set}" = set; then
11834 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 11835else
e6cc62c6 11836
414eab6d 11837 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
d558c907 11838 egrep -s GNU > /dev/null); then
414eab6d
VZ
11839 wx_cv_prog_makeisgnu="yes"
11840 else
11841 wx_cv_prog_makeisgnu="no"
11842 fi
11843
11844fi
e6cc62c6
VS
11845echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
11846echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6
414eab6d
VZ
11847
11848if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
11849 IF_GNU_MAKE=""
11850else
11851 IF_GNU_MAKE="#"
11852fi
11853
8284b0c5
MB
11854
11855
414eab6d 11856if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
e6cc62c6
VS
11857echo "$as_me:$LINENO: checking if make supports VPATH" >&5
11858echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6
11859if test "${wx_cv_prog_makevpath+set}" = set; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
04e7a216 11861else
e6cc62c6 11862
10f2d63a
VZ
11863cat - << EOF > confMake
11864check : file
11865 cp \$? \$@
11866 cp \$? final_file
11867EOF
11868
11869if test ! -d sub ; then
11870 mkdir sub
11871fi
11872echo dummy > sub/file
f6bcfd97 11873${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
10f2d63a
VZ
11874RESULT=$?
11875rm -f sub/file check final_file confMake
11876rmdir sub
11877if test "$RESULT" = 0; then
04e7a216 11878 wx_cv_prog_makevpath="yes"
10f2d63a 11879else
04e7a216
VZ
11880 wx_cv_prog_makevpath="no"
11881fi
11882
11883fi
e6cc62c6
VS
11884echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
11885echo "${ECHO_T}$wx_cv_prog_makevpath" >&6
04e7a216
VZ
11886
11887if test "x$wx_cv_prog_makevpath" != "xyes"; then
e6cc62c6 11888{ { echo "$as_me:$LINENO: error:
5c6fa7d2
RR
11889You need a make-utility that is able to use the variable
11890VPATH correctly.
11891If your version of make does not support VPATH correctly,
11892please install GNU-make (possibly as gmake), and start
11893configure with the following command:
11894export MAKE=gmake; ./configure for sh-type shells
11895setenv MAKE gmake; ./configure for csh-type shells
11896Also please do remember to use gmake in this case every time
11897you are trying to compile.
e6cc62c6
VS
11898" >&5
11899echo "$as_me: error:
11900You need a make-utility that is able to use the variable
11901VPATH correctly.
11902If your version of make does not support VPATH correctly,
11903please install GNU-make (possibly as gmake), and start
11904configure with the following command:
11905export MAKE=gmake; ./configure for sh-type shells
11906setenv MAKE gmake; ./configure for csh-type shells
11907Also please do remember to use gmake in this case every time
11908you are trying to compile.
11909" >&2;}
11910 { (exit 1); exit 1; }; }
11911fi fi
e6cc62c6
VS
11912echo "$as_me:$LINENO: checking whether ln -s works" >&5
11913echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
11914LN_S=$as_ln_s
11915if test "$LN_S" = "ln -s"; then
11916 echo "$as_me:$LINENO: result: yes" >&5
11917echo "${ECHO_T}yes" >&6
10f2d63a 11918else
e6cc62c6
VS
11919 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
11920echo "${ECHO_T}no, using $LN_S" >&6
5c6fa7d2 11921fi
5c6fa7d2 11922
247f5006 11923
2b5f62a0
VZ
11924case "${host}" in
11925 *-pc-os2_emx | *-pc-os2-emx )
2b5f62a0 11926 if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
e6cc62c6
VS
11927 echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
11928echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6
11929if test "${ac_cv_lib_cExt_drand48+set}" = set; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 11931else
e6cc62c6 11932 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 11933LIBS="-lcExt $LIBS"
e6cc62c6 11934cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
11935/* confdefs.h. */
11936_ACEOF
11937cat confdefs.h >>conftest.$ac_ext
11938cat >>conftest.$ac_ext <<_ACEOF
11939/* end confdefs.h. */
11940
2b5f62a0 11941/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
11942#ifdef __cplusplus
11943extern "C"
11944#endif
2b5f62a0 11945/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
11946 builtin and then its argument prototype would still apply. */
11947char drand48 ();
11948int
11949main ()
11950{
11951drand48 ();
11952 ;
11953 return 0;
11954}
11955_ACEOF
11956rm -f conftest.$ac_objext conftest$ac_exeext
11957if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 11958 (eval $ac_link) 2>conftest.er1
e6cc62c6 11959 ac_status=$?
f95e4495
VS
11960 grep -v '^ *+' conftest.er1 >conftest.err
11961 rm -f conftest.er1
11962 cat conftest.err >&5
e6cc62c6
VS
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } &&
f95e4495
VS
11965 { ac_try='test -z "$ac_c_werror_flag"
11966 || test ! -s conftest.err'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11969 ac_status=$?
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; } &&
11972 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
11973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11974 (eval $ac_try) 2>&5
11975 ac_status=$?
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; }; then
11978 ac_cv_lib_cExt_drand48=yes
11979else
11980 echo "$as_me: failed program was:" >&5
11981sed 's/^/| /' conftest.$ac_ext >&5
11982
11983ac_cv_lib_cExt_drand48=no
11984fi
f95e4495
VS
11985rm -f conftest.err conftest.$ac_objext \
11986 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
11987LIBS=$ac_check_lib_save_LIBS
11988fi
11989echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
11990echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6
11991if test $ac_cv_lib_cExt_drand48 = yes; then
2b5f62a0 11992 LIBS="$LIBS -lcExt"
2b5f62a0
VZ
11993fi
11994
11995 else
11996 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
11997 fi
73d617c9
MB
11998 echo "$as_me:$LINENO: checking for gcc 3 or later" >&5
11999echo $ECHO_N "checking for gcc 3 or later... $ECHO_C" >&6
12000if test "${wx_cv_gcc3+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002else
12003
12004 cat >conftest.$ac_ext <<_ACEOF
73d617c9
MB
12005/* confdefs.h. */
12006_ACEOF
12007cat confdefs.h >>conftest.$ac_ext
12008cat >>conftest.$ac_ext <<_ACEOF
12009/* end confdefs.h. */
3527f29c 12010
73d617c9
MB
12011int
12012main ()
12013{
12014
12015 #if (__GNUC__ < 3)
12016 #error old gcc
12017 #endif
12018
12019 ;
12020 return 0;
12021}
12022_ACEOF
12023rm -f conftest.$ac_objext
12024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 12025 (eval $ac_compile) 2>conftest.er1
73d617c9 12026 ac_status=$?
f95e4495
VS
12027 grep -v '^ *+' conftest.er1 >conftest.err
12028 rm -f conftest.er1
12029 cat conftest.err >&5
73d617c9
MB
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); } &&
f95e4495
VS
12032 { ac_try='test -z "$ac_c_werror_flag"
12033 || test ! -s conftest.err'
12034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12036 ac_status=$?
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; } &&
12039 { ac_try='test -s conftest.$ac_objext'
73d617c9
MB
12040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12041 (eval $ac_try) 2>&5
12042 ac_status=$?
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); }; }; then
12045
12046 wx_cv_gcc3=yes
12047
12048else
12049 echo "$as_me: failed program was:" >&5
12050sed 's/^/| /' conftest.$ac_ext >&5
12051
12052
12053 wx_cv_gcc3=no
12054
12055
12056fi
f95e4495 12057rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
73d617c9
MB
12058
12059fi
12060echo "$as_me:$LINENO: result: $wx_cv_gcc3" >&5
12061echo "${ECHO_T}$wx_cv_gcc3" >&6
12062 if test "$wx_cv_gcc3" = "no"; then
12063 LIBS="$LIBS -lstdcpp"
12064 else
12065 LIBS="$LIBS -lstdcxx"
12066 fi
2b5f62a0
VZ
12067 ;;
12068esac
12069
a0b9e27f 12070
01aa5863
VS
12071if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
12072 echo "$as_me:$LINENO: checking for strings.h" >&5
12073echo $ECHO_N "checking for strings.h... $ECHO_C" >&6
12074if test "${ac_cv_header_strings_h+set}" = set; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12076else
12077 ac_cv_header_strings_h=no
12078fi
12079echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5
12080echo "${ECHO_T}$ac_cv_header_strings_h" >&6
12081 if test "$ac_cv_header_strings_h" = "no"; then
12082 echo "$as_me:$LINENO: result: forced no into cache" >&5
12083echo "${ECHO_T}forced no into cache" >&6
12084 else
12085 { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5
12086echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;}
12087 fi
12088fi
12089echo "$as_me:$LINENO: checking for ANSI C header files" >&5
e6cc62c6
VS
12090echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
12091if test "${ac_cv_header_stdc+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12093else
12094 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12095/* confdefs.h. */
12096_ACEOF
12097cat confdefs.h >>conftest.$ac_ext
12098cat >>conftest.$ac_ext <<_ACEOF
12099/* end confdefs.h. */
12100#include <stdlib.h>
12101#include <stdarg.h>
12102#include <string.h>
12103#include <float.h>
247f5006 12104
e6cc62c6
VS
12105int
12106main ()
12107{
90dd450c 12108
e6cc62c6
VS
12109 ;
12110 return 0;
12111}
12112_ACEOF
12113rm -f conftest.$ac_objext
12114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 12115 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12116 ac_status=$?
f95e4495
VS
12117 grep -v '^ *+' conftest.er1 >conftest.err
12118 rm -f conftest.er1
12119 cat conftest.err >&5
e6cc62c6
VS
12120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12121 (exit $ac_status); } &&
f95e4495
VS
12122 { ac_try='test -z "$ac_c_werror_flag"
12123 || test ! -s conftest.err'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; } &&
12129 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12131 (eval $ac_try) 2>&5
12132 ac_status=$?
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; }; then
12135 ac_cv_header_stdc=yes
8284b0c5 12136else
e6cc62c6
VS
12137 echo "$as_me: failed program was:" >&5
12138sed 's/^/| /' conftest.$ac_ext >&5
12139
12140ac_cv_header_stdc=no
21d1c967 12141fi
f95e4495 12142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 12143
e6cc62c6
VS
12144if test $ac_cv_header_stdc = yes; then
12145 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12146 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12147/* confdefs.h. */
12148_ACEOF
12149cat confdefs.h >>conftest.$ac_ext
12150cat >>conftest.$ac_ext <<_ACEOF
12151/* end confdefs.h. */
12152#include <string.h>
12153
12154_ACEOF
12155if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12156 $EGREP "memchr" >/dev/null 2>&1; then
12157 :
12158else
12159 ac_cv_header_stdc=no
3a922bb4 12160fi
a0b9e27f 12161rm -f conftest*
e6cc62c6 12162
90dd450c 12163fi
e6cc62c6
VS
12164
12165if test $ac_cv_header_stdc = yes; then
12166 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12167 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12168/* confdefs.h. */
12169_ACEOF
12170cat confdefs.h >>conftest.$ac_ext
12171cat >>conftest.$ac_ext <<_ACEOF
12172/* end confdefs.h. */
12173#include <stdlib.h>
12174
12175_ACEOF
12176if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12177 $EGREP "free" >/dev/null 2>&1; then
12178 :
a0b9e27f 12179else
e6cc62c6 12180 ac_cv_header_stdc=no
21d1c967 12181fi
e6cc62c6 12182rm -f conftest*
247f5006
VZ
12183
12184fi
e6cc62c6
VS
12185
12186if test $ac_cv_header_stdc = yes; then
12187 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12188 if test "$cross_compiling" = yes; then
12189 :
12190else
12191 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12192/* confdefs.h. */
12193_ACEOF
12194cat confdefs.h >>conftest.$ac_ext
12195cat >>conftest.$ac_ext <<_ACEOF
12196/* end confdefs.h. */
12197#include <ctype.h>
12198#if ((' ' & 0x0FF) == 0x020)
12199# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12200# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12201#else
12202# define ISLOWER(c) \
f95e4495
VS
12203 (('a' <= (c) && (c) <= 'i') \
12204 || ('j' <= (c) && (c) <= 'r') \
12205 || ('s' <= (c) && (c) <= 'z'))
e6cc62c6
VS
12206# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12207#endif
12208
12209#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12210int
12211main ()
12212{
12213 int i;
12214 for (i = 0; i < 256; i++)
12215 if (XOR (islower (i), ISLOWER (i))
f95e4495 12216 || toupper (i) != TOUPPER (i))
e6cc62c6
VS
12217 exit(2);
12218 exit (0);
12219}
12220_ACEOF
12221rm -f conftest$ac_exeext
12222if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12223 (eval $ac_link) 2>&5
12224 ac_status=$?
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12229 ac_status=$?
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; }; then
12232 :
a0b9e27f 12233else
e6cc62c6
VS
12234 echo "$as_me: program exited with status $ac_status" >&5
12235echo "$as_me: failed program was:" >&5
12236sed 's/^/| /' conftest.$ac_ext >&5
12237
12238( exit $ac_status )
12239ac_cv_header_stdc=no
12240fi
f95e4495 12241rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12242fi
12243fi
12244fi
12245echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12246echo "${ECHO_T}$ac_cv_header_stdc" >&6
12247if test $ac_cv_header_stdc = yes; then
12248
12249cat >>confdefs.h <<\_ACEOF
12250#define STDC_HEADERS 1
12251_ACEOF
12252
a0b9e27f 12253fi
e6cc62c6
VS
12254
12255# On IRIX 5.3, sys/types and inttypes.h are conflicting.
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
f95e4495 12266 inttypes.h stdint.h unistd.h
e6cc62c6
VS
12267do
12268as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12269echo "$as_me:$LINENO: checking for $ac_header" >&5
12270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12271if eval "test \"\${$as_ac_Header+set}\" = set"; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12273else
12274 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12275/* confdefs.h. */
12276_ACEOF
12277cat confdefs.h >>conftest.$ac_ext
12278cat >>conftest.$ac_ext <<_ACEOF
12279/* end confdefs.h. */
12280$ac_includes_default
12281
12282#include <$ac_header>
12283_ACEOF
12284rm -f conftest.$ac_objext
12285if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 12286 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12287 ac_status=$?
f95e4495
VS
12288 grep -v '^ *+' conftest.er1 >conftest.err
12289 rm -f conftest.er1
12290 cat conftest.err >&5
e6cc62c6
VS
12291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292 (exit $ac_status); } &&
f95e4495
VS
12293 { ac_try='test -z "$ac_c_werror_flag"
12294 || test ! -s conftest.err'
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296 (eval $ac_try) 2>&5
12297 ac_status=$?
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; } &&
12300 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12302 (eval $ac_try) 2>&5
12303 ac_status=$?
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); }; }; then
12306 eval "$as_ac_Header=yes"
12307else
12308 echo "$as_me: failed program was:" >&5
12309sed 's/^/| /' conftest.$ac_ext >&5
12310
12311eval "$as_ac_Header=no"
12312fi
f95e4495 12313rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12314fi
12315echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12316echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12317if test `eval echo '${'$as_ac_Header'}'` = yes; then
12318 cat >>confdefs.h <<_ACEOF
12319#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12320_ACEOF
12321
12322fi
12323
a0b9e27f 12324done
90dd450c 12325
e6cc62c6
VS
12326
12327
12328for ac_header in strings.h
21d1c967 12329do
e6cc62c6
VS
12330as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12331if eval "test \"\${$as_ac_Header+set}\" = set"; then
12332 echo "$as_me:$LINENO: checking for $ac_header" >&5
12333echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12334if eval "test \"\${$as_ac_Header+set}\" = set"; then
12335 echo $ECHO_N "(cached) $ECHO_C" >&6
12336fi
12337echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12338echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12339else
12340 # Is the header compilable?
12341echo "$as_me:$LINENO: checking $ac_header usability" >&5
12342echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12343cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12344/* confdefs.h. */
12345_ACEOF
12346cat confdefs.h >>conftest.$ac_ext
12347cat >>conftest.$ac_ext <<_ACEOF
12348/* end confdefs.h. */
12349$ac_includes_default
12350#include <$ac_header>
12351_ACEOF
12352rm -f conftest.$ac_objext
12353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 12354 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12355 ac_status=$?
f95e4495
VS
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
e6cc62c6
VS
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } &&
f95e4495
VS
12361 { ac_try='test -z "$ac_c_werror_flag"
12362 || test ! -s conftest.err'
12363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12364 (eval $ac_try) 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); }; } &&
12368 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12370 (eval $ac_try) 2>&5
12371 ac_status=$?
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; }; then
12374 ac_header_compiler=yes
12375else
12376 echo "$as_me: failed program was:" >&5
12377sed 's/^/| /' conftest.$ac_ext >&5
12378
12379ac_header_compiler=no
12380fi
f95e4495 12381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12382echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12383echo "${ECHO_T}$ac_header_compiler" >&6
12384
12385# Is the header present?
12386echo "$as_me:$LINENO: checking $ac_header presence" >&5
12387echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12388cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12389/* confdefs.h. */
12390_ACEOF
12391cat confdefs.h >>conftest.$ac_ext
12392cat >>conftest.$ac_ext <<_ACEOF
12393/* end confdefs.h. */
12394#include <$ac_header>
12395_ACEOF
12396if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12398 ac_status=$?
12399 grep -v '^ *+' conftest.er1 >conftest.err
12400 rm -f conftest.er1
12401 cat conftest.err >&5
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } >/dev/null; then
12404 if test -s conftest.err; then
12405 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 12406 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12407 else
12408 ac_cpp_err=
12409 fi
12410else
12411 ac_cpp_err=yes
12412fi
12413if test -z "$ac_cpp_err"; then
12414 ac_header_preproc=yes
12415else
12416 echo "$as_me: failed program was:" >&5
12417sed 's/^/| /' conftest.$ac_ext >&5
12418
12419 ac_header_preproc=no
12420fi
12421rm -f conftest.err conftest.$ac_ext
12422echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12423echo "${ECHO_T}$ac_header_preproc" >&6
12424
12425# So? What about this header?
f95e4495
VS
12426case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12427 yes:no: )
e6cc62c6
VS
12428 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12429echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
12430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12431echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12432 ac_header_preproc=yes
e6cc62c6 12433 ;;
f95e4495 12434 no:yes:* )
e6cc62c6
VS
12435 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12436echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
12437 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12438echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12439 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12440echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12442echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12444echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12446echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12447 (
12448 cat <<\_ASBOX
f95e4495
VS
12449## ----------------------------------------- ##
12450## Report this to wx-dev@lists.wxwindows.org ##
12451## ----------------------------------------- ##
e6cc62c6
VS
12452_ASBOX
12453 ) |
12454 sed "s/^/$as_me: WARNING: /" >&2
12455 ;;
12456esac
12457echo "$as_me:$LINENO: checking for $ac_header" >&5
12458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12459if eval "test \"\${$as_ac_Header+set}\" = set"; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12461else
f95e4495 12462 eval "$as_ac_Header=\$ac_header_preproc"
a0b9e27f 12463fi
e6cc62c6
VS
12464echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12465echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12466
a0b9e27f 12467fi
e6cc62c6
VS
12468if test `eval echo '${'$as_ac_Header'}'` = yes; then
12469 cat >>confdefs.h <<_ACEOF
12470#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12471_ACEOF
12472
12473fi
12474
12475done
12476
e6cc62c6
VS
12477
12478
12479for ac_header in stdlib.h
12480do
12481as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12482if eval "test \"\${$as_ac_Header+set}\" = set"; then
12483 echo "$as_me:$LINENO: checking for $ac_header" >&5
12484echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12485if eval "test \"\${$as_ac_Header+set}\" = set"; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12487fi
12488echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12489echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12490else
12491 # Is the header compilable?
12492echo "$as_me:$LINENO: checking $ac_header usability" >&5
12493echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12494cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12495/* confdefs.h. */
12496_ACEOF
12497cat confdefs.h >>conftest.$ac_ext
12498cat >>conftest.$ac_ext <<_ACEOF
12499/* end confdefs.h. */
12500$ac_includes_default
12501#include <$ac_header>
12502_ACEOF
12503rm -f conftest.$ac_objext
12504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 12505 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12506 ac_status=$?
f95e4495
VS
12507 grep -v '^ *+' conftest.er1 >conftest.err
12508 rm -f conftest.er1
12509 cat conftest.err >&5
e6cc62c6
VS
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); } &&
f95e4495
VS
12512 { ac_try='test -z "$ac_c_werror_flag"
12513 || test ! -s conftest.err'
12514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515 (eval $ac_try) 2>&5
12516 ac_status=$?
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; } &&
12519 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12522 ac_status=$?
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; }; then
12525 ac_header_compiler=yes
12526else
12527 echo "$as_me: failed program was:" >&5
12528sed 's/^/| /' conftest.$ac_ext >&5
12529
12530ac_header_compiler=no
12531fi
f95e4495 12532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12533echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12534echo "${ECHO_T}$ac_header_compiler" >&6
12535
12536# Is the header present?
12537echo "$as_me:$LINENO: checking $ac_header presence" >&5
12538echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12539cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12540/* confdefs.h. */
12541_ACEOF
12542cat confdefs.h >>conftest.$ac_ext
12543cat >>conftest.$ac_ext <<_ACEOF
12544/* end confdefs.h. */
12545#include <$ac_header>
12546_ACEOF
12547if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12548 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12549 ac_status=$?
12550 grep -v '^ *+' conftest.er1 >conftest.err
12551 rm -f conftest.er1
12552 cat conftest.err >&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); } >/dev/null; then
12555 if test -s conftest.err; then
12556 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 12557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12558 else
12559 ac_cpp_err=
12560 fi
12561else
12562 ac_cpp_err=yes
12563fi
12564if test -z "$ac_cpp_err"; then
12565 ac_header_preproc=yes
12566else
12567 echo "$as_me: failed program was:" >&5
12568sed 's/^/| /' conftest.$ac_ext >&5
12569
12570 ac_header_preproc=no
12571fi
12572rm -f conftest.err conftest.$ac_ext
12573echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12574echo "${ECHO_T}$ac_header_preproc" >&6
12575
12576# So? What about this header?
f95e4495
VS
12577case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12578 yes:no: )
e6cc62c6
VS
12579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12580echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
12581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12582echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12583 ac_header_preproc=yes
e6cc62c6 12584 ;;
f95e4495 12585 no:yes:* )
e6cc62c6
VS
12586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12587echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
12588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12589echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12591echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12593echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12595echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
12596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12597echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12598 (
12599 cat <<\_ASBOX
f95e4495
VS
12600## ----------------------------------------- ##
12601## Report this to wx-dev@lists.wxwindows.org ##
12602## ----------------------------------------- ##
e6cc62c6
VS
12603_ASBOX
12604 ) |
12605 sed "s/^/$as_me: WARNING: /" >&2
12606 ;;
12607esac
12608echo "$as_me:$LINENO: checking for $ac_header" >&5
12609echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12610if eval "test \"\${$as_ac_Header+set}\" = set"; then
12611 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 12612else
f95e4495 12613 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
12614fi
12615echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12616echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12617
21d1c967 12618fi
e6cc62c6
VS
12619if test `eval echo '${'$as_ac_Header'}'` = yes; then
12620 cat >>confdefs.h <<_ACEOF
12621#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12622_ACEOF
12623
12624fi
12625
21d1c967 12626done
4f14bcd8 12627
5c6fa7d2 12628
e6cc62c6 12629for ac_header in malloc.h
21d1c967 12630do
e6cc62c6
VS
12631as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12632if eval "test \"\${$as_ac_Header+set}\" = set"; then
12633 echo "$as_me:$LINENO: checking for $ac_header" >&5
12634echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12635if eval "test \"\${$as_ac_Header+set}\" = set"; then
12636 echo $ECHO_N "(cached) $ECHO_C" >&6
12637fi
12638echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12639echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12640else
12641 # Is the header compilable?
12642echo "$as_me:$LINENO: checking $ac_header usability" >&5
12643echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12644cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12645/* confdefs.h. */
12646_ACEOF
12647cat confdefs.h >>conftest.$ac_ext
12648cat >>conftest.$ac_ext <<_ACEOF
12649/* end confdefs.h. */
12650$ac_includes_default
12651#include <$ac_header>
12652_ACEOF
12653rm -f conftest.$ac_objext
12654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 12655 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12656 ac_status=$?
f95e4495
VS
12657 grep -v '^ *+' conftest.er1 >conftest.err
12658 rm -f conftest.er1
12659 cat conftest.err >&5
e6cc62c6
VS
12660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12661 (exit $ac_status); } &&
f95e4495
VS
12662 { ac_try='test -z "$ac_c_werror_flag"
12663 || test ! -s conftest.err'
12664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665 (eval $ac_try) 2>&5
12666 ac_status=$?
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; } &&
12669 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12672 ac_status=$?
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; }; then
12675 ac_header_compiler=yes
12676else
12677 echo "$as_me: failed program was:" >&5
12678sed 's/^/| /' conftest.$ac_ext >&5
12679
12680ac_header_compiler=no
12681fi
f95e4495 12682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12683echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12684echo "${ECHO_T}$ac_header_compiler" >&6
12685
12686# Is the header present?
12687echo "$as_me:$LINENO: checking $ac_header presence" >&5
12688echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12689cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12690/* confdefs.h. */
12691_ACEOF
12692cat confdefs.h >>conftest.$ac_ext
12693cat >>conftest.$ac_ext <<_ACEOF
12694/* end confdefs.h. */
12695#include <$ac_header>
12696_ACEOF
12697if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12699 ac_status=$?
12700 grep -v '^ *+' conftest.er1 >conftest.err
12701 rm -f conftest.er1
12702 cat conftest.err >&5
12703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12704 (exit $ac_status); } >/dev/null; then
12705 if test -s conftest.err; then
12706 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 12707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12708 else
12709 ac_cpp_err=
12710 fi
12711else
12712 ac_cpp_err=yes
12713fi
12714if test -z "$ac_cpp_err"; then
12715 ac_header_preproc=yes
12716else
12717 echo "$as_me: failed program was:" >&5
12718sed 's/^/| /' conftest.$ac_ext >&5
12719
12720 ac_header_preproc=no
12721fi
12722rm -f conftest.err conftest.$ac_ext
12723echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12724echo "${ECHO_T}$ac_header_preproc" >&6
12725
12726# So? What about this header?
f95e4495
VS
12727case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12728 yes:no: )
e6cc62c6
VS
12729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12730echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
12731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12732echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12733 ac_header_preproc=yes
e6cc62c6 12734 ;;
f95e4495 12735 no:yes:* )
e6cc62c6
VS
12736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12737echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
12738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12739echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12741echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12743echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12745echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
12746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12747echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12748 (
12749 cat <<\_ASBOX
f95e4495
VS
12750## ----------------------------------------- ##
12751## Report this to wx-dev@lists.wxwindows.org ##
12752## ----------------------------------------- ##
e6cc62c6
VS
12753_ASBOX
12754 ) |
12755 sed "s/^/$as_me: WARNING: /" >&2
12756 ;;
12757esac
12758echo "$as_me:$LINENO: checking for $ac_header" >&5
12759echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12760if eval "test \"\${$as_ac_Header+set}\" = set"; then
12761 echo $ECHO_N "(cached) $ECHO_C" >&6
12762else
f95e4495 12763 eval "$as_ac_Header=\$ac_header_preproc"
d4158b5d 12764fi
e6cc62c6
VS
12765echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12766echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12767
21d1c967 12768fi
e6cc62c6
VS
12769if test `eval echo '${'$as_ac_Header'}'` = yes; then
12770 cat >>confdefs.h <<_ACEOF
12771#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12772_ACEOF
12773
12774fi
12775
12776done
12777
12778
12779for ac_header in unistd.h
12780do
12781as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12782if eval "test \"\${$as_ac_Header+set}\" = set"; then
12783 echo "$as_me:$LINENO: checking for $ac_header" >&5
12784echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12785if eval "test \"\${$as_ac_Header+set}\" = set"; then
12786 echo $ECHO_N "(cached) $ECHO_C" >&6
12787fi
12788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12790else
12791 # Is the header compilable?
12792echo "$as_me:$LINENO: checking $ac_header usability" >&5
12793echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12794cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12795/* confdefs.h. */
12796_ACEOF
12797cat confdefs.h >>conftest.$ac_ext
12798cat >>conftest.$ac_ext <<_ACEOF
12799/* end confdefs.h. */
12800$ac_includes_default
12801#include <$ac_header>
12802_ACEOF
12803rm -f conftest.$ac_objext
12804if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 12805 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12806 ac_status=$?
f95e4495
VS
12807 grep -v '^ *+' conftest.er1 >conftest.err
12808 rm -f conftest.er1
12809 cat conftest.err >&5
e6cc62c6
VS
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } &&
f95e4495
VS
12812 { ac_try='test -z "$ac_c_werror_flag"
12813 || test ! -s conftest.err'
12814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12815 (eval $ac_try) 2>&5
12816 ac_status=$?
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); }; } &&
12819 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12822 ac_status=$?
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; }; then
12825 ac_header_compiler=yes
12826else
12827 echo "$as_me: failed program was:" >&5
12828sed 's/^/| /' conftest.$ac_ext >&5
12829
12830ac_header_compiler=no
12831fi
f95e4495 12832rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12833echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12834echo "${ECHO_T}$ac_header_compiler" >&6
12835
12836# Is the header present?
12837echo "$as_me:$LINENO: checking $ac_header presence" >&5
12838echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12839cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12840/* confdefs.h. */
12841_ACEOF
12842cat confdefs.h >>conftest.$ac_ext
12843cat >>conftest.$ac_ext <<_ACEOF
12844/* end confdefs.h. */
12845#include <$ac_header>
12846_ACEOF
12847if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12849 ac_status=$?
12850 grep -v '^ *+' conftest.er1 >conftest.err
12851 rm -f conftest.er1
12852 cat conftest.err >&5
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); } >/dev/null; then
12855 if test -s conftest.err; then
12856 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 12857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
12858 else
12859 ac_cpp_err=
12860 fi
a0b9e27f 12861else
e6cc62c6
VS
12862 ac_cpp_err=yes
12863fi
12864if test -z "$ac_cpp_err"; then
12865 ac_header_preproc=yes
12866else
12867 echo "$as_me: failed program was:" >&5
12868sed 's/^/| /' conftest.$ac_ext >&5
12869
12870 ac_header_preproc=no
12871fi
12872rm -f conftest.err conftest.$ac_ext
12873echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12874echo "${ECHO_T}$ac_header_preproc" >&6
12875
12876# So? What about this header?
f95e4495
VS
12877case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12878 yes:no: )
e6cc62c6
VS
12879 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12880echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
12881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12882echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12883 ac_header_preproc=yes
e6cc62c6 12884 ;;
f95e4495 12885 no:yes:* )
e6cc62c6
VS
12886 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12887echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
12888 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12889echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12890 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12891echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12892 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12893echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
12894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12895echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
12896 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12897echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
12898 (
12899 cat <<\_ASBOX
f95e4495
VS
12900## ----------------------------------------- ##
12901## Report this to wx-dev@lists.wxwindows.org ##
12902## ----------------------------------------- ##
e6cc62c6
VS
12903_ASBOX
12904 ) |
12905 sed "s/^/$as_me: WARNING: /" >&2
12906 ;;
12907esac
12908echo "$as_me:$LINENO: checking for $ac_header" >&5
12909echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12910if eval "test \"\${$as_ac_Header+set}\" = set"; then
12911 echo $ECHO_N "(cached) $ECHO_C" >&6
12912else
f95e4495 12913 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
12914fi
12915echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12916echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12917
12918fi
12919if test `eval echo '${'$as_ac_Header'}'` = yes; then
12920 cat >>confdefs.h <<_ACEOF
12921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12922_ACEOF
12923
d4158b5d 12924fi
e6cc62c6 12925
21d1c967 12926done
f6bcfd97 12927
e6cc62c6
VS
12928
12929for ac_header in wchar.h
12930do
12931as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12932if eval "test \"\${$as_ac_Header+set}\" = set"; then
12933 echo "$as_me:$LINENO: checking for $ac_header" >&5
12934echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12935if eval "test \"\${$as_ac_Header+set}\" = set"; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12937fi
12938echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12939echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12940else
12941 # Is the header compilable?
12942echo "$as_me:$LINENO: checking $ac_header usability" >&5
12943echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12944cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12945/* confdefs.h. */
12946_ACEOF
12947cat confdefs.h >>conftest.$ac_ext
12948cat >>conftest.$ac_ext <<_ACEOF
12949/* end confdefs.h. */
12950$ac_includes_default
12951#include <$ac_header>
12952_ACEOF
12953rm -f conftest.$ac_objext
12954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 12955 (eval $ac_compile) 2>conftest.er1
e6cc62c6 12956 ac_status=$?
f95e4495
VS
12957 grep -v '^ *+' conftest.er1 >conftest.err
12958 rm -f conftest.er1
12959 cat conftest.err >&5
e6cc62c6
VS
12960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12961 (exit $ac_status); } &&
f95e4495
VS
12962 { ac_try='test -z "$ac_c_werror_flag"
12963 || test ! -s conftest.err'
12964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12965 (eval $ac_try) 2>&5
12966 ac_status=$?
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); }; } &&
12969 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
12970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12971 (eval $ac_try) 2>&5
12972 ac_status=$?
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); }; }; then
12975 ac_header_compiler=yes
12976else
12977 echo "$as_me: failed program was:" >&5
12978sed 's/^/| /' conftest.$ac_ext >&5
12979
12980ac_header_compiler=no
12981fi
f95e4495 12982rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
12983echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12984echo "${ECHO_T}$ac_header_compiler" >&6
12985
12986# Is the header present?
12987echo "$as_me:$LINENO: checking $ac_header presence" >&5
12988echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12989cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
12990/* confdefs.h. */
12991_ACEOF
12992cat confdefs.h >>conftest.$ac_ext
12993cat >>conftest.$ac_ext <<_ACEOF
12994/* end confdefs.h. */
12995#include <$ac_header>
12996_ACEOF
12997if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12999 ac_status=$?
13000 grep -v '^ *+' conftest.er1 >conftest.err
13001 rm -f conftest.er1
13002 cat conftest.err >&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } >/dev/null; then
13005 if test -s conftest.err; then
13006 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 13007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13008 else
13009 ac_cpp_err=
13010 fi
13011else
13012 ac_cpp_err=yes
13013fi
13014if test -z "$ac_cpp_err"; then
13015 ac_header_preproc=yes
13016else
13017 echo "$as_me: failed program was:" >&5
13018sed 's/^/| /' conftest.$ac_ext >&5
13019
13020 ac_header_preproc=no
13021fi
13022rm -f conftest.err conftest.$ac_ext
13023echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13024echo "${ECHO_T}$ac_header_preproc" >&6
13025
13026# So? What about this header?
f95e4495
VS
13027case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13028 yes:no: )
e6cc62c6
VS
13029 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13030echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
13031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13032echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13033 ac_header_preproc=yes
e6cc62c6 13034 ;;
f95e4495 13035 no:yes:* )
e6cc62c6
VS
13036 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13037echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
13038 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13039echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13040 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13041echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13042 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13043echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13044 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13045echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
13046 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13047echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13048 (
13049 cat <<\_ASBOX
f95e4495
VS
13050## ----------------------------------------- ##
13051## Report this to wx-dev@lists.wxwindows.org ##
13052## ----------------------------------------- ##
e6cc62c6
VS
13053_ASBOX
13054 ) |
13055 sed "s/^/$as_me: WARNING: /" >&2
13056 ;;
13057esac
13058echo "$as_me:$LINENO: checking for $ac_header" >&5
13059echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13060if eval "test \"\${$as_ac_Header+set}\" = set"; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13062else
f95e4495 13063 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
13064fi
13065echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13066echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13067
90dd450c 13068fi
e6cc62c6
VS
13069if test `eval echo '${'$as_ac_Header'}'` = yes; then
13070 cat >>confdefs.h <<_ACEOF
13071#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13072_ACEOF
13073
13074fi
13075
13076done
90dd450c 13077
e6cc62c6
VS
13078
13079if test "$ac_cv_header_wchar_h" != "yes"; then
13080
13081for ac_header in wcstr.h
21d1c967 13082do
e6cc62c6
VS
13083as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13084if eval "test \"\${$as_ac_Header+set}\" = set"; then
13085 echo "$as_me:$LINENO: checking for $ac_header" >&5
13086echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13087if eval "test \"\${$as_ac_Header+set}\" = set"; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13089fi
13090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13092else
13093 # Is the header compilable?
13094echo "$as_me:$LINENO: checking $ac_header usability" >&5
13095echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13096cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13097/* confdefs.h. */
13098_ACEOF
13099cat confdefs.h >>conftest.$ac_ext
13100cat >>conftest.$ac_ext <<_ACEOF
13101/* end confdefs.h. */
13102$ac_includes_default
13103#include <$ac_header>
13104_ACEOF
13105rm -f conftest.$ac_objext
13106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 13107 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13108 ac_status=$?
f95e4495
VS
13109 grep -v '^ *+' conftest.er1 >conftest.err
13110 rm -f conftest.er1
13111 cat conftest.err >&5
e6cc62c6
VS
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); } &&
f95e4495
VS
13114 { ac_try='test -z "$ac_c_werror_flag"
13115 || test ! -s conftest.err'
13116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13117 (eval $ac_try) 2>&5
13118 ac_status=$?
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; } &&
13121 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13123 (eval $ac_try) 2>&5
13124 ac_status=$?
13125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13126 (exit $ac_status); }; }; then
13127 ac_header_compiler=yes
13128else
13129 echo "$as_me: failed program was:" >&5
13130sed 's/^/| /' conftest.$ac_ext >&5
13131
13132ac_header_compiler=no
13133fi
f95e4495 13134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13135echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13136echo "${ECHO_T}$ac_header_compiler" >&6
13137
13138# Is the header present?
13139echo "$as_me:$LINENO: checking $ac_header presence" >&5
13140echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13141cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13142/* confdefs.h. */
13143_ACEOF
13144cat confdefs.h >>conftest.$ac_ext
13145cat >>conftest.$ac_ext <<_ACEOF
13146/* end confdefs.h. */
13147#include <$ac_header>
13148_ACEOF
13149if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13150 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13151 ac_status=$?
13152 grep -v '^ *+' conftest.er1 >conftest.err
13153 rm -f conftest.er1
13154 cat conftest.err >&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } >/dev/null; then
13157 if test -s conftest.err; then
13158 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 13159 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13160 else
13161 ac_cpp_err=
13162 fi
13163else
13164 ac_cpp_err=yes
13165fi
13166if test -z "$ac_cpp_err"; then
13167 ac_header_preproc=yes
13168else
13169 echo "$as_me: failed program was:" >&5
13170sed 's/^/| /' conftest.$ac_ext >&5
13171
13172 ac_header_preproc=no
13173fi
13174rm -f conftest.err conftest.$ac_ext
13175echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13176echo "${ECHO_T}$ac_header_preproc" >&6
13177
13178# So? What about this header?
f95e4495
VS
13179case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13180 yes:no: )
e6cc62c6
VS
13181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13182echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
13183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13184echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13185 ac_header_preproc=yes
e6cc62c6 13186 ;;
f95e4495 13187 no:yes:* )
e6cc62c6
VS
13188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13189echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
13190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13191echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13193echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13195echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13197echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
13198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13199echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13200 (
13201 cat <<\_ASBOX
f95e4495
VS
13202## ----------------------------------------- ##
13203## Report this to wx-dev@lists.wxwindows.org ##
13204## ----------------------------------------- ##
e6cc62c6
VS
13205_ASBOX
13206 ) |
13207 sed "s/^/$as_me: WARNING: /" >&2
13208 ;;
13209esac
13210echo "$as_me:$LINENO: checking for $ac_header" >&5
13211echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13212if eval "test \"\${$as_ac_Header+set}\" = set"; then
13213 echo $ECHO_N "(cached) $ECHO_C" >&6
13214else
f95e4495 13215 eval "$as_ac_Header=\$ac_header_preproc"
3a922bb4 13216fi
e6cc62c6
VS
13217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13219
4f14bcd8 13220fi
e6cc62c6
VS
13221if test `eval echo '${'$as_ac_Header'}'` = yes; then
13222 cat >>confdefs.h <<_ACEOF
13223#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13224_ACEOF
13225
13226fi
13227
13228done
13229
13230fi
13231
13232
13233for ac_header in fnmatch.h
13234do
13235as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13236if eval "test \"\${$as_ac_Header+set}\" = set"; then
13237 echo "$as_me:$LINENO: checking for $ac_header" >&5
13238echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13239if eval "test \"\${$as_ac_Header+set}\" = set"; then
13240 echo $ECHO_N "(cached) $ECHO_C" >&6
13241fi
13242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13244else
13245 # Is the header compilable?
13246echo "$as_me:$LINENO: checking $ac_header usability" >&5
13247echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13248cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13249/* confdefs.h. */
13250_ACEOF
13251cat confdefs.h >>conftest.$ac_ext
13252cat >>conftest.$ac_ext <<_ACEOF
13253/* end confdefs.h. */
13254$ac_includes_default
13255#include <$ac_header>
13256_ACEOF
13257rm -f conftest.$ac_objext
13258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 13259 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13260 ac_status=$?
f95e4495
VS
13261 grep -v '^ *+' conftest.er1 >conftest.err
13262 rm -f conftest.er1
13263 cat conftest.err >&5
e6cc62c6
VS
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); } &&
f95e4495
VS
13266 { ac_try='test -z "$ac_c_werror_flag"
13267 || test ! -s conftest.err'
13268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13269 (eval $ac_try) 2>&5
13270 ac_status=$?
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; } &&
13273 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13276 ac_status=$?
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; }; then
13279 ac_header_compiler=yes
13280else
13281 echo "$as_me: failed program was:" >&5
13282sed 's/^/| /' conftest.$ac_ext >&5
13283
13284ac_header_compiler=no
13285fi
f95e4495 13286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13287echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13288echo "${ECHO_T}$ac_header_compiler" >&6
13289
13290# Is the header present?
13291echo "$as_me:$LINENO: checking $ac_header presence" >&5
13292echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13293cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13294/* confdefs.h. */
13295_ACEOF
13296cat confdefs.h >>conftest.$ac_ext
13297cat >>conftest.$ac_ext <<_ACEOF
13298/* end confdefs.h. */
13299#include <$ac_header>
13300_ACEOF
13301if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13302 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13303 ac_status=$?
13304 grep -v '^ *+' conftest.er1 >conftest.err
13305 rm -f conftest.er1
13306 cat conftest.err >&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } >/dev/null; then
13309 if test -s conftest.err; then
13310 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 13311 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13312 else
13313 ac_cpp_err=
13314 fi
13315else
13316 ac_cpp_err=yes
13317fi
13318if test -z "$ac_cpp_err"; then
13319 ac_header_preproc=yes
13320else
13321 echo "$as_me: failed program was:" >&5
13322sed 's/^/| /' conftest.$ac_ext >&5
13323
13324 ac_header_preproc=no
13325fi
13326rm -f conftest.err conftest.$ac_ext
13327echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13328echo "${ECHO_T}$ac_header_preproc" >&6
13329
13330# So? What about this header?
f95e4495
VS
13331case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13332 yes:no: )
e6cc62c6
VS
13333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13334echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
13335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13336echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13337 ac_header_preproc=yes
e6cc62c6 13338 ;;
f95e4495 13339 no:yes:* )
e6cc62c6
VS
13340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13341echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
13342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13343echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13345echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13347echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13349echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
13350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13351echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13352 (
13353 cat <<\_ASBOX
f95e4495
VS
13354## ----------------------------------------- ##
13355## Report this to wx-dev@lists.wxwindows.org ##
13356## ----------------------------------------- ##
e6cc62c6
VS
13357_ASBOX
13358 ) |
13359 sed "s/^/$as_me: WARNING: /" >&2
13360 ;;
13361esac
13362echo "$as_me:$LINENO: checking for $ac_header" >&5
13363echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13364if eval "test \"\${$as_ac_Header+set}\" = set"; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 13366else
f95e4495 13367 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
13368fi
13369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13371
21d1c967 13372fi
e6cc62c6
VS
13373if test `eval echo '${'$as_ac_Header'}'` = yes; then
13374 cat >>confdefs.h <<_ACEOF
13375#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13376_ACEOF
13377
13378fi
13379
21d1c967 13380done
90dd450c 13381
5c6fa7d2 13382
a0b9e27f 13383if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
e6cc62c6
VS
13384
13385for ac_func in fnmatch
21d1c967 13386do
e6cc62c6
VS
13387as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13388echo "$as_me:$LINENO: checking for $ac_func" >&5
13389echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13390if eval "test \"\${$as_ac_var+set}\" = set"; then
13391 echo $ECHO_N "(cached) $ECHO_C" >&6
13392else
13393 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13394/* confdefs.h. */
13395_ACEOF
13396cat confdefs.h >>conftest.$ac_ext
13397cat >>conftest.$ac_ext <<_ACEOF
13398/* end confdefs.h. */
f95e4495
VS
13399/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13401#define $ac_func innocuous_$ac_func
13402
a0b9e27f 13403/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
13404 which can conflict with char $ac_func (); below.
13405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13406 <limits.h> exists even on freestanding compilers. */
f95e4495 13407
e6cc62c6
VS
13408#ifdef __STDC__
13409# include <limits.h>
13410#else
13411# include <assert.h>
13412#endif
f95e4495
VS
13413
13414#undef $ac_func
13415
a0b9e27f 13416/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
13417#ifdef __cplusplus
13418extern "C"
13419{
13420#endif
a0b9e27f 13421/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
13422 builtin and then its argument prototype would still apply. */
13423char $ac_func ();
a0b9e27f
MB
13424/* The GNU C library defines this for functions which it implements
13425 to always fail with ENOSYS. Some functions are actually named
13426 something starting with __ and the normal name is an alias. */
13427#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13428choke me
13429#else
e6cc62c6
VS
13430char (*f) () = $ac_func;
13431#endif
13432#ifdef __cplusplus
13433}
a0b9e27f
MB
13434#endif
13435
e6cc62c6
VS
13436int
13437main ()
13438{
13439return f != $ac_func;
13440 ;
13441 return 0;
13442}
13443_ACEOF
13444rm -f conftest.$ac_objext conftest$ac_exeext
13445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 13446 (eval $ac_link) 2>conftest.er1
e6cc62c6 13447 ac_status=$?
f95e4495
VS
13448 grep -v '^ *+' conftest.er1 >conftest.err
13449 rm -f conftest.er1
13450 cat conftest.err >&5
e6cc62c6
VS
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); } &&
f95e4495
VS
13453 { ac_try='test -z "$ac_c_werror_flag"
13454 || test ! -s conftest.err'
13455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13456 (eval $ac_try) 2>&5
13457 ac_status=$?
13458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459 (exit $ac_status); }; } &&
13460 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
13461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13462 (eval $ac_try) 2>&5
13463 ac_status=$?
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); }; }; then
13466 eval "$as_ac_var=yes"
13467else
13468 echo "$as_me: failed program was:" >&5
13469sed 's/^/| /' conftest.$ac_ext >&5
13470
13471eval "$as_ac_var=no"
13472fi
f95e4495
VS
13473rm -f conftest.err conftest.$ac_objext \
13474 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
13475fi
13476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13477echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13478if test `eval echo '${'$as_ac_var'}'` = yes; then
13479 cat >>confdefs.h <<_ACEOF
13480#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13481_ACEOF
32832908 13482
21d1c967
GD
13483fi
13484done
90dd450c 13485
a0b9e27f 13486fi
90dd450c 13487
e6cc62c6
VS
13488
13489for ac_header in langinfo.h
21d1c967 13490do
e6cc62c6
VS
13491as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13492if eval "test \"\${$as_ac_Header+set}\" = set"; then
13493 echo "$as_me:$LINENO: checking for $ac_header" >&5
13494echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13495if eval "test \"\${$as_ac_Header+set}\" = set"; then
13496 echo $ECHO_N "(cached) $ECHO_C" >&6
13497fi
13498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13499echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13500else
13501 # Is the header compilable?
13502echo "$as_me:$LINENO: checking $ac_header usability" >&5
13503echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13504cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13505/* confdefs.h. */
13506_ACEOF
13507cat confdefs.h >>conftest.$ac_ext
13508cat >>conftest.$ac_ext <<_ACEOF
13509/* end confdefs.h. */
13510$ac_includes_default
13511#include <$ac_header>
13512_ACEOF
13513rm -f conftest.$ac_objext
13514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 13515 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13516 ac_status=$?
f95e4495
VS
13517 grep -v '^ *+' conftest.er1 >conftest.err
13518 rm -f conftest.er1
13519 cat conftest.err >&5
e6cc62c6
VS
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); } &&
f95e4495
VS
13522 { ac_try='test -z "$ac_c_werror_flag"
13523 || test ! -s conftest.err'
13524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13525 (eval $ac_try) 2>&5
13526 ac_status=$?
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); }; } &&
13529 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13531 (eval $ac_try) 2>&5
13532 ac_status=$?
13533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534 (exit $ac_status); }; }; then
13535 ac_header_compiler=yes
13536else
13537 echo "$as_me: failed program was:" >&5
13538sed 's/^/| /' conftest.$ac_ext >&5
13539
13540ac_header_compiler=no
13541fi
f95e4495 13542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13543echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13544echo "${ECHO_T}$ac_header_compiler" >&6
13545
13546# Is the header present?
13547echo "$as_me:$LINENO: checking $ac_header presence" >&5
13548echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13549cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13550/* confdefs.h. */
13551_ACEOF
13552cat confdefs.h >>conftest.$ac_ext
13553cat >>conftest.$ac_ext <<_ACEOF
13554/* end confdefs.h. */
13555#include <$ac_header>
13556_ACEOF
13557if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13559 ac_status=$?
13560 grep -v '^ *+' conftest.er1 >conftest.err
13561 rm -f conftest.er1
13562 cat conftest.err >&5
13563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564 (exit $ac_status); } >/dev/null; then
13565 if test -s conftest.err; then
13566 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 13567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13568 else
13569 ac_cpp_err=
13570 fi
13571else
13572 ac_cpp_err=yes
13573fi
13574if test -z "$ac_cpp_err"; then
13575 ac_header_preproc=yes
13576else
13577 echo "$as_me: failed program was:" >&5
13578sed 's/^/| /' conftest.$ac_ext >&5
13579
13580 ac_header_preproc=no
13581fi
13582rm -f conftest.err conftest.$ac_ext
13583echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13584echo "${ECHO_T}$ac_header_preproc" >&6
13585
13586# So? What about this header?
f95e4495
VS
13587case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13588 yes:no: )
e6cc62c6
VS
13589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13590echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
13591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13592echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13593 ac_header_preproc=yes
e6cc62c6 13594 ;;
f95e4495 13595 no:yes:* )
e6cc62c6
VS
13596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13597echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
13598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13599echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13601echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13603echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13605echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
13606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13607echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13608 (
13609 cat <<\_ASBOX
f95e4495
VS
13610## ----------------------------------------- ##
13611## Report this to wx-dev@lists.wxwindows.org ##
13612## ----------------------------------------- ##
e6cc62c6
VS
13613_ASBOX
13614 ) |
13615 sed "s/^/$as_me: WARNING: /" >&2
13616 ;;
13617esac
13618echo "$as_me:$LINENO: checking for $ac_header" >&5
13619echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13620if eval "test \"\${$as_ac_Header+set}\" = set"; then
13621 echo $ECHO_N "(cached) $ECHO_C" >&6
13622else
f95e4495 13623 eval "$as_ac_Header=\$ac_header_preproc"
90dd450c 13624fi
e6cc62c6
VS
13625echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13626echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13627
4f14bcd8 13628fi
e6cc62c6
VS
13629if test `eval echo '${'$as_ac_Header'}'` = yes; then
13630 cat >>confdefs.h <<_ACEOF
13631#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13632_ACEOF
13633
21d1c967 13634fi
e6cc62c6 13635
21d1c967 13636done
3a922bb4 13637
8284b0c5 13638
4f5a7f74
VZ
13639case "${host}" in
13640 *-pc-os2_emx | *-pc-os2-emx )
13641 if test $ac_cv_header_langinfo_h = "yes"; then
13642 LIBS="$LIBS -lintl"
13643 fi
13644 ;;
13645esac
1542ea39 13646
a0b9e27f 13647if test "$wxUSE_GUI" = "yes"; then
73d617c9 13648 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
e6cc62c6 13649
eb69fda5 13650for ac_header in X11/Xlib.h
21d1c967 13651do
e6cc62c6
VS
13652as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13653if eval "test \"\${$as_ac_Header+set}\" = set"; then
13654 echo "$as_me:$LINENO: checking for $ac_header" >&5
13655echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13656if eval "test \"\${$as_ac_Header+set}\" = set"; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13658fi
13659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13660echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13661else
13662 # Is the header compilable?
13663echo "$as_me:$LINENO: checking $ac_header usability" >&5
13664echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13665cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13666/* confdefs.h. */
13667_ACEOF
13668cat confdefs.h >>conftest.$ac_ext
13669cat >>conftest.$ac_ext <<_ACEOF
13670/* end confdefs.h. */
13671$ac_includes_default
13672#include <$ac_header>
13673_ACEOF
13674rm -f conftest.$ac_objext
13675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 13676 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13677 ac_status=$?
f95e4495
VS
13678 grep -v '^ *+' conftest.er1 >conftest.err
13679 rm -f conftest.er1
13680 cat conftest.err >&5
e6cc62c6
VS
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } &&
f95e4495
VS
13683 { ac_try='test -z "$ac_c_werror_flag"
13684 || test ! -s conftest.err'
13685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13686 (eval $ac_try) 2>&5
13687 ac_status=$?
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); }; } &&
13690 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692 (eval $ac_try) 2>&5
13693 ac_status=$?
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); }; }; then
13696 ac_header_compiler=yes
13697else
13698 echo "$as_me: failed program was:" >&5
13699sed 's/^/| /' conftest.$ac_ext >&5
13700
13701ac_header_compiler=no
13702fi
f95e4495 13703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
13704echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13705echo "${ECHO_T}$ac_header_compiler" >&6
13706
13707# Is the header present?
13708echo "$as_me:$LINENO: checking $ac_header presence" >&5
13709echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13710cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13711/* confdefs.h. */
13712_ACEOF
13713cat confdefs.h >>conftest.$ac_ext
13714cat >>conftest.$ac_ext <<_ACEOF
13715/* end confdefs.h. */
13716#include <$ac_header>
13717_ACEOF
13718if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13719 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13720 ac_status=$?
13721 grep -v '^ *+' conftest.er1 >conftest.err
13722 rm -f conftest.er1
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } >/dev/null; then
13726 if test -s conftest.err; then
13727 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 13728 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
13729 else
13730 ac_cpp_err=
13731 fi
13732else
13733 ac_cpp_err=yes
13734fi
13735if test -z "$ac_cpp_err"; then
13736 ac_header_preproc=yes
13737else
13738 echo "$as_me: failed program was:" >&5
13739sed 's/^/| /' conftest.$ac_ext >&5
13740
13741 ac_header_preproc=no
13742fi
13743rm -f conftest.err conftest.$ac_ext
13744echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13745echo "${ECHO_T}$ac_header_preproc" >&6
13746
13747# So? What about this header?
f95e4495
VS
13748case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13749 yes:no: )
e6cc62c6
VS
13750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13751echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
13752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13753echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13754 ac_header_preproc=yes
e6cc62c6 13755 ;;
f95e4495 13756 no:yes:* )
e6cc62c6
VS
13757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13758echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
13759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13760echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13762echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13764echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
13765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13766echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
13767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13768echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
13769 (
13770 cat <<\_ASBOX
f95e4495
VS
13771## ----------------------------------------- ##
13772## Report this to wx-dev@lists.wxwindows.org ##
13773## ----------------------------------------- ##
e6cc62c6
VS
13774_ASBOX
13775 ) |
13776 sed "s/^/$as_me: WARNING: /" >&2
13777 ;;
13778esac
13779echo "$as_me:$LINENO: checking for $ac_header" >&5
13780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13781if eval "test \"\${$as_ac_Header+set}\" = set"; then
13782 echo $ECHO_N "(cached) $ECHO_C" >&6
13783else
f95e4495 13784 eval "$as_ac_Header=\$ac_header_preproc"
3a922bb4 13785fi
e6cc62c6
VS
13786echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13787echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13788
90dd450c 13789fi
e6cc62c6
VS
13790if test `eval echo '${'$as_ac_Header'}'` = yes; then
13791 cat >>confdefs.h <<_ACEOF
13792#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13793_ACEOF
13794
247f5006 13795fi
e6cc62c6 13796
eb69fda5
VS
13797done
13798
13799
13800for ac_header in X11/XKBlib.h
13801do
13802as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13803echo "$as_me:$LINENO: checking for $ac_header" >&5
13804echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13805if eval "test \"\${$as_ac_Header+set}\" = set"; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13807else
13808 cat >conftest.$ac_ext <<_ACEOF
eb69fda5
VS
13809/* confdefs.h. */
13810_ACEOF
13811cat confdefs.h >>conftest.$ac_ext
13812cat >>conftest.$ac_ext <<_ACEOF
13813/* end confdefs.h. */
13814
13815 #if HAVE_X11_XLIB_H
13816 #include <X11/Xlib.h>
13817 #endif
13818
13819
13820#include <$ac_header>
13821_ACEOF
13822rm -f conftest.$ac_objext
13823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 13824 (eval $ac_compile) 2>conftest.er1
eb69fda5 13825 ac_status=$?
f95e4495
VS
13826 grep -v '^ *+' conftest.er1 >conftest.err
13827 rm -f conftest.er1
13828 cat conftest.err >&5
eb69fda5
VS
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } &&
f95e4495
VS
13831 { ac_try='test -z "$ac_c_werror_flag"
13832 || test ! -s conftest.err'
13833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13834 (eval $ac_try) 2>&5
13835 ac_status=$?
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; } &&
13838 { ac_try='test -s conftest.$ac_objext'
eb69fda5
VS
13839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13840 (eval $ac_try) 2>&5
13841 ac_status=$?
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; }; then
13844 eval "$as_ac_Header=yes"
13845else
13846 echo "$as_me: failed program was:" >&5
13847sed 's/^/| /' conftest.$ac_ext >&5
13848
13849eval "$as_ac_Header=no"
13850fi
f95e4495 13851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
eb69fda5
VS
13852fi
13853echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13854echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13855if test `eval echo '${'$as_ac_Header'}'` = yes; then
13856 cat >>confdefs.h <<_ACEOF
13857#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13858_ACEOF
13859
13860fi
13861
247f5006
VZ
13862done
13863
a0b9e27f
MB
13864 fi
13865fi
247f5006 13866
247f5006 13867
e6cc62c6
VS
13868echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13869echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13870if test "${ac_cv_c_const+set}" = set; then
13871 echo $ECHO_N "(cached) $ECHO_C" >&6
13872else
13873 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13874/* confdefs.h. */
13875_ACEOF
13876cat confdefs.h >>conftest.$ac_ext
13877cat >>conftest.$ac_ext <<_ACEOF
13878/* end confdefs.h. */
13879
13880int
13881main ()
13882{
13883/* FIXME: Include the comments suggested by Paul. */
13884#ifndef __cplusplus
13885 /* Ultrix mips cc rejects this. */
13886 typedef int charset[2];
13887 const charset x;
13888 /* SunOS 4.1.1 cc rejects this. */
13889 char const *const *ccp;
13890 char **p;
13891 /* NEC SVR4.0.2 mips cc rejects this. */
13892 struct point {int x, y;};
13893 static struct point const zero = {0,0};
13894 /* AIX XL C 1.02.0.0 rejects this.
13895 It does not let you subtract one const X* pointer from another in
13896 an arm of an if-expression whose if-part is not a constant
13897 expression */
13898 const char *g = "string";
13899 ccp = &g + (g ? g-g : 0);
13900 /* HPUX 7.0 cc rejects these. */
13901 ++ccp;
13902 p = (char**) ccp;
13903 ccp = (char const *const *) p;
13904 { /* SCO 3.2v4 cc rejects this. */
13905 char *t;
13906 char const *s = 0 ? (char *) 0 : (char const *) 0;
13907
13908 *t++ = 0;
13909 }
13910 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13911 int x[] = {25, 17};
13912 const int *foo = &x[0];
13913 ++foo;
13914 }
13915 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13916 typedef const int *iptr;
13917 iptr p = 0;
13918 ++p;
13919 }
13920 { /* AIX XL C 1.02.0.0 rejects this saying
13921 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13922 struct s { int j; const int *ap[3]; };
13923 struct s *b; b->j = 5;
13924 }
13925 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13926 const int foo = 10;
13927 }
13928#endif
13929
13930 ;
13931 return 0;
13932}
13933_ACEOF
13934rm -f conftest.$ac_objext
13935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 13936 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13937 ac_status=$?
f95e4495
VS
13938 grep -v '^ *+' conftest.er1 >conftest.err
13939 rm -f conftest.er1
13940 cat conftest.err >&5
e6cc62c6
VS
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); } &&
f95e4495
VS
13943 { ac_try='test -z "$ac_c_werror_flag"
13944 || test ! -s conftest.err'
13945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946 (eval $ac_try) 2>&5
13947 ac_status=$?
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }; } &&
13950 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
13951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13952 (eval $ac_try) 2>&5
13953 ac_status=$?
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); }; }; then
a0b9e27f 13956 ac_cv_c_const=yes
247f5006 13957else
e6cc62c6
VS
13958 echo "$as_me: failed program was:" >&5
13959sed 's/^/| /' conftest.$ac_ext >&5
13960
13961ac_cv_c_const=no
247f5006 13962fi
f95e4495 13963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967 13964fi
e6cc62c6
VS
13965echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13966echo "${ECHO_T}$ac_cv_c_const" >&6
a0b9e27f 13967if test $ac_cv_c_const = no; then
e6cc62c6
VS
13968
13969cat >>confdefs.h <<\_ACEOF
13970#define const
13971_ACEOF
10f2d63a 13972
90dd450c 13973fi
81809c07 13974
e6cc62c6
VS
13975echo "$as_me:$LINENO: checking for inline" >&5
13976echo $ECHO_N "checking for inline... $ECHO_C" >&6
13977if test "${ac_cv_c_inline+set}" = set; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
8168de4c 13979else
a0b9e27f
MB
13980 ac_cv_c_inline=no
13981for ac_kw in inline __inline__ __inline; do
e6cc62c6 13982 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
13983/* confdefs.h. */
13984_ACEOF
13985cat confdefs.h >>conftest.$ac_ext
13986cat >>conftest.$ac_ext <<_ACEOF
13987/* end confdefs.h. */
13988#ifndef __cplusplus
13989typedef int foo_t;
13990static $ac_kw foo_t static_foo () {return 0; }
13991$ac_kw foo_t foo () {return 0; }
13992#endif
a0b9e27f 13993
e6cc62c6
VS
13994_ACEOF
13995rm -f conftest.$ac_objext
13996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 13997 (eval $ac_compile) 2>conftest.er1
e6cc62c6 13998 ac_status=$?
f95e4495
VS
13999 grep -v '^ *+' conftest.er1 >conftest.err
14000 rm -f conftest.er1
14001 cat conftest.err >&5
e6cc62c6
VS
14002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003 (exit $ac_status); } &&
f95e4495
VS
14004 { ac_try='test -z "$ac_c_werror_flag"
14005 || test ! -s conftest.err'
14006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14007 (eval $ac_try) 2>&5
14008 ac_status=$?
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; } &&
14011 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14013 (eval $ac_try) 2>&5
14014 ac_status=$?
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); }; }; then
a0b9e27f 14017 ac_cv_c_inline=$ac_kw; break
247f5006 14018else
e6cc62c6
VS
14019 echo "$as_me: failed program was:" >&5
14020sed 's/^/| /' conftest.$ac_ext >&5
14021
247f5006 14022fi
f95e4495 14023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 14024done
247f5006
VZ
14025
14026fi
e6cc62c6
VS
14027echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
14028echo "${ECHO_T}$ac_cv_c_inline" >&6
f95e4495
VS
14029
14030
e6cc62c6 14031case $ac_cv_c_inline in
a0b9e27f 14032 inline | yes) ;;
f95e4495
VS
14033 *)
14034 case $ac_cv_c_inline in
14035 no) ac_val=;;
14036 *) ac_val=$ac_cv_c_inline;;
14037 esac
14038 cat >>confdefs.h <<_ACEOF
14039#ifndef __cplusplus
14040#define inline $ac_val
14041#endif
09d3439c 14042_ACEOF
f95e4495 14043 ;;
a0b9e27f 14044esac
247f5006 14045
247f5006 14046
e6cc62c6
VS
14047echo "$as_me:$LINENO: checking for char" >&5
14048echo $ECHO_N "checking for char... $ECHO_C" >&6
14049if test "${ac_cv_type_char+set}" = set; then
14050 echo $ECHO_N "(cached) $ECHO_C" >&6
14051else
14052 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14053/* confdefs.h. */
14054_ACEOF
14055cat confdefs.h >>conftest.$ac_ext
14056cat >>conftest.$ac_ext <<_ACEOF
14057/* end confdefs.h. */
14058$ac_includes_default
14059int
14060main ()
14061{
14062if ((char *) 0)
14063 return 0;
14064if (sizeof (char))
14065 return 0;
14066 ;
14067 return 0;
14068}
14069_ACEOF
14070rm -f conftest.$ac_objext
14071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14072 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14073 ac_status=$?
f95e4495
VS
14074 grep -v '^ *+' conftest.er1 >conftest.err
14075 rm -f conftest.er1
14076 cat conftest.err >&5
e6cc62c6
VS
14077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078 (exit $ac_status); } &&
f95e4495
VS
14079 { ac_try='test -z "$ac_c_werror_flag"
14080 || test ! -s conftest.err'
14081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14082 (eval $ac_try) 2>&5
14083 ac_status=$?
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; } &&
14086 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14088 (eval $ac_try) 2>&5
14089 ac_status=$?
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
14092 ac_cv_type_char=yes
14093else
14094 echo "$as_me: failed program was:" >&5
14095sed 's/^/| /' conftest.$ac_ext >&5
14096
14097ac_cv_type_char=no
14098fi
f95e4495 14099rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14100fi
14101echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14102echo "${ECHO_T}$ac_cv_type_char" >&6
14103
14104echo "$as_me:$LINENO: checking size of char" >&5
14105echo $ECHO_N "checking size of char... $ECHO_C" >&6
14106if test "${ac_cv_sizeof_char+set}" = set; then
14107 echo $ECHO_N "(cached) $ECHO_C" >&6
14108else
14109 if test "$ac_cv_type_char" = yes; then
14110 # The cast to unsigned long works around a bug in the HP C Compiler
14111 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14112 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14113 # This bug is HP SR number 8606223364.
a0b9e27f 14114 if test "$cross_compiling" = yes; then
e6cc62c6
VS
14115 # Depending upon the size, compute the lo and hi bounds.
14116cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14117/* confdefs.h. */
14118_ACEOF
14119cat confdefs.h >>conftest.$ac_ext
14120cat >>conftest.$ac_ext <<_ACEOF
14121/* end confdefs.h. */
14122$ac_includes_default
14123int
14124main ()
14125{
14126static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14127test_array [0] = 0
14128
14129 ;
14130 return 0;
14131}
14132_ACEOF
14133rm -f conftest.$ac_objext
14134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14135 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14136 ac_status=$?
f95e4495
VS
14137 grep -v '^ *+' conftest.er1 >conftest.err
14138 rm -f conftest.er1
14139 cat conftest.err >&5
e6cc62c6
VS
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } &&
f95e4495
VS
14142 { ac_try='test -z "$ac_c_werror_flag"
14143 || test ! -s conftest.err'
14144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14145 (eval $ac_try) 2>&5
14146 ac_status=$?
14147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14148 (exit $ac_status); }; } &&
14149 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14151 (eval $ac_try) 2>&5
14152 ac_status=$?
14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154 (exit $ac_status); }; }; then
14155 ac_lo=0 ac_mid=0
14156 while :; do
14157 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14158/* confdefs.h. */
14159_ACEOF
14160cat confdefs.h >>conftest.$ac_ext
14161cat >>conftest.$ac_ext <<_ACEOF
14162/* end confdefs.h. */
14163$ac_includes_default
14164int
14165main ()
14166{
14167static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14168test_array [0] = 0
14169
14170 ;
14171 return 0;
14172}
14173_ACEOF
14174rm -f conftest.$ac_objext
14175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14176 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14177 ac_status=$?
f95e4495
VS
14178 grep -v '^ *+' conftest.er1 >conftest.err
14179 rm -f conftest.er1
14180 cat conftest.err >&5
e6cc62c6
VS
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } &&
f95e4495
VS
14183 { ac_try='test -z "$ac_c_werror_flag"
14184 || test ! -s conftest.err'
14185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14186 (eval $ac_try) 2>&5
14187 ac_status=$?
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; } &&
14190 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14192 (eval $ac_try) 2>&5
14193 ac_status=$?
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; }; then
14196 ac_hi=$ac_mid; break
14197else
14198 echo "$as_me: failed program was:" >&5
14199sed 's/^/| /' conftest.$ac_ext >&5
14200
14201ac_lo=`expr $ac_mid + 1`
f95e4495
VS
14202 if test $ac_lo -le $ac_mid; then
14203 ac_lo= ac_hi=
14204 break
14205 fi
14206 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 14207fi
f95e4495 14208rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14209 done
a0b9e27f 14210else
e6cc62c6
VS
14211 echo "$as_me: failed program was:" >&5
14212sed 's/^/| /' conftest.$ac_ext >&5
14213
14214cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14215/* confdefs.h. */
14216_ACEOF
14217cat confdefs.h >>conftest.$ac_ext
14218cat >>conftest.$ac_ext <<_ACEOF
14219/* end confdefs.h. */
14220$ac_includes_default
14221int
14222main ()
14223{
14224static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14225test_array [0] = 0
14226
14227 ;
14228 return 0;
14229}
14230_ACEOF
14231rm -f conftest.$ac_objext
14232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14233 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14234 ac_status=$?
f95e4495
VS
14235 grep -v '^ *+' conftest.er1 >conftest.err
14236 rm -f conftest.er1
14237 cat conftest.err >&5
e6cc62c6
VS
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); } &&
f95e4495
VS
14240 { ac_try='test -z "$ac_c_werror_flag"
14241 || test ! -s conftest.err'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14244 ac_status=$?
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; } &&
14247 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14249 (eval $ac_try) 2>&5
14250 ac_status=$?
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); }; }; then
14253 ac_hi=-1 ac_mid=-1
14254 while :; do
14255 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14256/* confdefs.h. */
14257_ACEOF
14258cat confdefs.h >>conftest.$ac_ext
14259cat >>conftest.$ac_ext <<_ACEOF
14260/* end confdefs.h. */
14261$ac_includes_default
14262int
14263main ()
14264{
14265static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14266test_array [0] = 0
14267
14268 ;
14269 return 0;
14270}
14271_ACEOF
14272rm -f conftest.$ac_objext
14273if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14274 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14275 ac_status=$?
f95e4495
VS
14276 grep -v '^ *+' conftest.er1 >conftest.err
14277 rm -f conftest.er1
14278 cat conftest.err >&5
e6cc62c6
VS
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); } &&
f95e4495
VS
14281 { ac_try='test -z "$ac_c_werror_flag"
14282 || test ! -s conftest.err'
14283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284 (eval $ac_try) 2>&5
14285 ac_status=$?
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; } &&
14288 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14290 (eval $ac_try) 2>&5
14291 ac_status=$?
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); }; }; then
14294 ac_lo=$ac_mid; break
14295else
14296 echo "$as_me: failed program was:" >&5
14297sed 's/^/| /' conftest.$ac_ext >&5
14298
14299ac_hi=`expr '(' $ac_mid ')' - 1`
f95e4495
VS
14300 if test $ac_mid -le $ac_hi; then
14301 ac_lo= ac_hi=
14302 break
14303 fi
14304 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14305fi
f95e4495 14306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14307 done
14308else
14309 echo "$as_me: failed program was:" >&5
14310sed 's/^/| /' conftest.$ac_ext >&5
14311
14312ac_lo= ac_hi=
14313fi
f95e4495 14314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14315fi
f95e4495 14316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14317# Binary search between lo and hi bounds.
14318while test "x$ac_lo" != "x$ac_hi"; do
14319 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14320 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14321/* confdefs.h. */
14322_ACEOF
14323cat confdefs.h >>conftest.$ac_ext
14324cat >>conftest.$ac_ext <<_ACEOF
14325/* end confdefs.h. */
14326$ac_includes_default
14327int
14328main ()
14329{
14330static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14331test_array [0] = 0
14332
14333 ;
14334 return 0;
14335}
14336_ACEOF
14337rm -f conftest.$ac_objext
14338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14339 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14340 ac_status=$?
f95e4495
VS
14341 grep -v '^ *+' conftest.er1 >conftest.err
14342 rm -f conftest.er1
14343 cat conftest.err >&5
e6cc62c6
VS
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } &&
f95e4495
VS
14346 { ac_try='test -z "$ac_c_werror_flag"
14347 || test ! -s conftest.err'
14348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14349 (eval $ac_try) 2>&5
14350 ac_status=$?
14351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14352 (exit $ac_status); }; } &&
14353 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14355 (eval $ac_try) 2>&5
14356 ac_status=$?
14357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14358 (exit $ac_status); }; }; then
14359 ac_hi=$ac_mid
14360else
14361 echo "$as_me: failed program was:" >&5
14362sed 's/^/| /' conftest.$ac_ext >&5
14363
14364ac_lo=`expr '(' $ac_mid ')' + 1`
14365fi
f95e4495 14366rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14367done
14368case $ac_lo in
14369?*) ac_cv_sizeof_char=$ac_lo;;
14370'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14371See \`config.log' for more details." >&5
14372echo "$as_me: error: cannot compute sizeof (char), 77
14373See \`config.log' for more details." >&2;}
14374 { (exit 1); exit 1; }; } ;;
14375esac
14376else
14377 if test "$cross_compiling" = yes; then
14378 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14379See \`config.log' for more details." >&5
14380echo "$as_me: error: cannot run test program while cross compiling
14381See \`config.log' for more details." >&2;}
14382 { (exit 1); exit 1; }; }
14383else
14384 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14385/* confdefs.h. */
14386_ACEOF
14387cat confdefs.h >>conftest.$ac_ext
14388cat >>conftest.$ac_ext <<_ACEOF
14389/* end confdefs.h. */
14390$ac_includes_default
14391long longval () { return (long) (sizeof (char)); }
14392unsigned long ulongval () { return (long) (sizeof (char)); }
a0b9e27f 14393#include <stdio.h>
e6cc62c6
VS
14394#include <stdlib.h>
14395int
14396main ()
247f5006 14397{
e6cc62c6
VS
14398
14399 FILE *f = fopen ("conftest.val", "w");
14400 if (! f)
14401 exit (1);
14402 if (((long) (sizeof (char))) < 0)
14403 {
14404 long i = longval ();
14405 if (i != ((long) (sizeof (char))))
14406 exit (1);
14407 fprintf (f, "%ld\n", i);
14408 }
14409 else
14410 {
14411 unsigned long i = ulongval ();
14412 if (i != ((long) (sizeof (char))))
14413 exit (1);
14414 fprintf (f, "%lu\n", i);
14415 }
14416 exit (ferror (f) || fclose (f) != 0);
14417
14418 ;
14419 return 0;
52127426 14420}
e6cc62c6
VS
14421_ACEOF
14422rm -f conftest$ac_exeext
14423if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14424 (eval $ac_link) 2>&5
14425 ac_status=$?
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429 (eval $ac_try) 2>&5
14430 ac_status=$?
14431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); }; }; then
14433 ac_cv_sizeof_char=`cat conftest.val`
14434else
14435 echo "$as_me: program exited with status $ac_status" >&5
14436echo "$as_me: failed program was:" >&5
14437sed 's/^/| /' conftest.$ac_ext >&5
14438
14439( exit $ac_status )
14440{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14441See \`config.log' for more details." >&5
14442echo "$as_me: error: cannot compute sizeof (char), 77
14443See \`config.log' for more details." >&2;}
14444 { (exit 1); exit 1; }; }
14445fi
f95e4495 14446rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14447fi
14448fi
14449rm -f conftest.val
247f5006 14450else
a0b9e27f 14451 ac_cv_sizeof_char=0
247f5006 14452fi
247f5006 14453fi
e6cc62c6
VS
14454echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14455echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14456cat >>confdefs.h <<_ACEOF
14457#define SIZEOF_CHAR $ac_cv_sizeof_char
14458_ACEOF
14459
14460
14461echo "$as_me:$LINENO: checking for short" >&5
14462echo $ECHO_N "checking for short... $ECHO_C" >&6
14463if test "${ac_cv_type_short+set}" = set; then
14464 echo $ECHO_N "(cached) $ECHO_C" >&6
14465else
14466 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14467/* confdefs.h. */
14468_ACEOF
14469cat confdefs.h >>conftest.$ac_ext
14470cat >>conftest.$ac_ext <<_ACEOF
14471/* end confdefs.h. */
14472$ac_includes_default
14473int
14474main ()
14475{
14476if ((short *) 0)
14477 return 0;
14478if (sizeof (short))
14479 return 0;
14480 ;
14481 return 0;
14482}
14483_ACEOF
14484rm -f conftest.$ac_objext
14485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14486 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14487 ac_status=$?
f95e4495
VS
14488 grep -v '^ *+' conftest.er1 >conftest.err
14489 rm -f conftest.er1
14490 cat conftest.err >&5
e6cc62c6
VS
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } &&
f95e4495
VS
14493 { ac_try='test -z "$ac_c_werror_flag"
14494 || test ! -s conftest.err'
14495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14496 (eval $ac_try) 2>&5
14497 ac_status=$?
14498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14499 (exit $ac_status); }; } &&
14500 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502 (eval $ac_try) 2>&5
14503 ac_status=$?
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); }; }; then
14506 ac_cv_type_short=yes
14507else
14508 echo "$as_me: failed program was:" >&5
14509sed 's/^/| /' conftest.$ac_ext >&5
14510
14511ac_cv_type_short=no
14512fi
f95e4495 14513rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14514fi
14515echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
14516echo "${ECHO_T}$ac_cv_type_short" >&6
14517
14518echo "$as_me:$LINENO: checking size of short" >&5
14519echo $ECHO_N "checking size of short... $ECHO_C" >&6
14520if test "${ac_cv_sizeof_short+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14522else
14523 if test "$ac_cv_type_short" = yes; then
14524 # The cast to unsigned long works around a bug in the HP C Compiler
14525 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14526 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14527 # This bug is HP SR number 8606223364.
14528 if test "$cross_compiling" = yes; then
14529 # Depending upon the size, compute the lo and hi bounds.
14530cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14531/* confdefs.h. */
14532_ACEOF
14533cat confdefs.h >>conftest.$ac_ext
14534cat >>conftest.$ac_ext <<_ACEOF
14535/* end confdefs.h. */
14536$ac_includes_default
14537int
14538main ()
14539{
14540static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
14541test_array [0] = 0
247f5006 14542
e6cc62c6
VS
14543 ;
14544 return 0;
14545}
14546_ACEOF
14547rm -f conftest.$ac_objext
14548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14549 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14550 ac_status=$?
f95e4495
VS
14551 grep -v '^ *+' conftest.er1 >conftest.err
14552 rm -f conftest.er1
14553 cat conftest.err >&5
e6cc62c6
VS
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); } &&
f95e4495
VS
14556 { ac_try='test -z "$ac_c_werror_flag"
14557 || test ! -s conftest.err'
14558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559 (eval $ac_try) 2>&5
14560 ac_status=$?
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; } &&
14563 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14566 ac_status=$?
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; }; then
14569 ac_lo=0 ac_mid=0
14570 while :; do
14571 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14572/* confdefs.h. */
14573_ACEOF
14574cat confdefs.h >>conftest.$ac_ext
14575cat >>conftest.$ac_ext <<_ACEOF
14576/* end confdefs.h. */
14577$ac_includes_default
14578int
14579main ()
14580{
14581static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14582test_array [0] = 0
14583
14584 ;
14585 return 0;
14586}
14587_ACEOF
14588rm -f conftest.$ac_objext
14589if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14590 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14591 ac_status=$?
f95e4495
VS
14592 grep -v '^ *+' conftest.er1 >conftest.err
14593 rm -f conftest.er1
14594 cat conftest.err >&5
e6cc62c6
VS
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); } &&
f95e4495
VS
14597 { ac_try='test -z "$ac_c_werror_flag"
14598 || test ! -s conftest.err'
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14601 ac_status=$?
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; } &&
14604 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14606 (eval $ac_try) 2>&5
14607 ac_status=$?
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; }; then
14610 ac_hi=$ac_mid; break
14611else
14612 echo "$as_me: failed program was:" >&5
14613sed 's/^/| /' conftest.$ac_ext >&5
14614
14615ac_lo=`expr $ac_mid + 1`
f95e4495
VS
14616 if test $ac_lo -le $ac_mid; then
14617 ac_lo= ac_hi=
14618 break
14619 fi
14620 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 14621fi
f95e4495 14622rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14623 done
14624else
14625 echo "$as_me: failed program was:" >&5
14626sed 's/^/| /' conftest.$ac_ext >&5
14627
14628cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14629/* confdefs.h. */
14630_ACEOF
14631cat confdefs.h >>conftest.$ac_ext
14632cat >>conftest.$ac_ext <<_ACEOF
14633/* end confdefs.h. */
14634$ac_includes_default
14635int
14636main ()
14637{
14638static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
14639test_array [0] = 0
247f5006 14640
e6cc62c6
VS
14641 ;
14642 return 0;
14643}
14644_ACEOF
14645rm -f conftest.$ac_objext
14646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14647 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14648 ac_status=$?
f95e4495
VS
14649 grep -v '^ *+' conftest.er1 >conftest.err
14650 rm -f conftest.er1
14651 cat conftest.err >&5
e6cc62c6
VS
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); } &&
f95e4495
VS
14654 { ac_try='test -z "$ac_c_werror_flag"
14655 || test ! -s conftest.err'
14656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14657 (eval $ac_try) 2>&5
14658 ac_status=$?
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); }; } &&
14661 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663 (eval $ac_try) 2>&5
14664 ac_status=$?
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; }; then
14667 ac_hi=-1 ac_mid=-1
14668 while :; do
14669 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14670/* confdefs.h. */
14671_ACEOF
14672cat confdefs.h >>conftest.$ac_ext
14673cat >>conftest.$ac_ext <<_ACEOF
14674/* end confdefs.h. */
14675$ac_includes_default
14676int
14677main ()
14678{
14679static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
14680test_array [0] = 0
247f5006 14681
e6cc62c6
VS
14682 ;
14683 return 0;
14684}
14685_ACEOF
14686rm -f conftest.$ac_objext
14687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14688 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14689 ac_status=$?
f95e4495
VS
14690 grep -v '^ *+' conftest.er1 >conftest.err
14691 rm -f conftest.er1
14692 cat conftest.err >&5
e6cc62c6
VS
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } &&
f95e4495
VS
14695 { ac_try='test -z "$ac_c_werror_flag"
14696 || test ! -s conftest.err'
14697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14698 (eval $ac_try) 2>&5
14699 ac_status=$?
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; } &&
14702 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14704 (eval $ac_try) 2>&5
14705 ac_status=$?
14706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14707 (exit $ac_status); }; }; then
14708 ac_lo=$ac_mid; break
14709else
14710 echo "$as_me: failed program was:" >&5
14711sed 's/^/| /' conftest.$ac_ext >&5
14712
14713ac_hi=`expr '(' $ac_mid ')' - 1`
f95e4495
VS
14714 if test $ac_mid -le $ac_hi; then
14715 ac_lo= ac_hi=
14716 break
14717 fi
14718 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 14719fi
f95e4495 14720rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14721 done
247f5006 14722else
e6cc62c6
VS
14723 echo "$as_me: failed program was:" >&5
14724sed 's/^/| /' conftest.$ac_ext >&5
14725
14726ac_lo= ac_hi=
14727fi
f95e4495 14728rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 14729fi
f95e4495 14730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14731# Binary search between lo and hi bounds.
14732while test "x$ac_lo" != "x$ac_hi"; do
14733 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14734 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14735/* confdefs.h. */
14736_ACEOF
14737cat confdefs.h >>conftest.$ac_ext
14738cat >>conftest.$ac_ext <<_ACEOF
14739/* end confdefs.h. */
14740$ac_includes_default
14741int
14742main ()
14743{
14744static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
14745test_array [0] = 0
14746
14747 ;
14748 return 0;
14749}
14750_ACEOF
14751rm -f conftest.$ac_objext
14752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14753 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14754 ac_status=$?
f95e4495
VS
14755 grep -v '^ *+' conftest.er1 >conftest.err
14756 rm -f conftest.er1
14757 cat conftest.err >&5
e6cc62c6
VS
14758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14759 (exit $ac_status); } &&
f95e4495
VS
14760 { ac_try='test -z "$ac_c_werror_flag"
14761 || test ! -s conftest.err'
14762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763 (eval $ac_try) 2>&5
14764 ac_status=$?
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; } &&
14767 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14769 (eval $ac_try) 2>&5
14770 ac_status=$?
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); }; }; then
14773 ac_hi=$ac_mid
14774else
14775 echo "$as_me: failed program was:" >&5
14776sed 's/^/| /' conftest.$ac_ext >&5
14777
14778ac_lo=`expr '(' $ac_mid ')' + 1`
14779fi
f95e4495 14780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14781done
14782case $ac_lo in
14783?*) ac_cv_sizeof_short=$ac_lo;;
14784'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14785See \`config.log' for more details." >&5
14786echo "$as_me: error: cannot compute sizeof (short), 77
14787See \`config.log' for more details." >&2;}
14788 { (exit 1); exit 1; }; } ;;
14789esac
247f5006 14790else
e6cc62c6
VS
14791 if test "$cross_compiling" = yes; then
14792 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14793See \`config.log' for more details." >&5
14794echo "$as_me: error: cannot run test program while cross compiling
14795See \`config.log' for more details." >&2;}
14796 { (exit 1); exit 1; }; }
14797else
14798 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14799/* confdefs.h. */
14800_ACEOF
14801cat confdefs.h >>conftest.$ac_ext
14802cat >>conftest.$ac_ext <<_ACEOF
14803/* end confdefs.h. */
14804$ac_includes_default
14805long longval () { return (long) (sizeof (short)); }
14806unsigned long ulongval () { return (long) (sizeof (short)); }
a0b9e27f 14807#include <stdio.h>
e6cc62c6
VS
14808#include <stdlib.h>
14809int
14810main ()
a0b9e27f 14811{
e6cc62c6
VS
14812
14813 FILE *f = fopen ("conftest.val", "w");
14814 if (! f)
14815 exit (1);
14816 if (((long) (sizeof (short))) < 0)
14817 {
14818 long i = longval ();
14819 if (i != ((long) (sizeof (short))))
14820 exit (1);
14821 fprintf (f, "%ld\n", i);
14822 }
14823 else
14824 {
14825 unsigned long i = ulongval ();
14826 if (i != ((long) (sizeof (short))))
14827 exit (1);
14828 fprintf (f, "%lu\n", i);
14829 }
14830 exit (ferror (f) || fclose (f) != 0);
14831
14832 ;
14833 return 0;
a0b9e27f 14834}
e6cc62c6
VS
14835_ACEOF
14836rm -f conftest$ac_exeext
14837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14838 (eval $ac_link) 2>&5
14839 ac_status=$?
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843 (eval $ac_try) 2>&5
14844 ac_status=$?
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); }; }; then
14847 ac_cv_sizeof_short=`cat conftest.val`
14848else
14849 echo "$as_me: program exited with status $ac_status" >&5
14850echo "$as_me: failed program was:" >&5
14851sed 's/^/| /' conftest.$ac_ext >&5
14852
14853( exit $ac_status )
14854{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
14855See \`config.log' for more details." >&5
14856echo "$as_me: error: cannot compute sizeof (short), 77
14857See \`config.log' for more details." >&2;}
14858 { (exit 1); exit 1; }; }
14859fi
f95e4495 14860rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14861fi
14862fi
14863rm -f conftest.val
247f5006 14864else
a0b9e27f 14865 ac_cv_sizeof_short=0
247f5006 14866fi
247f5006 14867fi
e6cc62c6
VS
14868echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14869echo "${ECHO_T}$ac_cv_sizeof_short" >&6
14870cat >>confdefs.h <<_ACEOF
14871#define SIZEOF_SHORT $ac_cv_sizeof_short
14872_ACEOF
14873
14874
14875echo "$as_me:$LINENO: checking for void *" >&5
14876echo $ECHO_N "checking for void *... $ECHO_C" >&6
14877if test "${ac_cv_type_void_p+set}" = set; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14879else
14880 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14881/* confdefs.h. */
14882_ACEOF
14883cat confdefs.h >>conftest.$ac_ext
14884cat >>conftest.$ac_ext <<_ACEOF
14885/* end confdefs.h. */
14886$ac_includes_default
14887int
14888main ()
14889{
14890if ((void * *) 0)
14891 return 0;
14892if (sizeof (void *))
14893 return 0;
14894 ;
14895 return 0;
14896}
14897_ACEOF
14898rm -f conftest.$ac_objext
14899if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14900 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14901 ac_status=$?
f95e4495
VS
14902 grep -v '^ *+' conftest.er1 >conftest.err
14903 rm -f conftest.er1
14904 cat conftest.err >&5
e6cc62c6
VS
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); } &&
f95e4495
VS
14907 { ac_try='test -z "$ac_c_werror_flag"
14908 || test ! -s conftest.err'
14909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14910 (eval $ac_try) 2>&5
14911 ac_status=$?
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); }; } &&
14914 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14916 (eval $ac_try) 2>&5
14917 ac_status=$?
14918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14919 (exit $ac_status); }; }; then
14920 ac_cv_type_void_p=yes
14921else
14922 echo "$as_me: failed program was:" >&5
14923sed 's/^/| /' conftest.$ac_ext >&5
14924
14925ac_cv_type_void_p=no
14926fi
f95e4495 14927rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
14928fi
14929echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
14930echo "${ECHO_T}$ac_cv_type_void_p" >&6
14931
14932echo "$as_me:$LINENO: checking size of void *" >&5
14933echo $ECHO_N "checking size of void *... $ECHO_C" >&6
14934if test "${ac_cv_sizeof_void_p+set}" = set; then
14935 echo $ECHO_N "(cached) $ECHO_C" >&6
14936else
14937 if test "$ac_cv_type_void_p" = yes; then
14938 # The cast to unsigned long works around a bug in the HP C Compiler
14939 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14940 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14941 # This bug is HP SR number 8606223364.
14942 if test "$cross_compiling" = yes; then
14943 # Depending upon the size, compute the lo and hi bounds.
14944cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14945/* confdefs.h. */
14946_ACEOF
14947cat confdefs.h >>conftest.$ac_ext
14948cat >>conftest.$ac_ext <<_ACEOF
14949/* end confdefs.h. */
14950$ac_includes_default
14951int
14952main ()
14953{
14954static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)];
14955test_array [0] = 0
14956
14957 ;
14958 return 0;
14959}
14960_ACEOF
14961rm -f conftest.$ac_objext
14962if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 14963 (eval $ac_compile) 2>conftest.er1
e6cc62c6 14964 ac_status=$?
f95e4495
VS
14965 grep -v '^ *+' conftest.er1 >conftest.err
14966 rm -f conftest.er1
14967 cat conftest.err >&5
e6cc62c6
VS
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); } &&
f95e4495
VS
14970 { ac_try='test -z "$ac_c_werror_flag"
14971 || test ! -s conftest.err'
14972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973 (eval $ac_try) 2>&5
14974 ac_status=$?
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; } &&
14977 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
14978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979 (eval $ac_try) 2>&5
14980 ac_status=$?
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; }; then
14983 ac_lo=0 ac_mid=0
14984 while :; do
14985 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
14986/* confdefs.h. */
14987_ACEOF
14988cat confdefs.h >>conftest.$ac_ext
14989cat >>conftest.$ac_ext <<_ACEOF
14990/* end confdefs.h. */
14991$ac_includes_default
14992int
14993main ()
14994{
14995static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
14996test_array [0] = 0
247f5006 14997
e6cc62c6
VS
14998 ;
14999 return 0;
15000}
15001_ACEOF
15002rm -f conftest.$ac_objext
15003if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15004 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15005 ac_status=$?
f95e4495
VS
15006 grep -v '^ *+' conftest.er1 >conftest.err
15007 rm -f conftest.er1
15008 cat conftest.err >&5
e6cc62c6
VS
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); } &&
f95e4495
VS
15011 { ac_try='test -z "$ac_c_werror_flag"
15012 || test ! -s conftest.err'
15013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15014 (eval $ac_try) 2>&5
15015 ac_status=$?
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); }; } &&
15018 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15020 (eval $ac_try) 2>&5
15021 ac_status=$?
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 (exit $ac_status); }; }; then
15024 ac_hi=$ac_mid; break
15025else
15026 echo "$as_me: failed program was:" >&5
15027sed 's/^/| /' conftest.$ac_ext >&5
15028
15029ac_lo=`expr $ac_mid + 1`
f95e4495
VS
15030 if test $ac_lo -le $ac_mid; then
15031 ac_lo= ac_hi=
15032 break
15033 fi
15034 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 15035fi
f95e4495 15036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15037 done
15038else
15039 echo "$as_me: failed program was:" >&5
15040sed 's/^/| /' conftest.$ac_ext >&5
15041
15042cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15043/* confdefs.h. */
15044_ACEOF
15045cat confdefs.h >>conftest.$ac_ext
15046cat >>conftest.$ac_ext <<_ACEOF
15047/* end confdefs.h. */
15048$ac_includes_default
15049int
15050main ()
15051{
15052static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)];
15053test_array [0] = 0
247f5006 15054
e6cc62c6
VS
15055 ;
15056 return 0;
15057}
15058_ACEOF
15059rm -f conftest.$ac_objext
15060if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15061 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15062 ac_status=$?
f95e4495
VS
15063 grep -v '^ *+' conftest.er1 >conftest.err
15064 rm -f conftest.er1
15065 cat conftest.err >&5
e6cc62c6
VS
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } &&
f95e4495
VS
15068 { ac_try='test -z "$ac_c_werror_flag"
15069 || test ! -s conftest.err'
15070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071 (eval $ac_try) 2>&5
15072 ac_status=$?
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; } &&
15075 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077 (eval $ac_try) 2>&5
15078 ac_status=$?
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; }; then
15081 ac_hi=-1 ac_mid=-1
15082 while :; do
15083 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15084/* confdefs.h. */
15085_ACEOF
15086cat confdefs.h >>conftest.$ac_ext
15087cat >>conftest.$ac_ext <<_ACEOF
15088/* end confdefs.h. */
15089$ac_includes_default
15090int
15091main ()
15092{
15093static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)];
15094test_array [0] = 0
247f5006 15095
e6cc62c6
VS
15096 ;
15097 return 0;
15098}
15099_ACEOF
15100rm -f conftest.$ac_objext
15101if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15102 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15103 ac_status=$?
f95e4495
VS
15104 grep -v '^ *+' conftest.er1 >conftest.err
15105 rm -f conftest.er1
15106 cat conftest.err >&5
e6cc62c6
VS
15107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15108 (exit $ac_status); } &&
f95e4495
VS
15109 { ac_try='test -z "$ac_c_werror_flag"
15110 || test ! -s conftest.err'
15111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15112 (eval $ac_try) 2>&5
15113 ac_status=$?
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; } &&
15116 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 (eval $ac_try) 2>&5
15119 ac_status=$?
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; }; then
15122 ac_lo=$ac_mid; break
15123else
15124 echo "$as_me: failed program was:" >&5
15125sed 's/^/| /' conftest.$ac_ext >&5
15126
15127ac_hi=`expr '(' $ac_mid ')' - 1`
f95e4495
VS
15128 if test $ac_mid -le $ac_hi; then
15129 ac_lo= ac_hi=
15130 break
15131 fi
15132 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15133fi
f95e4495 15134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15135 done
a0b9e27f 15136else
e6cc62c6
VS
15137 echo "$as_me: failed program was:" >&5
15138sed 's/^/| /' conftest.$ac_ext >&5
15139
15140ac_lo= ac_hi=
15141fi
f95e4495 15142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15143fi
f95e4495 15144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15145# Binary search between lo and hi bounds.
15146while test "x$ac_lo" != "x$ac_hi"; do
15147 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15148 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15149/* confdefs.h. */
15150_ACEOF
15151cat confdefs.h >>conftest.$ac_ext
15152cat >>conftest.$ac_ext <<_ACEOF
15153/* end confdefs.h. */
15154$ac_includes_default
15155int
15156main ()
15157{
15158static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)];
15159test_array [0] = 0
15160
15161 ;
15162 return 0;
15163}
15164_ACEOF
15165rm -f conftest.$ac_objext
15166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15167 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15168 ac_status=$?
f95e4495
VS
15169 grep -v '^ *+' conftest.er1 >conftest.err
15170 rm -f conftest.er1
15171 cat conftest.err >&5
e6cc62c6
VS
15172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173 (exit $ac_status); } &&
f95e4495
VS
15174 { ac_try='test -z "$ac_c_werror_flag"
15175 || test ! -s conftest.err'
15176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15177 (eval $ac_try) 2>&5
15178 ac_status=$?
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); }; } &&
15181 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183 (eval $ac_try) 2>&5
15184 ac_status=$?
15185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186 (exit $ac_status); }; }; then
15187 ac_hi=$ac_mid
15188else
15189 echo "$as_me: failed program was:" >&5
15190sed 's/^/| /' conftest.$ac_ext >&5
15191
15192ac_lo=`expr '(' $ac_mid ')' + 1`
15193fi
f95e4495 15194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15195done
15196case $ac_lo in
15197?*) ac_cv_sizeof_void_p=$ac_lo;;
15198'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15199See \`config.log' for more details." >&5
15200echo "$as_me: error: cannot compute sizeof (void *), 77
15201See \`config.log' for more details." >&2;}
15202 { (exit 1); exit 1; }; } ;;
15203esac
247f5006 15204else
e6cc62c6
VS
15205 if test "$cross_compiling" = yes; then
15206 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15207See \`config.log' for more details." >&5
15208echo "$as_me: error: cannot run test program while cross compiling
15209See \`config.log' for more details." >&2;}
15210 { (exit 1); exit 1; }; }
15211else
15212 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15213/* confdefs.h. */
15214_ACEOF
15215cat confdefs.h >>conftest.$ac_ext
15216cat >>conftest.$ac_ext <<_ACEOF
15217/* end confdefs.h. */
15218$ac_includes_default
15219long longval () { return (long) (sizeof (void *)); }
15220unsigned long ulongval () { return (long) (sizeof (void *)); }
247f5006 15221#include <stdio.h>
e6cc62c6
VS
15222#include <stdlib.h>
15223int
15224main ()
247f5006 15225{
e6cc62c6
VS
15226
15227 FILE *f = fopen ("conftest.val", "w");
15228 if (! f)
15229 exit (1);
15230 if (((long) (sizeof (void *))) < 0)
15231 {
15232 long i = longval ();
15233 if (i != ((long) (sizeof (void *))))
15234 exit (1);
15235 fprintf (f, "%ld\n", i);
15236 }
15237 else
15238 {
15239 unsigned long i = ulongval ();
15240 if (i != ((long) (sizeof (void *))))
15241 exit (1);
15242 fprintf (f, "%lu\n", i);
15243 }
15244 exit (ferror (f) || fclose (f) != 0);
15245
15246 ;
15247 return 0;
5c6fa7d2 15248}
e6cc62c6
VS
15249_ACEOF
15250rm -f conftest$ac_exeext
15251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15252 (eval $ac_link) 2>&5
15253 ac_status=$?
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15257 (eval $ac_try) 2>&5
15258 ac_status=$?
15259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260 (exit $ac_status); }; }; then
15261 ac_cv_sizeof_void_p=`cat conftest.val`
15262else
15263 echo "$as_me: program exited with status $ac_status" >&5
15264echo "$as_me: failed program was:" >&5
15265sed 's/^/| /' conftest.$ac_ext >&5
15266
15267( exit $ac_status )
15268{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77
15269See \`config.log' for more details." >&5
15270echo "$as_me: error: cannot compute sizeof (void *), 77
15271See \`config.log' for more details." >&2;}
15272 { (exit 1); exit 1; }; }
15273fi
f95e4495 15274rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15275fi
15276fi
15277rm -f conftest.val
a0b9e27f 15278else
a0b9e27f
MB
15279 ac_cv_sizeof_void_p=0
15280fi
a0b9e27f 15281fi
e6cc62c6
VS
15282echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
15283echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
15284cat >>confdefs.h <<_ACEOF
15285#define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15286_ACEOF
15287
15288
15289echo "$as_me:$LINENO: checking for int" >&5
15290echo $ECHO_N "checking for int... $ECHO_C" >&6
15291if test "${ac_cv_type_int+set}" = set; then
15292 echo $ECHO_N "(cached) $ECHO_C" >&6
15293else
15294 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15295/* confdefs.h. */
15296_ACEOF
15297cat confdefs.h >>conftest.$ac_ext
15298cat >>conftest.$ac_ext <<_ACEOF
15299/* end confdefs.h. */
15300$ac_includes_default
15301int
15302main ()
15303{
15304if ((int *) 0)
15305 return 0;
15306if (sizeof (int))
15307 return 0;
15308 ;
15309 return 0;
15310}
15311_ACEOF
15312rm -f conftest.$ac_objext
15313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15314 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15315 ac_status=$?
f95e4495
VS
15316 grep -v '^ *+' conftest.er1 >conftest.err
15317 rm -f conftest.er1
15318 cat conftest.err >&5
e6cc62c6
VS
15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
f95e4495
VS
15321 { ac_try='test -z "$ac_c_werror_flag"
15322 || test ! -s conftest.err'
15323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324 (eval $ac_try) 2>&5
15325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; } &&
15328 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15331 ac_status=$?
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15334 ac_cv_type_int=yes
15335else
15336 echo "$as_me: failed program was:" >&5
15337sed 's/^/| /' conftest.$ac_ext >&5
15338
15339ac_cv_type_int=no
15340fi
f95e4495 15341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15342fi
15343echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15344echo "${ECHO_T}$ac_cv_type_int" >&6
15345
15346echo "$as_me:$LINENO: checking size of int" >&5
15347echo $ECHO_N "checking size of int... $ECHO_C" >&6
15348if test "${ac_cv_sizeof_int+set}" = set; then
15349 echo $ECHO_N "(cached) $ECHO_C" >&6
15350else
15351 if test "$ac_cv_type_int" = yes; then
15352 # The cast to unsigned long works around a bug in the HP C Compiler
15353 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15354 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15355 # This bug is HP SR number 8606223364.
15356 if test "$cross_compiling" = yes; then
15357 # Depending upon the size, compute the lo and hi bounds.
15358cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15359/* confdefs.h. */
15360_ACEOF
15361cat confdefs.h >>conftest.$ac_ext
15362cat >>conftest.$ac_ext <<_ACEOF
15363/* end confdefs.h. */
15364$ac_includes_default
15365int
15366main ()
15367{
15368static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15369test_array [0] = 0
8284b0c5 15370
e6cc62c6
VS
15371 ;
15372 return 0;
15373}
15374_ACEOF
15375rm -f conftest.$ac_objext
15376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15377 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15378 ac_status=$?
f95e4495
VS
15379 grep -v '^ *+' conftest.er1 >conftest.err
15380 rm -f conftest.er1
15381 cat conftest.err >&5
e6cc62c6
VS
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } &&
f95e4495
VS
15384 { ac_try='test -z "$ac_c_werror_flag"
15385 || test ! -s conftest.err'
15386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387 (eval $ac_try) 2>&5
15388 ac_status=$?
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; } &&
15391 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393 (eval $ac_try) 2>&5
15394 ac_status=$?
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; }; then
15397 ac_lo=0 ac_mid=0
15398 while :; do
15399 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15400/* confdefs.h. */
15401_ACEOF
15402cat confdefs.h >>conftest.$ac_ext
15403cat >>conftest.$ac_ext <<_ACEOF
15404/* end confdefs.h. */
15405$ac_includes_default
15406int
15407main ()
15408{
15409static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15410test_array [0] = 0
15411
15412 ;
15413 return 0;
15414}
15415_ACEOF
15416rm -f conftest.$ac_objext
15417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15418 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15419 ac_status=$?
f95e4495
VS
15420 grep -v '^ *+' conftest.er1 >conftest.err
15421 rm -f conftest.er1
15422 cat conftest.err >&5
e6cc62c6
VS
15423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424 (exit $ac_status); } &&
f95e4495
VS
15425 { ac_try='test -z "$ac_c_werror_flag"
15426 || test ! -s conftest.err'
15427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15428 (eval $ac_try) 2>&5
15429 ac_status=$?
15430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15431 (exit $ac_status); }; } &&
15432 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15434 (eval $ac_try) 2>&5
15435 ac_status=$?
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); }; }; then
15438 ac_hi=$ac_mid; break
15439else
15440 echo "$as_me: failed program was:" >&5
15441sed 's/^/| /' conftest.$ac_ext >&5
15442
15443ac_lo=`expr $ac_mid + 1`
f95e4495
VS
15444 if test $ac_lo -le $ac_mid; then
15445 ac_lo= ac_hi=
15446 break
15447 fi
15448 ac_mid=`expr 2 '*' $ac_mid + 1`
247f5006 15449fi
f95e4495 15450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15451 done
15452else
15453 echo "$as_me: failed program was:" >&5
15454sed 's/^/| /' conftest.$ac_ext >&5
15455
15456cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15457/* confdefs.h. */
15458_ACEOF
15459cat confdefs.h >>conftest.$ac_ext
15460cat >>conftest.$ac_ext <<_ACEOF
15461/* end confdefs.h. */
15462$ac_includes_default
15463int
15464main ()
15465{
15466static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15467test_array [0] = 0
247f5006 15468
e6cc62c6
VS
15469 ;
15470 return 0;
15471}
15472_ACEOF
15473rm -f conftest.$ac_objext
15474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15475 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15476 ac_status=$?
f95e4495
VS
15477 grep -v '^ *+' conftest.er1 >conftest.err
15478 rm -f conftest.er1
15479 cat conftest.err >&5
e6cc62c6
VS
15480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15481 (exit $ac_status); } &&
f95e4495
VS
15482 { ac_try='test -z "$ac_c_werror_flag"
15483 || test ! -s conftest.err'
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15486 ac_status=$?
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; } &&
15489 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15492 ac_status=$?
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; }; then
15495 ac_hi=-1 ac_mid=-1
15496 while :; do
15497 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15498/* confdefs.h. */
15499_ACEOF
15500cat confdefs.h >>conftest.$ac_ext
15501cat >>conftest.$ac_ext <<_ACEOF
15502/* end confdefs.h. */
15503$ac_includes_default
15504int
15505main ()
15506{
15507static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15508test_array [0] = 0
247f5006 15509
e6cc62c6
VS
15510 ;
15511 return 0;
15512}
15513_ACEOF
15514rm -f conftest.$ac_objext
15515if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15516 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15517 ac_status=$?
f95e4495
VS
15518 grep -v '^ *+' conftest.er1 >conftest.err
15519 rm -f conftest.er1
15520 cat conftest.err >&5
e6cc62c6
VS
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); } &&
f95e4495
VS
15523 { ac_try='test -z "$ac_c_werror_flag"
15524 || test ! -s conftest.err'
15525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15526 (eval $ac_try) 2>&5
15527 ac_status=$?
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); }; } &&
15530 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15532 (eval $ac_try) 2>&5
15533 ac_status=$?
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); }; }; then
15536 ac_lo=$ac_mid; break
15537else
15538 echo "$as_me: failed program was:" >&5
15539sed 's/^/| /' conftest.$ac_ext >&5
15540
15541ac_hi=`expr '(' $ac_mid ')' - 1`
f95e4495
VS
15542 if test $ac_mid -le $ac_hi; then
15543 ac_lo= ac_hi=
15544 break
15545 fi
15546 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15547fi
f95e4495 15548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15549 done
247f5006 15550else
e6cc62c6
VS
15551 echo "$as_me: failed program was:" >&5
15552sed 's/^/| /' conftest.$ac_ext >&5
15553
15554ac_lo= ac_hi=
15555fi
f95e4495 15556rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15557fi
f95e4495 15558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15559# Binary search between lo and hi bounds.
15560while test "x$ac_lo" != "x$ac_hi"; do
15561 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15562 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15563/* confdefs.h. */
15564_ACEOF
15565cat confdefs.h >>conftest.$ac_ext
15566cat >>conftest.$ac_ext <<_ACEOF
15567/* end confdefs.h. */
15568$ac_includes_default
15569int
15570main ()
15571{
15572static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15573test_array [0] = 0
15574
15575 ;
15576 return 0;
15577}
15578_ACEOF
15579rm -f conftest.$ac_objext
15580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15581 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15582 ac_status=$?
f95e4495
VS
15583 grep -v '^ *+' conftest.er1 >conftest.err
15584 rm -f conftest.er1
15585 cat conftest.err >&5
e6cc62c6
VS
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); } &&
f95e4495
VS
15588 { ac_try='test -z "$ac_c_werror_flag"
15589 || test ! -s conftest.err'
15590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15591 (eval $ac_try) 2>&5
15592 ac_status=$?
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; } &&
15595 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15597 (eval $ac_try) 2>&5
15598 ac_status=$?
15599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600 (exit $ac_status); }; }; then
15601 ac_hi=$ac_mid
15602else
15603 echo "$as_me: failed program was:" >&5
15604sed 's/^/| /' conftest.$ac_ext >&5
15605
15606ac_lo=`expr '(' $ac_mid ')' + 1`
15607fi
f95e4495 15608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15609done
15610case $ac_lo in
15611?*) ac_cv_sizeof_int=$ac_lo;;
15612'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15613See \`config.log' for more details." >&5
15614echo "$as_me: error: cannot compute sizeof (int), 77
15615See \`config.log' for more details." >&2;}
15616 { (exit 1); exit 1; }; } ;;
15617esac
a0b9e27f 15618else
e6cc62c6
VS
15619 if test "$cross_compiling" = yes; then
15620 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15621See \`config.log' for more details." >&5
15622echo "$as_me: error: cannot run test program while cross compiling
15623See \`config.log' for more details." >&2;}
15624 { (exit 1); exit 1; }; }
15625else
15626 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15627/* confdefs.h. */
15628_ACEOF
15629cat confdefs.h >>conftest.$ac_ext
15630cat >>conftest.$ac_ext <<_ACEOF
15631/* end confdefs.h. */
15632$ac_includes_default
15633long longval () { return (long) (sizeof (int)); }
15634unsigned long ulongval () { return (long) (sizeof (int)); }
a0b9e27f 15635#include <stdio.h>
e6cc62c6
VS
15636#include <stdlib.h>
15637int
15638main ()
247f5006 15639{
e6cc62c6
VS
15640
15641 FILE *f = fopen ("conftest.val", "w");
15642 if (! f)
15643 exit (1);
15644 if (((long) (sizeof (int))) < 0)
15645 {
15646 long i = longval ();
15647 if (i != ((long) (sizeof (int))))
15648 exit (1);
15649 fprintf (f, "%ld\n", i);
15650 }
15651 else
15652 {
15653 unsigned long i = ulongval ();
15654 if (i != ((long) (sizeof (int))))
15655 exit (1);
15656 fprintf (f, "%lu\n", i);
15657 }
15658 exit (ferror (f) || fclose (f) != 0);
15659
15660 ;
15661 return 0;
247f5006 15662}
e6cc62c6
VS
15663_ACEOF
15664rm -f conftest$ac_exeext
15665if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15666 (eval $ac_link) 2>&5
15667 ac_status=$?
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15671 (eval $ac_try) 2>&5
15672 ac_status=$?
15673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15674 (exit $ac_status); }; }; then
15675 ac_cv_sizeof_int=`cat conftest.val`
15676else
15677 echo "$as_me: program exited with status $ac_status" >&5
15678echo "$as_me: failed program was:" >&5
15679sed 's/^/| /' conftest.$ac_ext >&5
15680
15681( exit $ac_status )
15682{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15683See \`config.log' for more details." >&5
15684echo "$as_me: error: cannot compute sizeof (int), 77
15685See \`config.log' for more details." >&2;}
15686 { (exit 1); exit 1; }; }
15687fi
f95e4495 15688rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15689fi
15690fi
15691rm -f conftest.val
6f72b082 15692else
a0b9e27f 15693 ac_cv_sizeof_int=0
21d1c967 15694fi
698dcdb6 15695fi
e6cc62c6
VS
15696echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15697echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15698cat >>confdefs.h <<_ACEOF
15699#define SIZEOF_INT $ac_cv_sizeof_int
15700_ACEOF
15701
15702
15703echo "$as_me:$LINENO: checking for long" >&5
15704echo $ECHO_N "checking for long... $ECHO_C" >&6
15705if test "${ac_cv_type_long+set}" = set; then
15706 echo $ECHO_N "(cached) $ECHO_C" >&6
15707else
15708 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15709/* confdefs.h. */
15710_ACEOF
15711cat confdefs.h >>conftest.$ac_ext
15712cat >>conftest.$ac_ext <<_ACEOF
15713/* end confdefs.h. */
15714$ac_includes_default
15715int
15716main ()
15717{
15718if ((long *) 0)
15719 return 0;
15720if (sizeof (long))
15721 return 0;
15722 ;
15723 return 0;
15724}
15725_ACEOF
15726rm -f conftest.$ac_objext
15727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15728 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15729 ac_status=$?
f95e4495
VS
15730 grep -v '^ *+' conftest.er1 >conftest.err
15731 rm -f conftest.er1
15732 cat conftest.err >&5
e6cc62c6
VS
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); } &&
f95e4495
VS
15735 { ac_try='test -z "$ac_c_werror_flag"
15736 || test ! -s conftest.err'
15737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15738 (eval $ac_try) 2>&5
15739 ac_status=$?
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; } &&
15742 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15744 (eval $ac_try) 2>&5
15745 ac_status=$?
15746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15747 (exit $ac_status); }; }; then
15748 ac_cv_type_long=yes
15749else
15750 echo "$as_me: failed program was:" >&5
15751sed 's/^/| /' conftest.$ac_ext >&5
15752
15753ac_cv_type_long=no
15754fi
f95e4495 15755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15756fi
15757echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
15758echo "${ECHO_T}$ac_cv_type_long" >&6
15759
15760echo "$as_me:$LINENO: checking size of long" >&5
15761echo $ECHO_N "checking size of long... $ECHO_C" >&6
15762if test "${ac_cv_sizeof_long+set}" = set; then
15763 echo $ECHO_N "(cached) $ECHO_C" >&6
15764else
15765 if test "$ac_cv_type_long" = yes; then
15766 # The cast to unsigned long works around a bug in the HP C Compiler
15767 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15768 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15769 # This bug is HP SR number 8606223364.
15770 if test "$cross_compiling" = yes; then
15771 # Depending upon the size, compute the lo and hi bounds.
15772cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15773/* confdefs.h. */
15774_ACEOF
15775cat confdefs.h >>conftest.$ac_ext
15776cat >>conftest.$ac_ext <<_ACEOF
15777/* end confdefs.h. */
15778$ac_includes_default
15779int
15780main ()
15781{
15782static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
15783test_array [0] = 0
15784
15785 ;
15786 return 0;
15787}
15788_ACEOF
15789rm -f conftest.$ac_objext
15790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15791 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15792 ac_status=$?
f95e4495
VS
15793 grep -v '^ *+' conftest.er1 >conftest.err
15794 rm -f conftest.er1
15795 cat conftest.err >&5
e6cc62c6
VS
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); } &&
f95e4495
VS
15798 { ac_try='test -z "$ac_c_werror_flag"
15799 || test ! -s conftest.err'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15802 ac_status=$?
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; } &&
15805 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807 (eval $ac_try) 2>&5
15808 ac_status=$?
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; }; then
15811 ac_lo=0 ac_mid=0
15812 while :; do
15813 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15814/* confdefs.h. */
15815_ACEOF
15816cat confdefs.h >>conftest.$ac_ext
15817cat >>conftest.$ac_ext <<_ACEOF
15818/* end confdefs.h. */
15819$ac_includes_default
15820int
15821main ()
15822{
15823static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15824test_array [0] = 0
4f14bcd8 15825
e6cc62c6
VS
15826 ;
15827 return 0;
15828}
15829_ACEOF
15830rm -f conftest.$ac_objext
15831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15832 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15833 ac_status=$?
f95e4495
VS
15834 grep -v '^ *+' conftest.er1 >conftest.err
15835 rm -f conftest.er1
15836 cat conftest.err >&5
e6cc62c6
VS
15837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15838 (exit $ac_status); } &&
f95e4495
VS
15839 { ac_try='test -z "$ac_c_werror_flag"
15840 || test ! -s conftest.err'
15841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15842 (eval $ac_try) 2>&5
15843 ac_status=$?
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); }; } &&
15846 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848 (eval $ac_try) 2>&5
15849 ac_status=$?
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; }; then
15852 ac_hi=$ac_mid; break
15853else
15854 echo "$as_me: failed program was:" >&5
15855sed 's/^/| /' conftest.$ac_ext >&5
15856
15857ac_lo=`expr $ac_mid + 1`
f95e4495
VS
15858 if test $ac_lo -le $ac_mid; then
15859 ac_lo= ac_hi=
15860 break
15861 fi
15862 ac_mid=`expr 2 '*' $ac_mid + 1`
21d1c967 15863fi
f95e4495 15864rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15865 done
15866else
15867 echo "$as_me: failed program was:" >&5
15868sed 's/^/| /' conftest.$ac_ext >&5
15869
15870cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15871/* confdefs.h. */
15872_ACEOF
15873cat confdefs.h >>conftest.$ac_ext
15874cat >>conftest.$ac_ext <<_ACEOF
15875/* end confdefs.h. */
15876$ac_includes_default
15877int
15878main ()
15879{
15880static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
15881test_array [0] = 0
4f14bcd8 15882
e6cc62c6
VS
15883 ;
15884 return 0;
15885}
15886_ACEOF
15887rm -f conftest.$ac_objext
15888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15889 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15890 ac_status=$?
f95e4495
VS
15891 grep -v '^ *+' conftest.er1 >conftest.err
15892 rm -f conftest.er1
15893 cat conftest.err >&5
e6cc62c6
VS
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); } &&
f95e4495
VS
15896 { ac_try='test -z "$ac_c_werror_flag"
15897 || test ! -s conftest.err'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15900 ac_status=$?
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; } &&
15903 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905 (eval $ac_try) 2>&5
15906 ac_status=$?
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; }; then
15909 ac_hi=-1 ac_mid=-1
15910 while :; do
15911 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15912/* confdefs.h. */
15913_ACEOF
15914cat confdefs.h >>conftest.$ac_ext
15915cat >>conftest.$ac_ext <<_ACEOF
15916/* end confdefs.h. */
15917$ac_includes_default
15918int
15919main ()
15920{
15921static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
15922test_array [0] = 0
5c6fa7d2 15923
e6cc62c6
VS
15924 ;
15925 return 0;
15926}
15927_ACEOF
15928rm -f conftest.$ac_objext
15929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15930 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15931 ac_status=$?
f95e4495
VS
15932 grep -v '^ *+' conftest.er1 >conftest.err
15933 rm -f conftest.er1
15934 cat conftest.err >&5
e6cc62c6
VS
15935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15936 (exit $ac_status); } &&
f95e4495
VS
15937 { ac_try='test -z "$ac_c_werror_flag"
15938 || test ! -s conftest.err'
15939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15940 (eval $ac_try) 2>&5
15941 ac_status=$?
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); }; } &&
15944 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
15945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946 (eval $ac_try) 2>&5
15947 ac_status=$?
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; }; then
15950 ac_lo=$ac_mid; break
15951else
15952 echo "$as_me: failed program was:" >&5
15953sed 's/^/| /' conftest.$ac_ext >&5
15954
15955ac_hi=`expr '(' $ac_mid ')' - 1`
f95e4495
VS
15956 if test $ac_mid -le $ac_hi; then
15957 ac_lo= ac_hi=
15958 break
15959 fi
15960 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 15961fi
f95e4495 15962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15963 done
247f5006 15964else
e6cc62c6
VS
15965 echo "$as_me: failed program was:" >&5
15966sed 's/^/| /' conftest.$ac_ext >&5
15967
15968ac_lo= ac_hi=
15969fi
f95e4495 15970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 15971fi
f95e4495 15972rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
15973# Binary search between lo and hi bounds.
15974while test "x$ac_lo" != "x$ac_hi"; do
15975 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15976 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
15977/* confdefs.h. */
15978_ACEOF
15979cat confdefs.h >>conftest.$ac_ext
15980cat >>conftest.$ac_ext <<_ACEOF
15981/* end confdefs.h. */
15982$ac_includes_default
15983int
15984main ()
15985{
15986static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
15987test_array [0] = 0
15988
15989 ;
15990 return 0;
15991}
15992_ACEOF
15993rm -f conftest.$ac_objext
15994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 15995 (eval $ac_compile) 2>conftest.er1
e6cc62c6 15996 ac_status=$?
f95e4495
VS
15997 grep -v '^ *+' conftest.er1 >conftest.err
15998 rm -f conftest.er1
15999 cat conftest.err >&5
e6cc62c6
VS
16000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16001 (exit $ac_status); } &&
f95e4495
VS
16002 { ac_try='test -z "$ac_c_werror_flag"
16003 || test ! -s conftest.err'
16004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16005 (eval $ac_try) 2>&5
16006 ac_status=$?
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); }; } &&
16009 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16011 (eval $ac_try) 2>&5
16012 ac_status=$?
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); }; }; then
16015 ac_hi=$ac_mid
16016else
16017 echo "$as_me: failed program was:" >&5
16018sed 's/^/| /' conftest.$ac_ext >&5
16019
16020ac_lo=`expr '(' $ac_mid ')' + 1`
16021fi
f95e4495 16022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16023done
16024case $ac_lo in
16025?*) ac_cv_sizeof_long=$ac_lo;;
16026'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16027See \`config.log' for more details." >&5
16028echo "$as_me: error: cannot compute sizeof (long), 77
16029See \`config.log' for more details." >&2;}
16030 { (exit 1); exit 1; }; } ;;
16031esac
247f5006 16032else
e6cc62c6
VS
16033 if test "$cross_compiling" = yes; then
16034 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16035See \`config.log' for more details." >&5
16036echo "$as_me: error: cannot run test program while cross compiling
16037See \`config.log' for more details." >&2;}
16038 { (exit 1); exit 1; }; }
16039else
16040 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16041/* confdefs.h. */
16042_ACEOF
16043cat confdefs.h >>conftest.$ac_ext
16044cat >>conftest.$ac_ext <<_ACEOF
16045/* end confdefs.h. */
16046$ac_includes_default
16047long longval () { return (long) (sizeof (long)); }
16048unsigned long ulongval () { return (long) (sizeof (long)); }
a0b9e27f 16049#include <stdio.h>
e6cc62c6
VS
16050#include <stdlib.h>
16051int
16052main ()
247f5006 16053{
e6cc62c6
VS
16054
16055 FILE *f = fopen ("conftest.val", "w");
16056 if (! f)
16057 exit (1);
16058 if (((long) (sizeof (long))) < 0)
16059 {
16060 long i = longval ();
16061 if (i != ((long) (sizeof (long))))
16062 exit (1);
16063 fprintf (f, "%ld\n", i);
16064 }
16065 else
16066 {
16067 unsigned long i = ulongval ();
16068 if (i != ((long) (sizeof (long))))
16069 exit (1);
16070 fprintf (f, "%lu\n", i);
16071 }
16072 exit (ferror (f) || fclose (f) != 0);
16073
16074 ;
16075 return 0;
247f5006 16076}
e6cc62c6
VS
16077_ACEOF
16078rm -f conftest$ac_exeext
16079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16080 (eval $ac_link) 2>&5
16081 ac_status=$?
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16089 ac_cv_sizeof_long=`cat conftest.val`
16090else
16091 echo "$as_me: program exited with status $ac_status" >&5
16092echo "$as_me: failed program was:" >&5
16093sed 's/^/| /' conftest.$ac_ext >&5
16094
16095( exit $ac_status )
16096{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
16097See \`config.log' for more details." >&5
16098echo "$as_me: error: cannot compute sizeof (long), 77
16099See \`config.log' for more details." >&2;}
16100 { (exit 1); exit 1; }; }
16101fi
f95e4495 16102rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16103fi
16104fi
16105rm -f conftest.val
247f5006 16106else
a0b9e27f 16107 ac_cv_sizeof_long=0
247f5006 16108fi
247f5006 16109fi
e6cc62c6
VS
16110echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
16111echo "${ECHO_T}$ac_cv_sizeof_long" >&6
16112cat >>confdefs.h <<_ACEOF
a0b9e27f 16113#define SIZEOF_LONG $ac_cv_sizeof_long
e6cc62c6 16114_ACEOF
247f5006 16115
a0b9e27f
MB
16116
16117
16118case "${host}" in
16119 arm-*-linux* )
e6cc62c6
VS
16120 echo "$as_me:$LINENO: checking for long long" >&5
16121echo $ECHO_N "checking for long long... $ECHO_C" >&6
16122if test "${ac_cv_type_long_long+set}" = set; then
16123 echo $ECHO_N "(cached) $ECHO_C" >&6
16124else
16125 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16126/* confdefs.h. */
16127_ACEOF
16128cat confdefs.h >>conftest.$ac_ext
16129cat >>conftest.$ac_ext <<_ACEOF
16130/* end confdefs.h. */
16131$ac_includes_default
16132int
16133main ()
16134{
16135if ((long long *) 0)
16136 return 0;
16137if (sizeof (long long))
16138 return 0;
16139 ;
16140 return 0;
16141}
16142_ACEOF
16143rm -f conftest.$ac_objext
16144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16145 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16146 ac_status=$?
f95e4495
VS
16147 grep -v '^ *+' conftest.er1 >conftest.err
16148 rm -f conftest.er1
16149 cat conftest.err >&5
e6cc62c6
VS
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); } &&
f95e4495
VS
16152 { ac_try='test -z "$ac_c_werror_flag"
16153 || test ! -s conftest.err'
16154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16155 (eval $ac_try) 2>&5
16156 ac_status=$?
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); }; } &&
16159 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16161 (eval $ac_try) 2>&5
16162 ac_status=$?
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); }; }; then
16165 ac_cv_type_long_long=yes
16166else
16167 echo "$as_me: failed program was:" >&5
16168sed 's/^/| /' conftest.$ac_ext >&5
16169
16170ac_cv_type_long_long=no
16171fi
f95e4495 16172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16173fi
16174echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16175echo "${ECHO_T}$ac_cv_type_long_long" >&6
16176
16177echo "$as_me:$LINENO: checking size of long long" >&5
16178echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16179if test "${ac_cv_sizeof_long_long+set}" = set; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16181else
16182 if test "$ac_cv_type_long_long" = yes; then
16183 # The cast to unsigned long works around a bug in the HP C Compiler
16184 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16185 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16186 # This bug is HP SR number 8606223364.
a0b9e27f 16187 if test "$cross_compiling" = yes; then
e6cc62c6
VS
16188 # Depending upon the size, compute the lo and hi bounds.
16189cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16190/* confdefs.h. */
16191_ACEOF
16192cat confdefs.h >>conftest.$ac_ext
16193cat >>conftest.$ac_ext <<_ACEOF
16194/* end confdefs.h. */
16195$ac_includes_default
16196int
16197main ()
16198{
16199static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16200test_array [0] = 0
16201
16202 ;
16203 return 0;
16204}
16205_ACEOF
16206rm -f conftest.$ac_objext
16207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16208 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16209 ac_status=$?
f95e4495
VS
16210 grep -v '^ *+' conftest.er1 >conftest.err
16211 rm -f conftest.er1
16212 cat conftest.err >&5
e6cc62c6
VS
16213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16214 (exit $ac_status); } &&
f95e4495
VS
16215 { ac_try='test -z "$ac_c_werror_flag"
16216 || test ! -s conftest.err'
16217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16218 (eval $ac_try) 2>&5
16219 ac_status=$?
16220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221 (exit $ac_status); }; } &&
16222 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224 (eval $ac_try) 2>&5
16225 ac_status=$?
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; }; then
16228 ac_lo=0 ac_mid=0
16229 while :; do
16230 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16231/* confdefs.h. */
16232_ACEOF
16233cat confdefs.h >>conftest.$ac_ext
16234cat >>conftest.$ac_ext <<_ACEOF
16235/* end confdefs.h. */
16236$ac_includes_default
16237int
16238main ()
16239{
16240static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16241test_array [0] = 0
16242
16243 ;
16244 return 0;
16245}
16246_ACEOF
16247rm -f conftest.$ac_objext
16248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16249 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16250 ac_status=$?
f95e4495
VS
16251 grep -v '^ *+' conftest.er1 >conftest.err
16252 rm -f conftest.er1
16253 cat conftest.err >&5
e6cc62c6
VS
16254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16255 (exit $ac_status); } &&
f95e4495
VS
16256 { ac_try='test -z "$ac_c_werror_flag"
16257 || test ! -s conftest.err'
16258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16259 (eval $ac_try) 2>&5
16260 ac_status=$?
16261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16262 (exit $ac_status); }; } &&
16263 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16265 (eval $ac_try) 2>&5
16266 ac_status=$?
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); }; }; then
16269 ac_hi=$ac_mid; break
16270else
16271 echo "$as_me: failed program was:" >&5
16272sed 's/^/| /' conftest.$ac_ext >&5
16273
16274ac_lo=`expr $ac_mid + 1`
f95e4495
VS
16275 if test $ac_lo -le $ac_mid; then
16276 ac_lo= ac_hi=
16277 break
16278 fi
16279 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 16280fi
f95e4495 16281rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16282 done
16283else
16284 echo "$as_me: failed program was:" >&5
16285sed 's/^/| /' conftest.$ac_ext >&5
16286
16287cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16288/* confdefs.h. */
16289_ACEOF
16290cat confdefs.h >>conftest.$ac_ext
16291cat >>conftest.$ac_ext <<_ACEOF
16292/* end confdefs.h. */
16293$ac_includes_default
16294int
16295main ()
16296{
16297static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16298test_array [0] = 0
16299
16300 ;
16301 return 0;
16302}
16303_ACEOF
16304rm -f conftest.$ac_objext
16305if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16306 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16307 ac_status=$?
f95e4495
VS
16308 grep -v '^ *+' conftest.er1 >conftest.err
16309 rm -f conftest.er1
16310 cat conftest.err >&5
e6cc62c6
VS
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); } &&
f95e4495
VS
16313 { ac_try='test -z "$ac_c_werror_flag"
16314 || test ! -s conftest.err'
16315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16316 (eval $ac_try) 2>&5
16317 ac_status=$?
16318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319 (exit $ac_status); }; } &&
16320 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322 (eval $ac_try) 2>&5
16323 ac_status=$?
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; }; then
16326 ac_hi=-1 ac_mid=-1
16327 while :; do
16328 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16329/* confdefs.h. */
16330_ACEOF
16331cat confdefs.h >>conftest.$ac_ext
16332cat >>conftest.$ac_ext <<_ACEOF
16333/* end confdefs.h. */
16334$ac_includes_default
16335int
16336main ()
16337{
16338static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16339test_array [0] = 0
16340
16341 ;
16342 return 0;
16343}
16344_ACEOF
16345rm -f conftest.$ac_objext
16346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16347 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16348 ac_status=$?
f95e4495
VS
16349 grep -v '^ *+' conftest.er1 >conftest.err
16350 rm -f conftest.er1
16351 cat conftest.err >&5
e6cc62c6
VS
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); } &&
f95e4495
VS
16354 { ac_try='test -z "$ac_c_werror_flag"
16355 || test ! -s conftest.err'
16356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16357 (eval $ac_try) 2>&5
16358 ac_status=$?
16359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16360 (exit $ac_status); }; } &&
16361 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16363 (eval $ac_try) 2>&5
16364 ac_status=$?
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }; }; then
16367 ac_lo=$ac_mid; break
16368else
16369 echo "$as_me: failed program was:" >&5
16370sed 's/^/| /' conftest.$ac_ext >&5
16371
16372ac_hi=`expr '(' $ac_mid ')' - 1`
f95e4495
VS
16373 if test $ac_mid -le $ac_hi; then
16374 ac_lo= ac_hi=
16375 break
16376 fi
16377 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16378fi
f95e4495 16379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16380 done
16381else
16382 echo "$as_me: failed program was:" >&5
16383sed 's/^/| /' conftest.$ac_ext >&5
16384
16385ac_lo= ac_hi=
16386fi
f95e4495 16387rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16388fi
f95e4495 16389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16390# Binary search between lo and hi bounds.
16391while test "x$ac_lo" != "x$ac_hi"; do
16392 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16393 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16394/* confdefs.h. */
16395_ACEOF
16396cat confdefs.h >>conftest.$ac_ext
16397cat >>conftest.$ac_ext <<_ACEOF
16398/* end confdefs.h. */
16399$ac_includes_default
16400int
16401main ()
16402{
16403static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16404test_array [0] = 0
16405
16406 ;
16407 return 0;
16408}
16409_ACEOF
16410rm -f conftest.$ac_objext
16411if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16412 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16413 ac_status=$?
f95e4495
VS
16414 grep -v '^ *+' conftest.er1 >conftest.err
16415 rm -f conftest.er1
16416 cat conftest.err >&5
e6cc62c6
VS
16417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16418 (exit $ac_status); } &&
f95e4495
VS
16419 { ac_try='test -z "$ac_c_werror_flag"
16420 || test ! -s conftest.err'
16421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16422 (eval $ac_try) 2>&5
16423 ac_status=$?
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); }; } &&
16426 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16428 (eval $ac_try) 2>&5
16429 ac_status=$?
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; }; then
16432 ac_hi=$ac_mid
16433else
16434 echo "$as_me: failed program was:" >&5
16435sed 's/^/| /' conftest.$ac_ext >&5
16436
16437ac_lo=`expr '(' $ac_mid ')' + 1`
16438fi
f95e4495 16439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16440done
16441case $ac_lo in
16442?*) ac_cv_sizeof_long_long=$ac_lo;;
16443'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16444See \`config.log' for more details." >&5
16445echo "$as_me: error: cannot compute sizeof (long long), 77
16446See \`config.log' for more details." >&2;}
16447 { (exit 1); exit 1; }; } ;;
16448esac
a0b9e27f 16449else
e6cc62c6
VS
16450 if test "$cross_compiling" = yes; then
16451 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16452See \`config.log' for more details." >&5
16453echo "$as_me: error: cannot run test program while cross compiling
16454See \`config.log' for more details." >&2;}
16455 { (exit 1); exit 1; }; }
16456else
16457 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16458/* confdefs.h. */
16459_ACEOF
16460cat confdefs.h >>conftest.$ac_ext
16461cat >>conftest.$ac_ext <<_ACEOF
16462/* end confdefs.h. */
16463$ac_includes_default
16464long longval () { return (long) (sizeof (long long)); }
16465unsigned long ulongval () { return (long) (sizeof (long long)); }
a0b9e27f 16466#include <stdio.h>
e6cc62c6
VS
16467#include <stdlib.h>
16468int
16469main ()
247f5006 16470{
e6cc62c6
VS
16471
16472 FILE *f = fopen ("conftest.val", "w");
16473 if (! f)
16474 exit (1);
16475 if (((long) (sizeof (long long))) < 0)
16476 {
16477 long i = longval ();
16478 if (i != ((long) (sizeof (long long))))
16479 exit (1);
16480 fprintf (f, "%ld\n", i);
16481 }
16482 else
16483 {
16484 unsigned long i = ulongval ();
16485 if (i != ((long) (sizeof (long long))))
16486 exit (1);
16487 fprintf (f, "%lu\n", i);
16488 }
16489 exit (ferror (f) || fclose (f) != 0);
16490
16491 ;
16492 return 0;
247f5006 16493}
e6cc62c6
VS
16494_ACEOF
16495rm -f conftest$ac_exeext
16496if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16497 (eval $ac_link) 2>&5
16498 ac_status=$?
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16502 (eval $ac_try) 2>&5
16503 ac_status=$?
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); }; }; then
16506 ac_cv_sizeof_long_long=`cat conftest.val`
16507else
16508 echo "$as_me: program exited with status $ac_status" >&5
16509echo "$as_me: failed program was:" >&5
16510sed 's/^/| /' conftest.$ac_ext >&5
16511
16512( exit $ac_status )
16513{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16514See \`config.log' for more details." >&5
16515echo "$as_me: error: cannot compute sizeof (long long), 77
16516See \`config.log' for more details." >&2;}
16517 { (exit 1); exit 1; }; }
16518fi
f95e4495 16519rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16520fi
16521fi
16522rm -f conftest.val
7b4a847f 16523else
a0b9e27f 16524 ac_cv_sizeof_long_long=0
5c6fa7d2
RR
16525fi
16526fi
e6cc62c6
VS
16527echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16528echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16529cat >>confdefs.h <<_ACEOF
16530#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
16531_ACEOF
16532
16533
16534 ;;
16535 *-hp-hpux* )
16536 echo "$as_me:$LINENO: checking for long long" >&5
16537echo $ECHO_N "checking for long long... $ECHO_C" >&6
16538if test "${ac_cv_type_long_long+set}" = set; then
16539 echo $ECHO_N "(cached) $ECHO_C" >&6
16540else
16541 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16542/* confdefs.h. */
16543_ACEOF
16544cat confdefs.h >>conftest.$ac_ext
16545cat >>conftest.$ac_ext <<_ACEOF
16546/* end confdefs.h. */
16547$ac_includes_default
16548int
16549main ()
16550{
16551if ((long long *) 0)
16552 return 0;
16553if (sizeof (long long))
16554 return 0;
16555 ;
16556 return 0;
16557}
16558_ACEOF
16559rm -f conftest.$ac_objext
16560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16561 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16562 ac_status=$?
f95e4495
VS
16563 grep -v '^ *+' conftest.er1 >conftest.err
16564 rm -f conftest.er1
16565 cat conftest.err >&5
e6cc62c6
VS
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } &&
f95e4495
VS
16568 { ac_try='test -z "$ac_c_werror_flag"
16569 || test ! -s conftest.err'
16570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16571 (eval $ac_try) 2>&5
16572 ac_status=$?
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); }; } &&
16575 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16577 (eval $ac_try) 2>&5
16578 ac_status=$?
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); }; }; then
16581 ac_cv_type_long_long=yes
16582else
16583 echo "$as_me: failed program was:" >&5
16584sed 's/^/| /' conftest.$ac_ext >&5
16585
16586ac_cv_type_long_long=no
16587fi
f95e4495 16588rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16589fi
16590echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
16591echo "${ECHO_T}$ac_cv_type_long_long" >&6
16592
16593echo "$as_me:$LINENO: checking size of long long" >&5
16594echo $ECHO_N "checking size of long long... $ECHO_C" >&6
16595if test "${ac_cv_sizeof_long_long+set}" = set; then
16596 echo $ECHO_N "(cached) $ECHO_C" >&6
16597else
16598 if test "$ac_cv_type_long_long" = yes; then
16599 # The cast to unsigned long works around a bug in the HP C Compiler
16600 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16601 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16602 # This bug is HP SR number 8606223364.
16603 if test "$cross_compiling" = yes; then
16604 # Depending upon the size, compute the lo and hi bounds.
16605cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16606/* confdefs.h. */
16607_ACEOF
16608cat confdefs.h >>conftest.$ac_ext
16609cat >>conftest.$ac_ext <<_ACEOF
16610/* end confdefs.h. */
16611$ac_includes_default
16612int
16613main ()
16614{
16615static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
16616test_array [0] = 0
16617
16618 ;
16619 return 0;
16620}
16621_ACEOF
16622rm -f conftest.$ac_objext
16623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16624 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16625 ac_status=$?
f95e4495
VS
16626 grep -v '^ *+' conftest.er1 >conftest.err
16627 rm -f conftest.er1
16628 cat conftest.err >&5
e6cc62c6
VS
16629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16630 (exit $ac_status); } &&
f95e4495
VS
16631 { ac_try='test -z "$ac_c_werror_flag"
16632 || test ! -s conftest.err'
16633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16634 (eval $ac_try) 2>&5
16635 ac_status=$?
16636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16637 (exit $ac_status); }; } &&
16638 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16640 (eval $ac_try) 2>&5
16641 ac_status=$?
16642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); }; }; then
16644 ac_lo=0 ac_mid=0
16645 while :; do
16646 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16647/* confdefs.h. */
16648_ACEOF
16649cat confdefs.h >>conftest.$ac_ext
16650cat >>conftest.$ac_ext <<_ACEOF
16651/* end confdefs.h. */
16652$ac_includes_default
16653int
16654main ()
16655{
16656static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16657test_array [0] = 0
8284b0c5 16658
e6cc62c6
VS
16659 ;
16660 return 0;
16661}
16662_ACEOF
16663rm -f conftest.$ac_objext
16664if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16665 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16666 ac_status=$?
f95e4495
VS
16667 grep -v '^ *+' conftest.er1 >conftest.err
16668 rm -f conftest.er1
16669 cat conftest.err >&5
e6cc62c6
VS
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); } &&
f95e4495
VS
16672 { ac_try='test -z "$ac_c_werror_flag"
16673 || test ! -s conftest.err'
16674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675 (eval $ac_try) 2>&5
16676 ac_status=$?
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; } &&
16679 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16682 ac_status=$?
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685 ac_hi=$ac_mid; break
16686else
16687 echo "$as_me: failed program was:" >&5
16688sed 's/^/| /' conftest.$ac_ext >&5
16689
16690ac_lo=`expr $ac_mid + 1`
f95e4495
VS
16691 if test $ac_lo -le $ac_mid; then
16692 ac_lo= ac_hi=
16693 break
16694 fi
16695 ac_mid=`expr 2 '*' $ac_mid + 1`
a0b9e27f 16696fi
f95e4495 16697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16698 done
16699else
16700 echo "$as_me: failed program was:" >&5
16701sed 's/^/| /' conftest.$ac_ext >&5
16702
16703cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16704/* confdefs.h. */
16705_ACEOF
16706cat confdefs.h >>conftest.$ac_ext
16707cat >>conftest.$ac_ext <<_ACEOF
16708/* end confdefs.h. */
16709$ac_includes_default
16710int
16711main ()
16712{
16713static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
16714test_array [0] = 0
a0b9e27f 16715
e6cc62c6
VS
16716 ;
16717 return 0;
16718}
16719_ACEOF
16720rm -f conftest.$ac_objext
16721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16722 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16723 ac_status=$?
f95e4495
VS
16724 grep -v '^ *+' conftest.er1 >conftest.err
16725 rm -f conftest.er1
16726 cat conftest.err >&5
e6cc62c6
VS
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); } &&
f95e4495
VS
16729 { ac_try='test -z "$ac_c_werror_flag"
16730 || test ! -s conftest.err'
16731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16732 (eval $ac_try) 2>&5
16733 ac_status=$?
16734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16735 (exit $ac_status); }; } &&
16736 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16738 (eval $ac_try) 2>&5
16739 ac_status=$?
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; }; then
16742 ac_hi=-1 ac_mid=-1
16743 while :; do
16744 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16745/* confdefs.h. */
16746_ACEOF
16747cat confdefs.h >>conftest.$ac_ext
16748cat >>conftest.$ac_ext <<_ACEOF
16749/* end confdefs.h. */
16750$ac_includes_default
16751int
16752main ()
16753{
16754static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
16755test_array [0] = 0
a0b9e27f 16756
e6cc62c6
VS
16757 ;
16758 return 0;
16759}
16760_ACEOF
16761rm -f conftest.$ac_objext
16762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16763 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16764 ac_status=$?
f95e4495
VS
16765 grep -v '^ *+' conftest.er1 >conftest.err
16766 rm -f conftest.er1
16767 cat conftest.err >&5
e6cc62c6
VS
16768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16769 (exit $ac_status); } &&
f95e4495
VS
16770 { ac_try='test -z "$ac_c_werror_flag"
16771 || test ! -s conftest.err'
16772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16773 (eval $ac_try) 2>&5
16774 ac_status=$?
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; } &&
16777 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16779 (eval $ac_try) 2>&5
16780 ac_status=$?
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
16783 ac_lo=$ac_mid; break
16784else
16785 echo "$as_me: failed program was:" >&5
16786sed 's/^/| /' conftest.$ac_ext >&5
16787
16788ac_hi=`expr '(' $ac_mid ')' - 1`
f95e4495
VS
16789 if test $ac_mid -le $ac_hi; then
16790 ac_lo= ac_hi=
16791 break
16792 fi
16793 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 16794fi
f95e4495 16795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16796 done
8284b0c5 16797else
e6cc62c6
VS
16798 echo "$as_me: failed program was:" >&5
16799sed 's/^/| /' conftest.$ac_ext >&5
16800
16801ac_lo= ac_hi=
16802fi
f95e4495 16803rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 16804fi
f95e4495 16805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16806# Binary search between lo and hi bounds.
16807while test "x$ac_lo" != "x$ac_hi"; do
16808 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16809 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16810/* confdefs.h. */
16811_ACEOF
16812cat confdefs.h >>conftest.$ac_ext
16813cat >>conftest.$ac_ext <<_ACEOF
16814/* end confdefs.h. */
16815$ac_includes_default
16816int
16817main ()
16818{
16819static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
16820test_array [0] = 0
16821
16822 ;
16823 return 0;
16824}
16825_ACEOF
16826rm -f conftest.$ac_objext
16827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16828 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16829 ac_status=$?
f95e4495
VS
16830 grep -v '^ *+' conftest.er1 >conftest.err
16831 rm -f conftest.er1
16832 cat conftest.err >&5
e6cc62c6
VS
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } &&
f95e4495
VS
16835 { ac_try='test -z "$ac_c_werror_flag"
16836 || test ! -s conftest.err'
16837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16838 (eval $ac_try) 2>&5
16839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); }; } &&
16842 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16844 (eval $ac_try) 2>&5
16845 ac_status=$?
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); }; }; then
16848 ac_hi=$ac_mid
16849else
16850 echo "$as_me: failed program was:" >&5
16851sed 's/^/| /' conftest.$ac_ext >&5
16852
16853ac_lo=`expr '(' $ac_mid ')' + 1`
16854fi
f95e4495 16855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16856done
16857case $ac_lo in
16858?*) ac_cv_sizeof_long_long=$ac_lo;;
16859'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16860See \`config.log' for more details." >&5
16861echo "$as_me: error: cannot compute sizeof (long long), 77
16862See \`config.log' for more details." >&2;}
16863 { (exit 1); exit 1; }; } ;;
16864esac
8284b0c5 16865else
e6cc62c6
VS
16866 if test "$cross_compiling" = yes; then
16867 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16868See \`config.log' for more details." >&5
16869echo "$as_me: error: cannot run test program while cross compiling
16870See \`config.log' for more details." >&2;}
16871 { (exit 1); exit 1; }; }
16872else
16873 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16874/* confdefs.h. */
16875_ACEOF
16876cat confdefs.h >>conftest.$ac_ext
16877cat >>conftest.$ac_ext <<_ACEOF
16878/* end confdefs.h. */
16879$ac_includes_default
16880long longval () { return (long) (sizeof (long long)); }
16881unsigned long ulongval () { return (long) (sizeof (long long)); }
8284b0c5 16882#include <stdio.h>
e6cc62c6
VS
16883#include <stdlib.h>
16884int
16885main ()
8284b0c5 16886{
e6cc62c6
VS
16887
16888 FILE *f = fopen ("conftest.val", "w");
16889 if (! f)
16890 exit (1);
16891 if (((long) (sizeof (long long))) < 0)
16892 {
16893 long i = longval ();
16894 if (i != ((long) (sizeof (long long))))
16895 exit (1);
16896 fprintf (f, "%ld\n", i);
16897 }
16898 else
16899 {
16900 unsigned long i = ulongval ();
16901 if (i != ((long) (sizeof (long long))))
16902 exit (1);
16903 fprintf (f, "%lu\n", i);
16904 }
16905 exit (ferror (f) || fclose (f) != 0);
16906
16907 ;
16908 return 0;
8284b0c5 16909}
e6cc62c6
VS
16910_ACEOF
16911rm -f conftest$ac_exeext
16912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16913 (eval $ac_link) 2>&5
16914 ac_status=$?
16915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16918 (eval $ac_try) 2>&5
16919 ac_status=$?
16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16921 (exit $ac_status); }; }; then
16922 ac_cv_sizeof_long_long=`cat conftest.val`
16923else
16924 echo "$as_me: program exited with status $ac_status" >&5
16925echo "$as_me: failed program was:" >&5
16926sed 's/^/| /' conftest.$ac_ext >&5
16927
16928( exit $ac_status )
16929{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
16930See \`config.log' for more details." >&5
16931echo "$as_me: error: cannot compute sizeof (long long), 77
16932See \`config.log' for more details." >&2;}
16933 { (exit 1); exit 1; }; }
16934fi
f95e4495 16935rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
16936fi
16937fi
16938rm -f conftest.val
5c6fa7d2
RR
16939else
16940 ac_cv_sizeof_long_long=0
52127426 16941fi
4f57cf11 16942fi
e6cc62c6
VS
16943echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
16944echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
16945cat >>confdefs.h <<_ACEOF
4f57cf11 16946#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 16947_ACEOF
4f57cf11
GD
16948
16949
16950 if test "$ac_cv_sizeof_long_long" != "0"; then
16951 CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG"
16952 fi
16953 ;;
16954 * )
e6cc62c6
VS
16955 echo "$as_me:$LINENO: checking for long long" >&5
16956echo $ECHO_N "checking for long long... $ECHO_C" >&6
16957if test "${ac_cv_type_long_long+set}" = set; then
16958 echo $ECHO_N "(cached) $ECHO_C" >&6
16959else
16960 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
16961/* confdefs.h. */
16962_ACEOF
16963cat confdefs.h >>conftest.$ac_ext
16964cat >>conftest.$ac_ext <<_ACEOF
16965/* end confdefs.h. */
16966$ac_includes_default
16967int
16968main ()
16969{
16970if ((long long *) 0)
16971 return 0;
16972if (sizeof (long long))
16973 return 0;
16974 ;
16975 return 0;
16976}
16977_ACEOF
16978rm -f conftest.$ac_objext
16979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 16980 (eval $ac_compile) 2>conftest.er1
e6cc62c6 16981 ac_status=$?
f95e4495
VS
16982 grep -v '^ *+' conftest.er1 >conftest.err
16983 rm -f conftest.er1
16984 cat conftest.err >&5
e6cc62c6
VS
16985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16986 (exit $ac_status); } &&
f95e4495
VS
16987 { ac_try='test -z "$ac_c_werror_flag"
16988 || test ! -s conftest.err'
16989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16990 (eval $ac_try) 2>&5
16991 ac_status=$?
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16997 ac_status=$?
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; }; then
17000 ac_cv_type_long_long=yes
17001else
17002 echo "$as_me: failed program was:" >&5
17003sed 's/^/| /' conftest.$ac_ext >&5
17004
17005ac_cv_type_long_long=no
17006fi
f95e4495 17007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17008fi
17009echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
17010echo "${ECHO_T}$ac_cv_type_long_long" >&6
17011
17012echo "$as_me:$LINENO: checking size of long long" >&5
17013echo $ECHO_N "checking size of long long... $ECHO_C" >&6
17014if test "${ac_cv_sizeof_long_long+set}" = set; then
17015 echo $ECHO_N "(cached) $ECHO_C" >&6
17016else
17017 if test "$ac_cv_type_long_long" = yes; then
17018 # The cast to unsigned long works around a bug in the HP C Compiler
17019 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17020 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17021 # This bug is HP SR number 8606223364.
4f57cf11 17022 if test "$cross_compiling" = yes; then
e6cc62c6
VS
17023 # Depending upon the size, compute the lo and hi bounds.
17024cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17025/* confdefs.h. */
17026_ACEOF
17027cat confdefs.h >>conftest.$ac_ext
17028cat >>conftest.$ac_ext <<_ACEOF
17029/* end confdefs.h. */
17030$ac_includes_default
17031int
17032main ()
17033{
17034static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
17035test_array [0] = 0
17036
17037 ;
17038 return 0;
17039}
17040_ACEOF
17041rm -f conftest.$ac_objext
17042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 17043 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17044 ac_status=$?
f95e4495
VS
17045 grep -v '^ *+' conftest.er1 >conftest.err
17046 rm -f conftest.er1
17047 cat conftest.err >&5
e6cc62c6
VS
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } &&
f95e4495
VS
17050 { ac_try='test -z "$ac_c_werror_flag"
17051 || test ! -s conftest.err'
17052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17054 ac_status=$?
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; } &&
17057 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17059 (eval $ac_try) 2>&5
17060 ac_status=$?
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; }; then
17063 ac_lo=0 ac_mid=0
17064 while :; do
17065 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17066/* confdefs.h. */
17067_ACEOF
17068cat confdefs.h >>conftest.$ac_ext
17069cat >>conftest.$ac_ext <<_ACEOF
17070/* end confdefs.h. */
17071$ac_includes_default
17072int
17073main ()
17074{
17075static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17076test_array [0] = 0
17077
17078 ;
17079 return 0;
17080}
17081_ACEOF
17082rm -f conftest.$ac_objext
17083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 17084 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17085 ac_status=$?
f95e4495
VS
17086 grep -v '^ *+' conftest.er1 >conftest.err
17087 rm -f conftest.er1
17088 cat conftest.err >&5
e6cc62c6
VS
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); } &&
f95e4495
VS
17091 { ac_try='test -z "$ac_c_werror_flag"
17092 || test ! -s conftest.err'
17093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17094 (eval $ac_try) 2>&5
17095 ac_status=$?
17096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17097 (exit $ac_status); }; } &&
17098 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17100 (eval $ac_try) 2>&5
17101 ac_status=$?
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); }; }; then
17104 ac_hi=$ac_mid; break
17105else
17106 echo "$as_me: failed program was:" >&5
17107sed 's/^/| /' conftest.$ac_ext >&5
17108
17109ac_lo=`expr $ac_mid + 1`
f95e4495
VS
17110 if test $ac_lo -le $ac_mid; then
17111 ac_lo= ac_hi=
17112 break
17113 fi
17114 ac_mid=`expr 2 '*' $ac_mid + 1`
e6cc62c6 17115fi
f95e4495 17116rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17117 done
17118else
17119 echo "$as_me: failed program was:" >&5
17120sed 's/^/| /' conftest.$ac_ext >&5
17121
17122cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17123/* confdefs.h. */
17124_ACEOF
17125cat confdefs.h >>conftest.$ac_ext
17126cat >>conftest.$ac_ext <<_ACEOF
17127/* end confdefs.h. */
17128$ac_includes_default
17129int
17130main ()
17131{
17132static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
17133test_array [0] = 0
17134
17135 ;
17136 return 0;
17137}
17138_ACEOF
17139rm -f conftest.$ac_objext
17140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 17141 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17142 ac_status=$?
f95e4495
VS
17143 grep -v '^ *+' conftest.er1 >conftest.err
17144 rm -f conftest.er1
17145 cat conftest.err >&5
e6cc62c6
VS
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); } &&
f95e4495
VS
17148 { ac_try='test -z "$ac_c_werror_flag"
17149 || test ! -s conftest.err'
17150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17151 (eval $ac_try) 2>&5
17152 ac_status=$?
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); }; } &&
17155 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17157 (eval $ac_try) 2>&5
17158 ac_status=$?
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); }; }; then
17161 ac_hi=-1 ac_mid=-1
17162 while :; do
17163 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17164/* confdefs.h. */
17165_ACEOF
17166cat confdefs.h >>conftest.$ac_ext
17167cat >>conftest.$ac_ext <<_ACEOF
17168/* end confdefs.h. */
17169$ac_includes_default
17170int
17171main ()
17172{
17173static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
17174test_array [0] = 0
17175
17176 ;
17177 return 0;
17178}
17179_ACEOF
17180rm -f conftest.$ac_objext
17181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 17182 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17183 ac_status=$?
f95e4495
VS
17184 grep -v '^ *+' conftest.er1 >conftest.err
17185 rm -f conftest.er1
17186 cat conftest.err >&5
e6cc62c6
VS
17187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188 (exit $ac_status); } &&
f95e4495
VS
17189 { ac_try='test -z "$ac_c_werror_flag"
17190 || test ! -s conftest.err'
17191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17192 (eval $ac_try) 2>&5
17193 ac_status=$?
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); }; } &&
17196 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198 (eval $ac_try) 2>&5
17199 ac_status=$?
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; }; then
17202 ac_lo=$ac_mid; break
17203else
17204 echo "$as_me: failed program was:" >&5
17205sed 's/^/| /' conftest.$ac_ext >&5
17206
17207ac_hi=`expr '(' $ac_mid ')' - 1`
f95e4495
VS
17208 if test $ac_mid -le $ac_hi; then
17209 ac_lo= ac_hi=
17210 break
17211 fi
17212 ac_mid=`expr 2 '*' $ac_mid`
e6cc62c6 17213fi
f95e4495 17214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17215 done
4f57cf11 17216else
e6cc62c6
VS
17217 echo "$as_me: failed program was:" >&5
17218sed 's/^/| /' conftest.$ac_ext >&5
17219
17220ac_lo= ac_hi=
17221fi
f95e4495 17222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17223fi
f95e4495 17224rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17225# Binary search between lo and hi bounds.
17226while test "x$ac_lo" != "x$ac_hi"; do
17227 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17228 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17229/* confdefs.h. */
17230_ACEOF
17231cat confdefs.h >>conftest.$ac_ext
17232cat >>conftest.$ac_ext <<_ACEOF
17233/* end confdefs.h. */
17234$ac_includes_default
17235int
17236main ()
17237{
17238static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
17239test_array [0] = 0
17240
17241 ;
17242 return 0;
17243}
17244_ACEOF
17245rm -f conftest.$ac_objext
17246if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 17247 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17248 ac_status=$?
f95e4495
VS
17249 grep -v '^ *+' conftest.er1 >conftest.err
17250 rm -f conftest.er1
17251 cat conftest.err >&5
e6cc62c6
VS
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); } &&
f95e4495
VS
17254 { ac_try='test -z "$ac_c_werror_flag"
17255 || test ! -s conftest.err'
17256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17257 (eval $ac_try) 2>&5
17258 ac_status=$?
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; } &&
17261 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17264 ac_status=$?
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; }; then
17267 ac_hi=$ac_mid
17268else
17269 echo "$as_me: failed program was:" >&5
17270sed 's/^/| /' conftest.$ac_ext >&5
17271
17272ac_lo=`expr '(' $ac_mid ')' + 1`
17273fi
f95e4495 17274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17275done
17276case $ac_lo in
17277?*) ac_cv_sizeof_long_long=$ac_lo;;
17278'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17279See \`config.log' for more details." >&5
17280echo "$as_me: error: cannot compute sizeof (long long), 77
17281See \`config.log' for more details." >&2;}
17282 { (exit 1); exit 1; }; } ;;
17283esac
17284else
17285 if test "$cross_compiling" = yes; then
17286 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
17287See \`config.log' for more details." >&5
17288echo "$as_me: error: cannot run test program while cross compiling
17289See \`config.log' for more details." >&2;}
17290 { (exit 1); exit 1; }; }
17291else
17292 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17293/* confdefs.h. */
17294_ACEOF
17295cat confdefs.h >>conftest.$ac_ext
17296cat >>conftest.$ac_ext <<_ACEOF
17297/* end confdefs.h. */
17298$ac_includes_default
17299long longval () { return (long) (sizeof (long long)); }
17300unsigned long ulongval () { return (long) (sizeof (long long)); }
4f57cf11 17301#include <stdio.h>
e6cc62c6
VS
17302#include <stdlib.h>
17303int
17304main ()
4f57cf11 17305{
e6cc62c6
VS
17306
17307 FILE *f = fopen ("conftest.val", "w");
17308 if (! f)
17309 exit (1);
17310 if (((long) (sizeof (long long))) < 0)
17311 {
17312 long i = longval ();
17313 if (i != ((long) (sizeof (long long))))
17314 exit (1);
17315 fprintf (f, "%ld\n", i);
17316 }
17317 else
17318 {
17319 unsigned long i = ulongval ();
17320 if (i != ((long) (sizeof (long long))))
17321 exit (1);
17322 fprintf (f, "%lu\n", i);
17323 }
17324 exit (ferror (f) || fclose (f) != 0);
17325
17326 ;
17327 return 0;
4f57cf11 17328}
e6cc62c6
VS
17329_ACEOF
17330rm -f conftest$ac_exeext
17331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17332 (eval $ac_link) 2>&5
17333 ac_status=$?
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17337 (eval $ac_try) 2>&5
17338 ac_status=$?
17339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17340 (exit $ac_status); }; }; then
17341 ac_cv_sizeof_long_long=`cat conftest.val`
17342else
17343 echo "$as_me: program exited with status $ac_status" >&5
17344echo "$as_me: failed program was:" >&5
17345sed 's/^/| /' conftest.$ac_ext >&5
17346
17347( exit $ac_status )
17348{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
17349See \`config.log' for more details." >&5
17350echo "$as_me: error: cannot compute sizeof (long long), 77
17351See \`config.log' for more details." >&2;}
17352 { (exit 1); exit 1; }; }
17353fi
f95e4495 17354rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
17355fi
17356fi
17357rm -f conftest.val
4f57cf11 17358else
4f57cf11
GD
17359 ac_cv_sizeof_long_long=0
17360fi
7b4a847f 17361fi
e6cc62c6
VS
17362echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
17363echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
17364cat >>confdefs.h <<_ACEOF
21d1c967 17365#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
e6cc62c6 17366_ACEOF
9e691f46 17367
8284b0c5 17368
21d1c967
GD
17369esac
17370
e6cc62c6
VS
17371echo "$as_me:$LINENO: checking size of wchar_t" >&5
17372echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
17373if test "${wx_cv_sizeof_wchar_t+set}" = set; then
17374 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 17375else
e6cc62c6 17376
21d1c967 17377 if test "$cross_compiling" = yes; then
e6cc62c6 17378
2b5f62a0
VZ
17379 case "${host}" in
17380 *-pc-msdosdjgpp )
17381 wx_cv_sizeof_wchar_t=0
17382 ;;
17383 * )
17384 wx_cv_sizeof_wchar_t=4
17385 ;;
17386 esac
e6cc62c6
VS
17387
17388
6f72b082 17389else
e6cc62c6 17390 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17391/* confdefs.h. */
17392_ACEOF
17393cat confdefs.h >>conftest.$ac_ext
17394cat >>conftest.$ac_ext <<_ACEOF
17395/* end confdefs.h. */
21d1c967 17396
2b5f62a0
VZ
17397 /* DJGPP only has fake wchar_t: */
17398 #ifdef __DJGPP__
17399 # error "fake wchar_t"
17400 #endif
21d1c967
GD
17401 #ifdef HAVE_WCHAR_H
17402 # ifdef __CYGWIN__
17403 # include <stddef.h>
17404 # endif
17405 # include <wchar.h>
17406 #endif
17407 #ifdef HAVE_STDLIB_H
17408 # include <stdlib.h>
17409 #endif
17410 #include <stdio.h>
17411 int main()
17412 {
17413 FILE *f=fopen("conftestval", "w");
17414 if (!f) exit(1);
17415 fprintf(f, "%i", sizeof(wchar_t));
17416 exit(0);
17417 }
e6cc62c6
VS
17418
17419_ACEOF
17420rm -f conftest$ac_exeext
17421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17422 (eval $ac_link) 2>&5
17423 ac_status=$?
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427 (eval $ac_try) 2>&5
17428 ac_status=$?
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; }; then
21d1c967 17431 wx_cv_sizeof_wchar_t=`cat conftestval`
6f72b082 17432else
e6cc62c6
VS
17433 echo "$as_me: program exited with status $ac_status" >&5
17434echo "$as_me: failed program was:" >&5
17435sed 's/^/| /' conftest.$ac_ext >&5
17436
17437( exit $ac_status )
17438wx_cv_sizeof_wchar_t=0
6f72b082 17439fi
f95e4495 17440rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6f72b082 17441fi
6f72b082 17442
3f345b47 17443fi
e6cc62c6
VS
17444echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5
17445echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6
3f345b47 17446
e6cc62c6 17447cat >>confdefs.h <<_ACEOF
21d1c967 17448#define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
e6cc62c6 17449_ACEOF
90dd450c 17450
8284b0c5 17451
21d1c967
GD
17452# Check whether --enable-largefile or --disable-largefile was given.
17453if test "${enable_largefile+set}" = set; then
17454 enableval="$enable_largefile"
3f345b47 17455
e6cc62c6 17456fi;
21d1c967
GD
17457if test "$enable_largefile" != no; then
17458 wx_largefile=no
e6cc62c6
VS
17459
17460 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17461echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
17462if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17463 echo $ECHO_N "(cached) $ECHO_C" >&6
17464else
17465
17466 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17467/* confdefs.h. */
17468_ACEOF
17469cat confdefs.h >>conftest.$ac_ext
17470cat >>conftest.$ac_ext <<_ACEOF
17471/* end confdefs.h. */
21d1c967
GD
17472#define _FILE_OFFSET_BITS 64
17473 #include <sys/types.h>
e6cc62c6
VS
17474int
17475main ()
17476{
21d1c967
GD
17477typedef struct {
17478 unsigned int field: sizeof(off_t) == 8;
17479} wxlf;
17480
e6cc62c6
VS
17481 ;
17482 return 0;
17483}
17484_ACEOF
17485rm -f conftest.$ac_objext
17486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 17487 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17488 ac_status=$?
f95e4495
VS
17489 grep -v '^ *+' conftest.er1 >conftest.err
17490 rm -f conftest.er1
17491 cat conftest.err >&5
e6cc62c6
VS
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } &&
f95e4495
VS
17494 { ac_try='test -z "$ac_c_werror_flag"
17495 || test ! -s conftest.err'
17496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17497 (eval $ac_try) 2>&5
17498 ac_status=$?
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); }; } &&
17501 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17503 (eval $ac_try) 2>&5
17504 ac_status=$?
17505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506 (exit $ac_status); }; }; then
21d1c967 17507 ac_cv_sys_file_offset_bits=64
f6bcfd97 17508else
e6cc62c6
VS
17509 echo "$as_me: failed program was:" >&5
17510sed 's/^/| /' conftest.$ac_ext >&5
17511
17512ac_cv_sys_file_offset_bits=no
247f5006 17513fi
f95e4495 17514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 17515
a0b9e27f 17516
e6cc62c6
VS
17517fi
17518echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17519echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
21d1c967
GD
17520
17521 if test "$ac_cv_sys_file_offset_bits" != no; then
17522 wx_largefile=yes
e6cc62c6 17523 cat >>confdefs.h <<_ACEOF
21d1c967 17524#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
e6cc62c6 17525_ACEOF
21d1c967
GD
17526
17527 fi
17528
17529 if test "x$wx_largefile" != "xyes"; then
e6cc62c6
VS
17530
17531 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
17532echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
17533if test "${ac_cv_sys_large_files+set}" = set; then
17534 echo $ECHO_N "(cached) $ECHO_C" >&6
17535else
17536
17537 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17538/* confdefs.h. */
17539_ACEOF
17540cat confdefs.h >>conftest.$ac_ext
17541cat >>conftest.$ac_ext <<_ACEOF
17542/* end confdefs.h. */
21d1c967
GD
17543#define _LARGE_FILES 1
17544 #include <sys/types.h>
e6cc62c6
VS
17545int
17546main ()
17547{
21d1c967
GD
17548typedef struct {
17549 unsigned int field: sizeof(off_t) == 8;
17550} wxlf;
17551
e6cc62c6
VS
17552 ;
17553 return 0;
17554}
17555_ACEOF
17556rm -f conftest.$ac_objext
17557if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 17558 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17559 ac_status=$?
f95e4495
VS
17560 grep -v '^ *+' conftest.er1 >conftest.err
17561 rm -f conftest.er1
17562 cat conftest.err >&5
e6cc62c6
VS
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); } &&
f95e4495
VS
17565 { ac_try='test -z "$ac_c_werror_flag"
17566 || test ! -s conftest.err'
17567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17568 (eval $ac_try) 2>&5
17569 ac_status=$?
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); }; } &&
17572 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574 (eval $ac_try) 2>&5
17575 ac_status=$?
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; }; then
21d1c967 17578 ac_cv_sys_large_files=1
f6bcfd97 17579else
e6cc62c6
VS
17580 echo "$as_me: failed program was:" >&5
17581sed 's/^/| /' conftest.$ac_ext >&5
17582
17583ac_cv_sys_large_files=no
247f5006 17584fi
f95e4495 17585rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 17586
e6cc62c6
VS
17587
17588fi
17589echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17590echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3f345b47 17591
21d1c967
GD
17592 if test "$ac_cv_sys_large_files" != no; then
17593 wx_largefile=yes
e6cc62c6 17594 cat >>confdefs.h <<_ACEOF
21d1c967 17595#define _LARGE_FILES $ac_cv_sys_large_files
e6cc62c6 17596_ACEOF
90dd450c 17597
90dd450c
VZ
17598 fi
17599
90dd450c 17600 fi
90dd450c 17601
e6cc62c6
VS
17602 echo "$as_me:$LINENO: checking if large file support is available" >&5
17603echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6
21d1c967 17604 if test "x$wx_largefile" = "xyes"; then
e6cc62c6 17605 cat >>confdefs.h <<\_ACEOF
21d1c967 17606#define HAVE_LARGEFILE_SUPPORT 1
e6cc62c6 17607_ACEOF
90dd450c 17608
90dd450c 17609 fi
e6cc62c6
VS
17610 echo "$as_me:$LINENO: result: $wx_largefile" >&5
17611echo "${ECHO_T}$wx_largefile" >&6
21d1c967 17612fi
90dd450c 17613
8284b0c5 17614
f02444d0 17615if test "x$wx_largefile" = "xyes"; then
e26c13cf
RD
17616 if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
17617 WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
f02444d0 17618 else
e26c13cf 17619 WX_LARGEFILE_FLAGS="-D_LARGE_FILES"
f02444d0 17620 fi
e26c13cf 17621 CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS"
f02444d0
VZ
17622fi
17623
e6cc62c6
VS
17624echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
17625echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
17626if test "${ac_cv_c_bigendian+set}" = set; then
17627 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 17628else
21d1c967
GD
17629 ac_cv_c_bigendian=unknown
17630# See if sys/param.h defines the BYTE_ORDER macro.
e6cc62c6 17631cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17632/* confdefs.h. */
17633_ACEOF
17634cat confdefs.h >>conftest.$ac_ext
17635cat >>conftest.$ac_ext <<_ACEOF
17636/* end confdefs.h. */
21d1c967
GD
17637#include <sys/types.h>
17638#include <sys/param.h>
e6cc62c6
VS
17639int
17640main ()
17641{
21d1c967
GD
17642
17643#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17644 bogus endian macros
17645#endif
e6cc62c6
VS
17646 ;
17647 return 0;
17648}
17649_ACEOF
17650rm -f conftest.$ac_objext
17651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 17652 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17653 ac_status=$?
f95e4495
VS
17654 grep -v '^ *+' conftest.er1 >conftest.err
17655 rm -f conftest.er1
17656 cat conftest.err >&5
e6cc62c6
VS
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } &&
f95e4495
VS
17659 { ac_try='test -z "$ac_c_werror_flag"
17660 || test ! -s conftest.err'
17661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662 (eval $ac_try) 2>&5
17663 ac_status=$?
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; } &&
17666 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17669 ac_status=$?
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; }; then
21d1c967 17672 # It does; now see whether it defined to BIG_ENDIAN or not.
e6cc62c6 17673cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17674/* confdefs.h. */
17675_ACEOF
17676cat confdefs.h >>conftest.$ac_ext
17677cat >>conftest.$ac_ext <<_ACEOF
17678/* end confdefs.h. */
21d1c967
GD
17679#include <sys/types.h>
17680#include <sys/param.h>
e6cc62c6
VS
17681int
17682main ()
17683{
21d1c967
GD
17684
17685#if BYTE_ORDER != BIG_ENDIAN
17686 not big endian
17687#endif
e6cc62c6
VS
17688 ;
17689 return 0;
17690}
17691_ACEOF
17692rm -f conftest.$ac_objext
17693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 17694 (eval $ac_compile) 2>conftest.er1
e6cc62c6 17695 ac_status=$?
f95e4495
VS
17696 grep -v '^ *+' conftest.er1 >conftest.err
17697 rm -f conftest.er1
17698 cat conftest.err >&5
e6cc62c6
VS
17699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17700 (exit $ac_status); } &&
f95e4495
VS
17701 { ac_try='test -z "$ac_c_werror_flag"
17702 || test ! -s conftest.err'
17703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17704 (eval $ac_try) 2>&5
17705 ac_status=$?
17706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17707 (exit $ac_status); }; } &&
17708 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
17709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17710 (eval $ac_try) 2>&5
17711 ac_status=$?
17712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); }; }; then
21d1c967 17714 ac_cv_c_bigendian=yes
3f345b47 17715else
e6cc62c6
VS
17716 echo "$as_me: failed program was:" >&5
17717sed 's/^/| /' conftest.$ac_ext >&5
17718
17719ac_cv_c_bigendian=no
3f345b47 17720fi
f95e4495 17721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3f345b47 17722else
e6cc62c6
VS
17723 echo "$as_me: failed program was:" >&5
17724sed 's/^/| /' conftest.$ac_ext >&5
17725
3f345b47 17726fi
f95e4495 17727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
17728if test $ac_cv_c_bigendian = unknown; then
17729if test "$cross_compiling" = yes; then
17730 ac_cv_c_bigendian=unknown
10f2d63a 17731else
e6cc62c6 17732 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17733/* confdefs.h. */
17734_ACEOF
17735cat confdefs.h >>conftest.$ac_ext
17736cat >>conftest.$ac_ext <<_ACEOF
17737/* end confdefs.h. */
21d1c967
GD
17738main () {
17739 /* Are we little or big endian? From Harbison&Steele. */
17740 union
17741 {
17742 long l;
17743 char c[sizeof (long)];
17744 } u;
17745 u.l = 1;
17746 exit (u.c[sizeof (long) - 1] == 1);
17747}
e6cc62c6
VS
17748_ACEOF
17749rm -f conftest$ac_exeext
17750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17751 (eval $ac_link) 2>&5
17752 ac_status=$?
17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17754 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17756 (eval $ac_try) 2>&5
17757 ac_status=$?
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); }; }; then
21d1c967 17760 ac_cv_c_bigendian=no
3f345b47 17761else
e6cc62c6
VS
17762 echo "$as_me: program exited with status $ac_status" >&5
17763echo "$as_me: failed program was:" >&5
17764sed 's/^/| /' conftest.$ac_ext >&5
17765
17766( exit $ac_status )
17767ac_cv_c_bigendian=yes
247f5006 17768fi
f95e4495 17769rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
247f5006 17770fi
3f345b47 17771fi
8168de4c 17772fi
e6cc62c6
VS
17773echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
17774echo "${ECHO_T}$ac_cv_c_bigendian" >&6
247f5006 17775if test $ac_cv_c_bigendian = unknown; then
e6cc62c6
VS
17776 { 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
17777echo "$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
17778fi
17779if test $ac_cv_c_bigendian = yes; then
e6cc62c6 17780 cat >>confdefs.h <<\_ACEOF
247f5006 17781#define WORDS_BIGENDIAN 1
e6cc62c6 17782_ACEOF
247f5006
VZ
17783
17784fi
17785
17786
e6cc62c6
VS
17787
17788ac_ext=cc
17789ac_cpp='$CXXCPP $CPPFLAGS'
17790ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17791ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17792ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17793echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
17794echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
247f5006 17795if test -z "$CXXCPP"; then
e6cc62c6
VS
17796 if test "${ac_cv_prog_CXXCPP+set}" = set; then
17797 echo $ECHO_N "(cached) $ECHO_C" >&6
17798else
17799 # Double quotes because CXXCPP needs to be expanded
17800 for CXXCPP in "$CXX -E" "/lib/cpp"
17801 do
17802 ac_preproc_ok=false
17803for ac_cxx_preproc_warn_flag in '' yes
17804do
17805 # Use a header file that comes with gcc, so configuring glibc
17806 # with a fresh cross-compiler works.
17807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17808 # <limits.h> exists even on freestanding compilers.
17809 # On the NeXT, cc -E runs the code through the compiler's parser,
17810 # not just through cpp. "Syntax error" is here to catch this case.
17811 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17812/* confdefs.h. */
17813_ACEOF
17814cat confdefs.h >>conftest.$ac_ext
17815cat >>conftest.$ac_ext <<_ACEOF
17816/* end confdefs.h. */
17817#ifdef __STDC__
17818# include <limits.h>
17819#else
17820# include <assert.h>
17821#endif
f95e4495 17822 Syntax error
e6cc62c6
VS
17823_ACEOF
17824if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17825 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17826 ac_status=$?
17827 grep -v '^ *+' conftest.er1 >conftest.err
17828 rm -f conftest.er1
17829 cat conftest.err >&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); } >/dev/null; then
17832 if test -s conftest.err; then
17833 ac_cpp_err=$ac_cxx_preproc_warn_flag
f95e4495 17834 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
17835 else
17836 ac_cpp_err=
17837 fi
247f5006 17838else
e6cc62c6
VS
17839 ac_cpp_err=yes
17840fi
17841if test -z "$ac_cpp_err"; then
17842 :
17843else
17844 echo "$as_me: failed program was:" >&5
17845sed 's/^/| /' conftest.$ac_ext >&5
17846
17847 # Broken: fails on valid input.
17848continue
17849fi
17850rm -f conftest.err conftest.$ac_ext
17851
17852 # OK, works on sane cases. Now check whether non-existent headers
17853 # can be detected and how.
17854 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17855/* confdefs.h. */
17856_ACEOF
17857cat confdefs.h >>conftest.$ac_ext
17858cat >>conftest.$ac_ext <<_ACEOF
17859/* end confdefs.h. */
17860#include <ac_nonexistent.h>
17861_ACEOF
17862if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17863 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17864 ac_status=$?
17865 grep -v '^ *+' conftest.er1 >conftest.err
17866 rm -f conftest.er1
17867 cat conftest.err >&5
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } >/dev/null; then
17870 if test -s conftest.err; then
17871 ac_cpp_err=$ac_cxx_preproc_warn_flag
f95e4495 17872 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
17873 else
17874 ac_cpp_err=
17875 fi
17876else
17877 ac_cpp_err=yes
17878fi
17879if test -z "$ac_cpp_err"; then
17880 # Broken: success on invalid input.
17881continue
17882else
17883 echo "$as_me: failed program was:" >&5
17884sed 's/^/| /' conftest.$ac_ext >&5
17885
17886 # Passes both tests.
17887ac_preproc_ok=:
17888break
17889fi
17890rm -f conftest.err conftest.$ac_ext
17891
17892done
17893# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17894rm -f conftest.err conftest.$ac_ext
17895if $ac_preproc_ok; then
17896 break
17897fi
17898
17899 done
17900 ac_cv_prog_CXXCPP=$CXXCPP
17901
17902fi
17903 CXXCPP=$ac_cv_prog_CXXCPP
17904else
17905 ac_cv_prog_CXXCPP=$CXXCPP
17906fi
17907echo "$as_me:$LINENO: result: $CXXCPP" >&5
17908echo "${ECHO_T}$CXXCPP" >&6
17909ac_preproc_ok=false
17910for ac_cxx_preproc_warn_flag in '' yes
17911do
17912 # Use a header file that comes with gcc, so configuring glibc
17913 # with a fresh cross-compiler works.
17914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17915 # <limits.h> exists even on freestanding compilers.
17916 # On the NeXT, cc -E runs the code through the compiler's parser,
17917 # not just through cpp. "Syntax error" is here to catch this case.
17918 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17919/* confdefs.h. */
17920_ACEOF
17921cat confdefs.h >>conftest.$ac_ext
17922cat >>conftest.$ac_ext <<_ACEOF
17923/* end confdefs.h. */
17924#ifdef __STDC__
17925# include <limits.h>
17926#else
17927# include <assert.h>
17928#endif
f95e4495 17929 Syntax error
e6cc62c6
VS
17930_ACEOF
17931if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17932 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17933 ac_status=$?
17934 grep -v '^ *+' conftest.er1 >conftest.err
17935 rm -f conftest.er1
17936 cat conftest.err >&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } >/dev/null; then
17939 if test -s conftest.err; then
17940 ac_cpp_err=$ac_cxx_preproc_warn_flag
f95e4495 17941 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
17942 else
17943 ac_cpp_err=
17944 fi
17945else
17946 ac_cpp_err=yes
17947fi
17948if test -z "$ac_cpp_err"; then
21d1c967 17949 :
698dcdb6 17950else
e6cc62c6
VS
17951 echo "$as_me: failed program was:" >&5
17952sed 's/^/| /' conftest.$ac_ext >&5
17953
17954 # Broken: fails on valid input.
17955continue
17956fi
17957rm -f conftest.err conftest.$ac_ext
17958
17959 # OK, works on sane cases. Now check whether non-existent headers
17960 # can be detected and how.
17961 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
17962/* confdefs.h. */
17963_ACEOF
17964cat confdefs.h >>conftest.$ac_ext
17965cat >>conftest.$ac_ext <<_ACEOF
17966/* end confdefs.h. */
17967#include <ac_nonexistent.h>
17968_ACEOF
17969if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17970 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17971 ac_status=$?
17972 grep -v '^ *+' conftest.er1 >conftest.err
17973 rm -f conftest.er1
17974 cat conftest.err >&5
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); } >/dev/null; then
17977 if test -s conftest.err; then
17978 ac_cpp_err=$ac_cxx_preproc_warn_flag
f95e4495 17979 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
17980 else
17981 ac_cpp_err=
17982 fi
17983else
17984 ac_cpp_err=yes
247f5006 17985fi
e6cc62c6
VS
17986if test -z "$ac_cpp_err"; then
17987 # Broken: success on invalid input.
17988continue
17989else
17990 echo "$as_me: failed program was:" >&5
17991sed 's/^/| /' conftest.$ac_ext >&5
17992
17993 # Passes both tests.
17994ac_preproc_ok=:
17995break
328a083c 17996fi
e6cc62c6
VS
17997rm -f conftest.err conftest.$ac_ext
17998
17999done
18000# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18001rm -f conftest.err conftest.$ac_ext
18002if $ac_preproc_ok; then
18003 :
18004else
18005 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18006See \`config.log' for more details." >&5
18007echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
18008See \`config.log' for more details." >&2;}
18009 { (exit 1); exit 1; }; }
90dd450c 18010fi
e6cc62c6
VS
18011
18012ac_ext=cc
18013ac_cpp='$CXXCPP $CPPFLAGS'
18014ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18015ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18016ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18017
1e6feb95 18018
1725144d 18019
21d1c967 18020 if test "$cross_compiling" = "yes"; then
e6cc62c6 18021 cat >>confdefs.h <<\_ACEOF
21d1c967 18022#define wxUSE_IOSTREAMH 1
e6cc62c6 18023_ACEOF
ab9b9eab 18024
21d1c967 18025 else
e6cc62c6
VS
18026
18027
18028 ac_ext=cc
5c6fa7d2 18029ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18030ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18031ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18032ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18033
52127426 18034
247f5006 18035
e6cc62c6 18036for ac_header in iostream
21d1c967 18037do
e6cc62c6
VS
18038as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18039if eval "test \"\${$as_ac_Header+set}\" = set"; then
18040 echo "$as_me:$LINENO: checking for $ac_header" >&5
18041echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18042if eval "test \"\${$as_ac_Header+set}\" = set"; then
18043 echo $ECHO_N "(cached) $ECHO_C" >&6
18044fi
18045echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18046echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18047else
18048 # Is the header compilable?
18049echo "$as_me:$LINENO: checking $ac_header usability" >&5
18050echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18051cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18052/* confdefs.h. */
18053_ACEOF
18054cat confdefs.h >>conftest.$ac_ext
18055cat >>conftest.$ac_ext <<_ACEOF
18056/* end confdefs.h. */
18057$ac_includes_default
18058#include <$ac_header>
18059_ACEOF
18060rm -f conftest.$ac_objext
18061if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 18062 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18063 ac_status=$?
f95e4495
VS
18064 grep -v '^ *+' conftest.er1 >conftest.err
18065 rm -f conftest.er1
18066 cat conftest.err >&5
e6cc62c6
VS
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); } &&
f95e4495
VS
18069 { ac_try='test -z "$ac_cxx_werror_flag"
18070 || test ! -s conftest.err'
18071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072 (eval $ac_try) 2>&5
18073 ac_status=$?
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; } &&
18076 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18078 (eval $ac_try) 2>&5
18079 ac_status=$?
18080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18081 (exit $ac_status); }; }; then
18082 ac_header_compiler=yes
18083else
18084 echo "$as_me: failed program was:" >&5
18085sed 's/^/| /' conftest.$ac_ext >&5
18086
18087ac_header_compiler=no
18088fi
f95e4495 18089rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
18090echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18091echo "${ECHO_T}$ac_header_compiler" >&6
18092
18093# Is the header present?
18094echo "$as_me:$LINENO: checking $ac_header presence" >&5
18095echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18096cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18097/* confdefs.h. */
18098_ACEOF
18099cat confdefs.h >>conftest.$ac_ext
18100cat >>conftest.$ac_ext <<_ACEOF
18101/* end confdefs.h. */
18102#include <$ac_header>
18103_ACEOF
18104if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18106 ac_status=$?
18107 grep -v '^ *+' conftest.er1 >conftest.err
18108 rm -f conftest.er1
18109 cat conftest.err >&5
18110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111 (exit $ac_status); } >/dev/null; then
18112 if test -s conftest.err; then
18113 ac_cpp_err=$ac_cxx_preproc_warn_flag
f95e4495 18114 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
e6cc62c6
VS
18115 else
18116 ac_cpp_err=
18117 fi
18118else
18119 ac_cpp_err=yes
18120fi
18121if test -z "$ac_cpp_err"; then
18122 ac_header_preproc=yes
18123else
18124 echo "$as_me: failed program was:" >&5
18125sed 's/^/| /' conftest.$ac_ext >&5
18126
18127 ac_header_preproc=no
18128fi
18129rm -f conftest.err conftest.$ac_ext
18130echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18131echo "${ECHO_T}$ac_header_preproc" >&6
18132
18133# So? What about this header?
f95e4495
VS
18134case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
18135 yes:no: )
e6cc62c6
VS
18136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18137echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
18138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18139echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18140 ac_header_preproc=yes
e6cc62c6 18141 ;;
f95e4495 18142 no:yes:* )
e6cc62c6
VS
18143 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18144echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
18145 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18146echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18147 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18148echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18149 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18150echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
18151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18152echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
18153 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18154echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
18155 (
18156 cat <<\_ASBOX
f95e4495
VS
18157## ----------------------------------------- ##
18158## Report this to wx-dev@lists.wxwindows.org ##
18159## ----------------------------------------- ##
e6cc62c6
VS
18160_ASBOX
18161 ) |
18162 sed "s/^/$as_me: WARNING: /" >&2
18163 ;;
18164esac
18165echo "$as_me:$LINENO: checking for $ac_header" >&5
18166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18167if eval "test \"\${$as_ac_Header+set}\" = set"; then
18168 echo $ECHO_N "(cached) $ECHO_C" >&6
18169else
f95e4495 18170 eval "$as_ac_Header=\$ac_header_preproc"
ab9b9eab 18171fi
e6cc62c6
VS
18172echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18173echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18174
90dd450c 18175fi
e6cc62c6
VS
18176if test `eval echo '${'$as_ac_Header'}'` = yes; then
18177 cat >>confdefs.h <<_ACEOF
18178#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18179_ACEOF
18180
90dd450c 18181fi
e6cc62c6 18182
21d1c967 18183done
10f2d63a 18184
8284b0c5 18185
21d1c967
GD
18186 if test "$ac_cv_header_iostream" = "yes" ; then
18187 :
18188 else
e6cc62c6 18189 cat >>confdefs.h <<\_ACEOF
21d1c967 18190#define wxUSE_IOSTREAMH 1
e6cc62c6 18191_ACEOF
788deba1 18192
90dd450c 18193 fi
ab9b9eab 18194
21d1c967 18195 ac_ext=c
21d1c967 18196ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18197ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18198ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18199ac_compiler_gnu=$ac_cv_c_compiler_gnu
ab9b9eab 18200
21d1c967 18201 fi
ab9b9eab 18202
52127426 18203
8284b0c5 18204
e6cc62c6
VS
18205 echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
18206echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6
18207if test "${wx_cv_cpp_bool+set}" = set; then
18208 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 18209else
e6cc62c6
VS
18210
18211
18212
18213 ac_ext=cc
5c6fa7d2 18214ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18215ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18216ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18217ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21d1c967 18218
8284b0c5 18219
e6cc62c6 18220 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18221/* confdefs.h. */
18222_ACEOF
18223cat confdefs.h >>conftest.$ac_ext
18224cat >>conftest.$ac_ext <<_ACEOF
18225/* end confdefs.h. */
21d1c967 18226
e6cc62c6
VS
18227
18228int
18229main ()
18230{
21d1c967
GD
18231
18232 bool b = true;
18233
18234 return 0;
e6cc62c6
VS
18235
18236 ;
18237 return 0;
18238}
18239_ACEOF
18240rm -f conftest.$ac_objext
18241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 18242 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18243 ac_status=$?
f95e4495
VS
18244 grep -v '^ *+' conftest.er1 >conftest.err
18245 rm -f conftest.er1
18246 cat conftest.err >&5
e6cc62c6
VS
18247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18248 (exit $ac_status); } &&
f95e4495
VS
18249 { ac_try='test -z "$ac_cxx_werror_flag"
18250 || test ! -s conftest.err'
18251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252 (eval $ac_try) 2>&5
18253 ac_status=$?
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; } &&
18256 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258 (eval $ac_try) 2>&5
18259 ac_status=$?
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; }; then
18262
21d1c967 18263 wx_cv_cpp_bool=yes
e6cc62c6 18264
698dcdb6 18265else
e6cc62c6
VS
18266 echo "$as_me: failed program was:" >&5
18267sed 's/^/| /' conftest.$ac_ext >&5
18268
18269
21d1c967 18270 wx_cv_cpp_bool=no
e6cc62c6
VS
18271
18272
698dcdb6 18273fi
f95e4495 18274rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967
GD
18275
18276 ac_ext=c
21d1c967 18277ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18280ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 18281
a0b9e27f 18282
e6cc62c6
VS
18283fi
18284echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
18285echo "${ECHO_T}$wx_cv_cpp_bool" >&6
21d1c967
GD
18286
18287 if test "$wx_cv_cpp_bool" = "yes"; then
e6cc62c6 18288 cat >>confdefs.h <<\_ACEOF
21d1c967 18289#define HAVE_BOOL 1
e6cc62c6 18290_ACEOF
ab9b9eab 18291
21d1c967
GD
18292 fi
18293
52127426 18294
8284b0c5 18295
e6cc62c6
VS
18296 echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
18297echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6
18298if test "${wx_cv_explicit+set}" = set; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 18300else
e6cc62c6
VS
18301
18302
18303
18304 ac_ext=cc
5c6fa7d2 18305ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
18306ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18307ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18308ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
986ecc86 18309
8284b0c5 18310
e6cc62c6 18311 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18312/* confdefs.h. */
18313_ACEOF
18314cat confdefs.h >>conftest.$ac_ext
18315cat >>conftest.$ac_ext <<_ACEOF
18316/* end confdefs.h. */
986ecc86
VZ
18317
18318 class Foo { public: explicit Foo(int) {} };
e6cc62c6
VS
18319
18320int
18321main ()
18322{
986ecc86
VZ
18323
18324 return 0;
e6cc62c6
VS
18325
18326 ;
18327 return 0;
18328}
18329_ACEOF
18330rm -f conftest.$ac_objext
18331if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 18332 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18333 ac_status=$?
f95e4495
VS
18334 grep -v '^ *+' conftest.er1 >conftest.err
18335 rm -f conftest.er1
18336 cat conftest.err >&5
e6cc62c6
VS
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); } &&
f95e4495
VS
18339 { ac_try='test -z "$ac_cxx_werror_flag"
18340 || test ! -s conftest.err'
18341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18342 (eval $ac_try) 2>&5
18343 ac_status=$?
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; } &&
18346 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18348 (eval $ac_try) 2>&5
18349 ac_status=$?
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; }; then
18352
18353 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18354/* confdefs.h. */
18355_ACEOF
18356cat confdefs.h >>conftest.$ac_ext
18357cat >>conftest.$ac_ext <<_ACEOF
18358/* end confdefs.h. */
986ecc86
VZ
18359
18360 class Foo { public: explicit Foo(int) {} };
18361 static void TakeFoo(const Foo& foo) { }
e6cc62c6
VS
18362
18363int
18364main ()
18365{
986ecc86
VZ
18366
18367 TakeFoo(17);
18368 return 0;
e6cc62c6
VS
18369
18370 ;
18371 return 0;
18372}
18373_ACEOF
18374rm -f conftest.$ac_objext
18375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 18376 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18377 ac_status=$?
f95e4495
VS
18378 grep -v '^ *+' conftest.er1 >conftest.err
18379 rm -f conftest.er1
18380 cat conftest.err >&5
e6cc62c6
VS
18381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18382 (exit $ac_status); } &&
f95e4495
VS
18383 { ac_try='test -z "$ac_cxx_werror_flag"
18384 || test ! -s conftest.err'
18385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18386 (eval $ac_try) 2>&5
18387 ac_status=$?
18388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18389 (exit $ac_status); }; } &&
18390 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18392 (eval $ac_try) 2>&5
18393 ac_status=$?
18394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18395 (exit $ac_status); }; }; then
986ecc86
VZ
18396 wx_cv_explicit=no
18397else
e6cc62c6
VS
18398 echo "$as_me: failed program was:" >&5
18399sed 's/^/| /' conftest.$ac_ext >&5
18400
18401wx_cv_explicit=yes
18402
986ecc86 18403fi
f95e4495 18404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 18405
986ecc86 18406else
e6cc62c6
VS
18407 echo "$as_me: failed program was:" >&5
18408sed 's/^/| /' conftest.$ac_ext >&5
18409
18410wx_cv_explicit=no
18411
986ecc86 18412fi
f95e4495 18413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
986ecc86
VZ
18414
18415 ac_ext=c
986ecc86 18416ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18419ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 18420
a0b9e27f 18421
e6cc62c6
VS
18422fi
18423echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
18424echo "${ECHO_T}$wx_cv_explicit" >&6
986ecc86
VZ
18425
18426 if test "$wx_cv_explicit" = "yes"; then
e6cc62c6 18427 cat >>confdefs.h <<\_ACEOF
986ecc86 18428#define HAVE_EXPLICIT 1
e6cc62c6 18429_ACEOF
986ecc86
VZ
18430
18431 fi
18432
8284b0c5 18433
e6cc62c6
VS
18434echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
18435echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6
18436if test "${ac_cv_cxx_const_cast+set}" = set; then
18437 echo $ECHO_N "(cached) $ECHO_C" >&6
521196a2 18438else
521196a2 18439
521196a2 18440
e6cc62c6
VS
18441 ac_ext=cc
18442ac_cpp='$CXXCPP $CPPFLAGS'
18443ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18444ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18445ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18446
18447 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18448/* confdefs.h. */
18449_ACEOF
18450cat confdefs.h >>conftest.$ac_ext
18451cat >>conftest.$ac_ext <<_ACEOF
18452/* end confdefs.h. */
18453
18454int
18455main ()
18456{
521196a2 18457int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
e6cc62c6
VS
18458 ;
18459 return 0;
18460}
18461_ACEOF
18462rm -f conftest.$ac_objext
18463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 18464 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18465 ac_status=$?
f95e4495
VS
18466 grep -v '^ *+' conftest.er1 >conftest.err
18467 rm -f conftest.er1
18468 cat conftest.err >&5
e6cc62c6
VS
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } &&
f95e4495
VS
18471 { ac_try='test -z "$ac_cxx_werror_flag"
18472 || test ! -s conftest.err'
18473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18474 (eval $ac_try) 2>&5
18475 ac_status=$?
18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18477 (exit $ac_status); }; } &&
18478 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480 (eval $ac_try) 2>&5
18481 ac_status=$?
18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; }; then
521196a2
MB
18484 ac_cv_cxx_const_cast=yes
18485else
e6cc62c6
VS
18486 echo "$as_me: failed program was:" >&5
18487sed 's/^/| /' conftest.$ac_ext >&5
18488
18489ac_cv_cxx_const_cast=no
521196a2 18490fi
f95e4495 18491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
521196a2 18492 ac_ext=c
521196a2 18493ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
18494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18496ac_compiler_gnu=$ac_cv_c_compiler_gnu
521196a2
MB
18497
18498
18499fi
e6cc62c6
VS
18500echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
18501echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6
521196a2 18502if test "$ac_cv_cxx_const_cast" = yes; then
e6cc62c6
VS
18503
18504cat >>confdefs.h <<\_ACEOF
18505#define HAVE_CONST_CAST
18506_ACEOF
521196a2
MB
18507
18508fi
18509
18510
e87b7833
MB
18511if test "$wxUSE_STL" = "yes"; then
18512 ac_ext=cc
18513ac_cpp='$CXXCPP $CPPFLAGS'
18514ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18515ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18516ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18517
18518
18519 echo "$as_me:$LINENO: checking for basic STL functionality" >&5
18520echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6
18521 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
18522/* confdefs.h. */
18523_ACEOF
18524cat confdefs.h >>conftest.$ac_ext
18525cat >>conftest.$ac_ext <<_ACEOF
18526/* end confdefs.h. */
18527#include <string>
18528 #include <functional>
18529 #include <algorithm>
18530 #include <vector>
18531 #include <list>
18532int
18533main ()
18534{
18535std::vector<int> moo;
18536 std::list<int> foo;
18537 std::vector<int>::iterator it =
18538 std::find_if(moo.begin(), moo.end(),
18539 std::bind2nd(std::less<int>(), 3));
18540 ;
18541 return 0;
18542}
18543_ACEOF
18544rm -f conftest.$ac_objext
18545if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 18546 (eval $ac_compile) 2>conftest.er1
e87b7833 18547 ac_status=$?
f95e4495
VS
18548 grep -v '^ *+' conftest.er1 >conftest.err
18549 rm -f conftest.er1
18550 cat conftest.err >&5
e87b7833
MB
18551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552 (exit $ac_status); } &&
f95e4495
VS
18553 { ac_try='test -z "$ac_cxx_werror_flag"
18554 || test ! -s conftest.err'
18555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18556 (eval $ac_try) 2>&5
18557 ac_status=$?
18558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559 (exit $ac_status); }; } &&
18560 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
18561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18562 (eval $ac_try) 2>&5
18563 ac_status=$?
18564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565 (exit $ac_status); }; }; then
18566 echo "$as_me:$LINENO: result: yes" >&5
18567echo "${ECHO_T}yes" >&6
18568else
18569 echo "$as_me: failed program was:" >&5
18570sed 's/^/| /' conftest.$ac_ext >&5
18571
18572echo "$as_me:$LINENO: result: no" >&5
18573echo "${ECHO_T}no" >&6
18574 { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5
18575echo "$as_me: error: Basic STL functionality missing" >&2;}
18576 { (exit 1); exit 1; }; }
18577fi
f95e4495 18578rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
18579
18580 echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5
18581echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6
18582 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
18583/* confdefs.h. */
18584_ACEOF
18585cat confdefs.h >>conftest.$ac_ext
18586cat >>conftest.$ac_ext <<_ACEOF
18587/* end confdefs.h. */
18588#include <string>
18589int
18590main ()
18591{
18592std::wstring foo;
18593 ;
18594 return 0;
18595}
18596_ACEOF
18597rm -f conftest.$ac_objext
18598if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 18599 (eval $ac_compile) 2>conftest.er1
e87b7833 18600 ac_status=$?
f95e4495
VS
18601 grep -v '^ *+' conftest.er1 >conftest.err
18602 rm -f conftest.er1
18603 cat conftest.err >&5
e87b7833
MB
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); } &&
f95e4495
VS
18606 { ac_try='test -z "$ac_cxx_werror_flag"
18607 || test ! -s conftest.err'
18608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18609 (eval $ac_try) 2>&5
18610 ac_status=$?
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); }; } &&
18613 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
18614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615 (eval $ac_try) 2>&5
18616 ac_status=$?
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; }; then
18619 echo "$as_me:$LINENO: result: yes" >&5
18620echo "${ECHO_T}yes" >&6
18621 cat >>confdefs.h <<\_ACEOF
18622#define HAVE_STD_WSTRING 1
18623_ACEOF
18624
18625else
18626 echo "$as_me: failed program was:" >&5
18627sed 's/^/| /' conftest.$ac_ext >&5
18628
18629echo "$as_me:$LINENO: result: no" >&5
18630echo "${ECHO_T}no" >&6
18631fi
f95e4495 18632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
18633
18634 echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
18635echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6
18636 cat >conftest.$ac_ext <<_ACEOF
e87b7833
MB
18637/* confdefs.h. */
18638_ACEOF
18639cat confdefs.h >>conftest.$ac_ext
18640cat >>conftest.$ac_ext <<_ACEOF
18641/* end confdefs.h. */
18642#include <string>
18643int
18644main ()
18645{
18646std::string foo, bar;
18647 foo.compare(bar);
18648 foo.compare(1, 1, bar);
18649 foo.compare(1, 1, bar, 1, 1);
18650 foo.compare("");
18651 foo.compare(1, 1, "");
18652 foo.compare(1, 1, "", 2);
18653 ;
18654 return 0;
18655}
18656_ACEOF
18657rm -f conftest.$ac_objext
18658if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 18659 (eval $ac_compile) 2>conftest.er1
e87b7833 18660 ac_status=$?
f95e4495
VS
18661 grep -v '^ *+' conftest.er1 >conftest.err
18662 rm -f conftest.er1
18663 cat conftest.err >&5
e87b7833
MB
18664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665 (exit $ac_status); } &&
f95e4495
VS
18666 { ac_try='test -z "$ac_cxx_werror_flag"
18667 || test ! -s conftest.err'
18668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18669 (eval $ac_try) 2>&5
18670 ac_status=$?
18671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18672 (exit $ac_status); }; } &&
18673 { ac_try='test -s conftest.$ac_objext'
e87b7833
MB
18674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18675 (eval $ac_try) 2>&5
18676 ac_status=$?
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); }; }; then
18679 echo "$as_me:$LINENO: result: yes" >&5
18680echo "${ECHO_T}yes" >&6
18681 cat >>confdefs.h <<\_ACEOF
18682#define HAVE_STD_STRING_COMPARE 1
18683_ACEOF
18684
18685else
18686 echo "$as_me: failed program was:" >&5
18687sed 's/^/| /' conftest.$ac_ext >&5
18688
18689echo "$as_me:$LINENO: result: no" >&5
18690echo "${ECHO_T}no" >&6
18691fi
f95e4495 18692rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e87b7833
MB
18693
18694 ac_ext=c
18695ac_cpp='$CPP $CPPFLAGS'
18696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18698ac_compiler_gnu=$ac_cv_c_compiler_gnu
18699
18700fi
18701
8284b0c5 18702
21d1c967
GD
18703SEARCH_INCLUDE="\
18704 /usr/local/include \
18705 \
18706 /usr/Motif-1.2/include \
18707 /usr/Motif-2.1/include \
18708 \
18709 /usr/include/Motif1.2 \
18710 /opt/xpm/include/X11 \
18711 /opt/GBxpm/include/ \
18712 /opt/GBxpm/X11/include/ \
18713 \
18714 /usr/Motif1.2/include \
18715 /usr/dt/include \
18716 /usr/openwin/include \
18717 \
18718 /usr/include/Xm \
18719 \
18720 /usr/X11R6/include \
18721 /usr/X11R6.4/include \
18722 /usr/X11R5/include \
18723 /usr/X11R4/include \
18724 \
18725 /usr/include/X11R6 \
18726 /usr/include/X11R5 \
18727 /usr/include/X11R4 \
18728 \
18729 /usr/local/X11R6/include \
18730 /usr/local/X11R5/include \
18731 /usr/local/X11R4/include \
18732 \
18733 /usr/local/include/X11R6 \
18734 /usr/local/include/X11R5 \
18735 /usr/local/include/X11R4 \
18736 \
18737 /usr/X11/include \
18738 /usr/include/X11 \
18739 /usr/local/X11/include \
18740 /usr/local/include/X11 \
18741 \
18742 /usr/X386/include \
18743 /usr/x386/include \
18744 /usr/XFree86/include/X11 \
18745 \
18746 X:/XFree86/include \
18747 X:/XFree86/include/X11 \
18748 \
18749 /usr/include/gtk \
18750 /usr/local/include/gtk \
18751 /usr/include/glib \
18752 /usr/local/include/glib \
18753 \
18754 /usr/include/qt \
18755 /usr/local/include/qt \
18756 \
18757 /usr/include/windows \
18758 /usr/include/wine \
18759 /usr/local/include/wine \
18760 \
18761 /usr/unsupported/include \
18762 /usr/athena/include \
18763 /usr/local/x11r5/include \
18764 /usr/lpp/Xamples/include \
18765 \
2b5f62a0 18766 /usr/openwin/share/include"
21d1c967
GD
18767
18768SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
18769
8284b0c5 18770
e6cc62c6 18771cat >confcache <<\_ACEOF
21d1c967
GD
18772# This file is a shell script that caches the results of configure
18773# tests run on this system so they can be shared between configure
e6cc62c6
VS
18774# scripts and configure runs, see configure's option --config-cache.
18775# It is not useful on other systems. If it contains results you don't
18776# want to keep, you may remove or edit it.
21d1c967 18777#
e6cc62c6
VS
18778# config.status only pays attention to the cache file if you give it
18779# the --recheck option to rerun configure.
21d1c967 18780#
e6cc62c6
VS
18781# `ac_cv_env_foo' variables (set or unset) will be overridden when
18782# loading this file, other *unset* `ac_cv_foo' will be assigned the
18783# following values.
18784
18785_ACEOF
18786
21d1c967
GD
18787# The following way of writing the cache mishandles newlines in values,
18788# but we know of no workaround that is simple, portable, and efficient.
18789# So, don't put newlines in cache variables' values.
18790# Ultrix sh set writes to stderr and can't be redirected directly,
18791# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
18792{
18793 (set) 2>&1 |
18794 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18795 *ac_space=\ *)
18796 # `set' does not quote correctly, so add quotes (double-quote
18797 # substitution turns \\\\ into \\, and sed turns \\ into \).
18798 sed -n \
f95e4495
VS
18799 "s/'/'\\\\''/g;
18800 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
18801 ;;
18802 *)
18803 # `set' quotes correctly as required by POSIX, so do not add quotes.
18804 sed -n \
f95e4495 18805 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
18806 ;;
18807 esac;
18808} |
18809 sed '
18810 t clear
18811 : clear
18812 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18813 t end
18814 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18815 : end' >>confcache
18816if diff $cache_file confcache >/dev/null 2>&1; then :; else
21d1c967 18817 if test -w $cache_file; then
e6cc62c6
VS
18818 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18819 cat confcache >$cache_file
21d1c967
GD
18820 else
18821 echo "not updating unwritable cache $cache_file"
18822 fi
ab9b9eab 18823fi
21d1c967 18824rm -f confcache
ab9b9eab 18825
fe0895cf 18826if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
e6cc62c6
VS
18827 echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
18828echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6
18829if test "${wx_cv_lib_glibc21+set}" = set; then
18830 echo $ECHO_N "(cached) $ECHO_C" >&6
18831else
18832
18833 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18834/* confdefs.h. */
18835_ACEOF
18836cat confdefs.h >>conftest.$ac_ext
18837cat >>conftest.$ac_ext <<_ACEOF
18838/* end confdefs.h. */
21d1c967 18839#include <features.h>
e6cc62c6
VS
18840int
18841main ()
18842{
ab9b9eab 18843
21d1c967
GD
18844 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
18845 #error not glibc2.1
18846 #endif
e6cc62c6
VS
18847
18848 ;
18849 return 0;
18850}
18851_ACEOF
18852rm -f conftest.$ac_objext
18853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 18854 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18855 ac_status=$?
f95e4495
VS
18856 grep -v '^ *+' conftest.er1 >conftest.err
18857 rm -f conftest.er1
18858 cat conftest.err >&5
e6cc62c6
VS
18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18860 (exit $ac_status); } &&
f95e4495
VS
18861 { ac_try='test -z "$ac_c_werror_flag"
18862 || test ! -s conftest.err'
18863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18864 (eval $ac_try) 2>&5
18865 ac_status=$?
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; } &&
18868 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18870 (eval $ac_try) 2>&5
18871 ac_status=$?
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); }; }; then
18874
21d1c967 18875 wx_cv_lib_glibc21=yes
e6cc62c6 18876
698dcdb6 18877else
e6cc62c6
VS
18878 echo "$as_me: failed program was:" >&5
18879sed 's/^/| /' conftest.$ac_ext >&5
18880
18881
21d1c967 18882 wx_cv_lib_glibc21=no
e6cc62c6
VS
18883
18884
247f5006 18885fi
f95e4495 18886rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 18887
e6cc62c6
VS
18888fi
18889echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
18890echo "${ECHO_T}$wx_cv_lib_glibc21" >&6
21d1c967 18891 if test "$wx_cv_lib_glibc21" = "yes"; then
e6cc62c6 18892 cat >>confdefs.h <<\_ACEOF
21d1c967 18893#define wxHAVE_GLIBC2 1
e6cc62c6 18894_ACEOF
1e487827 18895
90dd450c 18896 fi
ab9b9eab
VZ
18897fi
18898
5c0a20c3
VZ
18899if test "x$wx_cv_lib_glibc21" = "xyes"; then
18900 if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
e6cc62c6 18901 cat >>confdefs.h <<\_ACEOF
5c0a20c3 18902#define _GNU_SOURCE 1
e6cc62c6 18903_ACEOF
5c0a20c3
VZ
18904
18905 fi
18906fi
18907
8284b0c5
MB
18908
18909
21d1c967 18910if test "$wxUSE_REGEX" != "no"; then
e6cc62c6 18911 cat >>confdefs.h <<\_ACEOF
21d1c967 18912#define wxUSE_REGEX 1
e6cc62c6 18913_ACEOF
698dcdb6 18914
8284b0c5 18915
30f2fa6c
VS
18916 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
18917 { echo "$as_me:$LINENO: WARNING: Unicode build requires built-in regex library, will use it instead" >&5
18918echo "$as_me: WARNING: Unicode build requires built-in regex library, will use it instead" >&2;}
18919 wxUSE_REGEX=builtin
18920 fi
18921
21d1c967 18922 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
e6cc62c6
VS
18923 if test "${ac_cv_header_regex_h+set}" = set; then
18924 echo "$as_me:$LINENO: checking for regex.h" >&5
18925echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
18926if test "${ac_cv_header_regex_h+set}" = set; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18928fi
18929echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
18930echo "${ECHO_T}$ac_cv_header_regex_h" >&6
18931else
18932 # Is the header compilable?
18933echo "$as_me:$LINENO: checking regex.h usability" >&5
18934echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
18935cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18936/* confdefs.h. */
18937_ACEOF
18938cat confdefs.h >>conftest.$ac_ext
18939cat >>conftest.$ac_ext <<_ACEOF
18940/* end confdefs.h. */
18941$ac_includes_default
247f5006 18942#include <regex.h>
e6cc62c6
VS
18943_ACEOF
18944rm -f conftest.$ac_objext
18945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 18946 (eval $ac_compile) 2>conftest.er1
e6cc62c6 18947 ac_status=$?
f95e4495
VS
18948 grep -v '^ *+' conftest.er1 >conftest.err
18949 rm -f conftest.er1
18950 cat conftest.err >&5
e6cc62c6
VS
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); } &&
f95e4495
VS
18953 { ac_try='test -z "$ac_c_werror_flag"
18954 || test ! -s conftest.err'
18955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956 (eval $ac_try) 2>&5
18957 ac_status=$?
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); }; } &&
18960 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18963 ac_status=$?
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
18966 ac_header_compiler=yes
18967else
18968 echo "$as_me: failed program was:" >&5
18969sed 's/^/| /' conftest.$ac_ext >&5
18970
18971ac_header_compiler=no
18972fi
f95e4495 18973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
18974echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18975echo "${ECHO_T}$ac_header_compiler" >&6
18976
18977# Is the header present?
18978echo "$as_me:$LINENO: checking regex.h presence" >&5
18979echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
18980cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
18981/* confdefs.h. */
18982_ACEOF
18983cat confdefs.h >>conftest.$ac_ext
18984cat >>conftest.$ac_ext <<_ACEOF
18985/* end confdefs.h. */
18986#include <regex.h>
18987_ACEOF
18988if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18990 ac_status=$?
18991 grep -v '^ *+' conftest.er1 >conftest.err
18992 rm -f conftest.er1
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } >/dev/null; then
18996 if test -s conftest.err; then
18997 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 18998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
18999 else
19000 ac_cpp_err=
19001 fi
19002else
19003 ac_cpp_err=yes
19004fi
19005if test -z "$ac_cpp_err"; then
19006 ac_header_preproc=yes
19007else
19008 echo "$as_me: failed program was:" >&5
19009sed 's/^/| /' conftest.$ac_ext >&5
19010
19011 ac_header_preproc=no
19012fi
19013rm -f conftest.err conftest.$ac_ext
19014echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19015echo "${ECHO_T}$ac_header_preproc" >&6
19016
19017# So? What about this header?
f95e4495
VS
19018case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19019 yes:no: )
e6cc62c6
VS
19020 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
19021echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
19022 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
19023echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
19024 ac_header_preproc=yes
e6cc62c6 19025 ;;
f95e4495 19026 no:yes:* )
e6cc62c6
VS
19027 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
19028echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
f95e4495
VS
19029 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
19030echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
19031 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
19032echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
19033 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
19034echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
19035 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
19036echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
19037 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
19038echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
19039 (
19040 cat <<\_ASBOX
f95e4495
VS
19041## ----------------------------------------- ##
19042## Report this to wx-dev@lists.wxwindows.org ##
19043## ----------------------------------------- ##
e6cc62c6
VS
19044_ASBOX
19045 ) |
19046 sed "s/^/$as_me: WARNING: /" >&2
19047 ;;
19048esac
19049echo "$as_me:$LINENO: checking for regex.h" >&5
19050echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
19051if test "${ac_cv_header_regex_h+set}" = set; then
19052 echo $ECHO_N "(cached) $ECHO_C" >&6
19053else
19054 ac_cv_header_regex_h=$ac_header_preproc
21d1c967 19055fi
e6cc62c6
VS
19056echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
19057echo "${ECHO_T}$ac_cv_header_regex_h" >&6
19058
698dcdb6 19059fi
e6cc62c6
VS
19060if test $ac_cv_header_regex_h = yes; then
19061
19062for ac_func in regcomp
21d1c967 19063do
e6cc62c6
VS
19064as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19065echo "$as_me:$LINENO: checking for $ac_func" >&5
19066echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19067if eval "test \"\${$as_ac_var+set}\" = set"; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19069else
19070 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19071/* confdefs.h. */
19072_ACEOF
19073cat confdefs.h >>conftest.$ac_ext
19074cat >>conftest.$ac_ext <<_ACEOF
19075/* end confdefs.h. */
f95e4495
VS
19076/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19078#define $ac_func innocuous_$ac_func
19079
a0b9e27f 19080/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
19081 which can conflict with char $ac_func (); below.
19082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19083 <limits.h> exists even on freestanding compilers. */
f95e4495 19084
e6cc62c6
VS
19085#ifdef __STDC__
19086# include <limits.h>
19087#else
19088# include <assert.h>
19089#endif
f95e4495
VS
19090
19091#undef $ac_func
19092
21d1c967 19093/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19094#ifdef __cplusplus
19095extern "C"
19096{
19097#endif
21d1c967 19098/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19099 builtin and then its argument prototype would still apply. */
19100char $ac_func ();
21d1c967
GD
19101/* The GNU C library defines this for functions which it implements
19102 to always fail with ENOSYS. Some functions are actually named
19103 something starting with __ and the normal name is an alias. */
19104#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19105choke me
19106#else
e6cc62c6
VS
19107char (*f) () = $ac_func;
19108#endif
19109#ifdef __cplusplus
19110}
21d1c967 19111#endif
90dd450c 19112
e6cc62c6
VS
19113int
19114main ()
19115{
19116return f != $ac_func;
19117 ;
19118 return 0;
19119}
19120_ACEOF
19121rm -f conftest.$ac_objext conftest$ac_exeext
19122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 19123 (eval $ac_link) 2>conftest.er1
e6cc62c6 19124 ac_status=$?
f95e4495
VS
19125 grep -v '^ *+' conftest.er1 >conftest.err
19126 rm -f conftest.er1
19127 cat conftest.err >&5
e6cc62c6
VS
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } &&
f95e4495
VS
19130 { ac_try='test -z "$ac_c_werror_flag"
19131 || test ! -s conftest.err'
19132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19133 (eval $ac_try) 2>&5
19134 ac_status=$?
19135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19136 (exit $ac_status); }; } &&
19137 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19139 (eval $ac_try) 2>&5
19140 ac_status=$?
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); }; }; then
19143 eval "$as_ac_var=yes"
19144else
19145 echo "$as_me: failed program was:" >&5
19146sed 's/^/| /' conftest.$ac_ext >&5
19147
19148eval "$as_ac_var=no"
19149fi
f95e4495
VS
19150rm -f conftest.err conftest.$ac_objext \
19151 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19152fi
19153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19154echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19155if test `eval echo '${'$as_ac_var'}'` = yes; then
19156 cat >>confdefs.h <<_ACEOF
19157#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19158_ACEOF
5c6fa7d2 19159
698dcdb6 19160fi
21d1c967
GD
19161done
19162
ab9b9eab
VZ
19163fi
19164
8284b0c5 19165
e6cc62c6 19166
21d1c967
GD
19167 if test "x$ac_cv_func_regcomp" != "xyes"; then
19168 if test "$wxUSE_REGEX" = "sys" ; then
e6cc62c6
VS
19169 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
19170echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
19171 { (exit 1); exit 1; }; }
21d1c967 19172 else
e6cc62c6
VS
19173 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
19174echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
21d1c967
GD
19175 wxUSE_REGEX=builtin
19176 fi
19177 else
19178 wxUSE_REGEX=sys
19179 fi
ab9b9eab 19180 fi
21d1c967 19181fi
90dd450c 19182
8284b0c5 19183
21d1c967
GD
19184ZLIB_LINK=
19185if test "$wxUSE_ZLIB" != "no" ; then
e6cc62c6 19186 cat >>confdefs.h <<\_ACEOF
21d1c967 19187#define wxUSE_ZLIB 1
e6cc62c6 19188_ACEOF
21d1c967 19189
8284b0c5 19190
21d1c967 19191 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
d775acfa
VZ
19192 if test "$USE_DARWIN" = 1; then
19193 system_zlib_h_ok="yes"
19194 else
e6cc62c6
VS
19195 echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
19196echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6
19197if test "${ac_cv_header_zlib_h+set}" = set; then
19198 echo $ECHO_N "(cached) $ECHO_C" >&6
d643b80e
VZ
19199else
19200 if test "$cross_compiling" = yes; then
89e6bf6d 19201 unset ac_cv_header_zlib_h
e6cc62c6 19202
d643b80e 19203else
e6cc62c6 19204 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19205/* confdefs.h. */
19206_ACEOF
19207cat confdefs.h >>conftest.$ac_ext
19208cat >>conftest.$ac_ext <<_ACEOF
19209/* end confdefs.h. */
19210
ef33c576 19211 #include <zlib.h>
d775acfa 19212 #include <stdio.h>
d643b80e 19213
d775acfa
VZ
19214 int main()
19215 {
19216 FILE *f=fopen("conftestval", "w");
19217 if (!f) exit(1);
19218 fprintf(f, "%s",
19219 ZLIB_VERSION[0] == '1' &&
19220 (ZLIB_VERSION[2] > '1' ||
19221 (ZLIB_VERSION[2] == '1' &&
19222 ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
19223 exit(0);
19224 }
e6cc62c6
VS
19225
19226_ACEOF
19227rm -f conftest$ac_exeext
19228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19229 (eval $ac_link) 2>&5
19230 ac_status=$?
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19234 (eval $ac_try) 2>&5
19235 ac_status=$?
19236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); }; }; then
d643b80e
VZ
19238 ac_cv_header_zlib_h=`cat conftestval`
19239else
e6cc62c6
VS
19240 echo "$as_me: program exited with status $ac_status" >&5
19241echo "$as_me: failed program was:" >&5
19242sed 's/^/| /' conftest.$ac_ext >&5
19243
19244( exit $ac_status )
19245ac_cv_header_zlib_h=no
d643b80e 19246fi
f95e4495 19247rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
d643b80e
VZ
19248fi
19249
d643b80e 19250fi
e6cc62c6
VS
19251echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19252echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19253 if test "${ac_cv_header_zlib_h+set}" = set; then
19254 echo "$as_me:$LINENO: checking for zlib.h" >&5
19255echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19256if test "${ac_cv_header_zlib_h+set}" = set; then
19257 echo $ECHO_N "(cached) $ECHO_C" >&6
19258fi
19259echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19260echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
89e6bf6d 19261else
e6cc62c6
VS
19262 # Is the header compilable?
19263echo "$as_me:$LINENO: checking zlib.h usability" >&5
19264echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
19265cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19266/* confdefs.h. */
19267_ACEOF
19268cat confdefs.h >>conftest.$ac_ext
19269cat >>conftest.$ac_ext <<_ACEOF
19270/* end confdefs.h. */
19271$ac_includes_default
89e6bf6d 19272#include <zlib.h>
e6cc62c6
VS
19273_ACEOF
19274rm -f conftest.$ac_objext
19275if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 19276 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19277 ac_status=$?
f95e4495
VS
19278 grep -v '^ *+' conftest.er1 >conftest.err
19279 rm -f conftest.er1
19280 cat conftest.err >&5
e6cc62c6
VS
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); } &&
f95e4495
VS
19283 { ac_try='test -z "$ac_c_werror_flag"
19284 || test ! -s conftest.err'
19285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19286 (eval $ac_try) 2>&5
19287 ac_status=$?
19288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19289 (exit $ac_status); }; } &&
19290 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19292 (eval $ac_try) 2>&5
19293 ac_status=$?
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); }; }; then
19296 ac_header_compiler=yes
19297else
19298 echo "$as_me: failed program was:" >&5
19299sed 's/^/| /' conftest.$ac_ext >&5
19300
19301ac_header_compiler=no
19302fi
f95e4495 19303rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19304echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19305echo "${ECHO_T}$ac_header_compiler" >&6
19306
19307# Is the header present?
19308echo "$as_me:$LINENO: checking zlib.h presence" >&5
19309echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
19310cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19311/* confdefs.h. */
19312_ACEOF
19313cat confdefs.h >>conftest.$ac_ext
19314cat >>conftest.$ac_ext <<_ACEOF
19315/* end confdefs.h. */
19316#include <zlib.h>
19317_ACEOF
19318if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19319 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19320 ac_status=$?
19321 grep -v '^ *+' conftest.er1 >conftest.err
19322 rm -f conftest.er1
19323 cat conftest.err >&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); } >/dev/null; then
19326 if test -s conftest.err; then
19327 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 19328 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
19329 else
19330 ac_cpp_err=
19331 fi
19332else
19333 ac_cpp_err=yes
19334fi
19335if test -z "$ac_cpp_err"; then
19336 ac_header_preproc=yes
19337else
19338 echo "$as_me: failed program was:" >&5
19339sed 's/^/| /' conftest.$ac_ext >&5
19340
19341 ac_header_preproc=no
19342fi
19343rm -f conftest.err conftest.$ac_ext
19344echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19345echo "${ECHO_T}$ac_header_preproc" >&6
19346
19347# So? What about this header?
f95e4495
VS
19348case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19349 yes:no: )
e6cc62c6
VS
19350 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
19351echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
19352 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
19353echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
19354 ac_header_preproc=yes
e6cc62c6 19355 ;;
f95e4495 19356 no:yes:* )
e6cc62c6
VS
19357 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
19358echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
f95e4495
VS
19359 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
19360echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
19361 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
19362echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
19363 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
19364echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
19365 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
19366echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
19367 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
19368echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
19369 (
19370 cat <<\_ASBOX
f95e4495
VS
19371## ----------------------------------------- ##
19372## Report this to wx-dev@lists.wxwindows.org ##
19373## ----------------------------------------- ##
e6cc62c6
VS
19374_ASBOX
19375 ) |
19376 sed "s/^/$as_me: WARNING: /" >&2
19377 ;;
19378esac
19379echo "$as_me:$LINENO: checking for zlib.h" >&5
19380echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
19381if test "${ac_cv_header_zlib_h+set}" = set; then
19382 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 19383else
e6cc62c6
VS
19384 ac_cv_header_zlib_h=$ac_header_preproc
19385fi
19386echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
19387echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
19388
89e6bf6d
VZ
19389fi
19390
d643b80e 19391
e6cc62c6 19392
d775acfa
VZ
19393 system_zlib_h_ok=$ac_cv_header_zlib_h
19394 fi
19395
19396 if test "$system_zlib_h_ok" = "yes"; then
e6cc62c6
VS
19397 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
19398echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
19399if test "${ac_cv_lib_z_deflate+set}" = set; then
19400 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19401else
e6cc62c6 19402 ac_check_lib_save_LIBS=$LIBS
21d1c967 19403LIBS="-lz $LIBS"
e6cc62c6 19404cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19405/* confdefs.h. */
19406_ACEOF
19407cat confdefs.h >>conftest.$ac_ext
19408cat >>conftest.$ac_ext <<_ACEOF
19409/* end confdefs.h. */
19410
21d1c967 19411/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19412#ifdef __cplusplus
19413extern "C"
19414#endif
21d1c967 19415/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19416 builtin and then its argument prototype would still apply. */
19417char deflate ();
19418int
19419main ()
19420{
19421deflate ();
19422 ;
19423 return 0;
19424}
19425_ACEOF
19426rm -f conftest.$ac_objext conftest$ac_exeext
19427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 19428 (eval $ac_link) 2>conftest.er1
e6cc62c6 19429 ac_status=$?
f95e4495
VS
19430 grep -v '^ *+' conftest.er1 >conftest.err
19431 rm -f conftest.er1
19432 cat conftest.err >&5
e6cc62c6
VS
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); } &&
f95e4495
VS
19435 { ac_try='test -z "$ac_c_werror_flag"
19436 || test ! -s conftest.err'
19437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19438 (eval $ac_try) 2>&5
19439 ac_status=$?
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; } &&
19442 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19444 (eval $ac_try) 2>&5
19445 ac_status=$?
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; }; then
19448 ac_cv_lib_z_deflate=yes
19449else
19450 echo "$as_me: failed program was:" >&5
19451sed 's/^/| /' conftest.$ac_ext >&5
19452
19453ac_cv_lib_z_deflate=no
19454fi
f95e4495
VS
19455rm -f conftest.err conftest.$ac_objext \
19456 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19457LIBS=$ac_check_lib_save_LIBS
19458fi
19459echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
19460echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
19461if test $ac_cv_lib_z_deflate = yes; then
a0b9e27f 19462 ZLIB_LINK=" -lz"
a0b9e27f 19463fi
698dcdb6 19464
d643b80e 19465 fi
247f5006 19466
21d1c967
GD
19467 if test "x$ZLIB_LINK" = "x" ; then
19468 if test "$wxUSE_ZLIB" = "sys" ; then
e6cc62c6
VS
19469 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
19470echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
19471 { (exit 1); exit 1; }; }
21d1c967 19472 else
e6cc62c6
VS
19473 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
19474echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
19475 wxUSE_ZLIB=builtin
19476 fi
19477 else
19478 wxUSE_ZLIB=sys
19479 fi
19480 fi
ab9b9eab
VZ
19481fi
19482
8284b0c5 19483
21d1c967
GD
19484PNG_LINK=
19485if test "$wxUSE_LIBPNG" != "no" ; then
e6cc62c6 19486 cat >>confdefs.h <<\_ACEOF
21d1c967 19487#define wxUSE_LIBPNG 1
e6cc62c6 19488_ACEOF
90dd450c 19489
8284b0c5 19490
21d1c967 19491 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
e6cc62c6
VS
19492 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
19493echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
21d1c967
GD
19494 wxUSE_LIBPNG=sys
19495 fi
90dd450c 19496
21d1c967 19497 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
e6cc62c6
VS
19498 { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
19499echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
21d1c967
GD
19500 wxUSE_LIBPNG=builtin
19501 fi
19502
19503 if test "$wxUSE_MGL" != 1 ; then
19504 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
e6cc62c6
VS
19505 echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
19506echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6
19507if test "${ac_cv_header_png_h+set}" = set; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
5d3f766d
VZ
19509else
19510 if test "$cross_compiling" = yes; then
89e6bf6d 19511 unset ac_cv_header_png_h
e6cc62c6 19512
5d3f766d 19513else
e6cc62c6 19514 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19515/* confdefs.h. */
19516_ACEOF
19517cat confdefs.h >>conftest.$ac_ext
19518cat >>conftest.$ac_ext <<_ACEOF
19519/* end confdefs.h. */
19520
ef33c576 19521 #include <png.h>
5d3f766d
VZ
19522 #include <stdio.h>
19523
19524 int main()
19525 {
19526 FILE *f=fopen("conftestval", "w");
19527 if (!f) exit(1);
19528 fprintf(f, "%s",
19529 PNG_LIBPNG_VER > 90 ? "yes" : "no");
19530 exit(0);
19531 }
e6cc62c6
VS
19532
19533_ACEOF
19534rm -f conftest$ac_exeext
19535if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19536 (eval $ac_link) 2>&5
19537 ac_status=$?
19538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19539 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19541 (eval $ac_try) 2>&5
19542 ac_status=$?
19543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544 (exit $ac_status); }; }; then
5d3f766d
VZ
19545 ac_cv_header_png_h=`cat conftestval`
19546else
e6cc62c6
VS
19547 echo "$as_me: program exited with status $ac_status" >&5
19548echo "$as_me: failed program was:" >&5
19549sed 's/^/| /' conftest.$ac_ext >&5
19550
19551( exit $ac_status )
19552ac_cv_header_png_h=no
5d3f766d 19553fi
f95e4495 19554rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5d3f766d
VZ
19555fi
19556
5d3f766d 19557fi
e6cc62c6
VS
19558echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19559echo "${ECHO_T}$ac_cv_header_png_h" >&6
19560 if test "${ac_cv_header_png_h+set}" = set; then
19561 echo "$as_me:$LINENO: checking for png.h" >&5
19562echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19563if test "${ac_cv_header_png_h+set}" = set; then
19564 echo $ECHO_N "(cached) $ECHO_C" >&6
19565fi
19566echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19567echo "${ECHO_T}$ac_cv_header_png_h" >&6
89e6bf6d 19568else
e6cc62c6
VS
19569 # Is the header compilable?
19570echo "$as_me:$LINENO: checking png.h usability" >&5
19571echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
19572cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19573/* confdefs.h. */
19574_ACEOF
19575cat confdefs.h >>conftest.$ac_ext
19576cat >>conftest.$ac_ext <<_ACEOF
19577/* end confdefs.h. */
19578$ac_includes_default
89e6bf6d 19579#include <png.h>
e6cc62c6
VS
19580_ACEOF
19581rm -f conftest.$ac_objext
19582if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 19583 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19584 ac_status=$?
f95e4495
VS
19585 grep -v '^ *+' conftest.er1 >conftest.err
19586 rm -f conftest.er1
19587 cat conftest.err >&5
e6cc62c6
VS
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); } &&
f95e4495
VS
19590 { ac_try='test -z "$ac_c_werror_flag"
19591 || test ! -s conftest.err'
19592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19593 (eval $ac_try) 2>&5
19594 ac_status=$?
19595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19596 (exit $ac_status); }; } &&
19597 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19599 (eval $ac_try) 2>&5
19600 ac_status=$?
19601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19602 (exit $ac_status); }; }; then
19603 ac_header_compiler=yes
19604else
19605 echo "$as_me: failed program was:" >&5
19606sed 's/^/| /' conftest.$ac_ext >&5
19607
19608ac_header_compiler=no
19609fi
f95e4495 19610rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
19611echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19612echo "${ECHO_T}$ac_header_compiler" >&6
19613
19614# Is the header present?
19615echo "$as_me:$LINENO: checking png.h presence" >&5
19616echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
19617cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19618/* confdefs.h. */
19619_ACEOF
19620cat confdefs.h >>conftest.$ac_ext
19621cat >>conftest.$ac_ext <<_ACEOF
19622/* end confdefs.h. */
19623#include <png.h>
19624_ACEOF
19625if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19626 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19627 ac_status=$?
19628 grep -v '^ *+' conftest.er1 >conftest.err
19629 rm -f conftest.er1
19630 cat conftest.err >&5
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); } >/dev/null; then
19633 if test -s conftest.err; then
19634 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 19635 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
19636 else
19637 ac_cpp_err=
19638 fi
19639else
19640 ac_cpp_err=yes
19641fi
19642if test -z "$ac_cpp_err"; then
19643 ac_header_preproc=yes
19644else
19645 echo "$as_me: failed program was:" >&5
19646sed 's/^/| /' conftest.$ac_ext >&5
19647
19648 ac_header_preproc=no
19649fi
19650rm -f conftest.err conftest.$ac_ext
19651echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19652echo "${ECHO_T}$ac_header_preproc" >&6
19653
19654# So? What about this header?
f95e4495
VS
19655case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19656 yes:no: )
e6cc62c6
VS
19657 { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
19658echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
19659 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
19660echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
19661 ac_header_preproc=yes
e6cc62c6 19662 ;;
f95e4495 19663 no:yes:* )
e6cc62c6
VS
19664 { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
19665echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
f95e4495
VS
19666 { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
19667echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
19668 { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
19669echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
19670 { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
19671echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
19672 { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
19673echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
19674 { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
19675echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
19676 (
19677 cat <<\_ASBOX
f95e4495
VS
19678## ----------------------------------------- ##
19679## Report this to wx-dev@lists.wxwindows.org ##
19680## ----------------------------------------- ##
e6cc62c6
VS
19681_ASBOX
19682 ) |
19683 sed "s/^/$as_me: WARNING: /" >&2
19684 ;;
19685esac
19686echo "$as_me:$LINENO: checking for png.h" >&5
19687echo $ECHO_N "checking for png.h... $ECHO_C" >&6
19688if test "${ac_cv_header_png_h+set}" = set; then
19689 echo $ECHO_N "(cached) $ECHO_C" >&6
89e6bf6d 19690else
e6cc62c6
VS
19691 ac_cv_header_png_h=$ac_header_preproc
19692fi
19693echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
19694echo "${ECHO_T}$ac_cv_header_png_h" >&6
19695
89e6bf6d
VZ
19696fi
19697
5d3f766d 19698
e6cc62c6 19699
5d3f766d 19700 if test "$ac_cv_header_png_h" = "yes"; then
e6cc62c6
VS
19701 echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
19702echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6
19703if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
19704 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19705else
e6cc62c6 19706 ac_check_lib_save_LIBS=$LIBS
21d1c967 19707LIBS="-lpng -lz -lm $LIBS"
e6cc62c6 19708cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19709/* confdefs.h. */
19710_ACEOF
19711cat confdefs.h >>conftest.$ac_ext
19712cat >>conftest.$ac_ext <<_ACEOF
19713/* end confdefs.h. */
19714
21d1c967 19715/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19716#ifdef __cplusplus
19717extern "C"
19718#endif
21d1c967 19719/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19720 builtin and then its argument prototype would still apply. */
19721char png_check_sig ();
19722int
19723main ()
19724{
19725png_check_sig ();
19726 ;
19727 return 0;
19728}
19729_ACEOF
19730rm -f conftest.$ac_objext conftest$ac_exeext
19731if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 19732 (eval $ac_link) 2>conftest.er1
e6cc62c6 19733 ac_status=$?
f95e4495
VS
19734 grep -v '^ *+' conftest.er1 >conftest.err
19735 rm -f conftest.er1
19736 cat conftest.err >&5
e6cc62c6
VS
19737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); } &&
f95e4495
VS
19739 { ac_try='test -z "$ac_c_werror_flag"
19740 || test ! -s conftest.err'
19741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19742 (eval $ac_try) 2>&5
19743 ac_status=$?
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); }; } &&
19746 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19748 (eval $ac_try) 2>&5
19749 ac_status=$?
19750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19751 (exit $ac_status); }; }; then
19752 ac_cv_lib_png_png_check_sig=yes
19753else
19754 echo "$as_me: failed program was:" >&5
19755sed 's/^/| /' conftest.$ac_ext >&5
19756
19757ac_cv_lib_png_png_check_sig=no
19758fi
f95e4495
VS
19759rm -f conftest.err conftest.$ac_objext \
19760 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19761LIBS=$ac_check_lib_save_LIBS
19762fi
19763echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
19764echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6
19765if test $ac_cv_lib_png_png_check_sig = yes; then
a0b9e27f 19766 PNG_LINK=" -lpng"
a0b9e27f 19767fi
90dd450c 19768
5d3f766d 19769 fi
247f5006 19770
21d1c967
GD
19771 if test "x$PNG_LINK" = "x" ; then
19772 if test "$wxUSE_LIBPNG" = "sys" ; then
e6cc62c6
VS
19773 { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
19774echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
19775 { (exit 1); exit 1; }; }
21d1c967 19776 else
e6cc62c6
VS
19777 { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
19778echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
21d1c967
GD
19779 wxUSE_LIBPNG=builtin
19780 fi
19781 else
2b5f62a0 19782 wxUSE_LIBPNG=sys
21d1c967
GD
19783 fi
19784 fi
19785 fi
90dd450c 19786
21d1c967 19787 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
90dd450c
VZ
19788fi
19789
8284b0c5 19790
21d1c967
GD
19791JPEG_LINK=
19792if test "$wxUSE_LIBJPEG" != "no" ; then
e6cc62c6 19793 cat >>confdefs.h <<\_ACEOF
21d1c967 19794#define wxUSE_LIBJPEG 1
e6cc62c6 19795_ACEOF
90dd450c 19796
8284b0c5 19797
21d1c967 19798 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
e6cc62c6
VS
19799 { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
19800echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
21d1c967
GD
19801 wxUSE_LIBJPEG=sys
19802 fi
90dd450c 19803
21d1c967
GD
19804 if test "$wxUSE_MGL" != 1 ; then
19805 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
e6cc62c6
VS
19806 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
19807echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
19808 if test "${ac_cv_header_jpeglib_h+set}" = set; then
19809 echo $ECHO_N "(cached) $ECHO_C" >&6
19810else
19811 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19812/* confdefs.h. */
19813_ACEOF
19814cat confdefs.h >>conftest.$ac_ext
19815cat >>conftest.$ac_ext <<_ACEOF
19816/* end confdefs.h. */
90dd450c 19817
21d1c967
GD
19818 #undef HAVE_STDLIB_H
19819 #include <stdio.h>
19820 #include <jpeglib.h>
90dd450c 19821
e6cc62c6
VS
19822int
19823main ()
19824{
19825
19826
19827 ;
19828 return 0;
19829}
19830_ACEOF
19831rm -f conftest.$ac_objext
19832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 19833 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19834 ac_status=$?
f95e4495
VS
19835 grep -v '^ *+' conftest.er1 >conftest.err
19836 rm -f conftest.er1
19837 cat conftest.err >&5
e6cc62c6
VS
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); } &&
f95e4495
VS
19840 { ac_try='test -z "$ac_c_werror_flag"
19841 || test ! -s conftest.err'
19842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19843 (eval $ac_try) 2>&5
19844 ac_status=$?
19845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846 (exit $ac_status); }; } &&
19847 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
19848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19849 (eval $ac_try) 2>&5
19850 ac_status=$?
19851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852 (exit $ac_status); }; }; then
21d1c967 19853 ac_cv_header_jpeglib_h=yes
90dd450c 19854else
e6cc62c6
VS
19855 echo "$as_me: failed program was:" >&5
19856sed 's/^/| /' conftest.$ac_ext >&5
19857
19858ac_cv_header_jpeglib_h=no
19859
90dd450c 19860fi
f95e4495 19861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 19862
90dd450c
VZ
19863fi
19864
e6cc62c6
VS
19865 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
19866echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
90dd450c 19867
21d1c967 19868 if test "$ac_cv_header_jpeglib_h" = "yes"; then
e6cc62c6
VS
19869 echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
19870echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6
19871if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
19872 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 19873else
e6cc62c6 19874 ac_check_lib_save_LIBS=$LIBS
21d1c967 19875LIBS="-ljpeg $LIBS"
e6cc62c6 19876cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19877/* confdefs.h. */
19878_ACEOF
19879cat confdefs.h >>conftest.$ac_ext
19880cat >>conftest.$ac_ext <<_ACEOF
19881/* end confdefs.h. */
19882
21d1c967 19883/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
19884#ifdef __cplusplus
19885extern "C"
19886#endif
21d1c967 19887/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
19888 builtin and then its argument prototype would still apply. */
19889char jpeg_read_header ();
19890int
19891main ()
19892{
19893jpeg_read_header ();
19894 ;
19895 return 0;
19896}
19897_ACEOF
19898rm -f conftest.$ac_objext conftest$ac_exeext
19899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 19900 (eval $ac_link) 2>conftest.er1
e6cc62c6 19901 ac_status=$?
f95e4495
VS
19902 grep -v '^ *+' conftest.er1 >conftest.err
19903 rm -f conftest.er1
19904 cat conftest.err >&5
e6cc62c6
VS
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } &&
f95e4495
VS
19907 { ac_try='test -z "$ac_c_werror_flag"
19908 || test ! -s conftest.err'
19909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19910 (eval $ac_try) 2>&5
19911 ac_status=$?
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); }; } &&
19914 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
19915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19916 (eval $ac_try) 2>&5
19917 ac_status=$?
19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19919 (exit $ac_status); }; }; then
19920 ac_cv_lib_jpeg_jpeg_read_header=yes
19921else
19922 echo "$as_me: failed program was:" >&5
19923sed 's/^/| /' conftest.$ac_ext >&5
19924
19925ac_cv_lib_jpeg_jpeg_read_header=no
19926fi
f95e4495
VS
19927rm -f conftest.err conftest.$ac_objext \
19928 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
19929LIBS=$ac_check_lib_save_LIBS
19930fi
19931echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
19932echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6
19933if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
21d1c967 19934 JPEG_LINK=" -ljpeg"
90dd450c
VZ
19935fi
19936
21d1c967 19937 fi
90dd450c 19938
21d1c967
GD
19939 if test "x$JPEG_LINK" = "x" ; then
19940 if test "$wxUSE_LIBJPEG" = "sys" ; then
e6cc62c6
VS
19941 { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
19942echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
19943 { (exit 1); exit 1; }; }
21d1c967 19944 else
e6cc62c6
VS
19945 { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
19946echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
21d1c967
GD
19947 wxUSE_LIBJPEG=builtin
19948 fi
19949 else
19950 wxUSE_LIBJPEG=sys
19951 fi
19952 fi
19953 fi
21d1c967 19954fi
90dd450c 19955
8284b0c5 19956
21d1c967 19957TIFF_LINK=
2b5f62a0 19958TIFF_PREREQ_LINKS=-lm
21d1c967 19959if test "$wxUSE_LIBTIFF" != "no" ; then
e6cc62c6 19960 cat >>confdefs.h <<\_ACEOF
21d1c967 19961#define wxUSE_LIBTIFF 1
e6cc62c6 19962_ACEOF
21d1c967 19963
8284b0c5 19964
21d1c967 19965 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
2b5f62a0
VZ
19966 if test "$wxUSE_LIBJPEG" = "sys"; then
19967 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
19968 fi
19969 if test "$wxUSE_ZLIB" = "sys"; then
19970 TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
19971 fi
e6cc62c6
VS
19972 if test "${ac_cv_header_tiffio_h+set}" = set; then
19973 echo "$as_me:$LINENO: checking for tiffio.h" >&5
19974echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
19975if test "${ac_cv_header_tiffio_h+set}" = set; then
19976 echo $ECHO_N "(cached) $ECHO_C" >&6
19977fi
19978echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
19979echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
19980else
19981 # Is the header compilable?
19982echo "$as_me:$LINENO: checking tiffio.h usability" >&5
19983echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6
19984cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
19985/* confdefs.h. */
19986_ACEOF
19987cat confdefs.h >>conftest.$ac_ext
19988cat >>conftest.$ac_ext <<_ACEOF
19989/* end confdefs.h. */
19990$ac_includes_default
247f5006 19991#include <tiffio.h>
e6cc62c6
VS
19992_ACEOF
19993rm -f conftest.$ac_objext
19994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 19995 (eval $ac_compile) 2>conftest.er1
e6cc62c6 19996 ac_status=$?
f95e4495
VS
19997 grep -v '^ *+' conftest.er1 >conftest.err
19998 rm -f conftest.er1
19999 cat conftest.err >&5
e6cc62c6
VS
20000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001 (exit $ac_status); } &&
f95e4495
VS
20002 { ac_try='test -z "$ac_c_werror_flag"
20003 || test ! -s conftest.err'
20004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20005 (eval $ac_try) 2>&5
20006 ac_status=$?
20007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20008 (exit $ac_status); }; } &&
20009 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20011 (eval $ac_try) 2>&5
20012 ac_status=$?
20013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20014 (exit $ac_status); }; }; then
20015 ac_header_compiler=yes
20016else
20017 echo "$as_me: failed program was:" >&5
20018sed 's/^/| /' conftest.$ac_ext >&5
20019
20020ac_header_compiler=no
20021fi
f95e4495 20022rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20023echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20024echo "${ECHO_T}$ac_header_compiler" >&6
20025
20026# Is the header present?
20027echo "$as_me:$LINENO: checking tiffio.h presence" >&5
20028echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6
20029cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20030/* confdefs.h. */
20031_ACEOF
20032cat confdefs.h >>conftest.$ac_ext
20033cat >>conftest.$ac_ext <<_ACEOF
20034/* end confdefs.h. */
20035#include <tiffio.h>
20036_ACEOF
20037if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20039 ac_status=$?
20040 grep -v '^ *+' conftest.er1 >conftest.err
20041 rm -f conftest.er1
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20044 (exit $ac_status); } >/dev/null; then
20045 if test -s conftest.err; then
20046 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 20047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
20048 else
20049 ac_cpp_err=
20050 fi
20051else
20052 ac_cpp_err=yes
20053fi
20054if test -z "$ac_cpp_err"; then
20055 ac_header_preproc=yes
20056else
20057 echo "$as_me: failed program was:" >&5
20058sed 's/^/| /' conftest.$ac_ext >&5
20059
20060 ac_header_preproc=no
20061fi
20062rm -f conftest.err conftest.$ac_ext
20063echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20064echo "${ECHO_T}$ac_header_preproc" >&6
20065
20066# So? What about this header?
f95e4495
VS
20067case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20068 yes:no: )
e6cc62c6
VS
20069 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
20070echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
20071 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
20072echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
20073 ac_header_preproc=yes
e6cc62c6 20074 ;;
f95e4495 20075 no:yes:* )
e6cc62c6
VS
20076 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
20077echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
f95e4495
VS
20078 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
20079echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
20080 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
20081echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
20082 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
20083echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
20084 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
20085echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
20086 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
20087echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
20088 (
20089 cat <<\_ASBOX
f95e4495
VS
20090## ----------------------------------------- ##
20091## Report this to wx-dev@lists.wxwindows.org ##
20092## ----------------------------------------- ##
e6cc62c6
VS
20093_ASBOX
20094 ) |
20095 sed "s/^/$as_me: WARNING: /" >&2
20096 ;;
20097esac
20098echo "$as_me:$LINENO: checking for tiffio.h" >&5
20099echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6
20100if test "${ac_cv_header_tiffio_h+set}" = set; then
20101 echo $ECHO_N "(cached) $ECHO_C" >&6
20102else
20103 ac_cv_header_tiffio_h=$ac_header_preproc
21d1c967 20104fi
e6cc62c6
VS
20105echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
20106echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6
20107
21d1c967 20108fi
e6cc62c6 20109if test $ac_cv_header_tiffio_h = yes; then
0e012a93
VZ
20110
20111 echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
e6cc62c6
VS
20112echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6
20113if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 20115else
e6cc62c6 20116 ac_check_lib_save_LIBS=$LIBS
2b5f62a0 20117LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
e6cc62c6 20118cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20119/* confdefs.h. */
20120_ACEOF
20121cat confdefs.h >>conftest.$ac_ext
20122cat >>conftest.$ac_ext <<_ACEOF
20123/* end confdefs.h. */
20124
ab9b9eab 20125/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
20126#ifdef __cplusplus
20127extern "C"
20128#endif
ab9b9eab 20129/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
20130 builtin and then its argument prototype would still apply. */
20131char TIFFError ();
20132int
20133main ()
20134{
20135TIFFError ();
20136 ;
20137 return 0;
20138}
20139_ACEOF
20140rm -f conftest.$ac_objext conftest$ac_exeext
20141if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 20142 (eval $ac_link) 2>conftest.er1
e6cc62c6 20143 ac_status=$?
f95e4495
VS
20144 grep -v '^ *+' conftest.er1 >conftest.err
20145 rm -f conftest.er1
20146 cat conftest.err >&5
e6cc62c6
VS
20147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20148 (exit $ac_status); } &&
f95e4495
VS
20149 { ac_try='test -z "$ac_c_werror_flag"
20150 || test ! -s conftest.err'
20151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20152 (eval $ac_try) 2>&5
20153 ac_status=$?
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); }; } &&
20156 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
20157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20158 (eval $ac_try) 2>&5
20159 ac_status=$?
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); }; }; then
20162 ac_cv_lib_tiff_TIFFError=yes
20163else
20164 echo "$as_me: failed program was:" >&5
20165sed 's/^/| /' conftest.$ac_ext >&5
20166
20167ac_cv_lib_tiff_TIFFError=no
20168fi
f95e4495
VS
20169rm -f conftest.err conftest.$ac_objext \
20170 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
20171LIBS=$ac_check_lib_save_LIBS
20172fi
20173echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
20174echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6
20175if test $ac_cv_lib_tiff_TIFFError = yes; then
a0b9e27f 20176 TIFF_LINK=" -ltiff"
a0b9e27f 20177fi
cd6d6d5b 20178
e6cc62c6 20179
0e012a93 20180
a0b9e27f 20181fi
8284b0c5 20182
247f5006 20183
e6cc62c6 20184
21d1c967
GD
20185 if test "x$TIFF_LINK" = "x" ; then
20186 if test "$wxUSE_LIBTIFF" = "sys" ; then
e6cc62c6
VS
20187 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
20188echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
20189 { (exit 1); exit 1; }; }
90dd450c 20190 else
e6cc62c6
VS
20191 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
20192echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
21d1c967 20193 wxUSE_LIBTIFF=builtin
d8356fa3 20194 fi
d8356fa3 20195 else
21d1c967 20196 wxUSE_LIBTIFF=sys
d8356fa3 20197 fi
21d1c967 20198 fi
21d1c967 20199fi
10f2d63a 20200
8284b0c5 20201
672abd7a 20202if test "$wxUSE_EXPAT" != "no"; then
e06468e8 20203 wxUSE_XML=yes
672abd7a
VS
20204 cat >>confdefs.h <<\_ACEOF
20205#define wxUSE_EXPAT 1
20206_ACEOF
20207
20208 cat >>confdefs.h <<\_ACEOF
20209#define wxUSE_XML 1
20210_ACEOF
20211
20212
20213 if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
20214 if test "${ac_cv_header_expat_h+set}" = set; then
20215 echo "$as_me:$LINENO: checking for expat.h" >&5
20216echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20217if test "${ac_cv_header_expat_h+set}" = set; then
20218 echo $ECHO_N "(cached) $ECHO_C" >&6
20219fi
20220echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20221echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20222else
20223 # Is the header compilable?
20224echo "$as_me:$LINENO: checking expat.h usability" >&5
20225echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
20226cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
20227/* confdefs.h. */
20228_ACEOF
20229cat confdefs.h >>conftest.$ac_ext
20230cat >>conftest.$ac_ext <<_ACEOF
20231/* end confdefs.h. */
20232$ac_includes_default
20233#include <expat.h>
20234_ACEOF
20235rm -f conftest.$ac_objext
20236if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 20237 (eval $ac_compile) 2>conftest.er1
672abd7a 20238 ac_status=$?
f95e4495
VS
20239 grep -v '^ *+' conftest.er1 >conftest.err
20240 rm -f conftest.er1
20241 cat conftest.err >&5
672abd7a
VS
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); } &&
f95e4495
VS
20244 { ac_try='test -z "$ac_c_werror_flag"
20245 || test ! -s conftest.err'
20246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20247 (eval $ac_try) 2>&5
20248 ac_status=$?
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); }; } &&
20251 { ac_try='test -s conftest.$ac_objext'
672abd7a
VS
20252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20253 (eval $ac_try) 2>&5
20254 ac_status=$?
20255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20256 (exit $ac_status); }; }; then
20257 ac_header_compiler=yes
20258else
20259 echo "$as_me: failed program was:" >&5
20260sed 's/^/| /' conftest.$ac_ext >&5
20261
20262ac_header_compiler=no
20263fi
f95e4495 20264rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
672abd7a
VS
20265echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20266echo "${ECHO_T}$ac_header_compiler" >&6
20267
20268# Is the header present?
20269echo "$as_me:$LINENO: checking expat.h presence" >&5
20270echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
20271cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
20272/* confdefs.h. */
20273_ACEOF
20274cat confdefs.h >>conftest.$ac_ext
20275cat >>conftest.$ac_ext <<_ACEOF
20276/* end confdefs.h. */
20277#include <expat.h>
20278_ACEOF
20279if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20280 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20281 ac_status=$?
20282 grep -v '^ *+' conftest.er1 >conftest.err
20283 rm -f conftest.er1
20284 cat conftest.err >&5
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); } >/dev/null; then
20287 if test -s conftest.err; then
20288 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 20289 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
672abd7a
VS
20290 else
20291 ac_cpp_err=
20292 fi
20293else
20294 ac_cpp_err=yes
20295fi
20296if test -z "$ac_cpp_err"; then
20297 ac_header_preproc=yes
20298else
20299 echo "$as_me: failed program was:" >&5
20300sed 's/^/| /' conftest.$ac_ext >&5
20301
20302 ac_header_preproc=no
20303fi
20304rm -f conftest.err conftest.$ac_ext
20305echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20306echo "${ECHO_T}$ac_header_preproc" >&6
20307
20308# So? What about this header?
f95e4495
VS
20309case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20310 yes:no: )
672abd7a
VS
20311 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
20312echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
20313 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
20314echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
20315 ac_header_preproc=yes
672abd7a 20316 ;;
f95e4495 20317 no:yes:* )
672abd7a
VS
20318 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
20319echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
f95e4495
VS
20320 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
20321echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
20322 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
20323echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
20324 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
20325echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
672abd7a
VS
20326 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
20327echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
20328 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
20329echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
672abd7a
VS
20330 (
20331 cat <<\_ASBOX
f95e4495
VS
20332## ----------------------------------------- ##
20333## Report this to wx-dev@lists.wxwindows.org ##
20334## ----------------------------------------- ##
672abd7a
VS
20335_ASBOX
20336 ) |
20337 sed "s/^/$as_me: WARNING: /" >&2
20338 ;;
20339esac
20340echo "$as_me:$LINENO: checking for expat.h" >&5
20341echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
20342if test "${ac_cv_header_expat_h+set}" = set; then
20343 echo $ECHO_N "(cached) $ECHO_C" >&6
20344else
20345 ac_cv_header_expat_h=$ac_header_preproc
20346fi
20347echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
20348echo "${ECHO_T}$ac_cv_header_expat_h" >&6
20349
20350fi
5f0b6dff
VS
20351if test $ac_cv_header_expat_h = yes; then
20352 found_expat_h=1
20353fi
20354
20355
20356 if test "x$found_expat_h" = "x1"; then
20357 echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
20358echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6
20359if test "${wx_cv_expat_is_not_broken+set}" = set; then
20360 echo $ECHO_N "(cached) $ECHO_C" >&6
20361else
20362
20363
672abd7a 20364
5f0b6dff
VS
20365 ac_ext=cc
20366ac_cpp='$CXXCPP $CPPFLAGS'
20367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20370
20371 cat >conftest.$ac_ext <<_ACEOF
5f0b6dff
VS
20372/* confdefs.h. */
20373_ACEOF
20374cat confdefs.h >>conftest.$ac_ext
20375cat >>conftest.$ac_ext <<_ACEOF
20376/* end confdefs.h. */
20377#include <expat.h>
20378int
20379main ()
20380{
672abd7a 20381
5f0b6dff
VS
20382 ;
20383 return 0;
20384}
20385_ACEOF
20386rm -f conftest.$ac_objext
20387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 20388 (eval $ac_compile) 2>conftest.er1
5f0b6dff 20389 ac_status=$?
f95e4495
VS
20390 grep -v '^ *+' conftest.er1 >conftest.err
20391 rm -f conftest.er1
20392 cat conftest.err >&5
5f0b6dff
VS
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); } &&
f95e4495
VS
20395 { ac_try='test -z "$ac_cxx_werror_flag"
20396 || test ! -s conftest.err'
20397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20398 (eval $ac_try) 2>&5
20399 ac_status=$?
20400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20401 (exit $ac_status); }; } &&
20402 { ac_try='test -s conftest.$ac_objext'
5f0b6dff
VS
20403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20404 (eval $ac_try) 2>&5
20405 ac_status=$?
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); }; }; then
20408 wx_cv_expat_is_not_broken=yes
20409else
20410 echo "$as_me: failed program was:" >&5
20411sed 's/^/| /' conftest.$ac_ext >&5
20412
20413wx_cv_expat_is_not_broken=no
20414
20415fi
f95e4495 20416rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5f0b6dff
VS
20417 ac_ext=c
20418ac_cpp='$CPP $CPPFLAGS'
20419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20421ac_compiler_gnu=$ac_cv_c_compiler_gnu
20422
20423
20424
20425fi
20426echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
20427echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6
20428 if test "$wx_cv_expat_is_not_broken" = "yes" ; then
20429 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
672abd7a
VS
20430echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
20431if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
20432 echo $ECHO_N "(cached) $ECHO_C" >&6
20433else
20434 ac_check_lib_save_LIBS=$LIBS
20435LIBS="-lexpat $LIBS"
20436cat >conftest.$ac_ext <<_ACEOF
672abd7a
VS
20437/* confdefs.h. */
20438_ACEOF
20439cat confdefs.h >>conftest.$ac_ext
20440cat >>conftest.$ac_ext <<_ACEOF
20441/* end confdefs.h. */
20442
20443/* Override any gcc2 internal prototype to avoid an error. */
20444#ifdef __cplusplus
20445extern "C"
20446#endif
20447/* We use char because int might match the return type of a gcc2
20448 builtin and then its argument prototype would still apply. */
20449char XML_ParserCreate ();
20450int
20451main ()
20452{
20453XML_ParserCreate ();
20454 ;
20455 return 0;
20456}
20457_ACEOF
20458rm -f conftest.$ac_objext conftest$ac_exeext
20459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 20460 (eval $ac_link) 2>conftest.er1
672abd7a 20461 ac_status=$?
f95e4495
VS
20462 grep -v '^ *+' conftest.er1 >conftest.err
20463 rm -f conftest.er1
20464 cat conftest.err >&5
672abd7a
VS
20465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20466 (exit $ac_status); } &&
f95e4495
VS
20467 { ac_try='test -z "$ac_c_werror_flag"
20468 || test ! -s conftest.err'
20469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20470 (eval $ac_try) 2>&5
20471 ac_status=$?
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); }; } &&
20474 { ac_try='test -s conftest$ac_exeext'
672abd7a
VS
20475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20476 (eval $ac_try) 2>&5
20477 ac_status=$?
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); }; }; then
20480 ac_cv_lib_expat_XML_ParserCreate=yes
20481else
20482 echo "$as_me: failed program was:" >&5
20483sed 's/^/| /' conftest.$ac_ext >&5
20484
20485ac_cv_lib_expat_XML_ParserCreate=no
20486fi
f95e4495
VS
20487rm -f conftest.err conftest.$ac_objext \
20488 conftest$ac_exeext conftest.$ac_ext
672abd7a
VS
20489LIBS=$ac_check_lib_save_LIBS
20490fi
20491echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
20492echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
20493if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
20494 EXPAT_LINK=" -lexpat"
20495fi
20496
5f0b6dff 20497 fi
672abd7a
VS
20498 fi
20499 if test "x$EXPAT_LINK" = "x" ; then
20500 if test "$wxUSE_EXPAT" = "sys" ; then
20501 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
20502echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
20503 { (exit 1); exit 1; }; }
20504 else
20505 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
20506echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
20507 wxUSE_EXPAT=builtin
20508 fi
20509 else
20510 wxUSE_EXPAT=sys
20511 fi
20512 fi
20513 if test "$wxUSE_EXPAT" = "builtin" ; then
20514
20515
20516subdirs="$subdirs src/expat"
20517
20518 fi
20519fi
20520
20521
20522
3527f29c
VS
20523if test "$wxUSE_LIBMSPACK" != "no"; then
20524
20525 if test "${ac_cv_header_mspack_h+set}" = set; then
20526 echo "$as_me:$LINENO: checking for mspack.h" >&5
20527echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20528if test "${ac_cv_header_mspack_h+set}" = set; then
20529 echo $ECHO_N "(cached) $ECHO_C" >&6
20530fi
20531echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20532echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20533else
20534 # Is the header compilable?
20535echo "$as_me:$LINENO: checking mspack.h usability" >&5
20536echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6
20537cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
20538/* confdefs.h. */
20539_ACEOF
20540cat confdefs.h >>conftest.$ac_ext
20541cat >>conftest.$ac_ext <<_ACEOF
20542/* end confdefs.h. */
20543$ac_includes_default
20544#include <mspack.h>
20545_ACEOF
20546rm -f conftest.$ac_objext
20547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 20548 (eval $ac_compile) 2>conftest.er1
3527f29c 20549 ac_status=$?
f95e4495
VS
20550 grep -v '^ *+' conftest.er1 >conftest.err
20551 rm -f conftest.er1
20552 cat conftest.err >&5
3527f29c
VS
20553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20554 (exit $ac_status); } &&
f95e4495
VS
20555 { ac_try='test -z "$ac_c_werror_flag"
20556 || test ! -s conftest.err'
20557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20558 (eval $ac_try) 2>&5
20559 ac_status=$?
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); }; } &&
20562 { ac_try='test -s conftest.$ac_objext'
3527f29c
VS
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20565 ac_status=$?
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; }; then
20568 ac_header_compiler=yes
20569else
20570 echo "$as_me: failed program was:" >&5
20571sed 's/^/| /' conftest.$ac_ext >&5
20572
20573ac_header_compiler=no
20574fi
f95e4495 20575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3527f29c
VS
20576echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20577echo "${ECHO_T}$ac_header_compiler" >&6
20578
20579# Is the header present?
20580echo "$as_me:$LINENO: checking mspack.h presence" >&5
20581echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6
20582cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
20583/* confdefs.h. */
20584_ACEOF
20585cat confdefs.h >>conftest.$ac_ext
20586cat >>conftest.$ac_ext <<_ACEOF
20587/* end confdefs.h. */
20588#include <mspack.h>
20589_ACEOF
20590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20592 ac_status=$?
20593 grep -v '^ *+' conftest.er1 >conftest.err
20594 rm -f conftest.er1
20595 cat conftest.err >&5
20596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20597 (exit $ac_status); } >/dev/null; then
20598 if test -s conftest.err; then
20599 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 20600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3527f29c
VS
20601 else
20602 ac_cpp_err=
20603 fi
20604else
20605 ac_cpp_err=yes
20606fi
20607if test -z "$ac_cpp_err"; then
20608 ac_header_preproc=yes
20609else
20610 echo "$as_me: failed program was:" >&5
20611sed 's/^/| /' conftest.$ac_ext >&5
20612
20613 ac_header_preproc=no
20614fi
20615rm -f conftest.err conftest.$ac_ext
20616echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20617echo "${ECHO_T}$ac_header_preproc" >&6
20618
20619# So? What about this header?
f95e4495
VS
20620case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20621 yes:no: )
3527f29c
VS
20622 { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5
20623echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
20624 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the compiler's result" >&5
20625echo "$as_me: WARNING: mspack.h: proceeding with the compiler's result" >&2;}
20626 ac_header_preproc=yes
3527f29c 20627 ;;
f95e4495 20628 no:yes:* )
3527f29c
VS
20629 { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5
20630echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;}
f95e4495
VS
20631 { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5
20632echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;}
20633 { echo "$as_me:$LINENO: WARNING: mspack.h: see the Autoconf documentation" >&5
20634echo "$as_me: WARNING: mspack.h: see the Autoconf documentation" >&2;}
20635 { echo "$as_me:$LINENO: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&5
20636echo "$as_me: WARNING: mspack.h: section \"Present But Cannot Be Compiled\"" >&2;}
3527f29c
VS
20637 { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5
20638echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
20639 { echo "$as_me:$LINENO: WARNING: mspack.h: in the future, the compiler will take precedence" >&5
20640echo "$as_me: WARNING: mspack.h: in the future, the compiler will take precedence" >&2;}
3527f29c
VS
20641 (
20642 cat <<\_ASBOX
f95e4495
VS
20643## ----------------------------------------- ##
20644## Report this to wx-dev@lists.wxwindows.org ##
20645## ----------------------------------------- ##
3527f29c
VS
20646_ASBOX
20647 ) |
20648 sed "s/^/$as_me: WARNING: /" >&2
20649 ;;
20650esac
20651echo "$as_me:$LINENO: checking for mspack.h" >&5
20652echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6
20653if test "${ac_cv_header_mspack_h+set}" = set; then
20654 echo $ECHO_N "(cached) $ECHO_C" >&6
20655else
20656 ac_cv_header_mspack_h=$ac_header_preproc
20657fi
20658echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
20659echo "${ECHO_T}$ac_cv_header_mspack_h" >&6
20660
20661fi
20662if test $ac_cv_header_mspack_h = yes; then
20663 found_mspack_h=1
20664fi
20665
20666
20667 if test "x$found_mspack_h" = "x1"; then
20668 echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
20669echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6
20670if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
20671 echo $ECHO_N "(cached) $ECHO_C" >&6
20672else
20673 ac_check_lib_save_LIBS=$LIBS
20674LIBS="-lmspack $LIBS"
20675cat >conftest.$ac_ext <<_ACEOF
3527f29c
VS
20676/* confdefs.h. */
20677_ACEOF
20678cat confdefs.h >>conftest.$ac_ext
20679cat >>conftest.$ac_ext <<_ACEOF
20680/* end confdefs.h. */
20681
20682/* Override any gcc2 internal prototype to avoid an error. */
20683#ifdef __cplusplus
20684extern "C"
20685#endif
20686/* We use char because int might match the return type of a gcc2
20687 builtin and then its argument prototype would still apply. */
20688char mspack_create_chm_decompressor ();
20689int
20690main ()
20691{
20692mspack_create_chm_decompressor ();
20693 ;
20694 return 0;
20695}
20696_ACEOF
20697rm -f conftest.$ac_objext conftest$ac_exeext
20698if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 20699 (eval $ac_link) 2>conftest.er1
3527f29c 20700 ac_status=$?
f95e4495
VS
20701 grep -v '^ *+' conftest.er1 >conftest.err
20702 rm -f conftest.er1
20703 cat conftest.err >&5
3527f29c
VS
20704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705 (exit $ac_status); } &&
f95e4495
VS
20706 { ac_try='test -z "$ac_c_werror_flag"
20707 || test ! -s conftest.err'
20708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20709 (eval $ac_try) 2>&5
20710 ac_status=$?
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); }; } &&
20713 { ac_try='test -s conftest$ac_exeext'
3527f29c
VS
20714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20715 (eval $ac_try) 2>&5
20716 ac_status=$?
20717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20718 (exit $ac_status); }; }; then
20719 ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
20720else
20721 echo "$as_me: failed program was:" >&5
20722sed 's/^/| /' conftest.$ac_ext >&5
20723
20724ac_cv_lib_mspack_mspack_create_chm_decompressor=no
20725fi
f95e4495
VS
20726rm -f conftest.err conftest.$ac_objext \
20727 conftest$ac_exeext conftest.$ac_ext
3527f29c
VS
20728LIBS=$ac_check_lib_save_LIBS
20729fi
20730echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
20731echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6
20732if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
20733 MSPACK_LINK=" -lmspack"
20734fi
20735
20736 fi
20737 if test "x$MSPACK_LINK" = "x" ; then
20738 wxUSE_LIBMSPACK=no
20739 else
20740 cat >>confdefs.h <<\_ACEOF
20741#define wxUSE_LIBMSPACK 1
20742_ACEOF
20743
20744 fi
20745fi
20746
20747
20748
21d1c967 20749AFMINSTALL=
2b5f62a0 20750WIN32INSTALL=
90dd450c 20751
21d1c967
GD
20752TOOLKIT=
20753TOOLKIT_INCLUDE=
20754WIDGET_SET=
20755
20756if test "$USE_WIN32" = 1 ; then
e6cc62c6
VS
20757
20758for ac_header in w32api.h
21d1c967 20759do
e6cc62c6
VS
20760as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20761if eval "test \"\${$as_ac_Header+set}\" = set"; then
20762 echo "$as_me:$LINENO: checking for $ac_header" >&5
20763echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20764if eval "test \"\${$as_ac_Header+set}\" = set"; then
20765 echo $ECHO_N "(cached) $ECHO_C" >&6
20766fi
20767echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20768echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20769else
20770 # Is the header compilable?
20771echo "$as_me:$LINENO: checking $ac_header usability" >&5
20772echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20773cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20774/* confdefs.h. */
20775_ACEOF
20776cat confdefs.h >>conftest.$ac_ext
20777cat >>conftest.$ac_ext <<_ACEOF
20778/* end confdefs.h. */
20779$ac_includes_default
20780#include <$ac_header>
20781_ACEOF
20782rm -f conftest.$ac_objext
20783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 20784 (eval $ac_compile) 2>conftest.er1
e6cc62c6 20785 ac_status=$?
f95e4495
VS
20786 grep -v '^ *+' conftest.er1 >conftest.err
20787 rm -f conftest.er1
20788 cat conftest.err >&5
e6cc62c6
VS
20789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20790 (exit $ac_status); } &&
f95e4495
VS
20791 { ac_try='test -z "$ac_c_werror_flag"
20792 || test ! -s conftest.err'
20793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20794 (eval $ac_try) 2>&5
20795 ac_status=$?
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); }; } &&
20798 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800 (eval $ac_try) 2>&5
20801 ac_status=$?
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; }; then
20804 ac_header_compiler=yes
20805else
20806 echo "$as_me: failed program was:" >&5
20807sed 's/^/| /' conftest.$ac_ext >&5
20808
20809ac_header_compiler=no
20810fi
f95e4495 20811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20812echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20813echo "${ECHO_T}$ac_header_compiler" >&6
20814
20815# Is the header present?
20816echo "$as_me:$LINENO: checking $ac_header presence" >&5
20817echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20818cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20819/* confdefs.h. */
20820_ACEOF
20821cat confdefs.h >>conftest.$ac_ext
20822cat >>conftest.$ac_ext <<_ACEOF
20823/* end confdefs.h. */
20824#include <$ac_header>
20825_ACEOF
20826if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20827 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20828 ac_status=$?
20829 grep -v '^ *+' conftest.er1 >conftest.err
20830 rm -f conftest.er1
20831 cat conftest.err >&5
20832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20833 (exit $ac_status); } >/dev/null; then
20834 if test -s conftest.err; then
20835 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 20836 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
20837 else
20838 ac_cpp_err=
20839 fi
20840else
20841 ac_cpp_err=yes
20842fi
20843if test -z "$ac_cpp_err"; then
20844 ac_header_preproc=yes
20845else
20846 echo "$as_me: failed program was:" >&5
20847sed 's/^/| /' conftest.$ac_ext >&5
20848
20849 ac_header_preproc=no
20850fi
20851rm -f conftest.err conftest.$ac_ext
20852echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20853echo "${ECHO_T}$ac_header_preproc" >&6
20854
20855# So? What about this header?
f95e4495
VS
20856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20857 yes:no: )
e6cc62c6
VS
20858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20859echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
20860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20861echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20862 ac_header_preproc=yes
e6cc62c6 20863 ;;
f95e4495 20864 no:yes:* )
e6cc62c6
VS
20865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20866echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
20867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20868echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20870echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20872echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
20873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20874echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
20875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20876echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
20877 (
20878 cat <<\_ASBOX
f95e4495
VS
20879## ----------------------------------------- ##
20880## Report this to wx-dev@lists.wxwindows.org ##
20881## ----------------------------------------- ##
e6cc62c6
VS
20882_ASBOX
20883 ) |
20884 sed "s/^/$as_me: WARNING: /" >&2
20885 ;;
20886esac
20887echo "$as_me:$LINENO: checking for $ac_header" >&5
20888echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20889if eval "test \"\${$as_ac_Header+set}\" = set"; then
20890 echo $ECHO_N "(cached) $ECHO_C" >&6
20891else
f95e4495 20892 eval "$as_ac_Header=\$ac_header_preproc"
f79bd02d 20893fi
e6cc62c6
VS
20894echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20895echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20896
21d1c967 20897fi
e6cc62c6
VS
20898if test `eval echo '${'$as_ac_Header'}'` = yes; then
20899 cat >>confdefs.h <<_ACEOF
20900#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20901_ACEOF
20902
21d1c967 20903fi
e6cc62c6 20904
21d1c967 20905done
f79bd02d 20906
e6cc62c6
VS
20907 if test "${ac_cv_header_windows_h+set}" = set; then
20908 echo "$as_me:$LINENO: checking for windows.h" >&5
20909echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
20910if test "${ac_cv_header_windows_h+set}" = set; then
20911 echo $ECHO_N "(cached) $ECHO_C" >&6
20912fi
20913echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
20914echo "${ECHO_T}$ac_cv_header_windows_h" >&6
20915else
20916 # Is the header compilable?
20917echo "$as_me:$LINENO: checking windows.h usability" >&5
20918echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
20919cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20920/* confdefs.h. */
20921_ACEOF
20922cat confdefs.h >>conftest.$ac_ext
20923cat >>conftest.$ac_ext <<_ACEOF
20924/* end confdefs.h. */
20925$ac_includes_default
247f5006 20926#include <windows.h>
e6cc62c6
VS
20927_ACEOF
20928rm -f conftest.$ac_objext
20929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 20930 (eval $ac_compile) 2>conftest.er1
e6cc62c6 20931 ac_status=$?
f95e4495
VS
20932 grep -v '^ *+' conftest.er1 >conftest.err
20933 rm -f conftest.er1
20934 cat conftest.err >&5
e6cc62c6
VS
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } &&
f95e4495
VS
20937 { ac_try='test -z "$ac_c_werror_flag"
20938 || test ! -s conftest.err'
20939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20940 (eval $ac_try) 2>&5
20941 ac_status=$?
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); }; } &&
20944 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
20945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20946 (eval $ac_try) 2>&5
20947 ac_status=$?
20948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20949 (exit $ac_status); }; }; then
20950 ac_header_compiler=yes
20951else
20952 echo "$as_me: failed program was:" >&5
20953sed 's/^/| /' conftest.$ac_ext >&5
20954
20955ac_header_compiler=no
20956fi
f95e4495 20957rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
20958echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20959echo "${ECHO_T}$ac_header_compiler" >&6
20960
20961# Is the header present?
20962echo "$as_me:$LINENO: checking windows.h presence" >&5
20963echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
20964cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
20965/* confdefs.h. */
20966_ACEOF
20967cat confdefs.h >>conftest.$ac_ext
20968cat >>conftest.$ac_ext <<_ACEOF
20969/* end confdefs.h. */
20970#include <windows.h>
20971_ACEOF
20972if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20974 ac_status=$?
20975 grep -v '^ *+' conftest.er1 >conftest.err
20976 rm -f conftest.er1
20977 cat conftest.err >&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); } >/dev/null; then
20980 if test -s conftest.err; then
20981 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 20982 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
20983 else
20984 ac_cpp_err=
20985 fi
20986else
20987 ac_cpp_err=yes
20988fi
20989if test -z "$ac_cpp_err"; then
20990 ac_header_preproc=yes
20991else
20992 echo "$as_me: failed program was:" >&5
20993sed 's/^/| /' conftest.$ac_ext >&5
20994
20995 ac_header_preproc=no
20996fi
20997rm -f conftest.err conftest.$ac_ext
20998echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20999echo "${ECHO_T}$ac_header_preproc" >&6
21000
21001# So? What about this header?
f95e4495
VS
21002case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21003 yes:no: )
e6cc62c6
VS
21004 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
21005echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
21006 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
21007echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
21008 ac_header_preproc=yes
e6cc62c6 21009 ;;
f95e4495 21010 no:yes:* )
e6cc62c6
VS
21011 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
21012echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
f95e4495
VS
21013 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
21014echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
21015 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
21016echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
21017 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
21018echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
21019 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
21020echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
21021 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
21022echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
21023 (
21024 cat <<\_ASBOX
f95e4495
VS
21025## ----------------------------------------- ##
21026## Report this to wx-dev@lists.wxwindows.org ##
21027## ----------------------------------------- ##
e6cc62c6
VS
21028_ASBOX
21029 ) |
21030 sed "s/^/$as_me: WARNING: /" >&2
21031 ;;
21032esac
21033echo "$as_me:$LINENO: checking for windows.h" >&5
21034echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
21035if test "${ac_cv_header_windows_h+set}" = set; then
21036 echo $ECHO_N "(cached) $ECHO_C" >&6
21037else
21038 ac_cv_header_windows_h=$ac_header_preproc
90dd450c 21039fi
e6cc62c6
VS
21040echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
21041echo "${ECHO_T}$ac_cv_header_windows_h" >&6
21042
90dd450c 21043fi
e6cc62c6 21044if test $ac_cv_header_windows_h = yes; then
21d1c967 21045 :
90dd450c 21046else
21d1c967 21047
e6cc62c6
VS
21048 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
21049echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
21050 { (exit 1); exit 1; }; }
21051
5c6fa7d2 21052fi
7b4a847f 21053
5c6fa7d2 21054
e6cc62c6 21055
b3dfbbc9 21056 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
21d1c967 21057
7bb2947d
MB
21058 if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
21059 LIBS="$LIBS -loleacc"
21060 fi
21061
21d1c967
GD
21062 case "${host}" in
21063 *-*-cygwin* )
b3dfbbc9 21064 LIBS="$LIBS -lkernel32 -luser32"
21d1c967 21065 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
f79bd02d 21066 esac
f79bd02d 21067
8647bec6
RG
21068 if test "$wxUSE_ODBC" = "sys" ; then
21069 wxUSE_ODBC = "yes"
21d1c967 21070 fi
8647bec6
RG
21071 if test "$wxUSE_ODBC" = "yes" ; then
21072 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
e6cc62c6 21073 cat >>confdefs.h <<\_ACEOF
8647bec6 21074#define wxUSE_ODBC 1
e6cc62c6 21075_ACEOF
f79bd02d 21076
8647bec6 21077 fi
e6cc62c6 21078
21d1c967
GD
21079 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
21080 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
2b5f62a0
VZ
21081
21082 WIN32INSTALL=win32install
f79bd02d 21083fi
f79bd02d 21084
21d1c967
GD
21085if test "$wxUSE_GUI" = "yes"; then
21086 USE_GUI=1
f79bd02d 21087
21d1c967 21088 GUI_TK_LIBRARY=
f79bd02d 21089
21d1c967
GD
21090 WXGTK12=
21091 WXGTK127=
21092 WXGTK20=
f79bd02d 21093
21d1c967
GD
21094 if test "$wxUSE_MSW" = 1 ; then
21095 TOOLKIT=MSW
21096 GUIDIST=MSW_DIST
ffef10f6
VS
21097
21098 case "${host}" in
21099 *-*-mingw32* )
21100 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
21101 esac
f79bd02d
JS
21102 fi
21103
21d1c967 21104 if test "$wxUSE_GTK" = 1; then
e6cc62c6
VS
21105 echo "$as_me:$LINENO: checking for GTK+ version" >&5
21106echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6
21d1c967
GD
21107
21108 gtk_version_cached=1
e6cc62c6
VS
21109 if test "${wx_cv_lib_gtk+set}" = set; then
21110 echo $ECHO_N "(cached) $ECHO_C" >&6
f79bd02d 21111else
e6cc62c6 21112
21d1c967 21113 gtk_version_cached=0
e6cc62c6
VS
21114 echo "$as_me:$LINENO: result: " >&5
21115echo "${ECHO_T}" >&6
f79bd02d 21116
21d1c967
GD
21117 GTK_MODULES=
21118 if test "$wxUSE_THREADS" = "yes"; then
21119 GTK_MODULES=gthread
21120 fi
f79bd02d 21121
2b5f62a0 21122 wx_cv_lib_gtk=
21d1c967
GD
21123 if test "x$wxUSE_GTK2" = "xyes"; then
21124 # Check whether --enable-gtktest or --disable-gtktest was given.
21125if test "${enable_gtktest+set}" = set; then
21126 enableval="$enable_gtktest"
e6cc62c6 21127
f79bd02d 21128else
21d1c967 21129 enable_gtktest=yes
e6cc62c6 21130fi;
f79bd02d 21131
21d1c967
GD
21132 pkg_config_args=gtk+-2.0
21133 for module in . $GTK_MODULES
21134 do
21135 case "$module" in
e6cc62c6 21136 gthread)
21d1c967
GD
21137 pkg_config_args="$pkg_config_args gthread-2.0"
21138 ;;
21139 esac
21140 done
21141
21142 no_gtk=""
f79bd02d 21143
21d1c967
GD
21144 # Extract the first word of "pkg-config", so it can be a program name with args.
21145set dummy pkg-config; ac_word=$2
e6cc62c6
VS
21146echo "$as_me:$LINENO: checking for $ac_word" >&5
21147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21148if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
21149 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 21150else
e6cc62c6
VS
21151 case $PKG_CONFIG in
21152 [\\/]* | ?:[\\/]*)
21d1c967
GD
21153 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21154 ;;
21d1c967 21155 *)
e6cc62c6
VS
21156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21157for as_dir in $PATH
21158do
21159 IFS=$as_save_IFS
21160 test -z "$as_dir" && as_dir=.
21161 for ac_exec_ext in '' $ac_executable_extensions; do
21162 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21163 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21165 break 2
21166 fi
21167done
21168done
21169
21d1c967
GD
21170 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21171 ;;
21172esac
f79bd02d 21173fi
e6cc62c6
VS
21174PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21175
21d1c967 21176if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
21177 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
21178echo "${ECHO_T}$PKG_CONFIG" >&6
f79bd02d 21179else
e6cc62c6
VS
21180 echo "$as_me:$LINENO: result: no" >&5
21181echo "${ECHO_T}no" >&6
f79bd02d
JS
21182fi
21183
8284b0c5 21184
21d1c967
GD
21185 if test x$PKG_CONFIG != xno ; then
21186 if pkg-config --atleast-pkgconfig-version 0.7 ; then
21187 :
21188 else
21189 echo *** pkg-config too old; version 0.7 or better required.
21190 no_gtk=yes
21191 PKG_CONFIG=no
21192 fi
21193 else
21194 no_gtk=yes
21195 fi
f79bd02d 21196
21d1c967 21197 min_gtk_version=2.0.0
e6cc62c6
VS
21198 echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
21199echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6
f79bd02d 21200
21d1c967
GD
21201 if test x$PKG_CONFIG != xno ; then
21202 ## don't try to run the test against uninstalled libtool libs
21203 if $PKG_CONFIG --uninstalled $pkg_config_args; then
21204 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
21205 enable_gtktest=no
21206 fi
f79bd02d 21207
21d1c967
GD
21208 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
21209 :
21210 else
21211 no_gtk=yes
21212 fi
21213 fi
f79bd02d 21214
21d1c967
GD
21215 if test x"$no_gtk" = x ; then
21216 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
21217 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
21218 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21219 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21220 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21221 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21222 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
21223 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21224 if test "x$enable_gtktest" = "xyes" ; then
21225 ac_save_CFLAGS="$CFLAGS"
21226 ac_save_LIBS="$LIBS"
21227 CFLAGS="$CFLAGS $GTK_CFLAGS"
21228 LIBS="$GTK_LIBS $LIBS"
21229 rm -f conf.gtktest
21230 if test "$cross_compiling" = yes; then
21231 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 21232else
e6cc62c6 21233 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21234/* confdefs.h. */
21235_ACEOF
21236cat confdefs.h >>conftest.$ac_ext
21237cat >>conftest.$ac_ext <<_ACEOF
21238/* end confdefs.h. */
f79bd02d 21239
21d1c967
GD
21240#include <gtk/gtk.h>
21241#include <stdio.h>
21242#include <stdlib.h>
f79bd02d 21243
e6cc62c6 21244int
21d1c967
GD
21245main ()
21246{
21247 int major, minor, micro;
21248 char *tmp_version;
f79bd02d 21249
21d1c967 21250 system ("touch conf.gtktest");
f79bd02d 21251
21d1c967
GD
21252 /* HP/UX 9 (%@#!) writes to sscanf strings */
21253 tmp_version = g_strdup("$min_gtk_version");
21254 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21255 printf("%s, bad version string\n", "$min_gtk_version");
21256 exit(1);
21257 }
f79bd02d 21258
21d1c967
GD
21259 if ((gtk_major_version != $gtk_config_major_version) ||
21260 (gtk_minor_version != $gtk_config_minor_version) ||
21261 (gtk_micro_version != $gtk_config_micro_version))
21262 {
e6cc62c6 21263 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
21264 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21265 gtk_major_version, gtk_minor_version, gtk_micro_version);
21266 printf ("*** was found! If pkg-config was correct, then it is best\n");
21267 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21268 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21269 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21270 printf("*** required on your system.\n");
21271 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
21272 printf("*** to point to the correct configuration files\n");
e6cc62c6 21273 }
21d1c967
GD
21274 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21275 (gtk_minor_version != GTK_MINOR_VERSION) ||
21276 (gtk_micro_version != GTK_MICRO_VERSION))
21277 {
21278 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21279 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21280 printf("*** library (version %d.%d.%d)\n",
21281 gtk_major_version, gtk_minor_version, gtk_micro_version);
21282 }
21283 else
21284 {
21285 if ((gtk_major_version > major) ||
21286 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21287 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21288 {
21289 return 0;
21290 }
21291 else
21292 {
21293 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21294 gtk_major_version, gtk_minor_version, gtk_micro_version);
21295 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21296 major, minor, micro);
21297 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21298 printf("***\n");
21299 printf("*** If you have already installed a sufficiently new version, this error\n");
21300 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
21301 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21302 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
21303 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
21304 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21305 printf("*** so that the correct libraries are found at run-time))\n");
21306 }
21307 }
21308 return 1;
21309}
f79bd02d 21310
e6cc62c6
VS
21311_ACEOF
21312rm -f conftest$ac_exeext
21313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21314 (eval $ac_link) 2>&5
21315 ac_status=$?
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21319 (eval $ac_try) 2>&5
21320 ac_status=$?
21321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21322 (exit $ac_status); }; }; then
21d1c967 21323 :
f79bd02d 21324else
e6cc62c6
VS
21325 echo "$as_me: program exited with status $ac_status" >&5
21326echo "$as_me: failed program was:" >&5
21327sed 's/^/| /' conftest.$ac_ext >&5
21328
21329( exit $ac_status )
21330no_gtk=yes
f79bd02d 21331fi
f95e4495 21332rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
f79bd02d 21333fi
21d1c967
GD
21334 CFLAGS="$ac_save_CFLAGS"
21335 LIBS="$ac_save_LIBS"
21336 fi
21337 fi
21338 if test "x$no_gtk" = x ; then
e6cc62c6
VS
21339 echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
21340echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6
21341 wx_cv_lib_gtk=2.0
21d1c967 21342 else
e6cc62c6
VS
21343 echo "$as_me:$LINENO: result: no" >&5
21344echo "${ECHO_T}no" >&6
21d1c967
GD
21345 if test "$PKG_CONFIG" = "no" ; then
21346 echo "*** A new enough version of pkg-config was not found."
21347 echo "*** See http://pkgconfig.sourceforge.net"
21348 else
21349 if test -f conf.gtktest ; then
21350 :
21351 else
21352 echo "*** Could not run GTK+ test program, checking why..."
579d8138
VS
21353 ac_save_CFLAGS="$CFLAGS"
21354 ac_save_LIBS="$LIBS"
21d1c967
GD
21355 CFLAGS="$CFLAGS $GTK_CFLAGS"
21356 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 21357 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21358/* confdefs.h. */
21359_ACEOF
21360cat confdefs.h >>conftest.$ac_ext
21361cat >>conftest.$ac_ext <<_ACEOF
21362/* end confdefs.h. */
21d1c967
GD
21363
21364#include <gtk/gtk.h>
21365#include <stdio.h>
f79bd02d 21366
e6cc62c6
VS
21367int
21368main ()
21369{
21370 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21371 ;
21372 return 0;
21373}
21374_ACEOF
21375rm -f conftest.$ac_objext conftest$ac_exeext
21376if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 21377 (eval $ac_link) 2>conftest.er1
e6cc62c6 21378 ac_status=$?
f95e4495
VS
21379 grep -v '^ *+' conftest.er1 >conftest.err
21380 rm -f conftest.er1
21381 cat conftest.err >&5
e6cc62c6
VS
21382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21383 (exit $ac_status); } &&
f95e4495
VS
21384 { ac_try='test -z "$ac_c_werror_flag"
21385 || test ! -s conftest.err'
21386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21387 (eval $ac_try) 2>&5
21388 ac_status=$?
21389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21390 (exit $ac_status); }; } &&
21391 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21393 (eval $ac_try) 2>&5
21394 ac_status=$?
21395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21396 (exit $ac_status); }; }; then
21d1c967
GD
21397 echo "*** The test program compiled, but did not run. This usually means"
21398 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
21399 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
21400 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21401 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21402 echo "*** is required on your system"
21403 echo "***"
21404 echo "*** If you have an old version installed, it is best to remove it, although"
e6cc62c6 21405 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
f79bd02d 21406else
e6cc62c6
VS
21407 echo "$as_me: failed program was:" >&5
21408sed 's/^/| /' conftest.$ac_ext >&5
21409
21410 echo "*** The test program failed to compile or link. See the file config.log for the"
579d8138 21411 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
f79bd02d 21412fi
f95e4495
VS
21413rm -f conftest.err conftest.$ac_objext \
21414 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
21415 CFLAGS="$ac_save_CFLAGS"
21416 LIBS="$ac_save_LIBS"
21417 fi
21418 fi
21419 GTK_CFLAGS=""
21420 GTK_LIBS=""
21421 :
21422 fi
e6cc62c6
VS
21423
21424
21d1c967 21425 rm -f conf.gtktest
f79bd02d 21426
2b5f62a0 21427 else
e6cc62c6
VS
21428
21429# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
21430if test "${with_gtk_prefix+set}" = set; then
21431 withval="$with_gtk_prefix"
21432 gtk_config_prefix="$withval"
21433else
21434 gtk_config_prefix=""
e6cc62c6 21435fi;
f79bd02d 21436
21d1c967
GD
21437# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21438if test "${with_gtk_exec_prefix+set}" = set; then
21439 withval="$with_gtk_exec_prefix"
21440 gtk_config_exec_prefix="$withval"
21441else
21442 gtk_config_exec_prefix=""
e6cc62c6 21443fi;
21d1c967
GD
21444# Check whether --enable-gtktest or --disable-gtktest was given.
21445if test "${enable_gtktest+set}" = set; then
21446 enableval="$enable_gtktest"
e6cc62c6 21447
21d1c967
GD
21448else
21449 enable_gtktest=yes
e6cc62c6 21450fi;
21d1c967
GD
21451
21452 for module in . $GTK_MODULES
21453 do
21454 case "$module" in
e6cc62c6 21455 gthread)
21d1c967
GD
21456 gtk_config_args="$gtk_config_args gthread"
21457 ;;
21458 esac
21459 done
21460
21461 if test x$gtk_config_exec_prefix != x ; then
21462 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
21463 if test x${GTK_CONFIG+set} != xset ; then
21464 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
21465 fi
21466 fi
21467 if test x$gtk_config_prefix != x ; then
21468 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
21469 if test x${GTK_CONFIG+set} != xset ; then
21470 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
21471 fi
21472 fi
21473
21474 # Extract the first word of "gtk-config", so it can be a program name with args.
21475set dummy gtk-config; ac_word=$2
e6cc62c6
VS
21476echo "$as_me:$LINENO: checking for $ac_word" >&5
21477echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21478if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
21479 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 21480else
e6cc62c6
VS
21481 case $GTK_CONFIG in
21482 [\\/]* | ?:[\\/]*)
21d1c967
GD
21483 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
21484 ;;
21d1c967 21485 *)
e6cc62c6
VS
21486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21487for as_dir in $PATH
21488do
21489 IFS=$as_save_IFS
21490 test -z "$as_dir" && as_dir=.
21491 for ac_exec_ext in '' $ac_executable_extensions; do
21492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21493 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21495 break 2
21496 fi
21497done
21498done
21499
21d1c967
GD
21500 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21501 ;;
21502esac
21503fi
e6cc62c6
VS
21504GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21505
21d1c967 21506if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
21507 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21508echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 21509else
e6cc62c6
VS
21510 echo "$as_me:$LINENO: result: no" >&5
21511echo "${ECHO_T}no" >&6
21d1c967
GD
21512fi
21513
21514 min_gtk_version=1.2.7
e6cc62c6
VS
21515 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21516echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
21517 no_gtk=""
21518 if test "$GTK_CONFIG" = "no" ; then
21519 no_gtk=yes
21520 else
21521 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21522 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21523 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21524 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21525 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21526 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21527 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21528 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21529 if test "x$enable_gtktest" = "xyes" ; then
21530 ac_save_CFLAGS="$CFLAGS"
21531 ac_save_LIBS="$LIBS"
21532 CFLAGS="$CFLAGS $GTK_CFLAGS"
21533 LIBS="$GTK_LIBS $LIBS"
21534 rm -f conf.gtktest
21535 if test "$cross_compiling" = yes; then
21536 echo $ac_n "cross compiling; assumed OK... $ac_c"
f79bd02d 21537else
e6cc62c6 21538 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21539/* confdefs.h. */
21540_ACEOF
21541cat confdefs.h >>conftest.$ac_ext
21542cat >>conftest.$ac_ext <<_ACEOF
21543/* end confdefs.h. */
f79bd02d 21544
21d1c967
GD
21545#include <gtk/gtk.h>
21546#include <stdio.h>
21547#include <stdlib.h>
f79bd02d 21548
e6cc62c6 21549int
21d1c967
GD
21550main ()
21551{
21552 int major, minor, micro;
21553 char *tmp_version;
21554
21555 system ("touch conf.gtktest");
21556
21557 /* HP/UX 9 (%@#!) writes to sscanf strings */
21558 tmp_version = g_strdup("$min_gtk_version");
21559 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21560 printf("%s, bad version string\n", "$min_gtk_version");
21561 exit(1);
21562 }
90dd450c 21563
21d1c967
GD
21564 if ((gtk_major_version != $gtk_config_major_version) ||
21565 (gtk_minor_version != $gtk_config_minor_version) ||
21566 (gtk_micro_version != $gtk_config_micro_version))
21567 {
e6cc62c6 21568 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
21569 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21570 gtk_major_version, gtk_minor_version, gtk_micro_version);
21571 printf ("*** was found! If gtk-config was correct, then it is best\n");
21572 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21573 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21574 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21575 printf("*** required on your system.\n");
21576 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21577 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21578 printf("*** before re-running configure\n");
e6cc62c6 21579 }
21d1c967
GD
21580#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21581 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21582 (gtk_minor_version != GTK_MINOR_VERSION) ||
21583 (gtk_micro_version != GTK_MICRO_VERSION))
21584 {
21585 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21586 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21587 printf("*** library (version %d.%d.%d)\n",
21588 gtk_major_version, gtk_minor_version, gtk_micro_version);
21589 }
21590#endif /* defined (GTK_MAJOR_VERSION) ... */
21591 else
21592 {
21593 if ((gtk_major_version > major) ||
21594 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21595 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21596 {
21597 return 0;
21598 }
21599 else
21600 {
21601 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21602 gtk_major_version, gtk_minor_version, gtk_micro_version);
21603 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21604 major, minor, micro);
21605 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21606 printf("***\n");
21607 printf("*** If you have already installed a sufficiently new version, this error\n");
21608 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21609 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21610 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21611 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21612 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21613 printf("*** so that the correct libraries are found at run-time))\n");
21614 }
21615 }
21616 return 1;
21617}
21618
e6cc62c6
VS
21619_ACEOF
21620rm -f conftest$ac_exeext
21621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21622 (eval $ac_link) 2>&5
21623 ac_status=$?
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21627 (eval $ac_try) 2>&5
21628 ac_status=$?
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); }; }; then
21d1c967
GD
21631 :
21632else
e6cc62c6
VS
21633 echo "$as_me: program exited with status $ac_status" >&5
21634echo "$as_me: failed program was:" >&5
21635sed 's/^/| /' conftest.$ac_ext >&5
21636
21637( exit $ac_status )
21638no_gtk=yes
21d1c967 21639fi
f95e4495 21640rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 21641fi
21d1c967
GD
21642 CFLAGS="$ac_save_CFLAGS"
21643 LIBS="$ac_save_LIBS"
21644 fi
21645 fi
21646 if test "x$no_gtk" = x ; then
e6cc62c6
VS
21647 echo "$as_me:$LINENO: result: yes" >&5
21648echo "${ECHO_T}yes" >&6
21649 wx_cv_lib_gtk=1.2.7
21d1c967 21650 else
e6cc62c6
VS
21651 echo "$as_me:$LINENO: result: no" >&5
21652echo "${ECHO_T}no" >&6
21d1c967
GD
21653 if test "$GTK_CONFIG" = "no" ; then
21654 echo "*** The gtk-config script installed by GTK could not be found"
21655 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21656 echo "*** your path, or set the GTK_CONFIG environment variable to the"
21657 echo "*** full path to gtk-config."
21658 else
21659 if test -f conf.gtktest ; then
21660 :
21661 else
21662 echo "*** Could not run GTK test program, checking why..."
21663 CFLAGS="$CFLAGS $GTK_CFLAGS"
21664 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 21665 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21666/* confdefs.h. */
21667_ACEOF
21668cat confdefs.h >>conftest.$ac_ext
21669cat >>conftest.$ac_ext <<_ACEOF
21670/* end confdefs.h. */
21d1c967
GD
21671
21672#include <gtk/gtk.h>
21673#include <stdio.h>
21674
e6cc62c6
VS
21675int
21676main ()
21677{
21678 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21679 ;
21680 return 0;
21681}
21682_ACEOF
21683rm -f conftest.$ac_objext conftest$ac_exeext
21684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 21685 (eval $ac_link) 2>conftest.er1
e6cc62c6 21686 ac_status=$?
f95e4495
VS
21687 grep -v '^ *+' conftest.er1 >conftest.err
21688 rm -f conftest.er1
21689 cat conftest.err >&5
e6cc62c6
VS
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); } &&
f95e4495
VS
21692 { ac_try='test -z "$ac_c_werror_flag"
21693 || test ! -s conftest.err'
21694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21695 (eval $ac_try) 2>&5
21696 ac_status=$?
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); }; } &&
21699 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
21700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21701 (eval $ac_try) 2>&5
21702 ac_status=$?
21703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21704 (exit $ac_status); }; }; then
21d1c967
GD
21705 echo "*** The test program compiled, but did not run. This usually means"
21706 echo "*** that the run-time linker is not finding GTK or finding the wrong"
21707 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
21708 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
21709 echo "*** to the installed location Also, make sure you have run ldconfig if that"
21710 echo "*** is required on your system"
21711 echo "***"
21712 echo "*** If you have an old version installed, it is best to remove it, although"
21713 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
21714 echo "***"
21715 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
21716 echo "*** came with the system with the command"
21717 echo "***"
e6cc62c6 21718 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 21719else
e6cc62c6
VS
21720 echo "$as_me: failed program was:" >&5
21721sed 's/^/| /' conftest.$ac_ext >&5
21722
21723 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
21724 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
21725 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 21726 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 21727fi
f95e4495
VS
21728rm -f conftest.err conftest.$ac_objext \
21729 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
21730 CFLAGS="$ac_save_CFLAGS"
21731 LIBS="$ac_save_LIBS"
21732 fi
21733 fi
21734 GTK_CFLAGS=""
21735 GTK_LIBS=""
21736 :
21737 fi
e6cc62c6
VS
21738
21739
21d1c967
GD
21740 rm -f conf.gtktest
21741
21d1c967 21742
2b5f62a0 21743 if test -z "$wx_cv_lib_gtk"; then
e6cc62c6
VS
21744
21745# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
21d1c967
GD
21746if test "${with_gtk_prefix+set}" = set; then
21747 withval="$with_gtk_prefix"
21748 gtk_config_prefix="$withval"
21749else
21750 gtk_config_prefix=""
e6cc62c6 21751fi;
f79bd02d 21752
21d1c967
GD
21753# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
21754if test "${with_gtk_exec_prefix+set}" = set; then
21755 withval="$with_gtk_exec_prefix"
21756 gtk_config_exec_prefix="$withval"
21757else
21758 gtk_config_exec_prefix=""
e6cc62c6 21759fi;
21d1c967
GD
21760# Check whether --enable-gtktest or --disable-gtktest was given.
21761if test "${enable_gtktest+set}" = set; then
21762 enableval="$enable_gtktest"
e6cc62c6 21763
90dd450c 21764else
21d1c967 21765 enable_gtktest=yes
e6cc62c6 21766fi;
21d1c967
GD
21767
21768 for module in . $GTK_MODULES
21769 do
21770 case "$module" in
e6cc62c6 21771 gthread)
21d1c967
GD
21772 gtk_config_args="$gtk_config_args gthread"
21773 ;;
21774 esac
21775 done
21776
21777 if test x$gtk_config_exec_prefix != x ; then
21778 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
21779 if test x${GTK_CONFIG+set} != xset ; then
21780 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
21781 fi
21782 fi
21783 if test x$gtk_config_prefix != x ; then
21784 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
21785 if test x${GTK_CONFIG+set} != xset ; then
21786 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
21787 fi
21788 fi
21789
21790 # Extract the first word of "gtk-config", so it can be a program name with args.
21791set dummy gtk-config; ac_word=$2
e6cc62c6
VS
21792echo "$as_me:$LINENO: checking for $ac_word" >&5
21793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21794if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
21795 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 21796else
e6cc62c6
VS
21797 case $GTK_CONFIG in
21798 [\\/]* | ?:[\\/]*)
21d1c967
GD
21799 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
21800 ;;
21d1c967 21801 *)
e6cc62c6
VS
21802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21803for as_dir in $PATH
21804do
21805 IFS=$as_save_IFS
21806 test -z "$as_dir" && as_dir=.
21807 for ac_exec_ext in '' $ac_executable_extensions; do
21808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21809 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21811 break 2
21812 fi
21813done
21814done
21815
21d1c967
GD
21816 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
21817 ;;
21818esac
21819fi
e6cc62c6
VS
21820GTK_CONFIG=$ac_cv_path_GTK_CONFIG
21821
21d1c967 21822if test -n "$GTK_CONFIG"; then
e6cc62c6
VS
21823 echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
21824echo "${ECHO_T}$GTK_CONFIG" >&6
21d1c967 21825else
e6cc62c6
VS
21826 echo "$as_me:$LINENO: result: no" >&5
21827echo "${ECHO_T}no" >&6
21d1c967
GD
21828fi
21829
21830 min_gtk_version=1.2.3
e6cc62c6
VS
21831 echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
21832echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
21d1c967
GD
21833 no_gtk=""
21834 if test "$GTK_CONFIG" = "no" ; then
21835 no_gtk=yes
21836 else
21837 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
21838 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
21839 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
21840 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
21841 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
21842 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
21843 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
21844 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
21845 if test "x$enable_gtktest" = "xyes" ; then
21846 ac_save_CFLAGS="$CFLAGS"
21847 ac_save_LIBS="$LIBS"
21848 CFLAGS="$CFLAGS $GTK_CFLAGS"
21849 LIBS="$GTK_LIBS $LIBS"
21850 rm -f conf.gtktest
21851 if test "$cross_compiling" = yes; then
21852 echo $ac_n "cross compiling; assumed OK... $ac_c"
21853else
e6cc62c6 21854 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21855/* confdefs.h. */
21856_ACEOF
21857cat confdefs.h >>conftest.$ac_ext
21858cat >>conftest.$ac_ext <<_ACEOF
21859/* end confdefs.h. */
21d1c967
GD
21860
21861#include <gtk/gtk.h>
21862#include <stdio.h>
21863#include <stdlib.h>
21864
e6cc62c6 21865int
21d1c967
GD
21866main ()
21867{
21868 int major, minor, micro;
21869 char *tmp_version;
21870
21871 system ("touch conf.gtktest");
21872
21873 /* HP/UX 9 (%@#!) writes to sscanf strings */
21874 tmp_version = g_strdup("$min_gtk_version");
21875 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
21876 printf("%s, bad version string\n", "$min_gtk_version");
21877 exit(1);
21878 }
21879
21880 if ((gtk_major_version != $gtk_config_major_version) ||
21881 (gtk_minor_version != $gtk_config_minor_version) ||
21882 (gtk_micro_version != $gtk_config_micro_version))
21883 {
e6cc62c6 21884 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
21d1c967
GD
21885 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
21886 gtk_major_version, gtk_minor_version, gtk_micro_version);
21887 printf ("*** was found! If gtk-config was correct, then it is best\n");
21888 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
21889 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
21890 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
21891 printf("*** required on your system.\n");
21892 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
21893 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
21894 printf("*** before re-running configure\n");
e6cc62c6 21895 }
21d1c967
GD
21896#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
21897 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
21898 (gtk_minor_version != GTK_MINOR_VERSION) ||
21899 (gtk_micro_version != GTK_MICRO_VERSION))
21900 {
21901 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
21902 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
21903 printf("*** library (version %d.%d.%d)\n",
21904 gtk_major_version, gtk_minor_version, gtk_micro_version);
21905 }
21906#endif /* defined (GTK_MAJOR_VERSION) ... */
21907 else
21908 {
21909 if ((gtk_major_version > major) ||
21910 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
21911 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
21912 {
21913 return 0;
21914 }
21915 else
21916 {
21917 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
21918 gtk_major_version, gtk_minor_version, gtk_micro_version);
21919 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
21920 major, minor, micro);
21921 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
21922 printf("***\n");
21923 printf("*** If you have already installed a sufficiently new version, this error\n");
21924 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
21925 printf("*** being found. The easiest way to fix this is to remove the old version\n");
21926 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
21927 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
21928 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
21929 printf("*** so that the correct libraries are found at run-time))\n");
21930 }
21931 }
21932 return 1;
21933}
21934
e6cc62c6
VS
21935_ACEOF
21936rm -f conftest$ac_exeext
21937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21938 (eval $ac_link) 2>&5
21939 ac_status=$?
21940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21943 (eval $ac_try) 2>&5
21944 ac_status=$?
21945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21946 (exit $ac_status); }; }; then
21d1c967
GD
21947 :
21948else
e6cc62c6
VS
21949 echo "$as_me: program exited with status $ac_status" >&5
21950echo "$as_me: failed program was:" >&5
21951sed 's/^/| /' conftest.$ac_ext >&5
21952
21953( exit $ac_status )
21954no_gtk=yes
21d1c967 21955fi
f95e4495 21956rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21d1c967 21957fi
21d1c967
GD
21958 CFLAGS="$ac_save_CFLAGS"
21959 LIBS="$ac_save_LIBS"
21960 fi
21961 fi
21962 if test "x$no_gtk" = x ; then
e6cc62c6
VS
21963 echo "$as_me:$LINENO: result: yes" >&5
21964echo "${ECHO_T}yes" >&6
21965 wx_cv_lib_gtk=1.2.3
21d1c967 21966 else
e6cc62c6
VS
21967 echo "$as_me:$LINENO: result: no" >&5
21968echo "${ECHO_T}no" >&6
21d1c967
GD
21969 if test "$GTK_CONFIG" = "no" ; then
21970 echo "*** The gtk-config script installed by GTK could not be found"
21971 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
21972 echo "*** your path, or set the GTK_CONFIG environment variable to the"
21973 echo "*** full path to gtk-config."
21974 else
21975 if test -f conf.gtktest ; then
21976 :
21977 else
21978 echo "*** Could not run GTK test program, checking why..."
21979 CFLAGS="$CFLAGS $GTK_CFLAGS"
21980 LIBS="$LIBS $GTK_LIBS"
e6cc62c6 21981 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
21982/* confdefs.h. */
21983_ACEOF
21984cat confdefs.h >>conftest.$ac_ext
21985cat >>conftest.$ac_ext <<_ACEOF
21986/* end confdefs.h. */
21d1c967
GD
21987
21988#include <gtk/gtk.h>
21989#include <stdio.h>
f79bd02d 21990
e6cc62c6
VS
21991int
21992main ()
21993{
21994 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
21995 ;
21996 return 0;
21997}
21998_ACEOF
21999rm -f conftest.$ac_objext conftest$ac_exeext
22000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 22001 (eval $ac_link) 2>conftest.er1
e6cc62c6 22002 ac_status=$?
f95e4495
VS
22003 grep -v '^ *+' conftest.er1 >conftest.err
22004 rm -f conftest.er1
22005 cat conftest.err >&5
e6cc62c6
VS
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); } &&
f95e4495
VS
22008 { ac_try='test -z "$ac_c_werror_flag"
22009 || test ! -s conftest.err'
22010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22011 (eval $ac_try) 2>&5
22012 ac_status=$?
22013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014 (exit $ac_status); }; } &&
22015 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017 (eval $ac_try) 2>&5
22018 ac_status=$?
22019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020 (exit $ac_status); }; }; then
21d1c967
GD
22021 echo "*** The test program compiled, but did not run. This usually means"
22022 echo "*** that the run-time linker is not finding GTK or finding the wrong"
22023 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
22024 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
22025 echo "*** to the installed location Also, make sure you have run ldconfig if that"
22026 echo "*** is required on your system"
22027 echo "***"
22028 echo "*** If you have an old version installed, it is best to remove it, although"
22029 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
22030 echo "***"
22031 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
22032 echo "*** came with the system with the command"
22033 echo "***"
e6cc62c6 22034 echo "*** rpm --erase --nodeps gtk gtk-devel"
f79bd02d 22035else
e6cc62c6
VS
22036 echo "$as_me: failed program was:" >&5
22037sed 's/^/| /' conftest.$ac_ext >&5
22038
22039 echo "*** The test program failed to compile or link. See the file config.log for the"
21d1c967
GD
22040 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
22041 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
e6cc62c6 22042 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
f79bd02d 22043fi
f95e4495
VS
22044rm -f conftest.err conftest.$ac_objext \
22045 conftest$ac_exeext conftest.$ac_ext
21d1c967
GD
22046 CFLAGS="$ac_save_CFLAGS"
22047 LIBS="$ac_save_LIBS"
22048 fi
22049 fi
22050 GTK_CFLAGS=""
22051 GTK_LIBS=""
22052 :
22053 fi
e6cc62c6
VS
22054
22055
21d1c967 22056 rm -f conf.gtktest
f79bd02d 22057
2b5f62a0 22058 fi
21d1c967
GD
22059 fi
22060
22061 if test -z "$wx_cv_lib_gtk"; then
22062 wx_cv_lib_gtk=none
22063 else
22064 wx_cv_cflags_gtk=$GTK_CFLAGS
22065 wx_cv_libs_gtk=$GTK_LIBS
22066 fi
e6cc62c6
VS
22067
22068
5c6fa7d2 22069fi
52127426 22070
8284b0c5 22071
21d1c967 22072 if test "$gtk_version_cached" = 1; then
e6cc62c6
VS
22073 echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
22074echo "${ECHO_T}$wx_cv_lib_gtk" >&6
21d1c967
GD
22075 fi
22076
22077 case "$wx_cv_lib_gtk" in
22078 2.0) WXGTK20=1
2b5f62a0 22079 TOOLKIT_VERSION=2
21d1c967
GD
22080 ;;
22081 1.2.7) WXGTK127=1
22082 WXGTK12=1
22083 ;;
22084 1.2.3) WXGTK12=1
22085 ;;
e6cc62c6
VS
22086 *) { { echo "$as_me:$LINENO: error:
22087Please check that gtk-config is in path, the directory
22088where GTK+ libraries are installed (returned by
22089'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22090equivalent variable and GTK+ is version 1.2.3 or above.
22091 " >&5
22092echo "$as_me: error:
247f5006
VZ
22093Please check that gtk-config is in path, the directory
22094where GTK+ libraries are installed (returned by
22095'gtk-config --libs' command) is in LD_LIBRARY_PATH or
22096equivalent variable and GTK+ is version 1.2.3 or above.
e6cc62c6
VS
22097 " >&2;}
22098 { (exit 1); exit 1; }; }
21d1c967
GD
22099 ;;
22100 esac
22101
b13cd66e
VZ
22102 if test "$WXGTK20" = 1; then
22103 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
e6cc62c6 22104
f09359cf
VS
22105 succeeded=no
22106
22107 if test -z "$PKG_CONFIG"; then
22108 # Extract the first word of "pkg-config", so it can be a program name with args.
22109set dummy pkg-config; ac_word=$2
e6cc62c6
VS
22110echo "$as_me:$LINENO: checking for $ac_word" >&5
22111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22112if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22113 echo $ECHO_N "(cached) $ECHO_C" >&6
f09359cf 22114else
e6cc62c6
VS
22115 case $PKG_CONFIG in
22116 [\\/]* | ?:[\\/]*)
f09359cf
VS
22117 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22118 ;;
f09359cf 22119 *)
e6cc62c6
VS
22120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22121for as_dir in $PATH
22122do
22123 IFS=$as_save_IFS
22124 test -z "$as_dir" && as_dir=.
22125 for ac_exec_ext in '' $ac_executable_extensions; do
22126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22127 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22129 break 2
22130 fi
22131done
22132done
22133
f09359cf
VS
22134 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22135 ;;
22136esac
22137fi
e6cc62c6
VS
22138PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22139
f09359cf 22140if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
22141 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22142echo "${ECHO_T}$PKG_CONFIG" >&6
f09359cf 22143else
e6cc62c6
VS
22144 echo "$as_me:$LINENO: result: no" >&5
22145echo "${ECHO_T}no" >&6
f09359cf
VS
22146fi
22147
22148 fi
22149
22150 if test "$PKG_CONFIG" = "no" ; then
22151 echo "*** The pkg-config script could not be found. Make sure it is"
22152 echo "*** in your path, or set the PKG_CONFIG environment variable"
22153 echo "*** to the full path to pkg-config."
22154 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22155 else
22156 PKG_CONFIG_MIN_VERSION=0.9.0
22157 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
22158 echo "$as_me:$LINENO: checking for pangoft2" >&5
22159echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
f09359cf
VS
22160
22161 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
22162 echo "$as_me:$LINENO: result: yes" >&5
22163echo "${ECHO_T}yes" >&6
f09359cf
VS
22164 succeeded=yes
22165
e6cc62c6
VS
22166 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
22167echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
f09359cf 22168 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
22169 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
22170echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
f09359cf 22171
e6cc62c6
VS
22172 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
22173echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
f09359cf 22174 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
22175 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
22176echo "${ECHO_T}$PANGOFT2_LIBS" >&6
f09359cf
VS
22177 else
22178 PANGOFT2_CFLAGS=""
22179 PANGOFT2_LIBS=""
e6cc62c6 22180 ## If we have a custom action on failure, don't print errors, but
f09359cf
VS
22181 ## do set a variable so people can do so.
22182 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 22183
f09359cf
VS
22184 fi
22185
e6cc62c6
VS
22186
22187
f09359cf
VS
22188 else
22189 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22190 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22191 fi
22192 fi
22193
22194 if test $succeeded = yes; then
e6cc62c6 22195
b13cd66e 22196 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 22197 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 22198
f09359cf 22199 else
e6cc62c6
VS
22200
22201 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
22202echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
b13cd66e 22203 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
22204
22205
f09359cf
VS
22206 fi
22207
b13cd66e 22208 fi
2b5f62a0
VZ
22209 else
22210 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6
VS
22211 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
22212echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
2b5f62a0
VZ
22213 wxUSE_UNICODE=no
22214 fi
22215 fi
22216
22217 if test "$USE_DARWIN" != 1; then
e6cc62c6
VS
22218
22219for ac_func in poll
2b5f62a0 22220do
e6cc62c6
VS
22221as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22222echo "$as_me:$LINENO: checking for $ac_func" >&5
22223echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22224if eval "test \"\${$as_ac_var+set}\" = set"; then
22225 echo $ECHO_N "(cached) $ECHO_C" >&6
22226else
22227 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22228/* confdefs.h. */
22229_ACEOF
22230cat confdefs.h >>conftest.$ac_ext
22231cat >>conftest.$ac_ext <<_ACEOF
22232/* end confdefs.h. */
f95e4495
VS
22233/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22235#define $ac_func innocuous_$ac_func
22236
2b5f62a0 22237/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
22238 which can conflict with char $ac_func (); below.
22239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22240 <limits.h> exists even on freestanding compilers. */
f95e4495 22241
e6cc62c6
VS
22242#ifdef __STDC__
22243# include <limits.h>
22244#else
22245# include <assert.h>
22246#endif
f95e4495
VS
22247
22248#undef $ac_func
22249
2b5f62a0 22250/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22251#ifdef __cplusplus
22252extern "C"
22253{
22254#endif
2b5f62a0 22255/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22256 builtin and then its argument prototype would still apply. */
22257char $ac_func ();
2b5f62a0
VZ
22258/* The GNU C library defines this for functions which it implements
22259 to always fail with ENOSYS. Some functions are actually named
22260 something starting with __ and the normal name is an alias. */
22261#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22262choke me
22263#else
e6cc62c6
VS
22264char (*f) () = $ac_func;
22265#endif
22266#ifdef __cplusplus
22267}
2b5f62a0
VZ
22268#endif
22269
e6cc62c6
VS
22270int
22271main ()
22272{
22273return f != $ac_func;
22274 ;
22275 return 0;
22276}
22277_ACEOF
22278rm -f conftest.$ac_objext conftest$ac_exeext
22279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 22280 (eval $ac_link) 2>conftest.er1
e6cc62c6 22281 ac_status=$?
f95e4495
VS
22282 grep -v '^ *+' conftest.er1 >conftest.err
22283 rm -f conftest.er1
22284 cat conftest.err >&5
e6cc62c6
VS
22285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22286 (exit $ac_status); } &&
f95e4495
VS
22287 { ac_try='test -z "$ac_c_werror_flag"
22288 || test ! -s conftest.err'
22289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22290 (eval $ac_try) 2>&5
22291 ac_status=$?
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); }; } &&
22294 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22296 (eval $ac_try) 2>&5
22297 ac_status=$?
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); }; }; then
22300 eval "$as_ac_var=yes"
22301else
22302 echo "$as_me: failed program was:" >&5
22303sed 's/^/| /' conftest.$ac_ext >&5
22304
22305eval "$as_ac_var=no"
22306fi
f95e4495
VS
22307rm -f conftest.err conftest.$ac_objext \
22308 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22309fi
22310echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22311echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22312if test `eval echo '${'$as_ac_var'}'` = yes; then
22313 cat >>confdefs.h <<_ACEOF
22314#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22315_ACEOF
2b5f62a0 22316
2b5f62a0
VZ
22317fi
22318done
22319
f09359cf
VS
22320 fi
22321
21d1c967 22322 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
c74dc163 22323 GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
21d1c967
GD
22324
22325 AFMINSTALL=afminstall
22326 TOOLKIT=GTK
22327 GUIDIST=GTK_DIST
22328
e6cc62c6
VS
22329 echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
22330echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6
22331if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
22332 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 22333else
e6cc62c6 22334 ac_check_lib_save_LIBS=$LIBS
21d1c967 22335LIBS="-lgdk $LIBS"
e6cc62c6 22336cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22337/* confdefs.h. */
22338_ACEOF
22339cat confdefs.h >>conftest.$ac_ext
22340cat >>conftest.$ac_ext <<_ACEOF
22341/* end confdefs.h. */
22342
5c6fa7d2 22343/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22344#ifdef __cplusplus
22345extern "C"
22346#endif
5c6fa7d2 22347/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22348 builtin and then its argument prototype would still apply. */
22349char gdk_im_open ();
22350int
22351main ()
22352{
22353gdk_im_open ();
22354 ;
22355 return 0;
22356}
22357_ACEOF
22358rm -f conftest.$ac_objext conftest$ac_exeext
22359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 22360 (eval $ac_link) 2>conftest.er1
e6cc62c6 22361 ac_status=$?
f95e4495
VS
22362 grep -v '^ *+' conftest.er1 >conftest.err
22363 rm -f conftest.er1
22364 cat conftest.err >&5
e6cc62c6
VS
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); } &&
f95e4495
VS
22367 { ac_try='test -z "$ac_c_werror_flag"
22368 || test ! -s conftest.err'
22369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22370 (eval $ac_try) 2>&5
22371 ac_status=$?
22372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373 (exit $ac_status); }; } &&
22374 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22376 (eval $ac_try) 2>&5
22377 ac_status=$?
22378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22379 (exit $ac_status); }; }; then
22380 ac_cv_lib_gdk_gdk_im_open=yes
22381else
22382 echo "$as_me: failed program was:" >&5
22383sed 's/^/| /' conftest.$ac_ext >&5
22384
22385ac_cv_lib_gdk_gdk_im_open=no
22386fi
f95e4495
VS
22387rm -f conftest.err conftest.$ac_objext \
22388 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
22389LIBS=$ac_check_lib_save_LIBS
22390fi
22391echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
22392echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6
22393if test $ac_cv_lib_gdk_gdk_im_open = yes; then
22394 cat >>confdefs.h <<\_ACEOF
21d1c967 22395#define HAVE_XIM 1
e6cc62c6 22396_ACEOF
21d1c967 22397
90dd450c 22398fi
1e6feb95 22399
21d1c967 22400 fi
1e6feb95 22401
21d1c967 22402 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
22403 echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
22404echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6
21d1c967 22405 if test "x$MGL_ROOT" = x ; then
e6cc62c6
VS
22406 echo "$as_me:$LINENO: result: not found" >&5
22407echo "${ECHO_T}not found" >&6
22408 { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
22409echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
22410 { (exit 1); exit 1; }; }
21d1c967 22411 else
e6cc62c6
VS
22412 echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
22413echo "${ECHO_T}$MGL_ROOT" >&6
21d1c967
GD
22414 fi
22415
e6cc62c6
VS
22416 echo "$as_me:$LINENO: checking for libmgl location" >&5
22417echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6
e46d2a18 22418 case "${host}" in
21d1c967 22419 *-*-linux* )
e46d2a18
VS
22420 if test "x$wxUSE_SHARED" = xyes ; then
22421 mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
63a76696 22422 else
e46d2a18 22423 mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
63a76696 22424 fi
21d1c967
GD
22425 ;;
22426 *-pc-msdosdjgpp )
63a76696 22427 mgl_os_candidates="dos32/dj2"
21d1c967
GD
22428 ;;
22429 *)
e6cc62c6
VS
22430 { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
22431echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
22432 { (exit 1); exit 1; }; }
21d1c967 22433 esac
1e6feb95 22434
21d1c967 22435 mgl_lib_type=""
63a76696
VS
22436 mgl_os=""
22437
22438 for mgl_os_i in $mgl_os_candidates ; do
22439 if test "x$mgl_os" = x ; then
22440 if test "$wxUSE_DEBUG_FLAG" = yes ; then
22441 if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
22442 -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
22443 mgl_lib_type=debug
22444 mgl_os=$mgl_os_i
22445 fi
22446 fi
22447 if test "x$mgl_lib_type" = x ; then
22448 if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
22449 -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
22450 mgl_lib_type=release
22451 mgl_os=$mgl_os_i
22452 fi
22453 fi
21d1c967 22454 fi
63a76696 22455 done
2224580a 22456
63a76696 22457 if test "x$mgl_os" = x ; then
e6cc62c6
VS
22458 echo "$as_me:$LINENO: result: not found" >&5
22459echo "${ECHO_T}not found" >&6
22460 { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
22461echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
22462 { (exit 1); exit 1; }; }
63a76696 22463 fi
e6cc62c6
VS
22464 echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
22465echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6
1542ea39 22466
1d1b75ac
VZ
22467 wxUSE_UNIVERSAL="yes"
22468
21d1c967
GD
22469 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
22470 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
22471
90dd450c 22472 AFMINSTALL=afminstall
21d1c967
GD
22473 TOOLKIT=MGL
22474 GUIDIST=MGL_DIST
22475 fi
dad6c0ea 22476
21d1c967 22477 if test "$wxUSE_MICROWIN" = 1; then
e6cc62c6
VS
22478 echo "$as_me:$LINENO: checking for MicroWindows" >&5
22479echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6
21d1c967 22480 if test "x$MICROWINDOWS" = x ; then
e6cc62c6
VS
22481 echo "$as_me:$LINENO: result: not found" >&5
22482echo "${ECHO_T}not found" >&6
22483 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
22484echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
22485 { (exit 1); exit 1; }; }
21d1c967 22486 else
e6cc62c6
VS
22487 echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
22488echo "${ECHO_T}$MICROWINDOWS" >&6
21d1c967 22489 fi
f6bcfd97 22490
21d1c967 22491 if test -f $MICROWINDOWS/lib/libmwin.a; then
e6cc62c6
VS
22492 echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
22493echo "${ECHO_T}MicroWindows' libraries found." >&6
21d1c967 22494 else
e6cc62c6
VS
22495 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
22496echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
22497 { (exit 1); exit 1; }; }
90dd450c 22498 fi
0b2effe9 22499
21d1c967
GD
22500 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
22501 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
22502
1d1b75ac
VZ
22503 wxUSE_UNIVERSAL="yes"
22504
21d1c967
GD
22505 AFMINSTALL=afminstall
22506 TOOLKIT=MICROWIN
22507 GUIDIST=MICROWIN_DIST
1d1b75ac
VZ
22508
22509 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
21d1c967 22510 fi
f6bcfd97 22511
21d1c967 22512 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
22513 echo "$as_me:$LINENO: checking for X" >&5
22514echo $ECHO_N "checking for X... $ECHO_C" >&6
22515
d8356fa3 22516
21d1c967
GD
22517# Check whether --with-x or --without-x was given.
22518if test "${with_x+set}" = set; then
22519 withval="$with_x"
2224580a 22520
e6cc62c6 22521fi;
21d1c967
GD
22522# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
22523if test "x$with_x" = xno; then
22524 # The user explicitly disabled X.
22525 have_x=disabled
22526else
22527 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
22528 # Both variables are already set.
22529 have_x=yes
22530 else
e6cc62c6
VS
22531 if test "${ac_cv_have_x+set}" = set; then
22532 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967
GD
22533else
22534 # One or both of the vars are not set, and there is no cached value.
e6cc62c6
VS
22535ac_x_includes=no ac_x_libraries=no
22536rm -fr conftest.dir
22537if mkdir conftest.dir; then
22538 cd conftest.dir
21d1c967 22539 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
e6cc62c6 22540 cat >Imakefile <<'_ACEOF'
21d1c967
GD
22541acfindx:
22542 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
e6cc62c6 22543_ACEOF
21d1c967
GD
22544 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
22545 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
22546 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
22547 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
22548 for ac_extension in a so sl; do
22549 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
f95e4495
VS
22550 test -f $ac_im_libdir/libX11.$ac_extension; then
22551 ac_im_usrlibdir=$ac_im_libdir; break
21d1c967
GD
22552 fi
22553 done
22554 # Screen out bogus values from the imake configuration. They are
22555 # bogus both because they are the default anyway, and because
22556 # using them would break gcc on systems where it needs fixed includes.
e6cc62c6 22557 case $ac_im_incroot in
21d1c967 22558 /usr/include) ;;
e6cc62c6 22559 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
21d1c967 22560 esac
e6cc62c6 22561 case $ac_im_usrlibdir in
21d1c967 22562 /usr/lib | /lib) ;;
e6cc62c6 22563 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
21d1c967
GD
22564 esac
22565 fi
22566 cd ..
e6cc62c6 22567 rm -fr conftest.dir
21d1c967 22568fi
10f2d63a 22569
e6cc62c6
VS
22570# Standard set of common directories for X headers.
22571# Check X11 before X11Rn because it is often a symlink to the current release.
22572ac_x_header_dirs='
22573/usr/X11/include
22574/usr/X11R6/include
22575/usr/X11R5/include
22576/usr/X11R4/include
22577
22578/usr/include/X11
22579/usr/include/X11R6
22580/usr/include/X11R5
22581/usr/include/X11R4
22582
22583/usr/local/X11/include
22584/usr/local/X11R6/include
22585/usr/local/X11R5/include
22586/usr/local/X11R4/include
22587
22588/usr/local/include/X11
22589/usr/local/include/X11R6
22590/usr/local/include/X11R5
22591/usr/local/include/X11R4
22592
22593/usr/X386/include
22594/usr/x386/include
22595/usr/XFree86/include/X11
22596
22597/usr/include
22598/usr/local/include
22599/usr/unsupported/include
22600/usr/athena/include
22601/usr/local/x11r5/include
22602/usr/lpp/Xamples/include
22603
22604/usr/openwin/include
22605/usr/openwin/share/include'
22606
22607if test "$ac_x_includes" = no; then
22608 # Guess where to find include files, by looking for Intrinsic.h.
21d1c967 22609 # First, try using that file with no special directory specified.
e6cc62c6 22610 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22611/* confdefs.h. */
22612_ACEOF
22613cat confdefs.h >>conftest.$ac_ext
22614cat >>conftest.$ac_ext <<_ACEOF
22615/* end confdefs.h. */
22616#include <X11/Intrinsic.h>
22617_ACEOF
22618if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22620 ac_status=$?
22621 grep -v '^ *+' conftest.er1 >conftest.err
22622 rm -f conftest.er1
22623 cat conftest.err >&5
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); } >/dev/null; then
22626 if test -s conftest.err; then
22627 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 22628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
22629 else
22630 ac_cpp_err=
22631 fi
22632else
22633 ac_cpp_err=yes
22634fi
22635if test -z "$ac_cpp_err"; then
21d1c967
GD
22636 # We can compile using X headers with no special include directory.
22637ac_x_includes=
90dd450c 22638else
e6cc62c6
VS
22639 echo "$as_me: failed program was:" >&5
22640sed 's/^/| /' conftest.$ac_ext >&5
22641
22642 for ac_dir in $ac_x_header_dirs; do
22643 if test -r "$ac_dir/X11/Intrinsic.h"; then
22644 ac_x_includes=$ac_dir
22645 break
22646 fi
22647done
3a922bb4 22648fi
e6cc62c6
VS
22649rm -f conftest.err conftest.$ac_ext
22650fi # $ac_x_includes = no
10f2d63a 22651
e6cc62c6 22652if test "$ac_x_libraries" = no; then
21d1c967 22653 # Check for the libraries.
21d1c967
GD
22654 # See if we find them without any special options.
22655 # Don't add to $LIBS permanently.
e6cc62c6
VS
22656 ac_save_LIBS=$LIBS
22657 LIBS="-lXt $LIBS"
22658 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22659/* confdefs.h. */
22660_ACEOF
22661cat confdefs.h >>conftest.$ac_ext
22662cat >>conftest.$ac_ext <<_ACEOF
22663/* end confdefs.h. */
22664#include <X11/Intrinsic.h>
22665int
22666main ()
22667{
22668XtMalloc (0)
22669 ;
22670 return 0;
22671}
22672_ACEOF
22673rm -f conftest.$ac_objext conftest$ac_exeext
22674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 22675 (eval $ac_link) 2>conftest.er1
e6cc62c6 22676 ac_status=$?
f95e4495
VS
22677 grep -v '^ *+' conftest.er1 >conftest.err
22678 rm -f conftest.er1
22679 cat conftest.err >&5
e6cc62c6
VS
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); } &&
f95e4495
VS
22682 { ac_try='test -z "$ac_c_werror_flag"
22683 || test ! -s conftest.err'
22684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22685 (eval $ac_try) 2>&5
22686 ac_status=$?
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); }; } &&
22689 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22691 (eval $ac_try) 2>&5
22692 ac_status=$?
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); }; }; then
22695 LIBS=$ac_save_LIBS
21d1c967
GD
22696# We can link X programs with no special library path.
22697ac_x_libraries=
3a922bb4 22698else
e6cc62c6
VS
22699 echo "$as_me: failed program was:" >&5
22700sed 's/^/| /' conftest.$ac_ext >&5
22701
22702LIBS=$ac_save_LIBS
22703for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
21d1c967 22704do
e6cc62c6 22705 # Don't even attempt the hair of trying to link an X program!
21d1c967 22706 for ac_extension in a so sl; do
e6cc62c6 22707 if test -r $ac_dir/libXt.$ac_extension; then
21d1c967
GD
22708 ac_x_libraries=$ac_dir
22709 break 2
22710 fi
22711 done
22712done
3a922bb4 22713fi
f95e4495
VS
22714rm -f conftest.err conftest.$ac_objext \
22715 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 22716fi # $ac_x_libraries = no
90dd450c 22717
e6cc62c6 22718if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
21d1c967
GD
22719 # Didn't find X anywhere. Cache the known absence of X.
22720 ac_cv_have_x="have_x=no"
22721else
22722 # Record where we found X for the cache.
22723 ac_cv_have_x="have_x=yes \
f95e4495 22724 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
90dd450c 22725fi
21d1c967 22726fi
e6cc62c6 22727
21d1c967
GD
22728 fi
22729 eval "$ac_cv_have_x"
22730fi # $with_x != no
90dd450c 22731
21d1c967 22732if test "$have_x" != yes; then
e6cc62c6
VS
22733 echo "$as_me:$LINENO: result: $have_x" >&5
22734echo "${ECHO_T}$have_x" >&6
21d1c967
GD
22735 no_x=yes
22736else
22737 # If each of the values was on the command line, it overrides each guess.
22738 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
22739 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
22740 # Update the cache value to reflect the command line values.
22741 ac_cv_have_x="have_x=yes \
22742 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
e6cc62c6
VS
22743 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
22744echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
21d1c967 22745fi
90dd450c 22746
21d1c967 22747if test "$no_x" = yes; then
90dd450c 22748 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
22749
22750cat >>confdefs.h <<\_ACEOF
90dd450c 22751#define X_DISPLAY_MISSING 1
e6cc62c6 22752_ACEOF
90dd450c
VZ
22753
22754 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
22755else
22756 if test -n "$x_includes"; then
22757 X_CFLAGS="$X_CFLAGS -I$x_includes"
62d0491b 22758 fi
3a922bb4 22759
90dd450c
VZ
22760 # It would also be nice to do this for all -L options, not just this one.
22761 if test -n "$x_libraries"; then
22762 X_LIBS="$X_LIBS -L$x_libraries"
22763 # For Solaris; some versions of Sun CC require a space after -R and
22764 # others require no space. Words are not sufficient . . . .
e6cc62c6 22765 case `(uname -sr) 2>/dev/null` in
90dd450c 22766 "SunOS 5"*)
e6cc62c6
VS
22767 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
22768echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
22769 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
22770 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22771/* confdefs.h. */
22772_ACEOF
22773cat confdefs.h >>conftest.$ac_ext
22774cat >>conftest.$ac_ext <<_ACEOF
22775/* end confdefs.h. */
22776
22777int
22778main ()
22779{
90dd450c 22780
e6cc62c6
VS
22781 ;
22782 return 0;
22783}
22784_ACEOF
22785rm -f conftest.$ac_objext conftest$ac_exeext
22786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 22787 (eval $ac_link) 2>conftest.er1
e6cc62c6 22788 ac_status=$?
f95e4495
VS
22789 grep -v '^ *+' conftest.er1 >conftest.err
22790 rm -f conftest.er1
22791 cat conftest.err >&5
e6cc62c6
VS
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); } &&
f95e4495
VS
22794 { ac_try='test -z "$ac_c_werror_flag"
22795 || test ! -s conftest.err'
22796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22797 (eval $ac_try) 2>&5
22798 ac_status=$?
22799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22800 (exit $ac_status); }; } &&
22801 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22803 (eval $ac_try) 2>&5
22804 ac_status=$?
22805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 (exit $ac_status); }; }; then
90dd450c 22807 ac_R_nospace=yes
3a922bb4 22808else
e6cc62c6
VS
22809 echo "$as_me: failed program was:" >&5
22810sed 's/^/| /' conftest.$ac_ext >&5
22811
22812ac_R_nospace=no
3a922bb4 22813fi
f95e4495
VS
22814rm -f conftest.err conftest.$ac_objext \
22815 conftest$ac_exeext conftest.$ac_ext
90dd450c 22816 if test $ac_R_nospace = yes; then
e6cc62c6
VS
22817 echo "$as_me:$LINENO: result: no" >&5
22818echo "${ECHO_T}no" >&6
90dd450c
VZ
22819 X_LIBS="$X_LIBS -R$x_libraries"
22820 else
22821 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 22822 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22823/* confdefs.h. */
22824_ACEOF
22825cat confdefs.h >>conftest.$ac_ext
22826cat >>conftest.$ac_ext <<_ACEOF
22827/* end confdefs.h. */
22828
22829int
22830main ()
22831{
6f754473 22832
e6cc62c6
VS
22833 ;
22834 return 0;
22835}
22836_ACEOF
22837rm -f conftest.$ac_objext conftest$ac_exeext
22838if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 22839 (eval $ac_link) 2>conftest.er1
e6cc62c6 22840 ac_status=$?
f95e4495
VS
22841 grep -v '^ *+' conftest.er1 >conftest.err
22842 rm -f conftest.er1
22843 cat conftest.err >&5
e6cc62c6
VS
22844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22845 (exit $ac_status); } &&
f95e4495
VS
22846 { ac_try='test -z "$ac_c_werror_flag"
22847 || test ! -s conftest.err'
22848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22849 (eval $ac_try) 2>&5
22850 ac_status=$?
22851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22852 (exit $ac_status); }; } &&
22853 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22855 (eval $ac_try) 2>&5
22856 ac_status=$?
22857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22858 (exit $ac_status); }; }; then
90dd450c
VZ
22859 ac_R_space=yes
22860else
e6cc62c6
VS
22861 echo "$as_me: failed program was:" >&5
22862sed 's/^/| /' conftest.$ac_ext >&5
22863
22864ac_R_space=no
90dd450c 22865fi
f95e4495
VS
22866rm -f conftest.err conftest.$ac_objext \
22867 conftest$ac_exeext conftest.$ac_ext
90dd450c 22868 if test $ac_R_space = yes; then
e6cc62c6
VS
22869 echo "$as_me:$LINENO: result: yes" >&5
22870echo "${ECHO_T}yes" >&6
90dd450c
VZ
22871 X_LIBS="$X_LIBS -R $x_libraries"
22872 else
e6cc62c6
VS
22873 echo "$as_me:$LINENO: result: neither works" >&5
22874echo "${ECHO_T}neither works" >&6
90dd450c
VZ
22875 fi
22876 fi
e6cc62c6 22877 LIBS=$ac_xsave_LIBS
90dd450c
VZ
22878 esac
22879 fi
22880
22881 # Check for system-dependent libraries X programs must link with.
22882 # Do this before checking for the system-independent R6 libraries
22883 # (-lICE), since we may need -lsocket or whatever for X linking.
6f754473 22884
90dd450c
VZ
22885 if test "$ISC" = yes; then
22886 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
22887 else
e6cc62c6
VS
22888 # Martyn Johnson says this is needed for Ultrix, if the X
22889 # libraries were built with DECnet support. And Karl Berry says
90dd450c 22890 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
22891 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
22892 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22893/* confdefs.h. */
22894_ACEOF
22895cat confdefs.h >>conftest.$ac_ext
22896cat >>conftest.$ac_ext <<_ACEOF
22897/* end confdefs.h. */
22898
247f5006 22899/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
22900#ifdef __cplusplus
22901extern "C"
22902#endif
247f5006 22903/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
22904 builtin and then its argument prototype would still apply. */
22905char XOpenDisplay ();
22906int
22907main ()
22908{
22909XOpenDisplay ();
22910 ;
22911 return 0;
22912}
22913_ACEOF
22914rm -f conftest.$ac_objext conftest$ac_exeext
22915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 22916 (eval $ac_link) 2>conftest.er1
e6cc62c6 22917 ac_status=$?
f95e4495
VS
22918 grep -v '^ *+' conftest.er1 >conftest.err
22919 rm -f conftest.er1
22920 cat conftest.err >&5
e6cc62c6
VS
22921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22922 (exit $ac_status); } &&
f95e4495
VS
22923 { ac_try='test -z "$ac_c_werror_flag"
22924 || test ! -s conftest.err'
22925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22926 (eval $ac_try) 2>&5
22927 ac_status=$?
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); }; } &&
22930 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22932 (eval $ac_try) 2>&5
22933 ac_status=$?
22934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935 (exit $ac_status); }; }; then
22936 :
22937else
22938 echo "$as_me: failed program was:" >&5
22939sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 22940
e6cc62c6
VS
22941echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
22942echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
22943if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
22944 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 22945else
e6cc62c6
VS
22946 ac_check_lib_save_LIBS=$LIBS
22947LIBS="-ldnet $LIBS"
22948cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
22949/* confdefs.h. */
22950_ACEOF
22951cat confdefs.h >>conftest.$ac_ext
22952cat >>conftest.$ac_ext <<_ACEOF
22953/* end confdefs.h. */
a0b9e27f 22954
e6cc62c6
VS
22955/* Override any gcc2 internal prototype to avoid an error. */
22956#ifdef __cplusplus
22957extern "C"
22958#endif
22959/* We use char because int might match the return type of a gcc2
22960 builtin and then its argument prototype would still apply. */
22961char dnet_ntoa ();
22962int
22963main ()
22964{
22965dnet_ntoa ();
22966 ;
22967 return 0;
22968}
22969_ACEOF
22970rm -f conftest.$ac_objext conftest$ac_exeext
22971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 22972 (eval $ac_link) 2>conftest.er1
e6cc62c6 22973 ac_status=$?
f95e4495
VS
22974 grep -v '^ *+' conftest.er1 >conftest.err
22975 rm -f conftest.er1
22976 cat conftest.err >&5
e6cc62c6
VS
22977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); } &&
f95e4495
VS
22979 { ac_try='test -z "$ac_c_werror_flag"
22980 || test ! -s conftest.err'
22981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22982 (eval $ac_try) 2>&5
22983 ac_status=$?
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); }; } &&
22986 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
22987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22988 (eval $ac_try) 2>&5
22989 ac_status=$?
22990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991 (exit $ac_status); }; }; then
22992 ac_cv_lib_dnet_dnet_ntoa=yes
22993else
22994 echo "$as_me: failed program was:" >&5
22995sed 's/^/| /' conftest.$ac_ext >&5
22996
22997ac_cv_lib_dnet_dnet_ntoa=no
22998fi
f95e4495
VS
22999rm -f conftest.err conftest.$ac_objext \
23000 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23001LIBS=$ac_check_lib_save_LIBS
23002fi
23003echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23004echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
23005if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
90dd450c 23006 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3a922bb4
RL
23007fi
23008
90dd450c 23009 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
23010 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23011echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
23012if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23013 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23014else
e6cc62c6 23015 ac_check_lib_save_LIBS=$LIBS
90dd450c 23016LIBS="-ldnet_stub $LIBS"
e6cc62c6 23017cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23018/* confdefs.h. */
23019_ACEOF
23020cat confdefs.h >>conftest.$ac_ext
23021cat >>conftest.$ac_ext <<_ACEOF
23022/* end confdefs.h. */
23023
90dd450c 23024/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23025#ifdef __cplusplus
23026extern "C"
23027#endif
90dd450c 23028/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23029 builtin and then its argument prototype would still apply. */
23030char dnet_ntoa ();
23031int
23032main ()
23033{
23034dnet_ntoa ();
23035 ;
23036 return 0;
23037}
23038_ACEOF
23039rm -f conftest.$ac_objext conftest$ac_exeext
23040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 23041 (eval $ac_link) 2>conftest.er1
e6cc62c6 23042 ac_status=$?
f95e4495
VS
23043 grep -v '^ *+' conftest.er1 >conftest.err
23044 rm -f conftest.er1
23045 cat conftest.err >&5
e6cc62c6
VS
23046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047 (exit $ac_status); } &&
f95e4495
VS
23048 { ac_try='test -z "$ac_c_werror_flag"
23049 || test ! -s conftest.err'
23050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23051 (eval $ac_try) 2>&5
23052 ac_status=$?
23053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23054 (exit $ac_status); }; } &&
23055 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23057 (eval $ac_try) 2>&5
23058 ac_status=$?
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); }; }; then
23061 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23062else
23063 echo "$as_me: failed program was:" >&5
23064sed 's/^/| /' conftest.$ac_ext >&5
23065
23066ac_cv_lib_dnet_stub_dnet_ntoa=no
23067fi
f95e4495
VS
23068rm -f conftest.err conftest.$ac_objext \
23069 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23070LIBS=$ac_check_lib_save_LIBS
23071fi
23072echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23073echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
23074if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
90dd450c 23075 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3a922bb4
RL
23076fi
23077
90dd450c 23078 fi
e6cc62c6 23079fi
f95e4495
VS
23080rm -f conftest.err conftest.$ac_objext \
23081 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 23082 LIBS="$ac_xsave_LIBS"
978f1259 23083
90dd450c
VZ
23084 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23085 # to get the SysV transport functions.
e6cc62c6 23086 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
90dd450c
VZ
23087 # needs -lnsl.
23088 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
23089 # on Irix 5.2, according to T.E. Dickey.
23090 # The functions gethostbyname, getservbyname, and inet_addr are
23091 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23092 echo "$as_me:$LINENO: checking for gethostbyname" >&5
23093echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
23094if test "${ac_cv_func_gethostbyname+set}" = set; then
23095 echo $ECHO_N "(cached) $ECHO_C" >&6
23096else
23097 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23098/* confdefs.h. */
23099_ACEOF
23100cat confdefs.h >>conftest.$ac_ext
23101cat >>conftest.$ac_ext <<_ACEOF
23102/* end confdefs.h. */
f95e4495
VS
23103/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
23104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23105#define gethostbyname innocuous_gethostbyname
23106
90dd450c 23107/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23108 which can conflict with char gethostbyname (); below.
23109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23110 <limits.h> exists even on freestanding compilers. */
f95e4495 23111
e6cc62c6
VS
23112#ifdef __STDC__
23113# include <limits.h>
23114#else
23115# include <assert.h>
23116#endif
f95e4495
VS
23117
23118#undef gethostbyname
23119
90dd450c 23120/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23121#ifdef __cplusplus
23122extern "C"
23123{
23124#endif
90dd450c 23125/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23126 builtin and then its argument prototype would still apply. */
23127char gethostbyname ();
90dd450c
VZ
23128/* The GNU C library defines this for functions which it implements
23129 to always fail with ENOSYS. Some functions are actually named
23130 something starting with __ and the normal name is an alias. */
23131#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
23132choke me
23133#else
e6cc62c6
VS
23134char (*f) () = gethostbyname;
23135#endif
23136#ifdef __cplusplus
23137}
90dd450c 23138#endif
978f1259 23139
e6cc62c6
VS
23140int
23141main ()
23142{
23143return f != gethostbyname;
23144 ;
23145 return 0;
23146}
23147_ACEOF
23148rm -f conftest.$ac_objext conftest$ac_exeext
23149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 23150 (eval $ac_link) 2>conftest.er1
e6cc62c6 23151 ac_status=$?
f95e4495
VS
23152 grep -v '^ *+' conftest.er1 >conftest.err
23153 rm -f conftest.er1
23154 cat conftest.err >&5
e6cc62c6
VS
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); } &&
f95e4495
VS
23157 { ac_try='test -z "$ac_c_werror_flag"
23158 || test ! -s conftest.err'
23159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23160 (eval $ac_try) 2>&5
23161 ac_status=$?
23162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23163 (exit $ac_status); }; } &&
23164 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23166 (eval $ac_try) 2>&5
23167 ac_status=$?
23168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169 (exit $ac_status); }; }; then
23170 ac_cv_func_gethostbyname=yes
23171else
23172 echo "$as_me: failed program was:" >&5
23173sed 's/^/| /' conftest.$ac_ext >&5
23174
23175ac_cv_func_gethostbyname=no
23176fi
f95e4495
VS
23177rm -f conftest.err conftest.$ac_objext \
23178 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23179fi
23180echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
23181echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
698dcdb6 23182
90dd450c 23183 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
23184 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
23185echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
23186if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
23187 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23188else
e6cc62c6 23189 ac_check_lib_save_LIBS=$LIBS
90dd450c 23190LIBS="-lnsl $LIBS"
e6cc62c6 23191cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23192/* confdefs.h. */
23193_ACEOF
23194cat confdefs.h >>conftest.$ac_ext
23195cat >>conftest.$ac_ext <<_ACEOF
23196/* end confdefs.h. */
23197
90dd450c 23198/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23199#ifdef __cplusplus
23200extern "C"
23201#endif
90dd450c 23202/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23203 builtin and then its argument prototype would still apply. */
23204char gethostbyname ();
23205int
23206main ()
23207{
23208gethostbyname ();
23209 ;
23210 return 0;
23211}
23212_ACEOF
23213rm -f conftest.$ac_objext conftest$ac_exeext
23214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 23215 (eval $ac_link) 2>conftest.er1
e6cc62c6 23216 ac_status=$?
f95e4495
VS
23217 grep -v '^ *+' conftest.er1 >conftest.err
23218 rm -f conftest.er1
23219 cat conftest.err >&5
e6cc62c6
VS
23220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221 (exit $ac_status); } &&
f95e4495
VS
23222 { ac_try='test -z "$ac_c_werror_flag"
23223 || test ! -s conftest.err'
23224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23225 (eval $ac_try) 2>&5
23226 ac_status=$?
23227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23228 (exit $ac_status); }; } &&
23229 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23231 (eval $ac_try) 2>&5
23232 ac_status=$?
23233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); }; }; then
23235 ac_cv_lib_nsl_gethostbyname=yes
23236else
23237 echo "$as_me: failed program was:" >&5
23238sed 's/^/| /' conftest.$ac_ext >&5
23239
23240ac_cv_lib_nsl_gethostbyname=no
23241fi
f95e4495
VS
23242rm -f conftest.err conftest.$ac_objext \
23243 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23244LIBS=$ac_check_lib_save_LIBS
23245fi
23246echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
23247echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
23248if test $ac_cv_lib_nsl_gethostbyname = yes; then
23249 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 23250fi
247f5006 23251
e6cc62c6 23252 if test $ac_cv_lib_nsl_gethostbyname = no; then
f95e4495 23253 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
23254echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
23255if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
23256 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23257else
e6cc62c6
VS
23258 ac_check_lib_save_LIBS=$LIBS
23259LIBS="-lbsd $LIBS"
23260cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23261/* confdefs.h. */
23262_ACEOF
23263cat confdefs.h >>conftest.$ac_ext
23264cat >>conftest.$ac_ext <<_ACEOF
23265/* end confdefs.h. */
23266
23267/* Override any gcc2 internal prototype to avoid an error. */
23268#ifdef __cplusplus
23269extern "C"
23270#endif
23271/* We use char because int might match the return type of a gcc2
23272 builtin and then its argument prototype would still apply. */
23273char gethostbyname ();
23274int
23275main ()
23276{
23277gethostbyname ();
23278 ;
23279 return 0;
23280}
23281_ACEOF
23282rm -f conftest.$ac_objext conftest$ac_exeext
23283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 23284 (eval $ac_link) 2>conftest.er1
e6cc62c6 23285 ac_status=$?
f95e4495
VS
23286 grep -v '^ *+' conftest.er1 >conftest.err
23287 rm -f conftest.er1
23288 cat conftest.err >&5
e6cc62c6
VS
23289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); } &&
f95e4495
VS
23291 { ac_try='test -z "$ac_c_werror_flag"
23292 || test ! -s conftest.err'
23293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23294 (eval $ac_try) 2>&5
23295 ac_status=$?
23296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297 (exit $ac_status); }; } &&
23298 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23300 (eval $ac_try) 2>&5
23301 ac_status=$?
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); }; }; then
23304 ac_cv_lib_bsd_gethostbyname=yes
23305else
23306 echo "$as_me: failed program was:" >&5
23307sed 's/^/| /' conftest.$ac_ext >&5
23308
23309ac_cv_lib_bsd_gethostbyname=no
23310fi
f95e4495
VS
23311rm -f conftest.err conftest.$ac_objext \
23312 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23313LIBS=$ac_check_lib_save_LIBS
23314fi
23315echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
23316echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
23317if test $ac_cv_lib_bsd_gethostbyname = yes; then
23318 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
90dd450c 23319fi
b12915c1 23320
e6cc62c6 23321 fi
90dd450c
VZ
23322 fi
23323
23324 # lieder@skyler.mavd.honeywell.com says without -lsocket,
23325 # socket/setsockopt and other routines are undefined under SCO ODT
23326 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
23327 # on later versions), says Simon Leinen: it contains gethostby*
23328 # variants that don't use the name server (or something). -lsocket
23329 # must be given before -lnsl if both are needed. We assume that
23330 # if connect needs -lnsl, so does gethostbyname.
23331 echo "$as_me:$LINENO: checking for connect" >&5
23332echo $ECHO_N "checking for connect... $ECHO_C" >&6
23333if test "${ac_cv_func_connect+set}" = set; then
23334 echo $ECHO_N "(cached) $ECHO_C" >&6
23335else
23336 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23337/* confdefs.h. */
23338_ACEOF
23339cat confdefs.h >>conftest.$ac_ext
23340cat >>conftest.$ac_ext <<_ACEOF
23341/* end confdefs.h. */
f95e4495
VS
23342/* Define connect to an innocuous variant, in case <limits.h> declares connect.
23343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23344#define connect innocuous_connect
23345
90dd450c 23346/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23347 which can conflict with char connect (); below.
23348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23349 <limits.h> exists even on freestanding compilers. */
f95e4495 23350
e6cc62c6
VS
23351#ifdef __STDC__
23352# include <limits.h>
23353#else
23354# include <assert.h>
23355#endif
f95e4495
VS
23356
23357#undef connect
23358
90dd450c 23359/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23360#ifdef __cplusplus
23361extern "C"
23362{
23363#endif
90dd450c 23364/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23365 builtin and then its argument prototype would still apply. */
23366char connect ();
90dd450c
VZ
23367/* The GNU C library defines this for functions which it implements
23368 to always fail with ENOSYS. Some functions are actually named
23369 something starting with __ and the normal name is an alias. */
23370#if defined (__stub_connect) || defined (__stub___connect)
23371choke me
23372#else
e6cc62c6
VS
23373char (*f) () = connect;
23374#endif
23375#ifdef __cplusplus
23376}
90dd450c
VZ
23377#endif
23378
e6cc62c6
VS
23379int
23380main ()
23381{
23382return f != connect;
23383 ;
23384 return 0;
23385}
23386_ACEOF
23387rm -f conftest.$ac_objext conftest$ac_exeext
23388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 23389 (eval $ac_link) 2>conftest.er1
e6cc62c6 23390 ac_status=$?
f95e4495
VS
23391 grep -v '^ *+' conftest.er1 >conftest.err
23392 rm -f conftest.er1
23393 cat conftest.err >&5
e6cc62c6
VS
23394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23395 (exit $ac_status); } &&
f95e4495
VS
23396 { ac_try='test -z "$ac_c_werror_flag"
23397 || test ! -s conftest.err'
23398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23399 (eval $ac_try) 2>&5
23400 ac_status=$?
23401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23402 (exit $ac_status); }; } &&
23403 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23405 (eval $ac_try) 2>&5
23406 ac_status=$?
23407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23408 (exit $ac_status); }; }; then
23409 ac_cv_func_connect=yes
23410else
23411 echo "$as_me: failed program was:" >&5
23412sed 's/^/| /' conftest.$ac_ext >&5
23413
23414ac_cv_func_connect=no
23415fi
f95e4495
VS
23416rm -f conftest.err conftest.$ac_objext \
23417 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23418fi
23419echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
23420echo "${ECHO_T}$ac_cv_func_connect" >&6
55e80573 23421
90dd450c 23422 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
23423 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
23424echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
23425if test "${ac_cv_lib_socket_connect+set}" = set; then
23426 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23427else
e6cc62c6 23428 ac_check_lib_save_LIBS=$LIBS
90dd450c 23429LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 23430cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23431/* confdefs.h. */
23432_ACEOF
23433cat confdefs.h >>conftest.$ac_ext
23434cat >>conftest.$ac_ext <<_ACEOF
23435/* end confdefs.h. */
23436
90dd450c 23437/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23438#ifdef __cplusplus
23439extern "C"
23440#endif
90dd450c 23441/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23442 builtin and then its argument prototype would still apply. */
23443char connect ();
23444int
23445main ()
23446{
23447connect ();
23448 ;
23449 return 0;
23450}
23451_ACEOF
23452rm -f conftest.$ac_objext conftest$ac_exeext
23453if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 23454 (eval $ac_link) 2>conftest.er1
e6cc62c6 23455 ac_status=$?
f95e4495
VS
23456 grep -v '^ *+' conftest.er1 >conftest.err
23457 rm -f conftest.er1
23458 cat conftest.err >&5
e6cc62c6
VS
23459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23460 (exit $ac_status); } &&
f95e4495
VS
23461 { ac_try='test -z "$ac_c_werror_flag"
23462 || test ! -s conftest.err'
23463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23464 (eval $ac_try) 2>&5
23465 ac_status=$?
23466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23467 (exit $ac_status); }; } &&
23468 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23470 (eval $ac_try) 2>&5
23471 ac_status=$?
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); }; }; then
23474 ac_cv_lib_socket_connect=yes
23475else
23476 echo "$as_me: failed program was:" >&5
23477sed 's/^/| /' conftest.$ac_ext >&5
23478
23479ac_cv_lib_socket_connect=no
23480fi
f95e4495
VS
23481rm -f conftest.err conftest.$ac_objext \
23482 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23483LIBS=$ac_check_lib_save_LIBS
23484fi
23485echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
23486echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
23487if test $ac_cv_lib_socket_connect = yes; then
90dd450c 23488 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
90dd450c 23489fi
77e13408 23490
90dd450c 23491 fi
25d0687a 23492
e6cc62c6
VS
23493 # Guillermo Gomez says -lposix is necessary on A/UX.
23494 echo "$as_me:$LINENO: checking for remove" >&5
23495echo $ECHO_N "checking for remove... $ECHO_C" >&6
23496if test "${ac_cv_func_remove+set}" = set; then
23497 echo $ECHO_N "(cached) $ECHO_C" >&6
23498else
23499 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23500/* confdefs.h. */
23501_ACEOF
23502cat confdefs.h >>conftest.$ac_ext
23503cat >>conftest.$ac_ext <<_ACEOF
23504/* end confdefs.h. */
f95e4495
VS
23505/* Define remove to an innocuous variant, in case <limits.h> declares remove.
23506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23507#define remove innocuous_remove
23508
90dd450c 23509/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23510 which can conflict with char remove (); below.
23511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23512 <limits.h> exists even on freestanding compilers. */
f95e4495 23513
e6cc62c6
VS
23514#ifdef __STDC__
23515# include <limits.h>
23516#else
23517# include <assert.h>
23518#endif
f95e4495
VS
23519
23520#undef remove
23521
90dd450c 23522/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23523#ifdef __cplusplus
23524extern "C"
23525{
23526#endif
90dd450c 23527/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23528 builtin and then its argument prototype would still apply. */
23529char remove ();
90dd450c
VZ
23530/* The GNU C library defines this for functions which it implements
23531 to always fail with ENOSYS. Some functions are actually named
23532 something starting with __ and the normal name is an alias. */
23533#if defined (__stub_remove) || defined (__stub___remove)
23534choke me
23535#else
e6cc62c6
VS
23536char (*f) () = remove;
23537#endif
23538#ifdef __cplusplus
23539}
90dd450c 23540#endif
55e80573 23541
e6cc62c6
VS
23542int
23543main ()
23544{
23545return f != remove;
23546 ;
23547 return 0;
23548}
23549_ACEOF
23550rm -f conftest.$ac_objext conftest$ac_exeext
23551if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 23552 (eval $ac_link) 2>conftest.er1
e6cc62c6 23553 ac_status=$?
f95e4495
VS
23554 grep -v '^ *+' conftest.er1 >conftest.err
23555 rm -f conftest.er1
23556 cat conftest.err >&5
e6cc62c6
VS
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); } &&
f95e4495
VS
23559 { ac_try='test -z "$ac_c_werror_flag"
23560 || test ! -s conftest.err'
23561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23562 (eval $ac_try) 2>&5
23563 ac_status=$?
23564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); }; } &&
23566 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23568 (eval $ac_try) 2>&5
23569 ac_status=$?
23570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23571 (exit $ac_status); }; }; then
23572 ac_cv_func_remove=yes
23573else
23574 echo "$as_me: failed program was:" >&5
23575sed 's/^/| /' conftest.$ac_ext >&5
23576
23577ac_cv_func_remove=no
23578fi
f95e4495
VS
23579rm -f conftest.err conftest.$ac_objext \
23580 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23581fi
23582echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
23583echo "${ECHO_T}$ac_cv_func_remove" >&6
10f2d63a 23584
90dd450c 23585 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
23586 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
23587echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
23588if test "${ac_cv_lib_posix_remove+set}" = set; then
23589 echo $ECHO_N "(cached) $ECHO_C" >&6
90dd450c 23590else
e6cc62c6 23591 ac_check_lib_save_LIBS=$LIBS
90dd450c 23592LIBS="-lposix $LIBS"
e6cc62c6 23593cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23594/* confdefs.h. */
23595_ACEOF
23596cat confdefs.h >>conftest.$ac_ext
23597cat >>conftest.$ac_ext <<_ACEOF
23598/* end confdefs.h. */
23599
90dd450c 23600/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23601#ifdef __cplusplus
23602extern "C"
23603#endif
90dd450c 23604/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23605 builtin and then its argument prototype would still apply. */
23606char remove ();
23607int
23608main ()
23609{
23610remove ();
23611 ;
23612 return 0;
23613}
23614_ACEOF
23615rm -f conftest.$ac_objext conftest$ac_exeext
23616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 23617 (eval $ac_link) 2>conftest.er1
e6cc62c6 23618 ac_status=$?
f95e4495
VS
23619 grep -v '^ *+' conftest.er1 >conftest.err
23620 rm -f conftest.er1
23621 cat conftest.err >&5
e6cc62c6
VS
23622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623 (exit $ac_status); } &&
f95e4495
VS
23624 { ac_try='test -z "$ac_c_werror_flag"
23625 || test ! -s conftest.err'
23626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23627 (eval $ac_try) 2>&5
23628 ac_status=$?
23629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23630 (exit $ac_status); }; } &&
23631 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23633 (eval $ac_try) 2>&5
23634 ac_status=$?
23635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 (exit $ac_status); }; }; then
23637 ac_cv_lib_posix_remove=yes
23638else
23639 echo "$as_me: failed program was:" >&5
23640sed 's/^/| /' conftest.$ac_ext >&5
23641
23642ac_cv_lib_posix_remove=no
23643fi
f95e4495
VS
23644rm -f conftest.err conftest.$ac_objext \
23645 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23646LIBS=$ac_check_lib_save_LIBS
23647fi
23648echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
23649echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
23650if test $ac_cv_lib_posix_remove = yes; then
90dd450c 23651 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
90dd450c 23652fi
f6bcfd97 23653
6fa882bd
RR
23654 fi
23655
90dd450c 23656 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
23657 echo "$as_me:$LINENO: checking for shmat" >&5
23658echo $ECHO_N "checking for shmat... $ECHO_C" >&6
23659if test "${ac_cv_func_shmat+set}" = set; then
23660 echo $ECHO_N "(cached) $ECHO_C" >&6
23661else
23662 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23663/* confdefs.h. */
23664_ACEOF
23665cat confdefs.h >>conftest.$ac_ext
23666cat >>conftest.$ac_ext <<_ACEOF
23667/* end confdefs.h. */
f95e4495
VS
23668/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
23669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23670#define shmat innocuous_shmat
23671
90dd450c 23672/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
23673 which can conflict with char shmat (); below.
23674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23675 <limits.h> exists even on freestanding compilers. */
f95e4495 23676
e6cc62c6
VS
23677#ifdef __STDC__
23678# include <limits.h>
23679#else
23680# include <assert.h>
23681#endif
f95e4495
VS
23682
23683#undef shmat
23684
90dd450c 23685/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23686#ifdef __cplusplus
23687extern "C"
23688{
23689#endif
90dd450c 23690/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23691 builtin and then its argument prototype would still apply. */
23692char shmat ();
90dd450c
VZ
23693/* The GNU C library defines this for functions which it implements
23694 to always fail with ENOSYS. Some functions are actually named
23695 something starting with __ and the normal name is an alias. */
23696#if defined (__stub_shmat) || defined (__stub___shmat)
23697choke me
23698#else
e6cc62c6
VS
23699char (*f) () = shmat;
23700#endif
23701#ifdef __cplusplus
23702}
90dd450c 23703#endif
10f2d63a 23704
e6cc62c6
VS
23705int
23706main ()
23707{
23708return f != shmat;
23709 ;
23710 return 0;
23711}
23712_ACEOF
23713rm -f conftest.$ac_objext conftest$ac_exeext
23714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 23715 (eval $ac_link) 2>conftest.er1
e6cc62c6 23716 ac_status=$?
f95e4495
VS
23717 grep -v '^ *+' conftest.er1 >conftest.err
23718 rm -f conftest.er1
23719 cat conftest.err >&5
e6cc62c6
VS
23720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); } &&
f95e4495
VS
23722 { ac_try='test -z "$ac_c_werror_flag"
23723 || test ! -s conftest.err'
23724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23725 (eval $ac_try) 2>&5
23726 ac_status=$?
23727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23728 (exit $ac_status); }; } &&
23729 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23731 (eval $ac_try) 2>&5
23732 ac_status=$?
23733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734 (exit $ac_status); }; }; then
23735 ac_cv_func_shmat=yes
23736else
23737 echo "$as_me: failed program was:" >&5
23738sed 's/^/| /' conftest.$ac_ext >&5
23739
23740ac_cv_func_shmat=no
23741fi
f95e4495
VS
23742rm -f conftest.err conftest.$ac_objext \
23743 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23744fi
23745echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
23746echo "${ECHO_T}$ac_cv_func_shmat" >&6
d08b457b 23747
90dd450c 23748 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
23749 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
23750echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
23751if test "${ac_cv_lib_ipc_shmat+set}" = set; then
23752 echo $ECHO_N "(cached) $ECHO_C" >&6
d08b457b 23753else
e6cc62c6 23754 ac_check_lib_save_LIBS=$LIBS
90dd450c 23755LIBS="-lipc $LIBS"
e6cc62c6 23756cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23757/* confdefs.h. */
23758_ACEOF
23759cat confdefs.h >>conftest.$ac_ext
23760cat >>conftest.$ac_ext <<_ACEOF
23761/* end confdefs.h. */
23762
8284b0c5 23763/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23764#ifdef __cplusplus
23765extern "C"
23766#endif
90dd450c 23767/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23768 builtin and then its argument prototype would still apply. */
23769char shmat ();
23770int
23771main ()
23772{
23773shmat ();
23774 ;
23775 return 0;
23776}
23777_ACEOF
23778rm -f conftest.$ac_objext conftest$ac_exeext
23779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 23780 (eval $ac_link) 2>conftest.er1
e6cc62c6 23781 ac_status=$?
f95e4495
VS
23782 grep -v '^ *+' conftest.er1 >conftest.err
23783 rm -f conftest.er1
23784 cat conftest.err >&5
e6cc62c6
VS
23785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); } &&
f95e4495
VS
23787 { ac_try='test -z "$ac_c_werror_flag"
23788 || test ! -s conftest.err'
23789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23790 (eval $ac_try) 2>&5
23791 ac_status=$?
23792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793 (exit $ac_status); }; } &&
23794 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23796 (eval $ac_try) 2>&5
23797 ac_status=$?
23798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); }; }; then
23800 ac_cv_lib_ipc_shmat=yes
23801else
23802 echo "$as_me: failed program was:" >&5
23803sed 's/^/| /' conftest.$ac_ext >&5
23804
23805ac_cv_lib_ipc_shmat=no
23806fi
f95e4495
VS
23807rm -f conftest.err conftest.$ac_objext \
23808 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23809LIBS=$ac_check_lib_save_LIBS
23810fi
23811echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
23812echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
23813if test $ac_cv_lib_ipc_shmat = yes; then
90dd450c 23814 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
d08b457b
GD
23815fi
23816
d558c907 23817 fi
90dd450c 23818 fi
3a922bb4 23819
90dd450c 23820 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 23821 ac_save_LDFLAGS=$LDFLAGS
90dd450c
VZ
23822 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
23823 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
23824 # check for ICE first), but we must link in the order -lSM -lICE or
23825 # we get undefined symbols. So assume we have SM if we have ICE.
23826 # These have to be linked with before -lX11, unlike the other
23827 # libraries we check for below, so use a different variable.
e6cc62c6
VS
23828 # John Interrante, Karl Berry
23829 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
23830echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
23831if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
23832 echo $ECHO_N "(cached) $ECHO_C" >&6
23833else
23834 ac_check_lib_save_LIBS=$LIBS
f09359cf 23835LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 23836cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
23837/* confdefs.h. */
23838_ACEOF
23839cat confdefs.h >>conftest.$ac_ext
23840cat >>conftest.$ac_ext <<_ACEOF
23841/* end confdefs.h. */
23842
90dd450c 23843/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
23844#ifdef __cplusplus
23845extern "C"
23846#endif
90dd450c 23847/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
23848 builtin and then its argument prototype would still apply. */
23849char IceConnectionNumber ();
23850int
23851main ()
23852{
23853IceConnectionNumber ();
23854 ;
23855 return 0;
23856}
23857_ACEOF
23858rm -f conftest.$ac_objext conftest$ac_exeext
23859if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 23860 (eval $ac_link) 2>conftest.er1
e6cc62c6 23861 ac_status=$?
f95e4495
VS
23862 grep -v '^ *+' conftest.er1 >conftest.err
23863 rm -f conftest.er1
23864 cat conftest.err >&5
e6cc62c6
VS
23865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); } &&
f95e4495
VS
23867 { ac_try='test -z "$ac_c_werror_flag"
23868 || test ! -s conftest.err'
23869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23870 (eval $ac_try) 2>&5
23871 ac_status=$?
23872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23873 (exit $ac_status); }; } &&
23874 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
23875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23876 (eval $ac_try) 2>&5
23877 ac_status=$?
23878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879 (exit $ac_status); }; }; then
23880 ac_cv_lib_ICE_IceConnectionNumber=yes
23881else
23882 echo "$as_me: failed program was:" >&5
23883sed 's/^/| /' conftest.$ac_ext >&5
23884
23885ac_cv_lib_ICE_IceConnectionNumber=no
23886fi
f95e4495
VS
23887rm -f conftest.err conftest.$ac_objext \
23888 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
23889LIBS=$ac_check_lib_save_LIBS
23890fi
23891echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
23892echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
23893if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
90dd450c 23894 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9cfadba2 23895fi
10f2d63a 23896
e6cc62c6 23897 LDFLAGS=$ac_save_LDFLAGS
90dd450c
VZ
23898
23899fi
23900
8284b0c5 23901
90dd450c 23902 if test "$no_x" = "yes"; then
e6cc62c6
VS
23903 { { echo "$as_me:$LINENO: error: X11 not found" >&5
23904echo "$as_me: error: X11 not found" >&2;}
23905 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
90dd450c
VZ
23906 fi
23907
23908 GUI_TK_LIBRARY="$X_LIBS"
23909 TOOLKIT_INCLUDE="$X_CFLAGS"
23910 AFMINSTALL=afminstall
23911 COMPILED_X_PROGRAM=0
23912
21d1c967 23913 if test "$wxUSE_NANOX" = "yes"; then
e6cc62c6
VS
23914 echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
23915echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6
21d1c967 23916 if test "x$MICROWIN" = x ; then
e6cc62c6
VS
23917 echo "$as_me:$LINENO: result: not found" >&5
23918echo "${ECHO_T}not found" >&6
23919 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
23920echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
23921 { (exit 1); exit 1; }; }
90dd450c 23922 else
e6cc62c6
VS
23923 echo "$as_me:$LINENO: result: $MICROWIN" >&5
23924echo "${ECHO_T}$MICROWIN" >&6
23925 cat >>confdefs.h <<\_ACEOF
21d1c967 23926#define wxUSE_NANOX 1
e6cc62c6 23927_ACEOF
21d1c967 23928
90dd450c
VZ
23929 fi
23930 fi
23931
2b5f62a0 23932 if test "$wxUSE_UNICODE" = "yes"; then
e6cc62c6 23933
2b5f62a0 23934 succeeded=no
90dd450c 23935
2b5f62a0
VZ
23936 if test -z "$PKG_CONFIG"; then
23937 # Extract the first word of "pkg-config", so it can be a program name with args.
23938set dummy pkg-config; ac_word=$2
e6cc62c6
VS
23939echo "$as_me:$LINENO: checking for $ac_word" >&5
23940echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23941if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23942 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 23943else
e6cc62c6
VS
23944 case $PKG_CONFIG in
23945 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
23946 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23947 ;;
2b5f62a0 23948 *)
e6cc62c6
VS
23949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23950for as_dir in $PATH
23951do
23952 IFS=$as_save_IFS
23953 test -z "$as_dir" && as_dir=.
23954 for ac_exec_ext in '' $ac_executable_extensions; do
23955 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23956 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23958 break 2
23959 fi
23960done
23961done
23962
2b5f62a0
VZ
23963 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23964 ;;
23965esac
23966fi
e6cc62c6
VS
23967PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23968
2b5f62a0 23969if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
23970 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23971echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 23972else
e6cc62c6
VS
23973 echo "$as_me:$LINENO: result: no" >&5
23974echo "${ECHO_T}no" >&6
2b5f62a0
VZ
23975fi
23976
23977 fi
23978
23979 if test "$PKG_CONFIG" = "no" ; then
23980 echo "*** The pkg-config script could not be found. Make sure it is"
23981 echo "*** in your path, or set the PKG_CONFIG environment variable"
23982 echo "*** to the full path to pkg-config."
23983 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23984 else
23985 PKG_CONFIG_MIN_VERSION=0.9.0
23986 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
23987 echo "$as_me:$LINENO: checking for pangox" >&5
23988echo $ECHO_N "checking for pangox... $ECHO_C" >&6
2b5f62a0
VZ
23989
23990 if $PKG_CONFIG --exists "pangox" ; then
e6cc62c6
VS
23991 echo "$as_me:$LINENO: result: yes" >&5
23992echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
23993 succeeded=yes
23994
e6cc62c6
VS
23995 echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5
23996echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6
2b5f62a0 23997 PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"`
e6cc62c6
VS
23998 echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5
23999echo "${ECHO_T}$PANGOX_CFLAGS" >&6
2b5f62a0 24000
e6cc62c6
VS
24001 echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5
24002echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6
2b5f62a0 24003 PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"`
e6cc62c6
VS
24004 echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5
24005echo "${ECHO_T}$PANGOX_LIBS" >&6
2b5f62a0
VZ
24006 else
24007 PANGOX_CFLAGS=""
24008 PANGOX_LIBS=""
e6cc62c6 24009 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24010 ## do set a variable so people can do so.
24011 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
e6cc62c6 24012
2b5f62a0
VZ
24013 fi
24014
e6cc62c6
VS
24015
24016
2b5f62a0
VZ
24017 else
24018 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24019 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24020 fi
24021 fi
24022
24023 if test $succeeded = yes; then
e6cc62c6 24024
2b5f62a0 24025 CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS"
c74dc163 24026 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
e6cc62c6 24027
2b5f62a0 24028 else
e6cc62c6
VS
24029
24030 { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
24031echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
24032 { (exit 1); exit 1; }; }
24033
24034
2b5f62a0
VZ
24035 fi
24036
e6cc62c6 24037
2b5f62a0
VZ
24038 succeeded=no
24039
24040 if test -z "$PKG_CONFIG"; then
24041 # Extract the first word of "pkg-config", so it can be a program name with args.
24042set dummy pkg-config; ac_word=$2
e6cc62c6
VS
24043echo "$as_me:$LINENO: checking for $ac_word" >&5
24044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24045if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24046 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 24047else
e6cc62c6
VS
24048 case $PKG_CONFIG in
24049 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
24050 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24051 ;;
2b5f62a0 24052 *)
e6cc62c6
VS
24053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24054for as_dir in $PATH
24055do
24056 IFS=$as_save_IFS
24057 test -z "$as_dir" && as_dir=.
24058 for ac_exec_ext in '' $ac_executable_extensions; do
24059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24060 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24062 break 2
24063 fi
24064done
24065done
24066
2b5f62a0
VZ
24067 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24068 ;;
24069esac
24070fi
e6cc62c6
VS
24071PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24072
2b5f62a0 24073if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
24074 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24075echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 24076else
e6cc62c6
VS
24077 echo "$as_me:$LINENO: result: no" >&5
24078echo "${ECHO_T}no" >&6
2b5f62a0
VZ
24079fi
24080
24081 fi
24082
24083 if test "$PKG_CONFIG" = "no" ; then
24084 echo "*** The pkg-config script could not be found. Make sure it is"
24085 echo "*** in your path, or set the PKG_CONFIG environment variable"
24086 echo "*** to the full path to pkg-config."
24087 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24088 else
24089 PKG_CONFIG_MIN_VERSION=0.9.0
24090 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
24091 echo "$as_me:$LINENO: checking for pangoft2" >&5
24092echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6
2b5f62a0
VZ
24093
24094 if $PKG_CONFIG --exists "pangoft2" ; then
e6cc62c6
VS
24095 echo "$as_me:$LINENO: result: yes" >&5
24096echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
24097 succeeded=yes
24098
e6cc62c6
VS
24099 echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5
24100echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6
2b5f62a0 24101 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
e6cc62c6
VS
24102 echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5
24103echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6
2b5f62a0 24104
e6cc62c6
VS
24105 echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5
24106echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6
2b5f62a0 24107 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
e6cc62c6
VS
24108 echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5
24109echo "${ECHO_T}$PANGOFT2_LIBS" >&6
2b5f62a0
VZ
24110 else
24111 PANGOFT2_CFLAGS=""
24112 PANGOFT2_LIBS=""
e6cc62c6 24113 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24114 ## do set a variable so people can do so.
24115 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
e6cc62c6 24116
2b5f62a0
VZ
24117 fi
24118
e6cc62c6
VS
24119
24120
2b5f62a0
VZ
24121 else
24122 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24123 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24124 fi
24125 fi
24126
24127 if test $succeeded = yes; then
e6cc62c6 24128
2b5f62a0 24129 CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
c74dc163 24130 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
e6cc62c6 24131
2b5f62a0 24132 else
e6cc62c6
VS
24133
24134 { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
24135echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
2b5f62a0 24136 wxUSE_PRINTING_ARCHITECTURE="no"
e6cc62c6
VS
24137
24138
2b5f62a0
VZ
24139 fi
24140
e6cc62c6 24141
2b5f62a0
VZ
24142 succeeded=no
24143
24144 if test -z "$PKG_CONFIG"; then
24145 # Extract the first word of "pkg-config", so it can be a program name with args.
24146set dummy pkg-config; ac_word=$2
e6cc62c6
VS
24147echo "$as_me:$LINENO: checking for $ac_word" >&5
24148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24149if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
24150 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 24151else
e6cc62c6
VS
24152 case $PKG_CONFIG in
24153 [\\/]* | ?:[\\/]*)
2b5f62a0
VZ
24154 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
24155 ;;
2b5f62a0 24156 *)
e6cc62c6
VS
24157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24158for as_dir in $PATH
24159do
24160 IFS=$as_save_IFS
24161 test -z "$as_dir" && as_dir=.
24162 for ac_exec_ext in '' $ac_executable_extensions; do
24163 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24164 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
24165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24166 break 2
24167 fi
24168done
24169done
24170
2b5f62a0
VZ
24171 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
24172 ;;
24173esac
24174fi
e6cc62c6
VS
24175PKG_CONFIG=$ac_cv_path_PKG_CONFIG
24176
2b5f62a0 24177if test -n "$PKG_CONFIG"; then
e6cc62c6
VS
24178 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
24179echo "${ECHO_T}$PKG_CONFIG" >&6
2b5f62a0 24180else
e6cc62c6
VS
24181 echo "$as_me:$LINENO: result: no" >&5
24182echo "${ECHO_T}no" >&6
2b5f62a0
VZ
24183fi
24184
24185 fi
24186
24187 if test "$PKG_CONFIG" = "no" ; then
24188 echo "*** The pkg-config script could not be found. Make sure it is"
24189 echo "*** in your path, or set the PKG_CONFIG environment variable"
24190 echo "*** to the full path to pkg-config."
24191 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
24192 else
24193 PKG_CONFIG_MIN_VERSION=0.9.0
24194 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
e6cc62c6
VS
24195 echo "$as_me:$LINENO: checking for pangoxft" >&5
24196echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6
2b5f62a0
VZ
24197
24198 if $PKG_CONFIG --exists "pangoxft" ; then
e6cc62c6
VS
24199 echo "$as_me:$LINENO: result: yes" >&5
24200echo "${ECHO_T}yes" >&6
2b5f62a0
VZ
24201 succeeded=yes
24202
e6cc62c6
VS
24203 echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5
24204echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6
2b5f62a0 24205 PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"`
e6cc62c6
VS
24206 echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5
24207echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6
2b5f62a0 24208
e6cc62c6
VS
24209 echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5
24210echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6
2b5f62a0 24211 PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"`
e6cc62c6
VS
24212 echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5
24213echo "${ECHO_T}$PANGOXFT_LIBS" >&6
2b5f62a0
VZ
24214 else
24215 PANGOXFT_CFLAGS=""
24216 PANGOXFT_LIBS=""
e6cc62c6 24217 ## If we have a custom action on failure, don't print errors, but
2b5f62a0
VZ
24218 ## do set a variable so people can do so.
24219 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
e6cc62c6 24220
2b5f62a0
VZ
24221 fi
24222
e6cc62c6
VS
24223
24224
2b5f62a0
VZ
24225 else
24226 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
24227 echo "*** See http://www.freedesktop.org/software/pkgconfig"
24228 fi
24229 fi
24230
24231 if test $succeeded = yes; then
e6cc62c6 24232
2b5f62a0 24233 CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS"
c74dc163 24234 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
e6cc62c6 24235
2b5f62a0 24236 else
e6cc62c6
VS
24237
24238 { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
24239echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
24240
24241
2b5f62a0
VZ
24242 fi
24243
24244 fi
24245
24246 wxUSE_UNIVERSAL="yes"
24247
24248 if test "$wxUSE_NANOX" = "yes"; then
24249 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
fe0895cf 24250 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
24251 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
24252 else
93a543aa 24253 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
2b5f62a0
VZ
24254 fi
24255
24256 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
24257 TOOLKIT=X11
24258 GUIDIST=X11_DIST
24259 fi
24260
21d1c967
GD
24261 if test "$wxUSE_MOTIF" = 1; then
24262 if test "$no_x" = yes; then
24263 # Not all programs may use this symbol, but it does not hurt to define it.
e6cc62c6
VS
24264
24265cat >>confdefs.h <<\_ACEOF
21d1c967 24266#define X_DISPLAY_MISSING 1
e6cc62c6 24267_ACEOF
21d1c967
GD
24268
24269 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24270else
24271 if test -n "$x_includes"; then
24272 X_CFLAGS="$X_CFLAGS -I$x_includes"
90dd450c
VZ
24273 fi
24274
21d1c967
GD
24275 # It would also be nice to do this for all -L options, not just this one.
24276 if test -n "$x_libraries"; then
24277 X_LIBS="$X_LIBS -L$x_libraries"
24278 # For Solaris; some versions of Sun CC require a space after -R and
24279 # others require no space. Words are not sufficient . . . .
e6cc62c6 24280 case `(uname -sr) 2>/dev/null` in
21d1c967 24281 "SunOS 5"*)
e6cc62c6
VS
24282 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
24283echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
24284 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24285 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24286/* confdefs.h. */
24287_ACEOF
24288cat confdefs.h >>conftest.$ac_ext
24289cat >>conftest.$ac_ext <<_ACEOF
24290/* end confdefs.h. */
24291
24292int
24293main ()
24294{
21d1c967 24295
e6cc62c6
VS
24296 ;
24297 return 0;
24298}
24299_ACEOF
24300rm -f conftest.$ac_objext conftest$ac_exeext
24301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 24302 (eval $ac_link) 2>conftest.er1
e6cc62c6 24303 ac_status=$?
f95e4495
VS
24304 grep -v '^ *+' conftest.er1 >conftest.err
24305 rm -f conftest.er1
24306 cat conftest.err >&5
e6cc62c6
VS
24307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24308 (exit $ac_status); } &&
f95e4495
VS
24309 { ac_try='test -z "$ac_c_werror_flag"
24310 || test ! -s conftest.err'
24311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24312 (eval $ac_try) 2>&5
24313 ac_status=$?
24314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315 (exit $ac_status); }; } &&
24316 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24318 (eval $ac_try) 2>&5
24319 ac_status=$?
24320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24321 (exit $ac_status); }; }; then
21d1c967 24322 ac_R_nospace=yes
698dcdb6 24323else
e6cc62c6
VS
24324 echo "$as_me: failed program was:" >&5
24325sed 's/^/| /' conftest.$ac_ext >&5
24326
24327ac_R_nospace=no
10f2d63a 24328fi
f95e4495
VS
24329rm -f conftest.err conftest.$ac_objext \
24330 conftest$ac_exeext conftest.$ac_ext
21d1c967 24331 if test $ac_R_nospace = yes; then
e6cc62c6
VS
24332 echo "$as_me:$LINENO: result: no" >&5
24333echo "${ECHO_T}no" >&6
21d1c967
GD
24334 X_LIBS="$X_LIBS -R$x_libraries"
24335 else
24336 LIBS="$ac_xsave_LIBS -R $x_libraries"
e6cc62c6 24337 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24338/* confdefs.h. */
24339_ACEOF
24340cat confdefs.h >>conftest.$ac_ext
24341cat >>conftest.$ac_ext <<_ACEOF
24342/* end confdefs.h. */
24343
24344int
24345main ()
24346{
f0c87536 24347
e6cc62c6
VS
24348 ;
24349 return 0;
24350}
24351_ACEOF
24352rm -f conftest.$ac_objext conftest$ac_exeext
24353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 24354 (eval $ac_link) 2>conftest.er1
e6cc62c6 24355 ac_status=$?
f95e4495
VS
24356 grep -v '^ *+' conftest.er1 >conftest.err
24357 rm -f conftest.er1
24358 cat conftest.err >&5
e6cc62c6
VS
24359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24360 (exit $ac_status); } &&
f95e4495
VS
24361 { ac_try='test -z "$ac_c_werror_flag"
24362 || test ! -s conftest.err'
24363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24364 (eval $ac_try) 2>&5
24365 ac_status=$?
24366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24367 (exit $ac_status); }; } &&
24368 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24370 (eval $ac_try) 2>&5
24371 ac_status=$?
24372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24373 (exit $ac_status); }; }; then
21d1c967
GD
24374 ac_R_space=yes
24375else
e6cc62c6
VS
24376 echo "$as_me: failed program was:" >&5
24377sed 's/^/| /' conftest.$ac_ext >&5
24378
24379ac_R_space=no
21d1c967 24380fi
f95e4495
VS
24381rm -f conftest.err conftest.$ac_objext \
24382 conftest$ac_exeext conftest.$ac_ext
21d1c967 24383 if test $ac_R_space = yes; then
e6cc62c6
VS
24384 echo "$as_me:$LINENO: result: yes" >&5
24385echo "${ECHO_T}yes" >&6
21d1c967
GD
24386 X_LIBS="$X_LIBS -R $x_libraries"
24387 else
e6cc62c6
VS
24388 echo "$as_me:$LINENO: result: neither works" >&5
24389echo "${ECHO_T}neither works" >&6
21d1c967
GD
24390 fi
24391 fi
e6cc62c6 24392 LIBS=$ac_xsave_LIBS
21d1c967
GD
24393 esac
24394 fi
90dd450c 24395
21d1c967
GD
24396 # Check for system-dependent libraries X programs must link with.
24397 # Do this before checking for the system-independent R6 libraries
24398 # (-lICE), since we may need -lsocket or whatever for X linking.
24399
24400 if test "$ISC" = yes; then
24401 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24402 else
e6cc62c6
VS
24403 # Martyn Johnson says this is needed for Ultrix, if the X
24404 # libraries were built with DECnet support. And Karl Berry says
21d1c967 24405 # the Alpha needs dnet_stub (dnet does not exist).
e6cc62c6
VS
24406 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24407 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24408/* confdefs.h. */
24409_ACEOF
24410cat confdefs.h >>conftest.$ac_ext
24411cat >>conftest.$ac_ext <<_ACEOF
24412/* end confdefs.h. */
24413
247f5006 24414/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24415#ifdef __cplusplus
24416extern "C"
24417#endif
247f5006 24418/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24419 builtin and then its argument prototype would still apply. */
24420char XOpenDisplay ();
24421int
24422main ()
24423{
24424XOpenDisplay ();
24425 ;
24426 return 0;
24427}
24428_ACEOF
24429rm -f conftest.$ac_objext conftest$ac_exeext
24430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 24431 (eval $ac_link) 2>conftest.er1
e6cc62c6 24432 ac_status=$?
f95e4495
VS
24433 grep -v '^ *+' conftest.er1 >conftest.err
24434 rm -f conftest.er1
24435 cat conftest.err >&5
e6cc62c6
VS
24436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24437 (exit $ac_status); } &&
f95e4495
VS
24438 { ac_try='test -z "$ac_c_werror_flag"
24439 || test ! -s conftest.err'
24440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24441 (eval $ac_try) 2>&5
24442 ac_status=$?
24443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24444 (exit $ac_status); }; } &&
24445 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24447 (eval $ac_try) 2>&5
24448 ac_status=$?
24449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24450 (exit $ac_status); }; }; then
24451 :
24452else
24453 echo "$as_me: failed program was:" >&5
24454sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 24455
e6cc62c6
VS
24456echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24457echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
24458if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24459 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 24460else
e6cc62c6
VS
24461 ac_check_lib_save_LIBS=$LIBS
24462LIBS="-ldnet $LIBS"
24463cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24464/* confdefs.h. */
24465_ACEOF
24466cat confdefs.h >>conftest.$ac_ext
24467cat >>conftest.$ac_ext <<_ACEOF
24468/* end confdefs.h. */
a0b9e27f 24469
e6cc62c6
VS
24470/* Override any gcc2 internal prototype to avoid an error. */
24471#ifdef __cplusplus
24472extern "C"
24473#endif
24474/* We use char because int might match the return type of a gcc2
24475 builtin and then its argument prototype would still apply. */
24476char dnet_ntoa ();
24477int
24478main ()
24479{
24480dnet_ntoa ();
24481 ;
24482 return 0;
24483}
24484_ACEOF
24485rm -f conftest.$ac_objext conftest$ac_exeext
24486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 24487 (eval $ac_link) 2>conftest.er1
e6cc62c6 24488 ac_status=$?
f95e4495
VS
24489 grep -v '^ *+' conftest.er1 >conftest.err
24490 rm -f conftest.er1
24491 cat conftest.err >&5
e6cc62c6
VS
24492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493 (exit $ac_status); } &&
f95e4495
VS
24494 { ac_try='test -z "$ac_c_werror_flag"
24495 || test ! -s conftest.err'
24496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24497 (eval $ac_try) 2>&5
24498 ac_status=$?
24499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24500 (exit $ac_status); }; } &&
24501 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24503 (eval $ac_try) 2>&5
24504 ac_status=$?
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); }; }; then
24507 ac_cv_lib_dnet_dnet_ntoa=yes
24508else
24509 echo "$as_me: failed program was:" >&5
24510sed 's/^/| /' conftest.$ac_ext >&5
24511
24512ac_cv_lib_dnet_dnet_ntoa=no
24513fi
f95e4495
VS
24514rm -f conftest.err conftest.$ac_objext \
24515 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24516LIBS=$ac_check_lib_save_LIBS
24517fi
24518echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24519echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
24520if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
21d1c967 24521 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
0fb0dd83 24522fi
0fb0dd83 24523
21d1c967 24524 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
e6cc62c6
VS
24525 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24526echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
24527if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24528 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 24529else
e6cc62c6 24530 ac_check_lib_save_LIBS=$LIBS
21d1c967 24531LIBS="-ldnet_stub $LIBS"
e6cc62c6 24532cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24533/* confdefs.h. */
24534_ACEOF
24535cat confdefs.h >>conftest.$ac_ext
24536cat >>conftest.$ac_ext <<_ACEOF
24537/* end confdefs.h. */
24538
21d1c967 24539/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24540#ifdef __cplusplus
24541extern "C"
24542#endif
21d1c967 24543/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24544 builtin and then its argument prototype would still apply. */
24545char dnet_ntoa ();
24546int
24547main ()
24548{
24549dnet_ntoa ();
24550 ;
24551 return 0;
24552}
24553_ACEOF
24554rm -f conftest.$ac_objext conftest$ac_exeext
24555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 24556 (eval $ac_link) 2>conftest.er1
e6cc62c6 24557 ac_status=$?
f95e4495
VS
24558 grep -v '^ *+' conftest.er1 >conftest.err
24559 rm -f conftest.er1
24560 cat conftest.err >&5
e6cc62c6
VS
24561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562 (exit $ac_status); } &&
f95e4495
VS
24563 { ac_try='test -z "$ac_c_werror_flag"
24564 || test ! -s conftest.err'
24565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24566 (eval $ac_try) 2>&5
24567 ac_status=$?
24568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569 (exit $ac_status); }; } &&
24570 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24572 (eval $ac_try) 2>&5
24573 ac_status=$?
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575 (exit $ac_status); }; }; then
24576 ac_cv_lib_dnet_stub_dnet_ntoa=yes
24577else
24578 echo "$as_me: failed program was:" >&5
24579sed 's/^/| /' conftest.$ac_ext >&5
24580
24581ac_cv_lib_dnet_stub_dnet_ntoa=no
24582fi
f95e4495
VS
24583rm -f conftest.err conftest.$ac_objext \
24584 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24585LIBS=$ac_check_lib_save_LIBS
24586fi
24587echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24588echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
24589if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
21d1c967 24590 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
90dd450c
VZ
24591fi
24592
21d1c967 24593 fi
e6cc62c6 24594fi
f95e4495
VS
24595rm -f conftest.err conftest.$ac_objext \
24596 conftest$ac_exeext conftest.$ac_ext
e6cc62c6 24597 LIBS="$ac_xsave_LIBS"
90dd450c 24598
21d1c967
GD
24599 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24600 # to get the SysV transport functions.
e6cc62c6 24601 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
21d1c967
GD
24602 # needs -lnsl.
24603 # The nsl library prevents programs from opening the X display
e6cc62c6
VS
24604 # on Irix 5.2, according to T.E. Dickey.
24605 # The functions gethostbyname, getservbyname, and inet_addr are
24606 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24607 echo "$as_me:$LINENO: checking for gethostbyname" >&5
24608echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
24609if test "${ac_cv_func_gethostbyname+set}" = set; then
24610 echo $ECHO_N "(cached) $ECHO_C" >&6
24611else
24612 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24613/* confdefs.h. */
24614_ACEOF
24615cat confdefs.h >>conftest.$ac_ext
24616cat >>conftest.$ac_ext <<_ACEOF
24617/* end confdefs.h. */
f95e4495
VS
24618/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
24619 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24620#define gethostbyname innocuous_gethostbyname
24621
21d1c967 24622/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24623 which can conflict with char gethostbyname (); below.
24624 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24625 <limits.h> exists even on freestanding compilers. */
f95e4495 24626
e6cc62c6
VS
24627#ifdef __STDC__
24628# include <limits.h>
24629#else
24630# include <assert.h>
24631#endif
f95e4495
VS
24632
24633#undef gethostbyname
24634
21d1c967 24635/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24636#ifdef __cplusplus
24637extern "C"
24638{
24639#endif
21d1c967 24640/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24641 builtin and then its argument prototype would still apply. */
24642char gethostbyname ();
21d1c967
GD
24643/* The GNU C library defines this for functions which it implements
24644 to always fail with ENOSYS. Some functions are actually named
24645 something starting with __ and the normal name is an alias. */
24646#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
24647choke me
24648#else
e6cc62c6
VS
24649char (*f) () = gethostbyname;
24650#endif
24651#ifdef __cplusplus
24652}
21d1c967 24653#endif
90dd450c 24654
e6cc62c6
VS
24655int
24656main ()
24657{
24658return f != gethostbyname;
24659 ;
24660 return 0;
24661}
24662_ACEOF
24663rm -f conftest.$ac_objext conftest$ac_exeext
24664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 24665 (eval $ac_link) 2>conftest.er1
e6cc62c6 24666 ac_status=$?
f95e4495
VS
24667 grep -v '^ *+' conftest.er1 >conftest.err
24668 rm -f conftest.er1
24669 cat conftest.err >&5
e6cc62c6
VS
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); } &&
f95e4495
VS
24672 { ac_try='test -z "$ac_c_werror_flag"
24673 || test ! -s conftest.err'
24674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24675 (eval $ac_try) 2>&5
24676 ac_status=$?
24677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24678 (exit $ac_status); }; } &&
24679 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24681 (eval $ac_try) 2>&5
24682 ac_status=$?
24683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684 (exit $ac_status); }; }; then
24685 ac_cv_func_gethostbyname=yes
24686else
24687 echo "$as_me: failed program was:" >&5
24688sed 's/^/| /' conftest.$ac_ext >&5
24689
24690ac_cv_func_gethostbyname=no
24691fi
f95e4495
VS
24692rm -f conftest.err conftest.$ac_objext \
24693 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24694fi
24695echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
24696echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
90dd450c 24697
21d1c967 24698 if test $ac_cv_func_gethostbyname = no; then
e6cc62c6
VS
24699 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24700echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24701if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24702 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 24703else
e6cc62c6 24704 ac_check_lib_save_LIBS=$LIBS
21d1c967 24705LIBS="-lnsl $LIBS"
e6cc62c6 24706cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24707/* confdefs.h. */
24708_ACEOF
24709cat confdefs.h >>conftest.$ac_ext
24710cat >>conftest.$ac_ext <<_ACEOF
24711/* end confdefs.h. */
24712
21d1c967 24713/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24714#ifdef __cplusplus
24715extern "C"
24716#endif
21d1c967 24717/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24718 builtin and then its argument prototype would still apply. */
24719char gethostbyname ();
24720int
24721main ()
24722{
24723gethostbyname ();
24724 ;
24725 return 0;
24726}
24727_ACEOF
24728rm -f conftest.$ac_objext conftest$ac_exeext
24729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 24730 (eval $ac_link) 2>conftest.er1
e6cc62c6 24731 ac_status=$?
f95e4495
VS
24732 grep -v '^ *+' conftest.er1 >conftest.err
24733 rm -f conftest.er1
24734 cat conftest.err >&5
e6cc62c6
VS
24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736 (exit $ac_status); } &&
f95e4495
VS
24737 { ac_try='test -z "$ac_c_werror_flag"
24738 || test ! -s conftest.err'
24739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24740 (eval $ac_try) 2>&5
24741 ac_status=$?
24742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24743 (exit $ac_status); }; } &&
24744 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24746 (eval $ac_try) 2>&5
24747 ac_status=$?
24748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24749 (exit $ac_status); }; }; then
24750 ac_cv_lib_nsl_gethostbyname=yes
24751else
24752 echo "$as_me: failed program was:" >&5
24753sed 's/^/| /' conftest.$ac_ext >&5
24754
24755ac_cv_lib_nsl_gethostbyname=no
24756fi
f95e4495
VS
24757rm -f conftest.err conftest.$ac_objext \
24758 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24759LIBS=$ac_check_lib_save_LIBS
24760fi
24761echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24762echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24763if test $ac_cv_lib_nsl_gethostbyname = yes; then
24764 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
a0b9e27f 24765fi
247f5006 24766
e6cc62c6 24767 if test $ac_cv_lib_nsl_gethostbyname = no; then
f95e4495 24768 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
e6cc62c6
VS
24769echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
24770if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
24771 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 24772else
e6cc62c6
VS
24773 ac_check_lib_save_LIBS=$LIBS
24774LIBS="-lbsd $LIBS"
24775cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24776/* confdefs.h. */
24777_ACEOF
24778cat confdefs.h >>conftest.$ac_ext
24779cat >>conftest.$ac_ext <<_ACEOF
24780/* end confdefs.h. */
24781
24782/* Override any gcc2 internal prototype to avoid an error. */
24783#ifdef __cplusplus
24784extern "C"
24785#endif
24786/* We use char because int might match the return type of a gcc2
24787 builtin and then its argument prototype would still apply. */
24788char gethostbyname ();
24789int
24790main ()
24791{
24792gethostbyname ();
24793 ;
24794 return 0;
24795}
24796_ACEOF
24797rm -f conftest.$ac_objext conftest$ac_exeext
24798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 24799 (eval $ac_link) 2>conftest.er1
e6cc62c6 24800 ac_status=$?
f95e4495
VS
24801 grep -v '^ *+' conftest.er1 >conftest.err
24802 rm -f conftest.er1
24803 cat conftest.err >&5
e6cc62c6
VS
24804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24805 (exit $ac_status); } &&
f95e4495
VS
24806 { ac_try='test -z "$ac_c_werror_flag"
24807 || test ! -s conftest.err'
24808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24809 (eval $ac_try) 2>&5
24810 ac_status=$?
24811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24812 (exit $ac_status); }; } &&
24813 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24815 (eval $ac_try) 2>&5
24816 ac_status=$?
24817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818 (exit $ac_status); }; }; then
24819 ac_cv_lib_bsd_gethostbyname=yes
24820else
24821 echo "$as_me: failed program was:" >&5
24822sed 's/^/| /' conftest.$ac_ext >&5
24823
24824ac_cv_lib_bsd_gethostbyname=no
24825fi
f95e4495
VS
24826rm -f conftest.err conftest.$ac_objext \
24827 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24828LIBS=$ac_check_lib_save_LIBS
24829fi
24830echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
24831echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
24832if test $ac_cv_lib_bsd_gethostbyname = yes; then
24833 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
21d1c967 24834fi
90dd450c 24835
e6cc62c6 24836 fi
90dd450c
VZ
24837 fi
24838
21d1c967
GD
24839 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24840 # socket/setsockopt and other routines are undefined under SCO ODT
24841 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
e6cc62c6
VS
24842 # on later versions), says Simon Leinen: it contains gethostby*
24843 # variants that don't use the name server (or something). -lsocket
24844 # must be given before -lnsl if both are needed. We assume that
24845 # if connect needs -lnsl, so does gethostbyname.
24846 echo "$as_me:$LINENO: checking for connect" >&5
24847echo $ECHO_N "checking for connect... $ECHO_C" >&6
24848if test "${ac_cv_func_connect+set}" = set; then
24849 echo $ECHO_N "(cached) $ECHO_C" >&6
24850else
24851 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24852/* confdefs.h. */
24853_ACEOF
24854cat confdefs.h >>conftest.$ac_ext
24855cat >>conftest.$ac_ext <<_ACEOF
24856/* end confdefs.h. */
f95e4495
VS
24857/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24858 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24859#define connect innocuous_connect
24860
21d1c967 24861/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
24862 which can conflict with char connect (); below.
24863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24864 <limits.h> exists even on freestanding compilers. */
f95e4495 24865
e6cc62c6
VS
24866#ifdef __STDC__
24867# include <limits.h>
24868#else
24869# include <assert.h>
24870#endif
f95e4495
VS
24871
24872#undef connect
24873
21d1c967 24874/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24875#ifdef __cplusplus
24876extern "C"
24877{
24878#endif
21d1c967 24879/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24880 builtin and then its argument prototype would still apply. */
24881char connect ();
21d1c967
GD
24882/* The GNU C library defines this for functions which it implements
24883 to always fail with ENOSYS. Some functions are actually named
24884 something starting with __ and the normal name is an alias. */
24885#if defined (__stub_connect) || defined (__stub___connect)
24886choke me
24887#else
e6cc62c6
VS
24888char (*f) () = connect;
24889#endif
24890#ifdef __cplusplus
24891}
21d1c967 24892#endif
90dd450c 24893
e6cc62c6
VS
24894int
24895main ()
24896{
24897return f != connect;
24898 ;
24899 return 0;
24900}
24901_ACEOF
24902rm -f conftest.$ac_objext conftest$ac_exeext
24903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 24904 (eval $ac_link) 2>conftest.er1
e6cc62c6 24905 ac_status=$?
f95e4495
VS
24906 grep -v '^ *+' conftest.er1 >conftest.err
24907 rm -f conftest.er1
24908 cat conftest.err >&5
e6cc62c6
VS
24909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24910 (exit $ac_status); } &&
f95e4495
VS
24911 { ac_try='test -z "$ac_c_werror_flag"
24912 || test ! -s conftest.err'
24913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24914 (eval $ac_try) 2>&5
24915 ac_status=$?
24916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24917 (exit $ac_status); }; } &&
24918 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24920 (eval $ac_try) 2>&5
24921 ac_status=$?
24922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24923 (exit $ac_status); }; }; then
24924 ac_cv_func_connect=yes
24925else
24926 echo "$as_me: failed program was:" >&5
24927sed 's/^/| /' conftest.$ac_ext >&5
24928
24929ac_cv_func_connect=no
24930fi
f95e4495
VS
24931rm -f conftest.err conftest.$ac_objext \
24932 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24933fi
24934echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24935echo "${ECHO_T}$ac_cv_func_connect" >&6
1f8ae82f 24936
21d1c967 24937 if test $ac_cv_func_connect = no; then
e6cc62c6
VS
24938 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24939echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24940if test "${ac_cv_lib_socket_connect+set}" = set; then
24941 echo $ECHO_N "(cached) $ECHO_C" >&6
0fbb762e 24942else
e6cc62c6 24943 ac_check_lib_save_LIBS=$LIBS
21d1c967 24944LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
e6cc62c6 24945cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
24946/* confdefs.h. */
24947_ACEOF
24948cat confdefs.h >>conftest.$ac_ext
24949cat >>conftest.$ac_ext <<_ACEOF
24950/* end confdefs.h. */
24951
21d1c967 24952/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
24953#ifdef __cplusplus
24954extern "C"
24955#endif
21d1c967 24956/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
24957 builtin and then its argument prototype would still apply. */
24958char connect ();
24959int
24960main ()
24961{
24962connect ();
24963 ;
24964 return 0;
24965}
24966_ACEOF
24967rm -f conftest.$ac_objext conftest$ac_exeext
24968if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 24969 (eval $ac_link) 2>conftest.er1
e6cc62c6 24970 ac_status=$?
f95e4495
VS
24971 grep -v '^ *+' conftest.er1 >conftest.err
24972 rm -f conftest.er1
24973 cat conftest.err >&5
e6cc62c6
VS
24974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24975 (exit $ac_status); } &&
f95e4495
VS
24976 { ac_try='test -z "$ac_c_werror_flag"
24977 || test ! -s conftest.err'
24978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24979 (eval $ac_try) 2>&5
24980 ac_status=$?
24981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24982 (exit $ac_status); }; } &&
24983 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
24984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24985 (eval $ac_try) 2>&5
24986 ac_status=$?
24987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24988 (exit $ac_status); }; }; then
24989 ac_cv_lib_socket_connect=yes
24990else
24991 echo "$as_me: failed program was:" >&5
24992sed 's/^/| /' conftest.$ac_ext >&5
24993
24994ac_cv_lib_socket_connect=no
24995fi
f95e4495
VS
24996rm -f conftest.err conftest.$ac_objext \
24997 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
24998LIBS=$ac_check_lib_save_LIBS
24999fi
25000echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
25001echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
25002if test $ac_cv_lib_socket_connect = yes; then
21d1c967 25003 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
21d1c967 25004fi
90dd450c 25005
21d1c967 25006 fi
90dd450c 25007
e6cc62c6
VS
25008 # Guillermo Gomez says -lposix is necessary on A/UX.
25009 echo "$as_me:$LINENO: checking for remove" >&5
25010echo $ECHO_N "checking for remove... $ECHO_C" >&6
25011if test "${ac_cv_func_remove+set}" = set; then
25012 echo $ECHO_N "(cached) $ECHO_C" >&6
25013else
25014 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25015/* confdefs.h. */
25016_ACEOF
25017cat confdefs.h >>conftest.$ac_ext
25018cat >>conftest.$ac_ext <<_ACEOF
25019/* end confdefs.h. */
f95e4495
VS
25020/* Define remove to an innocuous variant, in case <limits.h> declares remove.
25021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25022#define remove innocuous_remove
25023
21d1c967 25024/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25025 which can conflict with char remove (); below.
25026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25027 <limits.h> exists even on freestanding compilers. */
f95e4495 25028
e6cc62c6
VS
25029#ifdef __STDC__
25030# include <limits.h>
25031#else
25032# include <assert.h>
25033#endif
f95e4495
VS
25034
25035#undef remove
25036
21d1c967 25037/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25038#ifdef __cplusplus
25039extern "C"
25040{
25041#endif
21d1c967 25042/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25043 builtin and then its argument prototype would still apply. */
25044char remove ();
21d1c967
GD
25045/* The GNU C library defines this for functions which it implements
25046 to always fail with ENOSYS. Some functions are actually named
25047 something starting with __ and the normal name is an alias. */
25048#if defined (__stub_remove) || defined (__stub___remove)
25049choke me
25050#else
e6cc62c6
VS
25051char (*f) () = remove;
25052#endif
25053#ifdef __cplusplus
25054}
21d1c967 25055#endif
90dd450c 25056
e6cc62c6
VS
25057int
25058main ()
25059{
25060return f != remove;
25061 ;
25062 return 0;
25063}
25064_ACEOF
25065rm -f conftest.$ac_objext conftest$ac_exeext
25066if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 25067 (eval $ac_link) 2>conftest.er1
e6cc62c6 25068 ac_status=$?
f95e4495
VS
25069 grep -v '^ *+' conftest.er1 >conftest.err
25070 rm -f conftest.er1
25071 cat conftest.err >&5
e6cc62c6
VS
25072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073 (exit $ac_status); } &&
f95e4495
VS
25074 { ac_try='test -z "$ac_c_werror_flag"
25075 || test ! -s conftest.err'
25076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25077 (eval $ac_try) 2>&5
25078 ac_status=$?
25079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25080 (exit $ac_status); }; } &&
25081 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25083 (eval $ac_try) 2>&5
25084 ac_status=$?
25085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25086 (exit $ac_status); }; }; then
25087 ac_cv_func_remove=yes
25088else
25089 echo "$as_me: failed program was:" >&5
25090sed 's/^/| /' conftest.$ac_ext >&5
25091
25092ac_cv_func_remove=no
25093fi
f95e4495
VS
25094rm -f conftest.err conftest.$ac_objext \
25095 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25096fi
25097echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
25098echo "${ECHO_T}$ac_cv_func_remove" >&6
90dd450c 25099
21d1c967 25100 if test $ac_cv_func_remove = no; then
e6cc62c6
VS
25101 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
25102echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
25103if test "${ac_cv_lib_posix_remove+set}" = set; then
25104 echo $ECHO_N "(cached) $ECHO_C" >&6
21d1c967 25105else
e6cc62c6 25106 ac_check_lib_save_LIBS=$LIBS
21d1c967 25107LIBS="-lposix $LIBS"
e6cc62c6 25108cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25109/* confdefs.h. */
25110_ACEOF
25111cat confdefs.h >>conftest.$ac_ext
25112cat >>conftest.$ac_ext <<_ACEOF
25113/* end confdefs.h. */
25114
21d1c967 25115/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25116#ifdef __cplusplus
25117extern "C"
25118#endif
21d1c967 25119/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25120 builtin and then its argument prototype would still apply. */
25121char remove ();
25122int
25123main ()
25124{
25125remove ();
25126 ;
25127 return 0;
25128}
25129_ACEOF
25130rm -f conftest.$ac_objext conftest$ac_exeext
25131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 25132 (eval $ac_link) 2>conftest.er1
e6cc62c6 25133 ac_status=$?
f95e4495
VS
25134 grep -v '^ *+' conftest.er1 >conftest.err
25135 rm -f conftest.er1
25136 cat conftest.err >&5
e6cc62c6
VS
25137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138 (exit $ac_status); } &&
f95e4495
VS
25139 { ac_try='test -z "$ac_c_werror_flag"
25140 || test ! -s conftest.err'
25141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25142 (eval $ac_try) 2>&5
25143 ac_status=$?
25144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25145 (exit $ac_status); }; } &&
25146 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25148 (eval $ac_try) 2>&5
25149 ac_status=$?
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); }; }; then
25152 ac_cv_lib_posix_remove=yes
25153else
25154 echo "$as_me: failed program was:" >&5
25155sed 's/^/| /' conftest.$ac_ext >&5
25156
25157ac_cv_lib_posix_remove=no
25158fi
f95e4495
VS
25159rm -f conftest.err conftest.$ac_objext \
25160 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25161LIBS=$ac_check_lib_save_LIBS
25162fi
25163echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
25164echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
25165if test $ac_cv_lib_posix_remove = yes; then
21d1c967 25166 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
21d1c967 25167fi
19bc6aad 25168
90dd450c 25169 fi
19bc6aad 25170
21d1c967 25171 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
e6cc62c6
VS
25172 echo "$as_me:$LINENO: checking for shmat" >&5
25173echo $ECHO_N "checking for shmat... $ECHO_C" >&6
25174if test "${ac_cv_func_shmat+set}" = set; then
25175 echo $ECHO_N "(cached) $ECHO_C" >&6
25176else
25177 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25178/* confdefs.h. */
25179_ACEOF
25180cat confdefs.h >>conftest.$ac_ext
25181cat >>conftest.$ac_ext <<_ACEOF
25182/* end confdefs.h. */
f95e4495
VS
25183/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
25184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25185#define shmat innocuous_shmat
25186
21d1c967 25187/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
25188 which can conflict with char shmat (); below.
25189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25190 <limits.h> exists even on freestanding compilers. */
f95e4495 25191
e6cc62c6
VS
25192#ifdef __STDC__
25193# include <limits.h>
25194#else
25195# include <assert.h>
25196#endif
f95e4495
VS
25197
25198#undef shmat
25199
21d1c967 25200/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25201#ifdef __cplusplus
25202extern "C"
25203{
25204#endif
21d1c967 25205/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25206 builtin and then its argument prototype would still apply. */
25207char shmat ();
21d1c967
GD
25208/* The GNU C library defines this for functions which it implements
25209 to always fail with ENOSYS. Some functions are actually named
25210 something starting with __ and the normal name is an alias. */
25211#if defined (__stub_shmat) || defined (__stub___shmat)
25212choke me
25213#else
e6cc62c6
VS
25214char (*f) () = shmat;
25215#endif
25216#ifdef __cplusplus
25217}
21d1c967 25218#endif
90dd450c 25219
e6cc62c6
VS
25220int
25221main ()
25222{
25223return f != shmat;
25224 ;
25225 return 0;
25226}
25227_ACEOF
25228rm -f conftest.$ac_objext conftest$ac_exeext
25229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 25230 (eval $ac_link) 2>conftest.er1
e6cc62c6 25231 ac_status=$?
f95e4495
VS
25232 grep -v '^ *+' conftest.er1 >conftest.err
25233 rm -f conftest.er1
25234 cat conftest.err >&5
e6cc62c6
VS
25235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25236 (exit $ac_status); } &&
f95e4495
VS
25237 { ac_try='test -z "$ac_c_werror_flag"
25238 || test ! -s conftest.err'
25239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25240 (eval $ac_try) 2>&5
25241 ac_status=$?
25242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25243 (exit $ac_status); }; } &&
25244 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25246 (eval $ac_try) 2>&5
25247 ac_status=$?
25248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25249 (exit $ac_status); }; }; then
25250 ac_cv_func_shmat=yes
25251else
25252 echo "$as_me: failed program was:" >&5
25253sed 's/^/| /' conftest.$ac_ext >&5
25254
25255ac_cv_func_shmat=no
25256fi
f95e4495
VS
25257rm -f conftest.err conftest.$ac_objext \
25258 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25259fi
25260echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
25261echo "${ECHO_T}$ac_cv_func_shmat" >&6
19bc6aad 25262
21d1c967 25263 if test $ac_cv_func_shmat = no; then
e6cc62c6
VS
25264 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
25265echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
25266if test "${ac_cv_lib_ipc_shmat+set}" = set; then
25267 echo $ECHO_N "(cached) $ECHO_C" >&6
5c6fa7d2 25268else
e6cc62c6 25269 ac_check_lib_save_LIBS=$LIBS
5c6fa7d2 25270LIBS="-lipc $LIBS"
e6cc62c6 25271cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25272/* confdefs.h. */
25273_ACEOF
25274cat confdefs.h >>conftest.$ac_ext
25275cat >>conftest.$ac_ext <<_ACEOF
25276/* end confdefs.h. */
25277
5c6fa7d2 25278/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25279#ifdef __cplusplus
25280extern "C"
25281#endif
5c6fa7d2 25282/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25283 builtin and then its argument prototype would still apply. */
25284char shmat ();
25285int
25286main ()
25287{
25288shmat ();
25289 ;
25290 return 0;
25291}
25292_ACEOF
25293rm -f conftest.$ac_objext conftest$ac_exeext
25294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 25295 (eval $ac_link) 2>conftest.er1
e6cc62c6 25296 ac_status=$?
f95e4495
VS
25297 grep -v '^ *+' conftest.er1 >conftest.err
25298 rm -f conftest.er1
25299 cat conftest.err >&5
e6cc62c6
VS
25300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301 (exit $ac_status); } &&
f95e4495
VS
25302 { ac_try='test -z "$ac_c_werror_flag"
25303 || test ! -s conftest.err'
25304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25305 (eval $ac_try) 2>&5
25306 ac_status=$?
25307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25308 (exit $ac_status); }; } &&
25309 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25311 (eval $ac_try) 2>&5
25312 ac_status=$?
25313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314 (exit $ac_status); }; }; then
25315 ac_cv_lib_ipc_shmat=yes
25316else
25317 echo "$as_me: failed program was:" >&5
25318sed 's/^/| /' conftest.$ac_ext >&5
25319
25320ac_cv_lib_ipc_shmat=no
25321fi
f95e4495
VS
25322rm -f conftest.err conftest.$ac_objext \
25323 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25324LIBS=$ac_check_lib_save_LIBS
25325fi
25326echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
25327echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
25328if test $ac_cv_lib_ipc_shmat = yes; then
21d1c967 25329 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9f8148b1 25330fi
90dd450c 25331
90dd450c 25332 fi
21d1c967 25333 fi
10f2d63a 25334
21d1c967 25335 # Check for libraries that X11R6 Xt/Xaw programs need.
e6cc62c6 25336 ac_save_LDFLAGS=$LDFLAGS
21d1c967
GD
25337 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25338 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25339 # check for ICE first), but we must link in the order -lSM -lICE or
25340 # we get undefined symbols. So assume we have SM if we have ICE.
25341 # These have to be linked with before -lX11, unlike the other
25342 # libraries we check for below, so use a different variable.
e6cc62c6
VS
25343 # John Interrante, Karl Berry
25344 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
25345echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
25346if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
25347 echo $ECHO_N "(cached) $ECHO_C" >&6
25348else
25349 ac_check_lib_save_LIBS=$LIBS
f09359cf 25350LIBS="-lICE $X_EXTRA_LIBS $LIBS"
e6cc62c6 25351cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25352/* confdefs.h. */
25353_ACEOF
25354cat confdefs.h >>conftest.$ac_ext
25355cat >>conftest.$ac_ext <<_ACEOF
25356/* end confdefs.h. */
25357
21d1c967 25358/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
25359#ifdef __cplusplus
25360extern "C"
25361#endif
21d1c967 25362/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
25363 builtin and then its argument prototype would still apply. */
25364char IceConnectionNumber ();
25365int
25366main ()
25367{
25368IceConnectionNumber ();
25369 ;
25370 return 0;
25371}
25372_ACEOF
25373rm -f conftest.$ac_objext conftest$ac_exeext
25374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 25375 (eval $ac_link) 2>conftest.er1
e6cc62c6 25376 ac_status=$?
f95e4495
VS
25377 grep -v '^ *+' conftest.er1 >conftest.err
25378 rm -f conftest.er1
25379 cat conftest.err >&5
e6cc62c6
VS
25380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381 (exit $ac_status); } &&
f95e4495
VS
25382 { ac_try='test -z "$ac_c_werror_flag"
25383 || test ! -s conftest.err'
25384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25385 (eval $ac_try) 2>&5
25386 ac_status=$?
25387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388 (exit $ac_status); }; } &&
25389 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25391 (eval $ac_try) 2>&5
25392 ac_status=$?
25393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25394 (exit $ac_status); }; }; then
25395 ac_cv_lib_ICE_IceConnectionNumber=yes
25396else
25397 echo "$as_me: failed program was:" >&5
25398sed 's/^/| /' conftest.$ac_ext >&5
25399
25400ac_cv_lib_ICE_IceConnectionNumber=no
25401fi
f95e4495
VS
25402rm -f conftest.err conftest.$ac_objext \
25403 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
25404LIBS=$ac_check_lib_save_LIBS
25405fi
25406echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25407echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
25408if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21d1c967 25409 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
29fd3c0c 25410fi
21d1c967 25411
e6cc62c6 25412 LDFLAGS=$ac_save_LDFLAGS
29fd3c0c 25413
10f2d63a
VZ
25414fi
25415
8284b0c5 25416
21d1c967 25417 if test "$no_x" = "yes"; then
e6cc62c6
VS
25418 { { echo "$as_me:$LINENO: error: X11 not found" >&5
25419echo "$as_me: error: X11 not found" >&2;}
25420 { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; }
21d1c967
GD
25421 fi
25422
2b5f62a0
VZ
25423 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'`
25424 TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
21d1c967
GD
25425 AFMINSTALL=afminstall
25426 COMPILED_X_PROGRAM=0
25427
e6cc62c6
VS
25428 echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
25429echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6
25430
21d1c967 25431ac_find_includes=
2b5f62a0 25432for ac_dir in $SEARCH_INCLUDE /usr/include;
21d1c967
GD
25433 do
25434 if test -f "$ac_dir/Xm/Xm.h"; then
25435 ac_find_includes=$ac_dir
25436 break
25437 fi
25438 done
25439
25440 if test "$ac_find_includes" != "" ; then
e6cc62c6
VS
25441 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
25442echo "${ECHO_T}found in $ac_find_includes" >&6
25443
2b5f62a0 25444 if test "x$ac_find_includes" = "x/usr/include"; then
dd0e4a90
VZ
25445 ac_path_to_include=""
25446 else
2b5f62a0
VZ
25447 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
25448 result=$?
25449 if test $result = 0; then
25450 ac_path_to_include=""
25451 else
25452 ac_path_to_include=" -I$ac_find_includes"
25453 fi
dd0e4a90
VZ
25454 fi
25455
25456 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
21d1c967 25457 else
e6cc62c6 25458 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25459/* confdefs.h. */
25460_ACEOF
25461cat confdefs.h >>conftest.$ac_ext
25462cat >>conftest.$ac_ext <<_ACEOF
25463/* end confdefs.h. */
21d1c967
GD
25464
25465 #include <Xm/Xm.h>
e6cc62c6
VS
25466
25467int
25468main ()
25469{
21d1c967
GD
25470
25471 int version;
25472 version = xmUseVersion;
e6cc62c6
VS
25473
25474 ;
25475 return 0;
25476}
25477_ACEOF
25478rm -f conftest.$ac_objext
25479if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 25480 (eval $ac_compile) 2>conftest.er1
e6cc62c6 25481 ac_status=$?
f95e4495
VS
25482 grep -v '^ *+' conftest.er1 >conftest.err
25483 rm -f conftest.er1
25484 cat conftest.err >&5
e6cc62c6
VS
25485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25486 (exit $ac_status); } &&
f95e4495
VS
25487 { ac_try='test -z "$ac_c_werror_flag"
25488 || test ! -s conftest.err'
25489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25490 (eval $ac_try) 2>&5
25491 ac_status=$?
25492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493 (exit $ac_status); }; } &&
25494 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25496 (eval $ac_try) 2>&5
25497 ac_status=$?
25498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499 (exit $ac_status); }; }; then
25500
25501 echo "$as_me:$LINENO: result: found in default search path" >&5
25502echo "${ECHO_T}found in default search path" >&6
21d1c967 25503 COMPILED_X_PROGRAM=1
e6cc62c6 25504
10f2d63a 25505else
e6cc62c6
VS
25506 echo "$as_me: failed program was:" >&5
25507sed 's/^/| /' conftest.$ac_ext >&5
25508
25509
25510 echo "$as_me:$LINENO: result: no" >&5
25511echo "${ECHO_T}no" >&6
25512 { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5
25513echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;}
25514 { (exit 1); exit 1; }; }
25515
25516
10f2d63a 25517fi
f95e4495 25518rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21d1c967 25519 fi
10f2d63a 25520
21d1c967 25521 if test "$COMPILED_X_PROGRAM" = 0; then
e6cc62c6
VS
25522 echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
25523echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6
25524
21d1c967 25525ac_find_libraries=
2b5f62a0 25526for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
25527 do
25528 for ac_extension in a so sl dylib; do
25529 if test -f "$ac_dir/libXm.$ac_extension"; then
25530 ac_find_libraries=$ac_dir
25531 break 2
25532 fi
25533 done
25534 done
25535
25536 if test "$ac_find_libraries" != "" ; then
e6cc62c6
VS
25537 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25538echo "${ECHO_T}found at $ac_find_libraries" >&6
25539
21d1c967 25540
21d1c967
GD
25541 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25542 result=$?
25543 if test $result = 0; then
25544 ac_path_to_link=""
25545 else
25546 ac_path_to_link=" -L$ac_find_libraries"
25547 fi
25548
21d1c967 25549 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
21d1c967 25550 else
dd0e4a90
VZ
25551 save_CFLAGS=$CFLAGS
25552 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25553
e6cc62c6 25554 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25555/* confdefs.h. */
25556_ACEOF
25557cat confdefs.h >>conftest.$ac_ext
25558cat >>conftest.$ac_ext <<_ACEOF
25559/* end confdefs.h. */
21d1c967
GD
25560
25561 #include <Xm/Xm.h>
e6cc62c6
VS
25562
25563int
25564main ()
25565{
21d1c967
GD
25566
25567 int version;
25568 version = xmUseVersion;
e6cc62c6
VS
25569
25570 ;
25571 return 0;
25572}
25573_ACEOF
25574rm -f conftest.$ac_objext
25575if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 25576 (eval $ac_compile) 2>conftest.er1
e6cc62c6 25577 ac_status=$?
f95e4495
VS
25578 grep -v '^ *+' conftest.er1 >conftest.err
25579 rm -f conftest.er1
25580 cat conftest.err >&5
e6cc62c6
VS
25581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25582 (exit $ac_status); } &&
f95e4495
VS
25583 { ac_try='test -z "$ac_c_werror_flag"
25584 || test ! -s conftest.err'
25585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25586 (eval $ac_try) 2>&5
25587 ac_status=$?
25588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25589 (exit $ac_status); }; } &&
25590 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25592 (eval $ac_try) 2>&5
25593 ac_status=$?
25594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25595 (exit $ac_status); }; }; then
25596
25597 echo "$as_me:$LINENO: result: found in default search path" >&5
25598echo "${ECHO_T}found in default search path" >&6
21d1c967 25599 COMPILED_X_PROGRAM=1
e6cc62c6 25600
d836ee96 25601else
e6cc62c6
VS
25602 echo "$as_me: failed program was:" >&5
25603sed 's/^/| /' conftest.$ac_ext >&5
25604
25605
25606 echo "$as_me:$LINENO: result: no" >&5
25607echo "${ECHO_T}no" >&6
25608 { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
25609echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
25610 { (exit 1); exit 1; }; }
25611
25612
d836ee96 25613fi
f95e4495 25614rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
dd0e4a90
VZ
25615
25616 CFLAGS=$save_CFLAGS
21d1c967
GD
25617 fi
25618 fi
25619
e6cc62c6
VS
25620 echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
25621echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6
6a30f1c8
MB
25622 libp_link=""
25623 libsm_ice_link=""
25624 libs_found=0
25625 for libp in "" " -lXp"; do
25626 if test "$libs_found" = "0"; then
7015ef3a 25627 for libsm_ice in "" " -lSM -lICE"; do
e26c13cf 25628 if test "$libs_found" = "0"; then
6a30f1c8 25629 save_LIBS="$LIBS"
93a543aa 25630 LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
dd0e4a90
VZ
25631 save_CFLAGS=$CFLAGS
25632 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25633
e6cc62c6 25634 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25635/* confdefs.h. */
25636_ACEOF
25637cat confdefs.h >>conftest.$ac_ext
25638cat >>conftest.$ac_ext <<_ACEOF
25639/* end confdefs.h. */
17234b26 25640
6a30f1c8
MB
25641 #include <Xm/Xm.h>
25642 #include <Xm/List.h>
e6cc62c6
VS
25643
25644int
25645main ()
25646{
6a30f1c8
MB
25647
25648 XmString string = NULL;
25649 Widget w = NULL;
25650 int position = 0;
25651 XmListAddItem(w, string, position);
e6cc62c6
VS
25652
25653 ;
25654 return 0;
25655}
25656_ACEOF
25657rm -f conftest.$ac_objext conftest$ac_exeext
25658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 25659 (eval $ac_link) 2>conftest.er1
e6cc62c6 25660 ac_status=$?
f95e4495
VS
25661 grep -v '^ *+' conftest.er1 >conftest.err
25662 rm -f conftest.er1
25663 cat conftest.err >&5
e6cc62c6
VS
25664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25665 (exit $ac_status); } &&
f95e4495
VS
25666 { ac_try='test -z "$ac_c_werror_flag"
25667 || test ! -s conftest.err'
25668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25669 (eval $ac_try) 2>&5
25670 ac_status=$?
25671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672 (exit $ac_status); }; } &&
25673 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
25674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25675 (eval $ac_try) 2>&5
25676 ac_status=$?
25677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25678 (exit $ac_status); }; }; then
25679
6a30f1c8
MB
25680 libp_link="$libp"
25681 libsm_ice_link="$libsm_ice"
e6cc62c6
VS
25682 echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
25683echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6
6a30f1c8 25684 libs_found=1
e6cc62c6 25685
6a30f1c8 25686else
e6cc62c6
VS
25687 echo "$as_me: failed program was:" >&5
25688sed 's/^/| /' conftest.$ac_ext >&5
25689
25690
25691
6a30f1c8 25692fi
f95e4495
VS
25693rm -f conftest.err conftest.$ac_objext \
25694 conftest$ac_exeext conftest.$ac_ext
dd0e4a90 25695
6a30f1c8 25696 LIBS="$save_LIBS"
dd0e4a90 25697 CFLAGS=$save_CFLAGS
6a30f1c8
MB
25698 fi
25699 done
25700 fi
25701 done
25702
25703 if test "$libs_found" = "0"; then
e6cc62c6
VS
25704 echo "$as_me:$LINENO: result: can't find the right libraries" >&5
25705echo "${ECHO_T}can't find the right libraries" >&6
25706 { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
25707echo "$as_me: error: can't link a simple motif program" >&2;}
25708 { (exit 1); exit 1; }; }
6a30f1c8
MB
25709 fi
25710
da494b40
MB
25711 save_CFLAGS=$CFLAGS
25712 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
e6cc62c6
VS
25713 echo "$as_me:$LINENO: checking for Motif 2" >&5
25714echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6
25715 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25716/* confdefs.h. */
25717_ACEOF
25718cat confdefs.h >>conftest.$ac_ext
25719cat >>conftest.$ac_ext <<_ACEOF
25720/* end confdefs.h. */
da494b40
MB
25721
25722 #include <Xm/Xm.h>
e6cc62c6
VS
25723
25724int
25725main ()
25726{
da494b40
MB
25727
25728 #if XmVersion < 2000
25729 #error "Not Motif 2"
25730 #endif
e6cc62c6
VS
25731
25732 ;
25733 return 0;
25734}
25735_ACEOF
25736rm -f conftest.$ac_objext
25737if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 25738 (eval $ac_compile) 2>conftest.er1
e6cc62c6 25739 ac_status=$?
f95e4495
VS
25740 grep -v '^ *+' conftest.er1 >conftest.err
25741 rm -f conftest.er1
25742 cat conftest.err >&5
e6cc62c6
VS
25743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25744 (exit $ac_status); } &&
f95e4495
VS
25745 { ac_try='test -z "$ac_c_werror_flag"
25746 || test ! -s conftest.err'
25747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25748 (eval $ac_try) 2>&5
25749 ac_status=$?
25750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); }; } &&
25752 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
25753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25754 (eval $ac_try) 2>&5
25755 ac_status=$?
25756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25757 (exit $ac_status); }; }; then
25758
25759 cat >>confdefs.h <<\_ACEOF
da494b40 25760#define __WXMOTIF20__ 1
e6cc62c6
VS
25761_ACEOF
25762
25763 echo "$as_me:$LINENO: result: found" >&5
25764echo "${ECHO_T}found" >&6
da494b40 25765
da494b40 25766else
e6cc62c6
VS
25767 echo "$as_me: failed program was:" >&5
25768sed 's/^/| /' conftest.$ac_ext >&5
25769
25770
25771 cat >>confdefs.h <<\_ACEOF
da494b40 25772#define __WXMOTIF20__ 0
e6cc62c6
VS
25773_ACEOF
25774
25775 echo "$as_me:$LINENO: result: not found" >&5
25776echo "${ECHO_T}not found" >&6
da494b40 25777
da494b40 25778fi
f95e4495 25779rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
da494b40
MB
25780 CFLAGS=$save_CFLAGS
25781
93a543aa 25782 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
69c44812 25783 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11"
21d1c967
GD
25784 TOOLKIT=MOTIF
25785 GUIDIST=MOTIF_DIST
f7f78039
MB
25786 fi
25787
89fe663f
VZ
25788 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
25789 if test "$wxUSE_LIBXPM" = "sys"; then
25790 echo "$as_me:$LINENO: checking for Xpm library" >&5
25791echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6
25792
25793ac_find_libraries=
25794for ac_dir in $SEARCH_LIB /usr/lib;
25795 do
25796 for ac_extension in a so sl dylib; do
25797 if test -f "$ac_dir/libXpm.$ac_extension"; then
25798 ac_find_libraries=$ac_dir
25799 break 2
25800 fi
25801 done
25802 done
25803
25804 if test "$ac_find_libraries" != "" ; then
25805
25806 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
25807 result=$?
25808 if test $result = 0; then
25809 ac_path_to_link=""
25810 else
25811 ac_path_to_link=" -L$ac_find_libraries"
25812 fi
25813
25814 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
25815 echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5
25816echo "${ECHO_T}found at $ac_find_libraries" >&6
25817
25818 echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
25819echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6
25820if test "${wx_cv_x11_xpm_h+set}" = set; then
25821 echo $ECHO_N "(cached) $ECHO_C" >&6
25822else
25823
25824 save_CFLAGS=$CFLAGS
25825 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25826
25827 cat >conftest.$ac_ext <<_ACEOF
89fe663f
VZ
25828/* confdefs.h. */
25829_ACEOF
25830cat confdefs.h >>conftest.$ac_ext
25831cat >>conftest.$ac_ext <<_ACEOF
25832/* end confdefs.h. */
25833
25834 #include <X11/xpm.h>
25835
25836int
25837main ()
25838{
25839
25840 int version;
25841 version = XpmLibraryVersion();
25842
25843 ;
25844 return 0;
25845}
25846_ACEOF
25847rm -f conftest.$ac_objext
25848if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 25849 (eval $ac_compile) 2>conftest.er1
89fe663f 25850 ac_status=$?
f95e4495
VS
25851 grep -v '^ *+' conftest.er1 >conftest.err
25852 rm -f conftest.er1
25853 cat conftest.err >&5
89fe663f
VZ
25854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25855 (exit $ac_status); } &&
f95e4495
VS
25856 { ac_try='test -z "$ac_c_werror_flag"
25857 || test ! -s conftest.err'
25858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25859 (eval $ac_try) 2>&5
25860 ac_status=$?
25861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862 (exit $ac_status); }; } &&
25863 { ac_try='test -s conftest.$ac_objext'
89fe663f
VZ
25864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25865 (eval $ac_try) 2>&5
25866 ac_status=$?
25867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868 (exit $ac_status); }; }; then
25869 wx_cv_x11_xpm_h=yes
25870else
25871 echo "$as_me: failed program was:" >&5
25872sed 's/^/| /' conftest.$ac_ext >&5
25873
25874wx_cv_x11_xpm_h=no
25875
25876fi
f95e4495 25877rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
25878
25879 CFLAGS=$save_CFLAGS
25880
25881
25882fi
25883echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
25884echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6
25885
25886 if test $wx_cv_x11_xpm_h = "yes"; then
93a543aa 25887 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
89fe663f
VZ
25888 cat >>confdefs.h <<\_ACEOF
25889#define wxHAVE_LIB_XPM 1
25890_ACEOF
25891
25892 else
25893 { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
25894echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
25895 fi
25896 fi
25897
25898 fi
f7f78039 25899
89fe663f
VZ
25900 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
25901echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
25902if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
25903 echo $ECHO_N "(cached) $ECHO_C" >&6
25904else
25905 ac_check_lib_save_LIBS=$LIBS
25906LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
25907cat >conftest.$ac_ext <<_ACEOF
89fe663f
VZ
25908/* confdefs.h. */
25909_ACEOF
25910cat confdefs.h >>conftest.$ac_ext
25911cat >>conftest.$ac_ext <<_ACEOF
25912/* end confdefs.h. */
25913
25914/* Override any gcc2 internal prototype to avoid an error. */
25915#ifdef __cplusplus
25916extern "C"
25917#endif
25918/* We use char because int might match the return type of a gcc2
25919 builtin and then its argument prototype would still apply. */
25920char XShapeQueryExtension ();
25921int
25922main ()
25923{
25924XShapeQueryExtension ();
25925 ;
25926 return 0;
25927}
25928_ACEOF
25929rm -f conftest.$ac_objext conftest$ac_exeext
25930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 25931 (eval $ac_link) 2>conftest.er1
89fe663f 25932 ac_status=$?
f95e4495
VS
25933 grep -v '^ *+' conftest.er1 >conftest.err
25934 rm -f conftest.er1
25935 cat conftest.err >&5
89fe663f
VZ
25936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25937 (exit $ac_status); } &&
f95e4495
VS
25938 { ac_try='test -z "$ac_c_werror_flag"
25939 || test ! -s conftest.err'
25940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25941 (eval $ac_try) 2>&5
25942 ac_status=$?
25943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); }; } &&
25945 { ac_try='test -s conftest$ac_exeext'
89fe663f
VZ
25946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25947 (eval $ac_try) 2>&5
25948 ac_status=$?
25949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25950 (exit $ac_status); }; }; then
25951 ac_cv_lib_Xext_XShapeQueryExtension=yes
25952else
25953 echo "$as_me: failed program was:" >&5
25954sed 's/^/| /' conftest.$ac_ext >&5
25955
25956ac_cv_lib_Xext_XShapeQueryExtension=no
25957fi
f95e4495
VS
25958rm -f conftest.err conftest.$ac_objext \
25959 conftest$ac_exeext conftest.$ac_ext
89fe663f
VZ
25960LIBS=$ac_check_lib_save_LIBS
25961fi
25962echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
25963echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
25964if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
25965
25966 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
25967 wxHAVE_XEXT_LIB=1
25968
25969fi
25970
25971
25972 if test "$wxHAVE_XEXT_LIB" = 1; then
25973 save_CFLAGS="$CFLAGS"
25974 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
25975
25976 echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
e6cc62c6 25977echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6
89fe663f 25978 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
25979/* confdefs.h. */
25980_ACEOF
25981cat confdefs.h >>conftest.$ac_ext
25982cat >>conftest.$ac_ext <<_ACEOF
25983/* end confdefs.h. */
25984
89fe663f
VZ
25985 #include <X11/Xlib.h>
25986 #include <X11/extensions/shape.h>
e6cc62c6
VS
25987
25988int
25989main ()
25990{
f7f78039 25991
89fe663f
VZ
25992 int dummy1, dummy2;
25993 XShapeQueryExtension((Display*)NULL,
25994 (int*)NULL, (int*)NULL);
e6cc62c6
VS
25995
25996 ;
25997 return 0;
25998}
25999_ACEOF
26000rm -f conftest.$ac_objext
26001if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 26002 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26003 ac_status=$?
f95e4495
VS
26004 grep -v '^ *+' conftest.er1 >conftest.err
26005 rm -f conftest.er1
26006 cat conftest.err >&5
e6cc62c6
VS
26007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008 (exit $ac_status); } &&
f95e4495
VS
26009 { ac_try='test -z "$ac_c_werror_flag"
26010 || test ! -s conftest.err'
26011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26012 (eval $ac_try) 2>&5
26013 ac_status=$?
26014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26015 (exit $ac_status); }; } &&
26016 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26018 (eval $ac_try) 2>&5
26019 ac_status=$?
26020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26021 (exit $ac_status); }; }; then
26022
89fe663f 26023 cat >>confdefs.h <<\_ACEOF
f7f78039 26024#define HAVE_XSHAPE 1
e6cc62c6
VS
26025_ACEOF
26026
89fe663f 26027 echo "$as_me:$LINENO: result: found" >&5
e6cc62c6 26028echo "${ECHO_T}found" >&6
f7f78039 26029
f7f78039 26030else
e6cc62c6
VS
26031 echo "$as_me: failed program was:" >&5
26032sed 's/^/| /' conftest.$ac_ext >&5
26033
26034
89fe663f 26035 echo "$as_me:$LINENO: result: not found" >&5
e6cc62c6
VS
26036echo "${ECHO_T}not found" >&6
26037
f7f78039 26038fi
f95e4495 26039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
89fe663f
VZ
26040 CFLAGS="$save_CFLAGS"
26041
26042 fi
21d1c967
GD
26043 fi
26044
26045 if test "$wxUSE_MAC" = 1; then
8e91c6f3
VZ
26046 echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
26047echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6
26048 if test "$GCC" = yes; then
26049 echo "$as_me:$LINENO: result: gcc" >&5
26050echo "${ECHO_T}gcc" >&6
26051 CPPFLAGS_PASCAL="-fpascal-strings"
26052 elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
26053 echo "$as_me:$LINENO: result: xlc" >&5
26054echo "${ECHO_T}xlc" >&6
26055 CPPFLAGS_PASCAL="-qmacpstr"
26056 else
26057 echo "$as_me:$LINENO: result: none" >&5
26058echo "${ECHO_T}none" >&6
26059 fi
26060
26061 CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon"
21d1c967 26062
0c98a14e 26063 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex"
21d1c967
GD
26064 TOOLKIT=MAC
26065 GUIDIST=MACX_DIST
cf615ebb 26066 WXBASEPORT="_carbon"
21d1c967
GD
26067 fi
26068
ac0c4cc3
DE
26069 if test "$wxUSE_COCOA" = 1; then
26070 TOOLKIT_VPATH="\${top_srcdir}/src/cocoa"
26071 TOOLKIT=COCOA
26072 GUIDIST=COCOA_DIST
26073 fi
26074
21d1c967
GD
26075 if test "$wxUSE_PM" = 1; then
26076 TOOLKIT=PM
26077 GUIDIST=GTK_DIST
26078 fi
26079
26080 if test "$TOOLKIT" = "PM" ; then
26081 TOOLKIT_DIR="os2"
26082 else
26083 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
26084 fi
26085
26086 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
26087
26088 if test "$wxUSE_UNIVERSAL" = "yes"; then
26089 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
26090
26091 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
26092 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
26093
26094 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
26095 if test "$wxUSE_X11" = 1; then
26096 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
26097 else
26098 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
26099 fi
26100 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
26101 WIDGET_SET=univ
26102 else
26103 ALL_OBJECTS="\$(GUIOBJS)"
26104 ALL_SOURCES="\$(ALL_SOURCES)"
26105 ALL_HEADERS="\$(ALL_HEADERS)"
26106 fi
26107
26108 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
26109
26110 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
26111 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
26112 fi
26113
26114 if test "$wxUSE_HTML" = "yes"; then
26115 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
26116 fi
26117
26118 if test "$wxUSE_LIBJPEG" = "builtin" ; then
26119 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
26120 fi
26121 if test "$wxUSE_LIBTIFF" = "builtin" ; then
26122 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
26123 fi
26124 if test "$wxUSE_LIBPNG" = "builtin" ; then
26125 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
26126 fi
26127
26128 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
26129 DISTDIR="wx\$(TOOLKIT)"
90dd450c 26130else
21d1c967
GD
26131 USE_GUI=0
26132
26133 TOOLKIT_DIR="base"
26134
26135 if test "$USE_WIN32" = 1 ; then
26136 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
26137 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
26138
26139 TOOLKIT="MSW"
26140 else
26141 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
26142 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
26143 fi
26144
26145 ALL_SOURCES="\$(ALL_SOURCES)"
26146 ALL_HEADERS="\$(ALL_HEADERS)"
26147
26148 PORT_FILES="\${top_srcdir}/src/files.lst"
26149
26150 GUIDIST="BASE_DIST"
26151 DISTDIR="wxBase"
d836ee96
VZ
26152fi
26153
8284b0c5 26154
8647bec6
RG
26155
26156
26157IODBC_C_SRC=""
26158
26159
26160if test "$TOOLKIT" != "MSW" ; then
26161
bb41dcbe 26162 if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
8647bec6 26163
bb41dcbe 26164 if test "${ac_cv_header_sql_h+set}" = set; then
e6cc62c6
VS
26165 echo "$as_me:$LINENO: checking for sql.h" >&5
26166echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26167if test "${ac_cv_header_sql_h+set}" = set; then
26168 echo $ECHO_N "(cached) $ECHO_C" >&6
26169fi
26170echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26171echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26172else
26173 # Is the header compilable?
26174echo "$as_me:$LINENO: checking sql.h usability" >&5
26175echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26176cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26177/* confdefs.h. */
26178_ACEOF
26179cat confdefs.h >>conftest.$ac_ext
26180cat >>conftest.$ac_ext <<_ACEOF
26181/* end confdefs.h. */
26182$ac_includes_default
8647bec6 26183#include <sql.h>
e6cc62c6
VS
26184_ACEOF
26185rm -f conftest.$ac_objext
26186if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 26187 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26188 ac_status=$?
f95e4495
VS
26189 grep -v '^ *+' conftest.er1 >conftest.err
26190 rm -f conftest.er1
26191 cat conftest.err >&5
e6cc62c6
VS
26192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26193 (exit $ac_status); } &&
f95e4495
VS
26194 { ac_try='test -z "$ac_c_werror_flag"
26195 || test ! -s conftest.err'
26196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26197 (eval $ac_try) 2>&5
26198 ac_status=$?
26199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26200 (exit $ac_status); }; } &&
26201 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26203 (eval $ac_try) 2>&5
26204 ac_status=$?
26205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26206 (exit $ac_status); }; }; then
26207 ac_header_compiler=yes
26208else
26209 echo "$as_me: failed program was:" >&5
26210sed 's/^/| /' conftest.$ac_ext >&5
26211
26212ac_header_compiler=no
26213fi
f95e4495 26214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
26215echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26216echo "${ECHO_T}$ac_header_compiler" >&6
26217
26218# Is the header present?
26219echo "$as_me:$LINENO: checking sql.h presence" >&5
26220echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26221cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26222/* confdefs.h. */
26223_ACEOF
26224cat confdefs.h >>conftest.$ac_ext
26225cat >>conftest.$ac_ext <<_ACEOF
26226/* end confdefs.h. */
26227#include <sql.h>
26228_ACEOF
26229if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26231 ac_status=$?
26232 grep -v '^ *+' conftest.er1 >conftest.err
26233 rm -f conftest.er1
26234 cat conftest.err >&5
26235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236 (exit $ac_status); } >/dev/null; then
26237 if test -s conftest.err; then
26238 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 26239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
26240 else
26241 ac_cpp_err=
26242 fi
26243else
26244 ac_cpp_err=yes
26245fi
26246if test -z "$ac_cpp_err"; then
26247 ac_header_preproc=yes
26248else
26249 echo "$as_me: failed program was:" >&5
26250sed 's/^/| /' conftest.$ac_ext >&5
26251
26252 ac_header_preproc=no
26253fi
26254rm -f conftest.err conftest.$ac_ext
26255echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26256echo "${ECHO_T}$ac_header_preproc" >&6
26257
26258# So? What about this header?
f95e4495
VS
26259case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26260 yes:no: )
e6cc62c6
VS
26261 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26262echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
26263 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26264echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26265 ac_header_preproc=yes
e6cc62c6 26266 ;;
f95e4495 26267 no:yes:* )
e6cc62c6
VS
26268 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26269echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
f95e4495
VS
26270 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26271echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26272 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26273echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26274 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26275echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
26276 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26277echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
26278 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26279echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
26280 (
26281 cat <<\_ASBOX
f95e4495
VS
26282## ----------------------------------------- ##
26283## Report this to wx-dev@lists.wxwindows.org ##
26284## ----------------------------------------- ##
e6cc62c6
VS
26285_ASBOX
26286 ) |
26287 sed "s/^/$as_me: WARNING: /" >&2
26288 ;;
26289esac
26290echo "$as_me:$LINENO: checking for sql.h" >&5
26291echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26292if test "${ac_cv_header_sql_h+set}" = set; then
26293 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 26294else
e6cc62c6
VS
26295 ac_cv_header_sql_h=$ac_header_preproc
26296fi
26297echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26298echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26299
bb41dcbe
VS
26300fi
26301if test $ac_cv_header_sql_h = yes; then
26302 found_sql_h=1
8647bec6
RG
26303fi
26304
e6cc62c6 26305
bb41dcbe 26306 if test "x$found_sql_h" = "x1" ; then
e46d2a18
VS
26307 echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
26308echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6
26309if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
e6cc62c6 26310 echo $ECHO_N "(cached) $ECHO_C" >&6
8647bec6 26311else
bb41dcbe 26312 ac_check_lib_save_LIBS=$LIBS
e46d2a18 26313LIBS="-liodbc $LIBS"
e6cc62c6 26314cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26315/* confdefs.h. */
26316_ACEOF
26317cat confdefs.h >>conftest.$ac_ext
26318cat >>conftest.$ac_ext <<_ACEOF
26319/* end confdefs.h. */
26320
8647bec6 26321/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26322#ifdef __cplusplus
26323extern "C"
26324#endif
8647bec6 26325/* We use char because int might match the return type of a gcc2
e6cc62c6 26326 builtin and then its argument prototype would still apply. */
e46d2a18 26327char SQLAllocEnv ();
e6cc62c6
VS
26328int
26329main ()
26330{
e46d2a18 26331SQLAllocEnv ();
e6cc62c6
VS
26332 ;
26333 return 0;
26334}
26335_ACEOF
26336rm -f conftest.$ac_objext conftest$ac_exeext
26337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 26338 (eval $ac_link) 2>conftest.er1
e6cc62c6 26339 ac_status=$?
f95e4495
VS
26340 grep -v '^ *+' conftest.er1 >conftest.err
26341 rm -f conftest.er1
26342 cat conftest.err >&5
e6cc62c6
VS
26343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26344 (exit $ac_status); } &&
f95e4495
VS
26345 { ac_try='test -z "$ac_c_werror_flag"
26346 || test ! -s conftest.err'
26347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26348 (eval $ac_try) 2>&5
26349 ac_status=$?
26350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26351 (exit $ac_status); }; } &&
26352 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26354 (eval $ac_try) 2>&5
26355 ac_status=$?
26356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26357 (exit $ac_status); }; }; then
e46d2a18 26358 ac_cv_lib_iodbc_SQLAllocEnv=yes
8647bec6 26359else
e6cc62c6
VS
26360 echo "$as_me: failed program was:" >&5
26361sed 's/^/| /' conftest.$ac_ext >&5
26362
e46d2a18 26363ac_cv_lib_iodbc_SQLAllocEnv=no
8647bec6 26364fi
f95e4495
VS
26365rm -f conftest.err conftest.$ac_objext \
26366 conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
26367LIBS=$ac_check_lib_save_LIBS
26368fi
e46d2a18
VS
26369echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
26370echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6
26371if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
26372 ODBC_LINK=" -liodbc"
26373else
26374
e46d2a18
VS
26375 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
26376echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6
26377if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
26378 echo $ECHO_N "(cached) $ECHO_C" >&6
26379else
26380 ac_check_lib_save_LIBS=$LIBS
e46d2a18 26381LIBS="-lunixodbc $LIBS"
bb41dcbe 26382cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26383/* confdefs.h. */
26384_ACEOF
26385cat confdefs.h >>conftest.$ac_ext
26386cat >>conftest.$ac_ext <<_ACEOF
26387/* end confdefs.h. */
26388
8647bec6 26389/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
26390#ifdef __cplusplus
26391extern "C"
26392#endif
8647bec6 26393/* We use char because int might match the return type of a gcc2
e6cc62c6 26394 builtin and then its argument prototype would still apply. */
e46d2a18 26395char SQLAllocEnv ();
e6cc62c6
VS
26396int
26397main ()
26398{
e46d2a18 26399SQLAllocEnv ();
e6cc62c6
VS
26400 ;
26401 return 0;
26402}
26403_ACEOF
26404rm -f conftest.$ac_objext conftest$ac_exeext
26405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 26406 (eval $ac_link) 2>conftest.er1
e6cc62c6 26407 ac_status=$?
f95e4495
VS
26408 grep -v '^ *+' conftest.er1 >conftest.err
26409 rm -f conftest.er1
26410 cat conftest.err >&5
e6cc62c6
VS
26411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26412 (exit $ac_status); } &&
f95e4495
VS
26413 { ac_try='test -z "$ac_c_werror_flag"
26414 || test ! -s conftest.err'
26415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26416 (eval $ac_try) 2>&5
26417 ac_status=$?
26418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419 (exit $ac_status); }; } &&
26420 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
26421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26422 (eval $ac_try) 2>&5
26423 ac_status=$?
26424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425 (exit $ac_status); }; }; then
e46d2a18 26426 ac_cv_lib_unixodbc_SQLAllocEnv=yes
8647bec6 26427else
e6cc62c6
VS
26428 echo "$as_me: failed program was:" >&5
26429sed 's/^/| /' conftest.$ac_ext >&5
26430
e46d2a18 26431ac_cv_lib_unixodbc_SQLAllocEnv=no
8647bec6 26432fi
f95e4495
VS
26433rm -f conftest.err conftest.$ac_objext \
26434 conftest$ac_exeext conftest.$ac_ext
bb41dcbe 26435LIBS=$ac_check_lib_save_LIBS
e6cc62c6 26436fi
e46d2a18
VS
26437echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
26438echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6
26439if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
bb41dcbe
VS
26440 ODBC_LINK=" -lunixodbc"
26441else
26442
e46d2a18
VS
26443 echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
26444echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6
26445if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
bb41dcbe
VS
26446 echo $ECHO_N "(cached) $ECHO_C" >&6
26447else
26448 ac_check_lib_save_LIBS=$LIBS
e46d2a18 26449LIBS="-lodbc $LIBS"
bb41dcbe 26450cat >conftest.$ac_ext <<_ACEOF
bb41dcbe
VS
26451/* confdefs.h. */
26452_ACEOF
26453cat confdefs.h >>conftest.$ac_ext
26454cat >>conftest.$ac_ext <<_ACEOF
26455/* end confdefs.h. */
e6cc62c6 26456
bb41dcbe
VS
26457/* Override any gcc2 internal prototype to avoid an error. */
26458#ifdef __cplusplus
26459extern "C"
26460#endif
26461/* We use char because int might match the return type of a gcc2
26462 builtin and then its argument prototype would still apply. */
e46d2a18 26463char SQLAllocEnv ();
bb41dcbe
VS
26464int
26465main ()
26466{
e46d2a18 26467SQLAllocEnv ();
bb41dcbe
VS
26468 ;
26469 return 0;
26470}
26471_ACEOF
26472rm -f conftest.$ac_objext conftest$ac_exeext
26473if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 26474 (eval $ac_link) 2>conftest.er1
bb41dcbe 26475 ac_status=$?
f95e4495
VS
26476 grep -v '^ *+' conftest.er1 >conftest.err
26477 rm -f conftest.er1
26478 cat conftest.err >&5
bb41dcbe
VS
26479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480 (exit $ac_status); } &&
f95e4495
VS
26481 { ac_try='test -z "$ac_c_werror_flag"
26482 || test ! -s conftest.err'
26483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26484 (eval $ac_try) 2>&5
26485 ac_status=$?
26486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487 (exit $ac_status); }; } &&
26488 { ac_try='test -s conftest$ac_exeext'
bb41dcbe
VS
26489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26490 (eval $ac_try) 2>&5
26491 ac_status=$?
26492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26493 (exit $ac_status); }; }; then
e46d2a18 26494 ac_cv_lib_odbc_SQLAllocEnv=yes
e6cc62c6 26495else
bb41dcbe
VS
26496 echo "$as_me: failed program was:" >&5
26497sed 's/^/| /' conftest.$ac_ext >&5
26498
e46d2a18 26499ac_cv_lib_odbc_SQLAllocEnv=no
bb41dcbe 26500fi
f95e4495
VS
26501rm -f conftest.err conftest.$ac_objext \
26502 conftest$ac_exeext conftest.$ac_ext
bb41dcbe
VS
26503LIBS=$ac_check_lib_save_LIBS
26504fi
e46d2a18
VS
26505echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
26506echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6
26507if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
bb41dcbe
VS
26508 ODBC_LINK=" -lodbc"
26509fi
26510
26511
26512fi
e6cc62c6 26513
e6cc62c6 26514
8647bec6 26515fi
e6cc62c6 26516
fd3d7534 26517 fi
bb41dcbe
VS
26518 if test "x$ODBC_LINK" = "x" ; then
26519 if test "$wxUSE_ODBC" = "sys" ; then
26520 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
26521echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
26522 { (exit 1); exit 1; }; }
26523 else
26524 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
26525echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
26526 wxUSE_ODBC=builtin
26527 fi
26528 else
26529 wxUSE_ODBC=sys
8647bec6 26530 fi
8647bec6 26531 fi
bb41dcbe
VS
26532 if test "$wxUSE_ODBC" != "no" ; then
26533 cat >>confdefs.h <<\_ACEOF
26534#define wxUSE_ODBC 1
26535_ACEOF
e6cc62c6 26536
0bdb08e7
VS
26537 if test "$wxUSE_ODBC" = "builtin" ; then
26538 cat >>confdefs.h <<\_ACEOF
26539#define wxUSE_BUILTIN_IODBC 1
26540_ACEOF
26541
26542 fi
bb41dcbe
VS
26543 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
26544
26545 WXODBCFLAG="-D_IODBC_"
26546 fi
6232543b 26547fi
21d1c967
GD
26548
26549if test "$wxUSE_REGEX" = "builtin" ; then
26550 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
1e487827 26551fi
21d1c967
GD
26552if test "$wxUSE_ZLIB" = "builtin" ; then
26553 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
bd3277fe
VZ
26554fi
26555
74500461
VS
26556if test "$wxUSE_DISPLAY" = "yes"; then
26557 if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then
26558 echo "$as_me:$LINENO: checking for Xinerama" >&5
26559echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6
26560
26561ac_find_libraries=
26562for ac_dir in $SEARCH_LIB /usr/lib;
26563 do
26564 for ac_extension in a so sl dylib; do
26565 if test -f "$ac_dir/libXinerama.$ac_extension"; then
26566 ac_find_libraries=$ac_dir
26567 break 2
26568 fi
26569 done
26570 done
26571
26572 if test "$ac_find_libraries" != "" ; then
26573
26574 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26575 result=$?
26576 if test $result = 0; then
26577 ac_path_to_link=""
26578 else
26579 ac_path_to_link=" -L$ac_find_libraries"
26580 fi
26581
26582 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26583 LDFLAGS="$LDFLAGS $ac_path_to_link"
26584 fi
26585 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
26586 echo "$as_me:$LINENO: result: yes" >&5
26587echo "${ECHO_T}yes" >&6
505c8ccd
VS
26588
26589 echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
26590echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6
26591
26592ac_find_libraries=
26593for ac_dir in $SEARCH_LIB /usr/lib;
26594 do
26595 for ac_extension in a so sl dylib; do
26596 if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
26597 ac_find_libraries=$ac_dir
26598 break 2
26599 fi
26600 done
26601 done
26602
26603 if test "$ac_find_libraries" != "" ; then
26604 echo "$as_me:$LINENO: result: yes" >&5
26605echo "${ECHO_T}yes" >&6
26606
26607for ac_header in X11/extensions/xf86vmode.h
26608do
26609as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26610echo "$as_me:$LINENO: checking for $ac_header" >&5
26611echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26612if eval "test \"\${$as_ac_Header+set}\" = set"; then
26613 echo $ECHO_N "(cached) $ECHO_C" >&6
26614else
26615 cat >conftest.$ac_ext <<_ACEOF
26616/* confdefs.h. */
26617_ACEOF
26618cat confdefs.h >>conftest.$ac_ext
26619cat >>conftest.$ac_ext <<_ACEOF
26620/* end confdefs.h. */
26621
26622 #if HAVE_X11_XLIB_H
26623 #include <X11/Xlib.h>
26624 #endif
26625
26626
26627#include <$ac_header>
26628_ACEOF
26629rm -f conftest.$ac_objext
26630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 26631 (eval $ac_compile) 2>conftest.er1
505c8ccd 26632 ac_status=$?
f95e4495
VS
26633 grep -v '^ *+' conftest.er1 >conftest.err
26634 rm -f conftest.er1
26635 cat conftest.err >&5
505c8ccd
VS
26636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26637 (exit $ac_status); } &&
f95e4495
VS
26638 { ac_try='test -z "$ac_c_werror_flag"
26639 || test ! -s conftest.err'
26640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26641 (eval $ac_try) 2>&5
26642 ac_status=$?
26643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644 (exit $ac_status); }; } &&
26645 { ac_try='test -s conftest.$ac_objext'
505c8ccd
VS
26646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26647 (eval $ac_try) 2>&5
26648 ac_status=$?
26649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650 (exit $ac_status); }; }; then
26651 eval "$as_ac_Header=yes"
26652else
26653 echo "$as_me: failed program was:" >&5
26654sed 's/^/| /' conftest.$ac_ext >&5
26655
26656eval "$as_ac_Header=no"
26657fi
f95e4495 26658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
505c8ccd
VS
26659fi
26660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26661echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26662if test `eval echo '${'$as_ac_Header'}'` = yes; then
26663 cat >>confdefs.h <<_ACEOF
26664#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26665_ACEOF
26666
26667 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
26668
26669fi
26670
26671done
26672
26673 else
26674 echo "$as_me:$LINENO: result: no" >&5
26675echo "${ECHO_T}no" >&6
26676 fi
26677
74500461
VS
26678 else
26679 echo "$as_me:$LINENO: result: no" >&5
26680echo "${ECHO_T}no" >&6
26681 { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5
26682echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;}
26683 wxUSE_DISPLAY="no"
26684 fi
26685 fi
26686fi
26687
8284b0c5 26688
4d264332 26689USE_OPENGL=0
21d1c967 26690if test "$wxUSE_OPENGL" = "yes"; then
ac0c4cc3 26691 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
21d1c967
GD
26692 OPENGL_LIBS="-framework OpenGL -framework AGL"
26693 elif test "$wxUSE_MSW" = 1; then
26694 OPENGL_LIBS="-lopengl32 -lglu32"
26695 else
01aa5863
VS
26696
26697
26698ac_find_includes=
26699for ac_dir in $SEARCH_INCLUDE /usr/include;
26700 do
26701 if test -f "$ac_dir/GL/gl.h"; then
26702 ac_find_includes=$ac_dir
26703 break
26704 fi
26705 done
26706
26707 if test "$ac_find_includes" != "" ; then
26708 echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
26709echo "${ECHO_T}found in $ac_find_includes" >&6
01aa5863
VS
26710
26711 if test "x$ac_find_includes" = "x/usr/include"; then
26712 ac_path_to_include=""
26713 else
26714 echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
26715 result=$?
26716 if test $result = 0; then
26717 ac_path_to_include=""
26718 else
26719 ac_path_to_include=" -I$ac_find_includes"
26720 fi
26721 fi
26722
26723 CPPFLAGS="$CPPFLAGS$ac_path_to_include"
01aa5863
VS
26724 fi
26725
e6cc62c6
VS
26726 if test "${ac_cv_header_GL_gl_h+set}" = set; then
26727 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
26728echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
26729if test "${ac_cv_header_GL_gl_h+set}" = set; then
26730 echo $ECHO_N "(cached) $ECHO_C" >&6
26731fi
26732echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
26733echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
26734else
26735 # Is the header compilable?
26736echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
26737echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
26738cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26739/* confdefs.h. */
26740_ACEOF
26741cat confdefs.h >>conftest.$ac_ext
26742cat >>conftest.$ac_ext <<_ACEOF
26743/* end confdefs.h. */
26744$ac_includes_default
21d1c967 26745#include <GL/gl.h>
e6cc62c6
VS
26746_ACEOF
26747rm -f conftest.$ac_objext
26748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 26749 (eval $ac_compile) 2>conftest.er1
e6cc62c6 26750 ac_status=$?
f95e4495
VS
26751 grep -v '^ *+' conftest.er1 >conftest.err
26752 rm -f conftest.er1
26753 cat conftest.err >&5
e6cc62c6
VS
26754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755 (exit $ac_status); } &&
f95e4495
VS
26756 { ac_try='test -z "$ac_c_werror_flag"
26757 || test ! -s conftest.err'
26758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26759 (eval $ac_try) 2>&5
26760 ac_status=$?
26761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26762 (exit $ac_status); }; } &&
26763 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
26764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26765 (eval $ac_try) 2>&5
26766 ac_status=$?
26767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26768 (exit $ac_status); }; }; then
26769 ac_header_compiler=yes
26770else
26771 echo "$as_me: failed program was:" >&5
26772sed 's/^/| /' conftest.$ac_ext >&5
26773
26774ac_header_compiler=no
26775fi
f95e4495 26776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
26777echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26778echo "${ECHO_T}$ac_header_compiler" >&6
26779
26780# Is the header present?
26781echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
26782echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
26783cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
26784/* confdefs.h. */
26785_ACEOF
26786cat confdefs.h >>conftest.$ac_ext
26787cat >>conftest.$ac_ext <<_ACEOF
26788/* end confdefs.h. */
26789#include <GL/gl.h>
26790_ACEOF
26791if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26792 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26793 ac_status=$?
26794 grep -v '^ *+' conftest.er1 >conftest.err
26795 rm -f conftest.er1
26796 cat conftest.err >&5
26797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26798 (exit $ac_status); } >/dev/null; then
26799 if test -s conftest.err; then
26800 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 26801 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
26802 else
26803 ac_cpp_err=
26804 fi
26805else
26806 ac_cpp_err=yes
26807fi
26808if test -z "$ac_cpp_err"; then
26809 ac_header_preproc=yes
26810else
26811 echo "$as_me: failed program was:" >&5
26812sed 's/^/| /' conftest.$ac_ext >&5
26813
26814 ac_header_preproc=no
26815fi
26816rm -f conftest.err conftest.$ac_ext
26817echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26818echo "${ECHO_T}$ac_header_preproc" >&6
26819
26820# So? What about this header?
f95e4495
VS
26821case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26822 yes:no: )
e6cc62c6
VS
26823 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26824echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
26825 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
26826echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
26827 ac_header_preproc=yes
e6cc62c6 26828 ;;
f95e4495 26829 no:yes:* )
e6cc62c6
VS
26830 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
26831echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
f95e4495
VS
26832 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
26833echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
26834 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
26835echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
26836 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
26837echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
26838 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
26839echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
26840 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
26841echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
26842 (
26843 cat <<\_ASBOX
f95e4495
VS
26844## ----------------------------------------- ##
26845## Report this to wx-dev@lists.wxwindows.org ##
26846## ----------------------------------------- ##
e6cc62c6
VS
26847_ASBOX
26848 ) |
26849 sed "s/^/$as_me: WARNING: /" >&2
26850 ;;
26851esac
26852echo "$as_me:$LINENO: checking for GL/gl.h" >&5
26853echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
26854if test "${ac_cv_header_GL_gl_h+set}" = set; then
26855 echo $ECHO_N "(cached) $ECHO_C" >&6
26856else
26857 ac_cv_header_GL_gl_h=$ac_header_preproc
703e0a69 26858fi
e6cc62c6
VS
26859echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
26860echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
26861
698dcdb6 26862fi
e6cc62c6
VS
26863if test $ac_cv_header_GL_gl_h = yes; then
26864
89e3b3e4
VZ
26865 found_gl=0
26866
e6cc62c6
VS
26867 echo "$as_me:$LINENO: checking for -lGL" >&5
26868echo $ECHO_N "checking for -lGL... $ECHO_C" >&6
26869
21d1c967 26870ac_find_libraries=
2b5f62a0 26871for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
26872 do
26873 for ac_extension in a so sl dylib; do
26874 if test -f "$ac_dir/libGL.$ac_extension"; then
26875 ac_find_libraries=$ac_dir
26876 break 2
26877 fi
26878 done
26879 done
26880
26881 if test "$ac_find_libraries" != "" ; then
e6cc62c6 26882
21d1c967
GD
26883 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26884 result=$?
26885 if test $result = 0; then
26886 ac_path_to_link=""
26887 else
26888 ac_path_to_link=" -L$ac_find_libraries"
26889 fi
26890
89e3b3e4
VZ
26891 if test "$ac_path_to_link" != " -L/usr/lib" ; then
26892 LDFLAGS_GL="$ac_path_to_link"
21d1c967 26893 fi
89e3b3e4 26894
e6cc62c6 26895
89e3b3e4
VZ
26896ac_find_libraries=
26897for ac_dir in $SEARCH_LIB /usr/lib;
26898 do
26899 for ac_extension in a so sl dylib; do
26900 if test -f "$ac_dir/libGLU.$ac_extension"; then
26901 ac_find_libraries=$ac_dir
26902 break 2
26903 fi
26904 done
26905 done
26906
26907 if test "$ac_find_libraries" != "" ; then
e6cc62c6 26908
89e3b3e4
VZ
26909 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26910 result=$?
26911 if test $result = 0; then
26912 ac_path_to_link=""
26913 else
26914 ac_path_to_link=" -L$ac_find_libraries"
26915 fi
26916
26917 if test "$ac_path_to_link" != " -L/usr/lib" -a \
26918 "$ac_path_to_link" != "$LDFLAGS_GL"; then
26919 LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
26920 fi
26921
26922 found_gl=1
26923 OPENGL_LIBS="-lGL -lGLU"
e6cc62c6
VS
26924 echo "$as_me:$LINENO: result: yes" >&5
26925echo "${ECHO_T}yes" >&6
89e3b3e4
VZ
26926 fi
26927 fi
26928
bb41dcbe 26929 if test "$found_gl" != 1; then
e6cc62c6
VS
26930 echo "$as_me:$LINENO: result: no" >&5
26931echo "${ECHO_T}no" >&6
26932 echo "$as_me:$LINENO: checking for -lMesaGL" >&5
26933echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6
26934
21d1c967 26935ac_find_libraries=
2b5f62a0 26936for ac_dir in $SEARCH_LIB /usr/lib;
21d1c967
GD
26937 do
26938 for ac_extension in a so sl dylib; do
26939 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
26940 ac_find_libraries=$ac_dir
26941 break 2
26942 fi
26943 done
26944 done
26945
26946 if test "$ac_find_libraries" != "" ; then
e6cc62c6 26947
21d1c967
GD
26948 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
26949 result=$?
26950 if test $result = 0; then
26951 ac_path_to_link=""
26952 else
26953 ac_path_to_link=" -L$ac_find_libraries"
26954 fi
26955
26956 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
26957 OPENGL_LIBS="-lMesaGL -lMesaGLU"
e6cc62c6
VS
26958 echo "$as_me:$LINENO: result: yes" >&5
26959echo "${ECHO_T}yes" >&6
21d1c967 26960 else
e6cc62c6
VS
26961 echo "$as_me:$LINENO: result: no" >&5
26962echo "${ECHO_T}no" >&6
21d1c967
GD
26963 fi
26964 fi
e6cc62c6 26965
5c6fa7d2 26966fi
52127426 26967
8284b0c5 26968
e6cc62c6 26969
21d1c967 26970 if test "x$OPENGL_LIBS" = "x"; then
e6cc62c6
VS
26971 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
26972echo "$as_me: error: OpenGL libraries not available" >&2;}
26973 { (exit 1); exit 1; }; }
21d1c967
GD
26974 fi
26975 fi
90dd450c 26976
21d1c967 26977 if test "$wxUSE_OPENGL" = "yes"; then
4d264332 26978 USE_OPENGL=1
e6cc62c6 26979 cat >>confdefs.h <<\_ACEOF
21d1c967 26980#define wxUSE_OPENGL 1
e6cc62c6 26981_ACEOF
21d1c967 26982
e6cc62c6 26983 cat >>confdefs.h <<\_ACEOF
21d1c967 26984#define wxUSE_GLCANVAS 1
e6cc62c6 26985_ACEOF
21d1c967 26986
520755bb 26987 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
21d1c967 26988 fi
10f2d63a 26989fi
21d1c967
GD
26990
26991if test -z "$TOOLKIT_VPATH" ; then
26992 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10f2d63a 26993fi
21d1c967
GD
26994
26995if test -n "$TOOLKIT" ; then
26996 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
26997fi
26998
fe0895cf 26999UNICODE=0
21d1c967
GD
27000lib_unicode_suffix=
27001if test "$wxUSE_UNICODE" = "yes"; then
27002 lib_unicode_suffix=u
fe0895cf 27003 UNICODE=1
90dd450c 27004fi
698dcdb6 27005
21d1c967 27006lib_debug_suffix=
6c67131a 27007DEBUG_FLAG=0
21d1c967
GD
27008if test "$wxUSE_DEBUG_FLAG" = "yes"; then
27009 lib_debug_suffix=d
6c67131a
VS
27010 DEBUG_FLAG=1
27011fi
27012
27013DEBUG_INFO=0
27014if test "$wxUSE_DEBUG_INFO" = "yes"; then
27015 DEBUG_INFO=1
21d1c967 27016fi
698dcdb6 27017
1cbb95a2 27018WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
2b5f62a0
VZ
27019
27020TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
27021TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
21d1c967
GD
27022
27023if test "$cross_compiling" = "yes"; then
27024 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
27025 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
ea66c762 27026 HOST_SUFFIX="-${host_alias}"
21d1c967
GD
27027fi
27028
27029WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
27030WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
cf615ebb
VS
27031WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}"
27032WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}"
21d1c967
GD
27033
27034WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27035WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
27036
27037WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
27038WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27039WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
27040WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27041
27042case "${host}" in
27043 *-*-cygwin* | *-*-mingw32* )
ec67c474
VS
27044 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
27045 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
21d1c967
GD
27046 ;;
27047
27048 *-*-darwin* )
e6cc62c6 27049
05159a27
GD
27050 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27051 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}"
27052
27053 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}"
27054 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
27055 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}"
27056 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
27057
09d3439c
VZ
27058 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
27059 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r"
f346733b 27060 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc"
21d1c967
GD
27061 fi
27062 ;;
27063esac
27064
27065WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
27066WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
27067
27068WXCONFIG_LIBS="-l${WX_LIBRARY}"
27069WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
27070
27071if test "$wxUSE_OPENGL" = "yes"; then
27072 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
27073 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
27074fi
27075
8284b0c5
MB
27076
27077
21d1c967
GD
27078if test "$wxUSE_SHARED" = "yes"; then
27079 case "${host}" in
27080 *-pc-os2_emx | *-pc-os2-emx | \
27081 *-pc-msdosdjgpp )
27082 wxUSE_SHARED=no
e6cc62c6
VS
27083 { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
27084echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
21d1c967
GD
27085 ;;
27086 esac
27087fi
27088
fe0895cf 27089SHARED=0
2b5f62a0 27090if test "$wxUSE_SHARED" = "yes"; then
fe0895cf 27091 SHARED=1
2b5f62a0 27092
e6cc62c6 27093
2b5f62a0
VZ
27094 found_versioning=no
27095
e6cc62c6 27096
2b5f62a0 27097 if test $found_versioning = no ; then
e6cc62c6
VS
27098 echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
27099echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6
27100if test "${wx_cv_version_script+set}" = set; then
27101 echo $ECHO_N "(cached) $ECHO_C" >&6
2b5f62a0 27102else
e6cc62c6 27103
2b5f62a0
VZ
27104 echo "VER_1 { *; };" >conftest.sym
27105 echo "int main() { return 0; }" >conftest.cpp
e6cc62c6 27106
2b5f62a0
VZ
27107 if { ac_try='
27108 $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
e6cc62c6
VS
27109 -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
27110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27111 (eval $ac_try) 2>&5
27112 ac_status=$?
27113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27114 (exit $ac_status); }; } ; then
2b5f62a0
VZ
27115 if test -s conftest.stderr ; then
27116 wx_cv_version_script=no
27117 else
27118 wx_cv_version_script=yes
27119 fi
27120 else
27121 wx_cv_version_script=no
27122 fi
27123 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
2b5f62a0 27124
e6cc62c6
VS
27125fi
27126echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
27127echo "${ECHO_T}$wx_cv_version_script" >&6
2b5f62a0 27128 if test $wx_cv_version_script = yes ; then
e6cc62c6 27129 LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script"
2b5f62a0
VZ
27130 fi
27131 fi
21d1c967 27132
21d1c967 27133
21d1c967 27134 case "${host}" in
fe0895cf 27135 *-*-linux* | *-*-gnu* )
e6cc62c6 27136 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
345b8952 27137 ;;
21d1c967
GD
27138
27139 *-*-solaris2* )
27140 if test "$GCC" = yes ; then
27141 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
fe0895cf
VS
27142
27143 saveLdflags="$LDFLAGS"
27144 LDFLAGS="$saveLdflags -Wl,-rpath,/"
e6cc62c6
VS
27145 echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
27146echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6
27147 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27148/* confdefs.h. */
27149_ACEOF
27150cat confdefs.h >>conftest.$ac_ext
27151cat >>conftest.$ac_ext <<_ACEOF
27152/* end confdefs.h. */
27153
27154int
27155main ()
27156{
fe0895cf 27157
e6cc62c6
VS
27158 ;
27159 return 0;
27160}
27161_ACEOF
27162rm -f conftest.$ac_objext conftest$ac_exeext
27163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 27164 (eval $ac_link) 2>conftest.er1
e6cc62c6 27165 ac_status=$?
f95e4495
VS
27166 grep -v '^ *+' conftest.er1 >conftest.err
27167 rm -f conftest.er1
27168 cat conftest.err >&5
e6cc62c6
VS
27169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170 (exit $ac_status); } &&
f95e4495
VS
27171 { ac_try='test -z "$ac_c_werror_flag"
27172 || test ! -s conftest.err'
27173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27174 (eval $ac_try) 2>&5
27175 ac_status=$?
27176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27177 (exit $ac_status); }; } &&
27178 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27180 (eval $ac_try) 2>&5
27181 ac_status=$?
27182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183 (exit $ac_status); }; }; then
27184
27185 echo "$as_me:$LINENO: result: yes" >&5
27186echo "${ECHO_T}yes" >&6
27187 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib"
27188
27189else
27190 echo "$as_me: failed program was:" >&5
27191sed 's/^/| /' conftest.$ac_ext >&5
27192
27193
27194 echo "$as_me:$LINENO: result: no" >&5
27195echo "${ECHO_T}no" >&6
27196 echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
27197echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6
fe0895cf 27198 LDFLAGS="$saveLdflags -Wl,-R,/"
e6cc62c6 27199 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27200/* confdefs.h. */
27201_ACEOF
27202cat confdefs.h >>conftest.$ac_ext
27203cat >>conftest.$ac_ext <<_ACEOF
27204/* end confdefs.h. */
27205
27206int
27207main ()
27208{
27209
27210 ;
27211 return 0;
27212}
27213_ACEOF
27214rm -f conftest.$ac_objext conftest$ac_exeext
27215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 27216 (eval $ac_link) 2>conftest.er1
e6cc62c6 27217 ac_status=$?
f95e4495
VS
27218 grep -v '^ *+' conftest.er1 >conftest.err
27219 rm -f conftest.er1
27220 cat conftest.err >&5
e6cc62c6
VS
27221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27222 (exit $ac_status); } &&
f95e4495
VS
27223 { ac_try='test -z "$ac_c_werror_flag"
27224 || test ! -s conftest.err'
27225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27226 (eval $ac_try) 2>&5
27227 ac_status=$?
27228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27229 (exit $ac_status); }; } &&
27230 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
27231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27232 (eval $ac_try) 2>&5
27233 ac_status=$?
27234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27235 (exit $ac_status); }; }; then
27236
27237 echo "$as_me:$LINENO: result: yes" >&5
27238echo "${ECHO_T}yes" >&6
27239 SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib"
27240else
27241 echo "$as_me: failed program was:" >&5
27242sed 's/^/| /' conftest.$ac_ext >&5
fe0895cf 27243
fe0895cf 27244
e6cc62c6
VS
27245 echo "$as_me:$LINENO: result: no" >&5
27246echo "${ECHO_T}no" >&6
27247
fe0895cf 27248fi
f95e4495
VS
27249rm -f conftest.err conftest.$ac_objext \
27250 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
27251
27252fi
f95e4495
VS
27253rm -f conftest.err conftest.$ac_objext \
27254 conftest$ac_exeext conftest.$ac_ext
fe0895cf 27255 LDFLAGS="$saveLdflags"
21d1c967
GD
27256 else
27257 SHARED_LD="${CXX} -G -o"
27258 PIC_FLAG="-KPIC"
e6cc62c6 27259 SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib"
21d1c967
GD
27260 fi
27261 ;;
0f1bc9c2
VS
27262
27263 powerpc-*-darwin* )
ef0add05
VS
27264 SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
27265 cat <<EOF >change-install-names
27266#!/bin/sh
27267libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
27268inst_cmd="install_name_tool "
27269for i in \${libnames} ; do
27270 inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
27271done
27272\${inst_cmd} \${3}
27273EOF
27274 chmod +x change-install-names
0f1bc9c2
VS
27275 ;;
27276
21d1c967
GD
27277 esac
27278
27279 if test "x$WX_TARGET_LIBRARY" = "x"; then
27280 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
27281 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
27282 fi
27283
27284 WX_TARGET_LIBRARY_TYPE="so"
27285 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
90dd450c 27286fi
10f2d63a 27287
21d1c967
GD
27288if test "$wxUSE_SHARED" = "no"; then
27289
27290 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
27291 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27292 fi
27293
ac0c4cc3 27294 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
21d1c967
GD
27295 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
27296 fi
27297
27298 if test "$wxUSE_OPENGL" = "yes"; then
27299 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
27300 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
27301 else
27302 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
27303 fi
27304
27305 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
27306 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
27307
27308 WX_TARGET_LIBRARY_TYPE="a"
27309 INSTALL_LIBRARY='$(INSTALL_DATA)'
2bffed64
VZ
27310
27311 STATIC_FLAG="yes"
27312else
27313 STATIC_FLAG="no"
90dd450c 27314fi
1e487827 27315
09d3439c 27316if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
e6cc62c6 27317 LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}"
21d1c967
GD
27318 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
27319 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
09d3439c 27320
21d1c967
GD
27321 # Extract the first word of "Rez", so it can be a program name with args.
27322set dummy Rez; ac_word=$2
e6cc62c6
VS
27323echo "$as_me:$LINENO: checking for $ac_word" >&5
27324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27325if test "${ac_cv_prog_RESCOMP+set}" = set; then
27326 echo $ECHO_N "(cached) $ECHO_C" >&6
b93d0d08 27327else
21d1c967
GD
27328 if test -n "$RESCOMP"; then
27329 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
b93d0d08 27330else
e6cc62c6
VS
27331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27332for as_dir in $PATH
27333do
27334 IFS=$as_save_IFS
27335 test -z "$as_dir" && as_dir=.
27336 for ac_exec_ext in '' $ac_executable_extensions; do
27337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27338 ac_cv_prog_RESCOMP="Rez"
27339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27340 break 2
27341 fi
27342done
27343done
27344
21d1c967 27345 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
b93d0d08 27346fi
b93d0d08 27347fi
e6cc62c6 27348RESCOMP=$ac_cv_prog_RESCOMP
21d1c967 27349if test -n "$RESCOMP"; then
e6cc62c6
VS
27350 echo "$as_me:$LINENO: result: $RESCOMP" >&5
27351echo "${ECHO_T}$RESCOMP" >&6
90dd450c 27352else
e6cc62c6
VS
27353 echo "$as_me:$LINENO: result: no" >&5
27354echo "${ECHO_T}no" >&6
90dd450c 27355fi
b93d0d08 27356
21d1c967
GD
27357 # Extract the first word of "DeRez", so it can be a program name with args.
27358set dummy DeRez; ac_word=$2
e6cc62c6
VS
27359echo "$as_me:$LINENO: checking for $ac_word" >&5
27360echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27361if test "${ac_cv_prog_DEREZ+set}" = set; then
27362 echo $ECHO_N "(cached) $ECHO_C" >&6
3a922bb4 27363else
21d1c967
GD
27364 if test -n "$DEREZ"; then
27365 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
4f14bcd8 27366else
e6cc62c6
VS
27367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27368for as_dir in $PATH
27369do
27370 IFS=$as_save_IFS
27371 test -z "$as_dir" && as_dir=.
27372 for ac_exec_ext in '' $ac_executable_extensions; do
27373 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27374 ac_cv_prog_DEREZ="DeRez"
27375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27376 break 2
27377 fi
27378done
27379done
27380
21d1c967 27381 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
3a922bb4 27382fi
90dd450c 27383fi
e6cc62c6 27384DEREZ=$ac_cv_prog_DEREZ
21d1c967 27385if test -n "$DEREZ"; then
e6cc62c6
VS
27386 echo "$as_me:$LINENO: result: $DEREZ" >&5
27387echo "${ECHO_T}$DEREZ" >&6
90dd450c 27388else
e6cc62c6
VS
27389 echo "$as_me:$LINENO: result: no" >&5
27390echo "${ECHO_T}no" >&6
3a922bb4 27391fi
698dcdb6 27392
36825681
GD
27393 # Extract the first word of "SetFile", so it can be a program name with args.
27394set dummy SetFile; ac_word=$2
e6cc62c6
VS
27395echo "$as_me:$LINENO: checking for $ac_word" >&5
27396echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27397if test "${ac_cv_prog_SETFILE+set}" = set; then
27398 echo $ECHO_N "(cached) $ECHO_C" >&6
36825681
GD
27399else
27400 if test -n "$SETFILE"; then
27401 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
27402else
e6cc62c6
VS
27403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27404for as_dir in $PATH
27405do
27406 IFS=$as_save_IFS
27407 test -z "$as_dir" && as_dir=.
27408 for ac_exec_ext in '' $ac_executable_extensions; do
27409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27410 ac_cv_prog_SETFILE="SetFile"
27411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27412 break 2
27413 fi
27414done
27415done
27416
36825681
GD
27417 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
27418fi
27419fi
e6cc62c6 27420SETFILE=$ac_cv_prog_SETFILE
36825681 27421if test -n "$SETFILE"; then
e6cc62c6
VS
27422 echo "$as_me:$LINENO: result: $SETFILE" >&5
27423echo "${ECHO_T}$SETFILE" >&6
36825681 27424else
e6cc62c6
VS
27425 echo "$as_me:$LINENO: result: no" >&5
27426echo "${ECHO_T}no" >&6
36825681
GD
27427fi
27428
e6cc62c6 27429
09d3439c 27430 MACSETFILE="\$(SETFILE)"
64440d77 27431
09d3439c
VZ
27432 if test "$wxUSE_MAC" = 1; then
27433 MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o"
e6cc62c6 27434
09d3439c
VZ
27435 MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27436 else
27437 MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o"
27438 MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
27439 fi
64440d77 27440else
09d3439c
VZ
27441 MACSETFILE="@#"
27442 MACRESWXCONFIG="#"
64440d77 27443
09d3439c 27444 if test "$wxUSE_PM" = 1; then
36825681 27445 MACRESCOMP="emxbind -ep"
09d3439c
VZ
27446 else
27447 MACRESCOMP="@#"
90dd450c 27448 fi
4f14bcd8 27449fi
10f2d63a 27450
8284b0c5 27451
e6cc62c6
VS
27452echo "$as_me:$LINENO: checking for mode_t" >&5
27453echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
27454if test "${ac_cv_type_mode_t+set}" = set; then
27455 echo $ECHO_N "(cached) $ECHO_C" >&6
52127426 27456else
e6cc62c6 27457 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27458/* confdefs.h. */
27459_ACEOF
27460cat confdefs.h >>conftest.$ac_ext
27461cat >>conftest.$ac_ext <<_ACEOF
27462/* end confdefs.h. */
27463$ac_includes_default
27464int
27465main ()
27466{
27467if ((mode_t *) 0)
27468 return 0;
27469if (sizeof (mode_t))
27470 return 0;
27471 ;
27472 return 0;
27473}
27474_ACEOF
27475rm -f conftest.$ac_objext
27476if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 27477 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27478 ac_status=$?
f95e4495
VS
27479 grep -v '^ *+' conftest.er1 >conftest.err
27480 rm -f conftest.er1
27481 cat conftest.err >&5
e6cc62c6
VS
27482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27483 (exit $ac_status); } &&
f95e4495
VS
27484 { ac_try='test -z "$ac_c_werror_flag"
27485 || test ! -s conftest.err'
27486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27487 (eval $ac_try) 2>&5
27488 ac_status=$?
27489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27490 (exit $ac_status); }; } &&
27491 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27493 (eval $ac_try) 2>&5
27494 ac_status=$?
27495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27496 (exit $ac_status); }; }; then
27497 ac_cv_type_mode_t=yes
a0b9e27f 27498else
e6cc62c6
VS
27499 echo "$as_me: failed program was:" >&5
27500sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 27501
e6cc62c6 27502ac_cv_type_mode_t=no
a0b9e27f 27503fi
f95e4495 27504rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
52127426 27505fi
e6cc62c6
VS
27506echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
27507echo "${ECHO_T}$ac_cv_type_mode_t" >&6
27508if test $ac_cv_type_mode_t = yes; then
247f5006
VZ
27509 :
27510else
a0b9e27f 27511
e6cc62c6
VS
27512cat >>confdefs.h <<_ACEOF
27513#define mode_t int
27514_ACEOF
8284b0c5
MB
27515
27516fi
27517
e6cc62c6
VS
27518echo "$as_me:$LINENO: checking for off_t" >&5
27519echo $ECHO_N "checking for off_t... $ECHO_C" >&6
27520if test "${ac_cv_type_off_t+set}" = set; then
27521 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 27522else
e6cc62c6 27523 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27524/* confdefs.h. */
27525_ACEOF
27526cat confdefs.h >>conftest.$ac_ext
27527cat >>conftest.$ac_ext <<_ACEOF
27528/* end confdefs.h. */
27529$ac_includes_default
27530int
27531main ()
27532{
27533if ((off_t *) 0)
27534 return 0;
27535if (sizeof (off_t))
27536 return 0;
27537 ;
27538 return 0;
27539}
27540_ACEOF
27541rm -f conftest.$ac_objext
27542if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 27543 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27544 ac_status=$?
f95e4495
VS
27545 grep -v '^ *+' conftest.er1 >conftest.err
27546 rm -f conftest.er1
27547 cat conftest.err >&5
e6cc62c6
VS
27548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27549 (exit $ac_status); } &&
f95e4495
VS
27550 { ac_try='test -z "$ac_c_werror_flag"
27551 || test ! -s conftest.err'
27552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27553 (eval $ac_try) 2>&5
27554 ac_status=$?
27555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556 (exit $ac_status); }; } &&
27557 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27559 (eval $ac_try) 2>&5
27560 ac_status=$?
27561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562 (exit $ac_status); }; }; then
27563 ac_cv_type_off_t=yes
5c6fa7d2 27564else
e6cc62c6
VS
27565 echo "$as_me: failed program was:" >&5
27566sed 's/^/| /' conftest.$ac_ext >&5
a0b9e27f 27567
e6cc62c6 27568ac_cv_type_off_t=no
8284b0c5 27569fi
f95e4495 27570rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8284b0c5 27571fi
e6cc62c6
VS
27572echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
27573echo "${ECHO_T}$ac_cv_type_off_t" >&6
27574if test $ac_cv_type_off_t = yes; then
27575 :
247f5006
VZ
27576else
27577
e6cc62c6 27578cat >>confdefs.h <<_ACEOF
90dd450c 27579#define off_t long
e6cc62c6 27580_ACEOF
10f2d63a 27581
90dd450c 27582fi
10f2d63a 27583
e6cc62c6
VS
27584echo "$as_me:$LINENO: checking for pid_t" >&5
27585echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
27586if test "${ac_cv_type_pid_t+set}" = set; then
27587 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 27588else
e6cc62c6 27589 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27590/* confdefs.h. */
27591_ACEOF
27592cat confdefs.h >>conftest.$ac_ext
27593cat >>conftest.$ac_ext <<_ACEOF
27594/* end confdefs.h. */
27595$ac_includes_default
27596int
27597main ()
27598{
27599if ((pid_t *) 0)
27600 return 0;
27601if (sizeof (pid_t))
27602 return 0;
27603 ;
27604 return 0;
27605}
27606_ACEOF
27607rm -f conftest.$ac_objext
27608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 27609 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27610 ac_status=$?
f95e4495
VS
27611 grep -v '^ *+' conftest.er1 >conftest.err
27612 rm -f conftest.er1
27613 cat conftest.err >&5
e6cc62c6
VS
27614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27615 (exit $ac_status); } &&
f95e4495
VS
27616 { ac_try='test -z "$ac_c_werror_flag"
27617 || test ! -s conftest.err'
27618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27619 (eval $ac_try) 2>&5
27620 ac_status=$?
27621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622 (exit $ac_status); }; } &&
27623 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27625 (eval $ac_try) 2>&5
27626 ac_status=$?
27627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27628 (exit $ac_status); }; }; then
90dd450c 27629 ac_cv_type_pid_t=yes
698dcdb6 27630else
e6cc62c6
VS
27631 echo "$as_me: failed program was:" >&5
27632sed 's/^/| /' conftest.$ac_ext >&5
247f5006 27633
e6cc62c6
VS
27634ac_cv_type_pid_t=no
27635fi
f95e4495 27636rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27637fi
e6cc62c6
VS
27638echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
27639echo "${ECHO_T}$ac_cv_type_pid_t" >&6
27640if test $ac_cv_type_pid_t = yes; then
27641 :
27642else
27643
27644cat >>confdefs.h <<_ACEOF
90dd450c 27645#define pid_t int
e6cc62c6 27646_ACEOF
10f2d63a 27647
7b4a847f
RR
27648fi
27649
e6cc62c6
VS
27650echo "$as_me:$LINENO: checking for size_t" >&5
27651echo $ECHO_N "checking for size_t... $ECHO_C" >&6
27652if test "${ac_cv_type_size_t+set}" = set; then
27653 echo $ECHO_N "(cached) $ECHO_C" >&6
7b4a847f 27654else
e6cc62c6 27655 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27656/* confdefs.h. */
27657_ACEOF
27658cat confdefs.h >>conftest.$ac_ext
27659cat >>conftest.$ac_ext <<_ACEOF
27660/* end confdefs.h. */
27661$ac_includes_default
27662int
27663main ()
27664{
27665if ((size_t *) 0)
27666 return 0;
27667if (sizeof (size_t))
27668 return 0;
27669 ;
27670 return 0;
27671}
27672_ACEOF
27673rm -f conftest.$ac_objext
27674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 27675 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27676 ac_status=$?
f95e4495
VS
27677 grep -v '^ *+' conftest.er1 >conftest.err
27678 rm -f conftest.er1
27679 cat conftest.err >&5
e6cc62c6
VS
27680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27681 (exit $ac_status); } &&
f95e4495
VS
27682 { ac_try='test -z "$ac_c_werror_flag"
27683 || test ! -s conftest.err'
27684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27685 (eval $ac_try) 2>&5
27686 ac_status=$?
27687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27688 (exit $ac_status); }; } &&
27689 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27691 (eval $ac_try) 2>&5
27692 ac_status=$?
27693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27694 (exit $ac_status); }; }; then
90dd450c 27695 ac_cv_type_size_t=yes
18dbb1f6 27696else
e6cc62c6
VS
27697 echo "$as_me: failed program was:" >&5
27698sed 's/^/| /' conftest.$ac_ext >&5
247f5006 27699
e6cc62c6 27700ac_cv_type_size_t=no
a0b9e27f 27701fi
f95e4495 27702rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
27703fi
27704echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27705echo "${ECHO_T}$ac_cv_type_size_t" >&6
27706if test $ac_cv_type_size_t = yes; then
27707 :
27708else
27709
27710cat >>confdefs.h <<_ACEOF
90dd450c 27711#define size_t unsigned
e6cc62c6 27712_ACEOF
90dd450c
VZ
27713
27714fi
27715
e6cc62c6
VS
27716echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
27717echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
27718if test "${ac_cv_type_uid_t+set}" = set; then
27719 echo $ECHO_N "(cached) $ECHO_C" >&6
b3e8d00a 27720else
e6cc62c6 27721 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27722/* confdefs.h. */
27723_ACEOF
27724cat confdefs.h >>conftest.$ac_ext
27725cat >>conftest.$ac_ext <<_ACEOF
27726/* end confdefs.h. */
90dd450c 27727#include <sys/types.h>
e6cc62c6
VS
27728
27729_ACEOF
90dd450c 27730if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
e6cc62c6 27731 $EGREP "uid_t" >/dev/null 2>&1; then
90dd450c 27732 ac_cv_type_uid_t=yes
b3e8d00a 27733else
90dd450c 27734 ac_cv_type_uid_t=no
b3e8d00a 27735fi
90dd450c 27736rm -f conftest*
b3e8d00a 27737
4f14bcd8 27738fi
e6cc62c6
VS
27739echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
27740echo "${ECHO_T}$ac_cv_type_uid_t" >&6
a0b9e27f 27741if test $ac_cv_type_uid_t = no; then
e6cc62c6
VS
27742
27743cat >>confdefs.h <<\_ACEOF
90dd450c 27744#define uid_t int
e6cc62c6 27745_ACEOF
247f5006 27746
e6cc62c6
VS
27747
27748cat >>confdefs.h <<\_ACEOF
90dd450c 27749#define gid_t int
e6cc62c6 27750_ACEOF
4f14bcd8 27751
b3e8d00a 27752fi
b3e8d00a 27753
8284b0c5
MB
27754
27755
e6cc62c6
VS
27756
27757ac_ext=cc
4f14bcd8 27758ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
27759ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27760ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27761ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27762
27763echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
27764echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6
27765if test "${wx_cv_size_t_is_uint+set}" = set; then
27766 echo $ECHO_N "(cached) $ECHO_C" >&6
27767else
27768
27769 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27770/* confdefs.h. */
27771_ACEOF
27772cat confdefs.h >>conftest.$ac_ext
27773cat >>conftest.$ac_ext <<_ACEOF
27774/* end confdefs.h. */
90dd450c 27775#include <stddef.h>
e6cc62c6
VS
27776int
27777main ()
27778{
90dd450c
VZ
27779
27780 return 0; }
27781
27782 struct Foo { void foo(size_t); void foo(unsigned int); };
27783
27784 int bar() {
e6cc62c6
VS
27785
27786 ;
27787 return 0;
27788}
27789_ACEOF
27790rm -f conftest.$ac_objext
27791if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 27792 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27793 ac_status=$?
f95e4495
VS
27794 grep -v '^ *+' conftest.er1 >conftest.err
27795 rm -f conftest.er1
27796 cat conftest.err >&5
e6cc62c6
VS
27797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27798 (exit $ac_status); } &&
f95e4495
VS
27799 { ac_try='test -z "$ac_cxx_werror_flag"
27800 || test ! -s conftest.err'
27801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27802 (eval $ac_try) 2>&5
27803 ac_status=$?
27804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805 (exit $ac_status); }; } &&
27806 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27808 (eval $ac_try) 2>&5
27809 ac_status=$?
27810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27811 (exit $ac_status); }; }; then
90dd450c 27812 wx_cv_size_t_is_uint=no
698dcdb6 27813else
e6cc62c6
VS
27814 echo "$as_me: failed program was:" >&5
27815sed 's/^/| /' conftest.$ac_ext >&5
27816
27817wx_cv_size_t_is_uint=yes
8284b0c5 27818
247f5006 27819fi
f95e4495 27820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 27821
a0b9e27f 27822
e6cc62c6
VS
27823fi
27824echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
27825echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6
4f14bcd8 27826
90dd450c 27827if test "$wx_cv_size_t_is_uint" = "yes"; then
e6cc62c6 27828 cat >>confdefs.h <<\_ACEOF
90dd450c 27829#define wxSIZE_T_IS_UINT 1
e6cc62c6 27830_ACEOF
698dcdb6 27831
90dd450c 27832else
e6cc62c6
VS
27833 echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
27834echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6
27835if test "${wx_cv_size_t_is_ulong+set}" = set; then
27836 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 27837else
e6cc62c6 27838 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27839/* confdefs.h. */
27840_ACEOF
27841cat confdefs.h >>conftest.$ac_ext
27842cat >>conftest.$ac_ext <<_ACEOF
27843/* end confdefs.h. */
90dd450c 27844#include <stddef.h>
e6cc62c6
VS
27845int
27846main ()
27847{
90dd450c
VZ
27848
27849 return 0; }
27850
27851 struct Foo { void foo(size_t); void foo(unsigned long); };
27852
27853 int bar() {
e6cc62c6
VS
27854
27855 ;
27856 return 0;
27857}
27858_ACEOF
27859rm -f conftest.$ac_objext
27860if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 27861 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27862 ac_status=$?
f95e4495
VS
27863 grep -v '^ *+' conftest.er1 >conftest.err
27864 rm -f conftest.er1
27865 cat conftest.err >&5
e6cc62c6
VS
27866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27867 (exit $ac_status); } &&
f95e4495
VS
27868 { ac_try='test -z "$ac_cxx_werror_flag"
27869 || test ! -s conftest.err'
27870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27871 (eval $ac_try) 2>&5
27872 ac_status=$?
27873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27874 (exit $ac_status); }; } &&
27875 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27877 (eval $ac_try) 2>&5
27878 ac_status=$?
27879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27880 (exit $ac_status); }; }; then
90dd450c 27881 wx_cv_size_t_is_ulong=no
698dcdb6 27882else
e6cc62c6
VS
27883 echo "$as_me: failed program was:" >&5
27884sed 's/^/| /' conftest.$ac_ext >&5
27885
27886wx_cv_size_t_is_ulong=yes
27887
247f5006 27888fi
f95e4495 27889rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27890
e6cc62c6
VS
27891fi
27892echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
27893echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6
10f2d63a 27894
90dd450c 27895 if test "$wx_cv_size_t_is_ulong" = "yes"; then
e6cc62c6 27896 cat >>confdefs.h <<\_ACEOF
90dd450c 27897#define wxSIZE_T_IS_ULONG 1
e6cc62c6 27898_ACEOF
4f14bcd8
GD
27899
27900 fi
90dd450c 27901fi
1e487827 27902
90dd450c 27903ac_ext=c
4f14bcd8 27904ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
27905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27907ac_compiler_gnu=$ac_cv_c_compiler_gnu
698dcdb6 27908
5c6fa7d2 27909
8284b0c5 27910
e6cc62c6
VS
27911echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
27912echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6
27913if test "${wx_cv_struct_pw_gecos+set}" = set; then
27914 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 27915else
e6cc62c6
VS
27916
27917 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
27918/* confdefs.h. */
27919_ACEOF
27920cat confdefs.h >>conftest.$ac_ext
27921cat >>conftest.$ac_ext <<_ACEOF
27922/* end confdefs.h. */
90dd450c 27923#include <pwd.h>
e6cc62c6
VS
27924int
27925main ()
27926{
f6bcfd97 27927
90dd450c
VZ
27928 char *p;
27929 struct passwd *pw;
27930 p = pw->pw_gecos;
e6cc62c6
VS
27931
27932 ;
27933 return 0;
27934}
27935_ACEOF
27936rm -f conftest.$ac_objext
27937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 27938 (eval $ac_compile) 2>conftest.er1
e6cc62c6 27939 ac_status=$?
f95e4495
VS
27940 grep -v '^ *+' conftest.er1 >conftest.err
27941 rm -f conftest.er1
27942 cat conftest.err >&5
e6cc62c6
VS
27943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27944 (exit $ac_status); } &&
f95e4495
VS
27945 { ac_try='test -z "$ac_c_werror_flag"
27946 || test ! -s conftest.err'
27947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27948 (eval $ac_try) 2>&5
27949 ac_status=$?
27950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27951 (exit $ac_status); }; } &&
27952 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
27953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27954 (eval $ac_try) 2>&5
27955 ac_status=$?
27956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957 (exit $ac_status); }; }; then
27958
90dd450c 27959 wx_cv_struct_pw_gecos=yes
e6cc62c6 27960
10f2d63a 27961else
e6cc62c6
VS
27962 echo "$as_me: failed program was:" >&5
27963sed 's/^/| /' conftest.$ac_ext >&5
27964
27965
90dd450c 27966 wx_cv_struct_pw_gecos=no
e6cc62c6 27967
247f5006
VZ
27968
27969fi
f95e4495 27970rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 27971
e6cc62c6
VS
27972
27973fi
27974echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
27975echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6
c521c494 27976
90dd450c 27977if test "$wx_cv_struct_pw_gecos" = "yes"; then
e6cc62c6 27978 cat >>confdefs.h <<\_ACEOF
90dd450c 27979#define HAVE_PW_GECOS 1
e6cc62c6 27980_ACEOF
c521c494 27981
90dd450c 27982fi
4f14bcd8 27983
8284b0c5 27984
d29b553b 27985if test "$wx_cv_sizeof_wchar_t" != "0"; then
e6cc62c6 27986 cat >>confdefs.h <<\_ACEOF
d74f4b5a 27987#define wxUSE_WCHAR_T 1
e6cc62c6 27988_ACEOF
d74f4b5a 27989
8284b0c5 27990
d74f4b5a
VZ
27991 WCSLEN_FOUND=0
27992 WCHAR_LINK=
e6cc62c6
VS
27993
27994for ac_func in wcslen
7a30264c 27995do
e6cc62c6
VS
27996as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27997echo "$as_me:$LINENO: checking for $ac_func" >&5
27998echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27999if eval "test \"\${$as_ac_var+set}\" = set"; then
28000 echo $ECHO_N "(cached) $ECHO_C" >&6
28001else
28002 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28003/* confdefs.h. */
28004_ACEOF
28005cat confdefs.h >>conftest.$ac_ext
28006cat >>conftest.$ac_ext <<_ACEOF
28007/* end confdefs.h. */
f95e4495
VS
28008/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28010#define $ac_func innocuous_$ac_func
28011
7a30264c 28012/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28013 which can conflict with char $ac_func (); below.
28014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28015 <limits.h> exists even on freestanding compilers. */
f95e4495 28016
e6cc62c6
VS
28017#ifdef __STDC__
28018# include <limits.h>
28019#else
28020# include <assert.h>
28021#endif
f95e4495
VS
28022
28023#undef $ac_func
28024
4f14bcd8 28025/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28026#ifdef __cplusplus
28027extern "C"
28028{
28029#endif
4f14bcd8 28030/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28031 builtin and then its argument prototype would still apply. */
28032char $ac_func ();
7a30264c
VZ
28033/* The GNU C library defines this for functions which it implements
28034 to always fail with ENOSYS. Some functions are actually named
28035 something starting with __ and the normal name is an alias. */
28036#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28037choke me
28038#else
e6cc62c6
VS
28039char (*f) () = $ac_func;
28040#endif
28041#ifdef __cplusplus
28042}
7a30264c
VZ
28043#endif
28044
e6cc62c6
VS
28045int
28046main ()
28047{
28048return f != $ac_func;
28049 ;
28050 return 0;
28051}
28052_ACEOF
28053rm -f conftest.$ac_objext conftest$ac_exeext
28054if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 28055 (eval $ac_link) 2>conftest.er1
e6cc62c6 28056 ac_status=$?
f95e4495
VS
28057 grep -v '^ *+' conftest.er1 >conftest.err
28058 rm -f conftest.er1
28059 cat conftest.err >&5
e6cc62c6
VS
28060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061 (exit $ac_status); } &&
f95e4495
VS
28062 { ac_try='test -z "$ac_c_werror_flag"
28063 || test ! -s conftest.err'
28064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28065 (eval $ac_try) 2>&5
28066 ac_status=$?
28067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28068 (exit $ac_status); }; } &&
28069 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28071 (eval $ac_try) 2>&5
28072 ac_status=$?
28073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28074 (exit $ac_status); }; }; then
28075 eval "$as_ac_var=yes"
28076else
28077 echo "$as_me: failed program was:" >&5
28078sed 's/^/| /' conftest.$ac_ext >&5
28079
28080eval "$as_ac_var=no"
28081fi
f95e4495
VS
28082rm -f conftest.err conftest.$ac_objext \
28083 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28084fi
28085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28086echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28087if test `eval echo '${'$as_ac_var'}'` = yes; then
28088 cat >>confdefs.h <<_ACEOF
28089#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28090_ACEOF
d74f4b5a 28091 WCSLEN_FOUND=1
7a30264c
VZ
28092fi
28093done
9d8deca0 28094
8284b0c5 28095
d74f4b5a 28096 if test "$WCSLEN_FOUND" = 0; then
7a30264c 28097 if test "$TOOLKIT" = "MSW"; then
e6cc62c6
VS
28098 echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
28099echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6
28100if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
28101 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 28102else
e6cc62c6 28103 ac_check_lib_save_LIBS=$LIBS
7a30264c 28104LIBS="-lmsvcrt $LIBS"
e6cc62c6 28105cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28106/* confdefs.h. */
28107_ACEOF
28108cat confdefs.h >>conftest.$ac_ext
28109cat >>conftest.$ac_ext <<_ACEOF
28110/* end confdefs.h. */
28111
4f14bcd8 28112/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28113#ifdef __cplusplus
28114extern "C"
28115#endif
4f14bcd8 28116/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28117 builtin and then its argument prototype would still apply. */
28118char wcslen ();
28119int
28120main ()
28121{
28122wcslen ();
28123 ;
28124 return 0;
28125}
28126_ACEOF
28127rm -f conftest.$ac_objext conftest$ac_exeext
28128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 28129 (eval $ac_link) 2>conftest.er1
e6cc62c6 28130 ac_status=$?
f95e4495
VS
28131 grep -v '^ *+' conftest.er1 >conftest.err
28132 rm -f conftest.er1
28133 cat conftest.err >&5
e6cc62c6
VS
28134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135 (exit $ac_status); } &&
f95e4495
VS
28136 { ac_try='test -z "$ac_c_werror_flag"
28137 || test ! -s conftest.err'
28138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28139 (eval $ac_try) 2>&5
28140 ac_status=$?
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); }; } &&
28143 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28145 (eval $ac_try) 2>&5
28146 ac_status=$?
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); }; }; then
28149 ac_cv_lib_msvcrt_wcslen=yes
28150else
28151 echo "$as_me: failed program was:" >&5
28152sed 's/^/| /' conftest.$ac_ext >&5
28153
28154ac_cv_lib_msvcrt_wcslen=no
28155fi
f95e4495
VS
28156rm -f conftest.err conftest.$ac_objext \
28157 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28158LIBS=$ac_check_lib_save_LIBS
28159fi
28160echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
28161echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6
28162if test $ac_cv_lib_msvcrt_wcslen = yes; then
d74f4b5a 28163 WCHAR_OK=1
d29b553b 28164fi
698dcdb6 28165
7a30264c 28166 else
e6cc62c6
VS
28167 echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
28168echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6
28169if test "${ac_cv_lib_w_wcslen+set}" = set; then
28170 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 28171else
e6cc62c6 28172 ac_check_lib_save_LIBS=$LIBS
7a30264c 28173LIBS="-lw $LIBS"
e6cc62c6 28174cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28175/* confdefs.h. */
28176_ACEOF
28177cat confdefs.h >>conftest.$ac_ext
28178cat >>conftest.$ac_ext <<_ACEOF
28179/* end confdefs.h. */
28180
4f14bcd8 28181/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28182#ifdef __cplusplus
28183extern "C"
28184#endif
4f14bcd8 28185/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28186 builtin and then its argument prototype would still apply. */
28187char wcslen ();
28188int
28189main ()
28190{
28191wcslen ();
28192 ;
28193 return 0;
28194}
28195_ACEOF
28196rm -f conftest.$ac_objext conftest$ac_exeext
28197if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 28198 (eval $ac_link) 2>conftest.er1
e6cc62c6 28199 ac_status=$?
f95e4495
VS
28200 grep -v '^ *+' conftest.er1 >conftest.err
28201 rm -f conftest.er1
28202 cat conftest.err >&5
e6cc62c6
VS
28203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204 (exit $ac_status); } &&
f95e4495
VS
28205 { ac_try='test -z "$ac_c_werror_flag"
28206 || test ! -s conftest.err'
28207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28208 (eval $ac_try) 2>&5
28209 ac_status=$?
28210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211 (exit $ac_status); }; } &&
28212 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28214 (eval $ac_try) 2>&5
28215 ac_status=$?
28216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28217 (exit $ac_status); }; }; then
28218 ac_cv_lib_w_wcslen=yes
28219else
28220 echo "$as_me: failed program was:" >&5
28221sed 's/^/| /' conftest.$ac_ext >&5
28222
28223ac_cv_lib_w_wcslen=no
28224fi
f95e4495
VS
28225rm -f conftest.err conftest.$ac_objext \
28226 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28227LIBS=$ac_check_lib_save_LIBS
28228fi
28229echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
28230echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6
28231if test $ac_cv_lib_w_wcslen = yes; then
a0b9e27f 28232
7a30264c 28233 WCHAR_LINK=" -lw"
d74f4b5a 28234 WCSLEN_FOUND=1
e6cc62c6 28235
4f14bcd8 28236fi
10f2d63a 28237
7a30264c 28238 fi
d29b553b 28239 fi
95c8801c 28240
d74f4b5a 28241 if test "$WCSLEN_FOUND" = 1; then
e6cc62c6 28242 cat >>confdefs.h <<\_ACEOF
d74f4b5a 28243#define HAVE_WCSLEN 1
e6cc62c6 28244_ACEOF
10f2d63a 28245
d74f4b5a 28246 fi
52127426 28247
e6cc62c6
VS
28248
28249for ac_func in wcsrtombs
eb4efbdc 28250do
e6cc62c6
VS
28251as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28252echo "$as_me:$LINENO: checking for $ac_func" >&5
28253echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28254if eval "test \"\${$as_ac_var+set}\" = set"; then
28255 echo $ECHO_N "(cached) $ECHO_C" >&6
28256else
28257 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28258/* confdefs.h. */
28259_ACEOF
28260cat confdefs.h >>conftest.$ac_ext
28261cat >>conftest.$ac_ext <<_ACEOF
28262/* end confdefs.h. */
f95e4495
VS
28263/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28265#define $ac_func innocuous_$ac_func
28266
eb4efbdc 28267/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28268 which can conflict with char $ac_func (); below.
28269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28270 <limits.h> exists even on freestanding compilers. */
f95e4495 28271
e6cc62c6
VS
28272#ifdef __STDC__
28273# include <limits.h>
28274#else
28275# include <assert.h>
28276#endif
f95e4495
VS
28277
28278#undef $ac_func
28279
eb4efbdc 28280/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28281#ifdef __cplusplus
28282extern "C"
28283{
28284#endif
4f14bcd8 28285/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28286 builtin and then its argument prototype would still apply. */
28287char $ac_func ();
10f2d63a
VZ
28288/* The GNU C library defines this for functions which it implements
28289 to always fail with ENOSYS. Some functions are actually named
28290 something starting with __ and the normal name is an alias. */
247f5006 28291#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10f2d63a
VZ
28292choke me
28293#else
e6cc62c6
VS
28294char (*f) () = $ac_func;
28295#endif
28296#ifdef __cplusplus
28297}
10f2d63a
VZ
28298#endif
28299
e6cc62c6
VS
28300int
28301main ()
28302{
28303return f != $ac_func;
28304 ;
28305 return 0;
28306}
28307_ACEOF
28308rm -f conftest.$ac_objext conftest$ac_exeext
28309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 28310 (eval $ac_link) 2>conftest.er1
e6cc62c6 28311 ac_status=$?
f95e4495
VS
28312 grep -v '^ *+' conftest.er1 >conftest.err
28313 rm -f conftest.er1
28314 cat conftest.err >&5
e6cc62c6
VS
28315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28316 (exit $ac_status); } &&
f95e4495
VS
28317 { ac_try='test -z "$ac_c_werror_flag"
28318 || test ! -s conftest.err'
28319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28320 (eval $ac_try) 2>&5
28321 ac_status=$?
28322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28323 (exit $ac_status); }; } &&
28324 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28326 (eval $ac_try) 2>&5
28327 ac_status=$?
28328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329 (exit $ac_status); }; }; then
28330 eval "$as_ac_var=yes"
28331else
28332 echo "$as_me: failed program was:" >&5
28333sed 's/^/| /' conftest.$ac_ext >&5
28334
28335eval "$as_ac_var=no"
28336fi
f95e4495
VS
28337rm -f conftest.err conftest.$ac_objext \
28338 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28339fi
28340echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28341echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28342if test `eval echo '${'$as_ac_var'}'` = yes; then
28343 cat >>confdefs.h <<_ACEOF
28344#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28345_ACEOF
270a909e 28346
4f14bcd8 28347fi
247f5006 28348done
1e487827 28349
af15babd 28350else
e6cc62c6
VS
28351 { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
28352echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
7b4a847f 28353fi
52127426 28354
8284b0c5 28355
e6cc62c6
VS
28356
28357ac_ext=cc
247f5006 28358ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28359ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28360ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28361ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28362
af15babd 28363
247f5006
VZ
28364
28365for ac_func in vsnprintf
28366do
e6cc62c6
VS
28367as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28368echo "$as_me:$LINENO: checking for $ac_func" >&5
28369echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28370if eval "test \"\${$as_ac_var+set}\" = set"; then
28371 echo $ECHO_N "(cached) $ECHO_C" >&6
28372else
28373 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28374/* confdefs.h. */
28375_ACEOF
28376cat confdefs.h >>conftest.$ac_ext
28377cat >>conftest.$ac_ext <<_ACEOF
28378/* end confdefs.h. */
f95e4495
VS
28379/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28381#define $ac_func innocuous_$ac_func
28382
247f5006 28383/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28384 which can conflict with char $ac_func (); below.
28385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28386 <limits.h> exists even on freestanding compilers. */
f95e4495 28387
e6cc62c6
VS
28388#ifdef __STDC__
28389# include <limits.h>
28390#else
28391# include <assert.h>
28392#endif
f95e4495
VS
28393
28394#undef $ac_func
28395
247f5006
VZ
28396/* Override any gcc2 internal prototype to avoid an error. */
28397#ifdef __cplusplus
28398extern "C"
e6cc62c6 28399{
247f5006
VZ
28400#endif
28401/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28402 builtin and then its argument prototype would still apply. */
28403char $ac_func ();
247f5006
VZ
28404/* The GNU C library defines this for functions which it implements
28405 to always fail with ENOSYS. Some functions are actually named
28406 something starting with __ and the normal name is an alias. */
28407#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28408choke me
28409#else
e6cc62c6
VS
28410char (*f) () = $ac_func;
28411#endif
28412#ifdef __cplusplus
28413}
247f5006 28414#endif
af15babd 28415
e6cc62c6
VS
28416int
28417main ()
28418{
28419return f != $ac_func;
28420 ;
28421 return 0;
28422}
28423_ACEOF
28424rm -f conftest.$ac_objext conftest$ac_exeext
28425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 28426 (eval $ac_link) 2>conftest.er1
e6cc62c6 28427 ac_status=$?
f95e4495
VS
28428 grep -v '^ *+' conftest.er1 >conftest.err
28429 rm -f conftest.er1
28430 cat conftest.err >&5
e6cc62c6
VS
28431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28432 (exit $ac_status); } &&
f95e4495
VS
28433 { ac_try='test -z "$ac_cxx_werror_flag"
28434 || test ! -s conftest.err'
28435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28436 (eval $ac_try) 2>&5
28437 ac_status=$?
28438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28439 (exit $ac_status); }; } &&
28440 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28442 (eval $ac_try) 2>&5
28443 ac_status=$?
28444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28445 (exit $ac_status); }; }; then
28446 eval "$as_ac_var=yes"
28447else
28448 echo "$as_me: failed program was:" >&5
28449sed 's/^/| /' conftest.$ac_ext >&5
28450
28451eval "$as_ac_var=no"
28452fi
f95e4495
VS
28453rm -f conftest.err conftest.$ac_objext \
28454 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28455fi
28456echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28457echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28458if test `eval echo '${'$as_ac_var'}'` = yes; then
28459 cat >>confdefs.h <<_ACEOF
28460#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28461_ACEOF
52127426 28462
5c6fa7d2 28463fi
247f5006 28464done
8284b0c5 28465
4f14bcd8 28466
8d90d2f2 28467if test "$ac_cv_func_vsnprintf" = "yes"; then
e6cc62c6
VS
28468 echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
28469echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6
28470if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
28471 echo $ECHO_N "(cached) $ECHO_C" >&6
8d90d2f2 28472else
e6cc62c6
VS
28473
28474 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28475/* confdefs.h. */
28476_ACEOF
28477cat confdefs.h >>conftest.$ac_ext
28478cat >>conftest.$ac_ext <<_ACEOF
28479/* end confdefs.h. */
8d90d2f2
VZ
28480
28481 #include <stdio.h>
28482 #include <stdarg.h>
e6cc62c6
VS
28483
28484int
28485main ()
28486{
8d90d2f2
VZ
28487
28488 char *buf;
28489 va_list ap;
28490 vsnprintf(buf, 10u, "%s", ap);
e6cc62c6
VS
28491
28492 ;
28493 return 0;
28494}
28495_ACEOF
28496rm -f conftest.$ac_objext
28497if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 28498 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28499 ac_status=$?
f95e4495
VS
28500 grep -v '^ *+' conftest.er1 >conftest.err
28501 rm -f conftest.er1
28502 cat conftest.err >&5
e6cc62c6
VS
28503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28504 (exit $ac_status); } &&
f95e4495
VS
28505 { ac_try='test -z "$ac_cxx_werror_flag"
28506 || test ! -s conftest.err'
28507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28508 (eval $ac_try) 2>&5
28509 ac_status=$?
28510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511 (exit $ac_status); }; } &&
28512 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28514 (eval $ac_try) 2>&5
28515 ac_status=$?
28516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517 (exit $ac_status); }; }; then
8d90d2f2
VZ
28518 wx_cv_func_vsnprintf_decl=yes
28519else
e6cc62c6
VS
28520 echo "$as_me: failed program was:" >&5
28521sed 's/^/| /' conftest.$ac_ext >&5
28522
28523wx_cv_func_vsnprintf_decl=no
28524
8d90d2f2 28525fi
f95e4495 28526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 28527
8d90d2f2 28528
e6cc62c6
VS
28529fi
28530echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
28531echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6
8d90d2f2
VZ
28532
28533 if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
e6cc62c6 28534 cat >>confdefs.h <<\_ACEOF
8d90d2f2 28535#define HAVE_VSNPRINTF_DECL 1
e6cc62c6 28536_ACEOF
8d90d2f2
VZ
28537
28538 fi
28539fi
28540
247f5006 28541if test "$wxUSE_UNICODE" = yes; then
e6cc62c6
VS
28542
28543
28544
28545for ac_func in fputwc wprintf vswprintf
d74f4b5a 28546do
e6cc62c6
VS
28547as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28548echo "$as_me:$LINENO: checking for $ac_func" >&5
28549echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28550if eval "test \"\${$as_ac_var+set}\" = set"; then
28551 echo $ECHO_N "(cached) $ECHO_C" >&6
28552else
28553 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28554/* confdefs.h. */
28555_ACEOF
28556cat confdefs.h >>conftest.$ac_ext
28557cat >>conftest.$ac_ext <<_ACEOF
28558/* end confdefs.h. */
f95e4495
VS
28559/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28561#define $ac_func innocuous_$ac_func
28562
d74f4b5a 28563/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28564 which can conflict with char $ac_func (); below.
28565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28566 <limits.h> exists even on freestanding compilers. */
f95e4495 28567
e6cc62c6
VS
28568#ifdef __STDC__
28569# include <limits.h>
28570#else
28571# include <assert.h>
28572#endif
f95e4495
VS
28573
28574#undef $ac_func
28575
d74f4b5a 28576/* Override any gcc2 internal prototype to avoid an error. */
247f5006
VZ
28577#ifdef __cplusplus
28578extern "C"
e6cc62c6 28579{
247f5006 28580#endif
d74f4b5a 28581/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28582 builtin and then its argument prototype would still apply. */
28583char $ac_func ();
d74f4b5a
VZ
28584/* The GNU C library defines this for functions which it implements
28585 to always fail with ENOSYS. Some functions are actually named
28586 something starting with __ and the normal name is an alias. */
28587#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28588choke me
28589#else
e6cc62c6
VS
28590char (*f) () = $ac_func;
28591#endif
28592#ifdef __cplusplus
28593}
d74f4b5a
VZ
28594#endif
28595
e6cc62c6
VS
28596int
28597main ()
28598{
28599return f != $ac_func;
28600 ;
28601 return 0;
28602}
28603_ACEOF
28604rm -f conftest.$ac_objext conftest$ac_exeext
28605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 28606 (eval $ac_link) 2>conftest.er1
e6cc62c6 28607 ac_status=$?
f95e4495
VS
28608 grep -v '^ *+' conftest.er1 >conftest.err
28609 rm -f conftest.er1
28610 cat conftest.err >&5
e6cc62c6
VS
28611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612 (exit $ac_status); } &&
f95e4495
VS
28613 { ac_try='test -z "$ac_cxx_werror_flag"
28614 || test ! -s conftest.err'
28615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28616 (eval $ac_try) 2>&5
28617 ac_status=$?
28618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28619 (exit $ac_status); }; } &&
28620 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28622 (eval $ac_try) 2>&5
28623 ac_status=$?
28624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28625 (exit $ac_status); }; }; then
28626 eval "$as_ac_var=yes"
28627else
28628 echo "$as_me: failed program was:" >&5
28629sed 's/^/| /' conftest.$ac_ext >&5
28630
28631eval "$as_ac_var=no"
28632fi
f95e4495
VS
28633rm -f conftest.err conftest.$ac_objext \
28634 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
28635fi
28636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28637echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28638if test `eval echo '${'$as_ac_var'}'` = yes; then
28639 cat >>confdefs.h <<_ACEOF
28640#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28641_ACEOF
d74f4b5a 28642
d74f4b5a
VZ
28643fi
28644done
28645
8d90d2f2 28646
e6cc62c6
VS
28647 echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
28648echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6
28649 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28650/* confdefs.h. */
28651_ACEOF
28652cat confdefs.h >>conftest.$ac_ext
28653cat >>conftest.$ac_ext <<_ACEOF
28654/* end confdefs.h. */
79668cae 28655#include <wchar.h>
e6cc62c6
VS
28656int
28657main ()
28658{
79668cae 28659&_vsnwprintf;
e6cc62c6
VS
28660 ;
28661 return 0;
28662}
28663_ACEOF
28664rm -f conftest.$ac_objext
28665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 28666 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28667 ac_status=$?
f95e4495
VS
28668 grep -v '^ *+' conftest.er1 >conftest.err
28669 rm -f conftest.er1
28670 cat conftest.err >&5
e6cc62c6
VS
28671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672 (exit $ac_status); } &&
f95e4495
VS
28673 { ac_try='test -z "$ac_cxx_werror_flag"
28674 || test ! -s conftest.err'
28675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28676 (eval $ac_try) 2>&5
28677 ac_status=$?
28678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28679 (exit $ac_status); }; } &&
28680 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28682 (eval $ac_try) 2>&5
28683 ac_status=$?
28684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28685 (exit $ac_status); }; }; then
28686 echo "$as_me:$LINENO: result: yes" >&5
28687echo "${ECHO_T}yes" >&6
28688 cat >>confdefs.h <<\_ACEOF
79668cae 28689#define HAVE__VSNWPRINTF 1
e6cc62c6 28690_ACEOF
79668cae
MB
28691
28692else
e6cc62c6
VS
28693 echo "$as_me: failed program was:" >&5
28694sed 's/^/| /' conftest.$ac_ext >&5
28695
28696echo "$as_me:$LINENO: result: no" >&5
28697echo "${ECHO_T}no" >&6
79668cae 28698fi
f95e4495 28699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext;
d74f4b5a
VZ
28700fi
28701
247f5006
VZ
28702ac_ext=c
28703ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28706ac_compiler_gnu=$ac_cv_c_compiler_gnu
247f5006
VZ
28707
28708
28709
28710
4f14bcd8 28711if test "$TOOLKIT" != "MSW"; then
af15babd 28712
8284b0c5
MB
28713
28714
e6cc62c6
VS
28715
28716ac_ext=cc
4f14bcd8 28717ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
28718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8284b0c5 28721
52127426 28722
e6cc62c6
VS
28723
28724
28725# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
b040e242
VS
28726if test "${with_libiconv_prefix+set}" = set; then
28727 withval="$with_libiconv_prefix"
e6cc62c6 28728
b040e242
VS
28729 for dir in `echo "$withval" | tr : ' '`; do
28730 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
28731 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
28732 done
b040e242 28733
e6cc62c6 28734fi;
b040e242 28735
e6cc62c6
VS
28736 echo "$as_me:$LINENO: checking for iconv" >&5
28737echo $ECHO_N "checking for iconv... $ECHO_C" >&6
28738if test "${am_cv_func_iconv+set}" = set; then
28739 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 28740else
e6cc62c6 28741
b040e242
VS
28742 am_cv_func_iconv="no, consider installing GNU libiconv"
28743 am_cv_lib_iconv=no
e6cc62c6 28744 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28745/* confdefs.h. */
28746_ACEOF
28747cat confdefs.h >>conftest.$ac_ext
28748cat >>conftest.$ac_ext <<_ACEOF
28749/* end confdefs.h. */
b040e242 28750#include <stdlib.h>
4f14bcd8 28751#include <iconv.h>
e6cc62c6
VS
28752int
28753main ()
28754{
b040e242
VS
28755iconv_t cd = iconv_open("","");
28756 iconv(cd,NULL,NULL,NULL,NULL);
28757 iconv_close(cd);
e6cc62c6
VS
28758 ;
28759 return 0;
28760}
28761_ACEOF
28762rm -f conftest.$ac_objext conftest$ac_exeext
28763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 28764 (eval $ac_link) 2>conftest.er1
e6cc62c6 28765 ac_status=$?
f95e4495
VS
28766 grep -v '^ *+' conftest.er1 >conftest.err
28767 rm -f conftest.er1
28768 cat conftest.err >&5
e6cc62c6
VS
28769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770 (exit $ac_status); } &&
f95e4495
VS
28771 { ac_try='test -z "$ac_cxx_werror_flag"
28772 || test ! -s conftest.err'
28773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28774 (eval $ac_try) 2>&5
28775 ac_status=$?
28776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777 (exit $ac_status); }; } &&
28778 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28780 (eval $ac_try) 2>&5
28781 ac_status=$?
28782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783 (exit $ac_status); }; }; then
b040e242 28784 am_cv_func_iconv=yes
af15babd 28785else
e6cc62c6
VS
28786 echo "$as_me: failed program was:" >&5
28787sed 's/^/| /' conftest.$ac_ext >&5
28788
b040e242 28789fi
f95e4495
VS
28790rm -f conftest.err conftest.$ac_objext \
28791 conftest$ac_exeext conftest.$ac_ext
b040e242
VS
28792 if test "$am_cv_func_iconv" != yes; then
28793 am_save_LIBS="$LIBS"
28794 LIBS="$LIBS -liconv"
e6cc62c6 28795 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28796/* confdefs.h. */
28797_ACEOF
28798cat confdefs.h >>conftest.$ac_ext
28799cat >>conftest.$ac_ext <<_ACEOF
28800/* end confdefs.h. */
b040e242
VS
28801#include <stdlib.h>
28802#include <iconv.h>
e6cc62c6
VS
28803int
28804main ()
28805{
b040e242
VS
28806iconv_t cd = iconv_open("","");
28807 iconv(cd,NULL,NULL,NULL,NULL);
28808 iconv_close(cd);
e6cc62c6
VS
28809 ;
28810 return 0;
28811}
28812_ACEOF
28813rm -f conftest.$ac_objext conftest$ac_exeext
28814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 28815 (eval $ac_link) 2>conftest.er1
e6cc62c6 28816 ac_status=$?
f95e4495
VS
28817 grep -v '^ *+' conftest.er1 >conftest.err
28818 rm -f conftest.er1
28819 cat conftest.err >&5
e6cc62c6
VS
28820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821 (exit $ac_status); } &&
f95e4495
VS
28822 { ac_try='test -z "$ac_cxx_werror_flag"
28823 || test ! -s conftest.err'
28824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28825 (eval $ac_try) 2>&5
28826 ac_status=$?
28827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28828 (exit $ac_status); }; } &&
28829 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
28830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28831 (eval $ac_try) 2>&5
28832 ac_status=$?
28833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28834 (exit $ac_status); }; }; then
b040e242
VS
28835 am_cv_lib_iconv=yes
28836 am_cv_func_iconv=yes
28837else
e6cc62c6
VS
28838 echo "$as_me: failed program was:" >&5
28839sed 's/^/| /' conftest.$ac_ext >&5
28840
af15babd 28841fi
f95e4495
VS
28842rm -f conftest.err conftest.$ac_objext \
28843 conftest$ac_exeext conftest.$ac_ext
b040e242
VS
28844 LIBS="$am_save_LIBS"
28845 fi
247f5006 28846
e6cc62c6
VS
28847fi
28848echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
28849echo "${ECHO_T}$am_cv_func_iconv" >&6
a0b9e27f 28850 if test "$am_cv_func_iconv" = yes; then
e6cc62c6
VS
28851
28852cat >>confdefs.h <<\_ACEOF
b040e242 28853#define HAVE_ICONV 1
e6cc62c6 28854_ACEOF
b040e242 28855
e6cc62c6
VS
28856 echo "$as_me:$LINENO: checking if iconv needs const" >&5
28857echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6
28858if test "${wx_cv_func_iconv_const+set}" = set; then
28859 echo $ECHO_N "(cached) $ECHO_C" >&6
b040e242 28860else
e6cc62c6 28861 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28862/* confdefs.h. */
28863_ACEOF
28864cat confdefs.h >>conftest.$ac_ext
28865cat >>conftest.$ac_ext <<_ACEOF
28866/* end confdefs.h. */
b040e242
VS
28867
28868#include <stdlib.h>
28869#include <iconv.h>
28870extern
28871#ifdef __cplusplus
28872"C"
28873#endif
28874#if defined(__STDC__) || defined(__cplusplus)
28875size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
28876#else
28877size_t iconv();
28878#endif
af15babd 28879
e6cc62c6
VS
28880int
28881main ()
28882{
28883
28884 ;
28885 return 0;
28886}
28887_ACEOF
28888rm -f conftest.$ac_objext
28889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 28890 (eval $ac_compile) 2>conftest.er1
e6cc62c6 28891 ac_status=$?
f95e4495
VS
28892 grep -v '^ *+' conftest.er1 >conftest.err
28893 rm -f conftest.er1
28894 cat conftest.err >&5
e6cc62c6
VS
28895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28896 (exit $ac_status); } &&
f95e4495
VS
28897 { ac_try='test -z "$ac_cxx_werror_flag"
28898 || test ! -s conftest.err'
28899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28900 (eval $ac_try) 2>&5
28901 ac_status=$?
28902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28903 (exit $ac_status); }; } &&
28904 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
28905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28906 (eval $ac_try) 2>&5
28907 ac_status=$?
28908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28909 (exit $ac_status); }; }; then
b7043674 28910 wx_cv_func_iconv_const="no"
b040e242 28911else
e6cc62c6
VS
28912 echo "$as_me: failed program was:" >&5
28913sed 's/^/| /' conftest.$ac_ext >&5
28914
28915wx_cv_func_iconv_const="yes"
28916
247f5006 28917fi
f95e4495 28918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 28919
e6cc62c6
VS
28920fi
28921echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
28922echo "${ECHO_T}$wx_cv_func_iconv_const" >&6
b7043674
VZ
28923
28924 iconv_const=
1c405bb5 28925 if test "x$wx_cv_func_iconv_const" = "xyes"; then
b7043674
VZ
28926 iconv_const="const"
28927 fi
28928
e6cc62c6
VS
28929
28930cat >>confdefs.h <<_ACEOF
f09359cf 28931#define ICONV_CONST $iconv_const
e6cc62c6 28932_ACEOF
b040e242
VS
28933
28934 fi
28935 LIBICONV=
28936 if test "$am_cv_lib_iconv" = yes; then
28937 LIBICONV="-liconv"
28938 fi
e6cc62c6 28939
b040e242
VS
28940
28941LIBS="$LIBICONV $LIBS"
4f14bcd8 28942ac_ext=c
4f14bcd8 28943ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
28944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28946ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 28947
5c6fa7d2 28948
8284b0c5 28949if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
e6cc62c6
VS
28950
28951for ac_func in sigaction
af15babd 28952do
e6cc62c6
VS
28953as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28954echo "$as_me:$LINENO: checking for $ac_func" >&5
28955echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28956if eval "test \"\${$as_ac_var+set}\" = set"; then
28957 echo $ECHO_N "(cached) $ECHO_C" >&6
28958else
28959 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
28960/* confdefs.h. */
28961_ACEOF
28962cat confdefs.h >>conftest.$ac_ext
28963cat >>conftest.$ac_ext <<_ACEOF
28964/* end confdefs.h. */
f95e4495
VS
28965/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28967#define $ac_func innocuous_$ac_func
28968
af15babd 28969/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
28970 which can conflict with char $ac_func (); below.
28971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28972 <limits.h> exists even on freestanding compilers. */
f95e4495 28973
e6cc62c6
VS
28974#ifdef __STDC__
28975# include <limits.h>
28976#else
28977# include <assert.h>
28978#endif
f95e4495
VS
28979
28980#undef $ac_func
28981
af15babd 28982/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
28983#ifdef __cplusplus
28984extern "C"
28985{
28986#endif
af15babd 28987/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
28988 builtin and then its argument prototype would still apply. */
28989char $ac_func ();
af15babd
VZ
28990/* The GNU C library defines this for functions which it implements
28991 to always fail with ENOSYS. Some functions are actually named
28992 something starting with __ and the normal name is an alias. */
28993#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28994choke me
28995#else
e6cc62c6
VS
28996char (*f) () = $ac_func;
28997#endif
28998#ifdef __cplusplus
28999}
af15babd
VZ
29000#endif
29001
e6cc62c6
VS
29002int
29003main ()
29004{
29005return f != $ac_func;
29006 ;
29007 return 0;
29008}
29009_ACEOF
29010rm -f conftest.$ac_objext conftest$ac_exeext
29011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 29012 (eval $ac_link) 2>conftest.er1
e6cc62c6 29013 ac_status=$?
f95e4495
VS
29014 grep -v '^ *+' conftest.er1 >conftest.err
29015 rm -f conftest.er1
29016 cat conftest.err >&5
e6cc62c6
VS
29017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29018 (exit $ac_status); } &&
f95e4495
VS
29019 { ac_try='test -z "$ac_c_werror_flag"
29020 || test ! -s conftest.err'
29021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29022 (eval $ac_try) 2>&5
29023 ac_status=$?
29024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29025 (exit $ac_status); }; } &&
29026 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29028 (eval $ac_try) 2>&5
29029 ac_status=$?
29030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29031 (exit $ac_status); }; }; then
29032 eval "$as_ac_var=yes"
29033else
29034 echo "$as_me: failed program was:" >&5
29035sed 's/^/| /' conftest.$ac_ext >&5
29036
29037eval "$as_ac_var=no"
29038fi
f95e4495
VS
29039rm -f conftest.err conftest.$ac_objext \
29040 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29041fi
29042echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29043echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29044if test `eval echo '${'$as_ac_var'}'` = yes; then
29045 cat >>confdefs.h <<_ACEOF
29046#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29047_ACEOF
7b4a847f 29048
4f14bcd8
GD
29049fi
29050done
29051
8284b0c5 29052
4f14bcd8 29053 if test "$ac_cv_func_sigaction" = "no"; then
e6cc62c6
VS
29054 { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
29055echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
4f14bcd8
GD
29056 wxUSE_ON_FATAL_EXCEPTION=no
29057 fi
29058
29059 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6
VS
29060
29061
29062 ac_ext=cc
5c6fa7d2 29063ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
29064ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29065ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29066ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7b4a847f 29067
5c6fa7d2 29068
e6cc62c6
VS
29069 echo "$as_me:$LINENO: checking for sa_handler type" >&5
29070echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6
29071if test "${wx_cv_type_sa_handler+set}" = set; then
29072 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 29073else
e6cc62c6
VS
29074
29075 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29076/* confdefs.h. */
29077_ACEOF
29078cat confdefs.h >>conftest.$ac_ext
29079cat >>conftest.$ac_ext <<_ACEOF
29080/* end confdefs.h. */
4f14bcd8 29081#include <signal.h>
e6cc62c6
VS
29082int
29083main ()
29084{
4f14bcd8
GD
29085
29086 extern void testSigHandler(int);
29087
29088 struct sigaction sa;
29089 sa.sa_handler = testSigHandler;
e6cc62c6
VS
29090
29091 ;
29092 return 0;
29093}
29094_ACEOF
29095rm -f conftest.$ac_objext
29096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 29097 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29098 ac_status=$?
f95e4495
VS
29099 grep -v '^ *+' conftest.er1 >conftest.err
29100 rm -f conftest.er1
29101 cat conftest.err >&5
e6cc62c6
VS
29102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29103 (exit $ac_status); } &&
f95e4495
VS
29104 { ac_try='test -z "$ac_cxx_werror_flag"
29105 || test ! -s conftest.err'
29106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29107 (eval $ac_try) 2>&5
29108 ac_status=$?
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); }; } &&
29111 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29113 (eval $ac_try) 2>&5
29114 ac_status=$?
29115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29116 (exit $ac_status); }; }; then
29117
4f14bcd8 29118 wx_cv_type_sa_handler=int
e6cc62c6 29119
af15babd 29120else
e6cc62c6
VS
29121 echo "$as_me: failed program was:" >&5
29122sed 's/^/| /' conftest.$ac_ext >&5
29123
29124
4f14bcd8 29125 wx_cv_type_sa_handler=void
e6cc62c6 29126
247f5006 29127fi
f95e4495 29128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29129
e6cc62c6
VS
29130fi
29131echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
29132echo "${ECHO_T}$wx_cv_type_sa_handler" >&6
4f14bcd8
GD
29133
29134 ac_ext=c
4f14bcd8 29135ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29138ac_compiler_gnu=$ac_cv_c_compiler_gnu
579d8138 29139
8284b0c5 29140
e6cc62c6 29141 cat >>confdefs.h <<_ACEOF
4f14bcd8 29142#define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
e6cc62c6 29143_ACEOF
af15babd 29144
4f14bcd8
GD
29145 fi
29146fi
af15babd 29147
e6cc62c6
VS
29148
29149
a1d22ad7 29150for ac_func in mkstemp mktemp
af15babd 29151do
e6cc62c6
VS
29152as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29153echo "$as_me:$LINENO: checking for $ac_func" >&5
29154echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29155if eval "test \"\${$as_ac_var+set}\" = set"; then
29156 echo $ECHO_N "(cached) $ECHO_C" >&6
29157else
29158 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29159/* confdefs.h. */
29160_ACEOF
29161cat confdefs.h >>conftest.$ac_ext
29162cat >>conftest.$ac_ext <<_ACEOF
29163/* end confdefs.h. */
f95e4495
VS
29164/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29166#define $ac_func innocuous_$ac_func
29167
af15babd 29168/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29169 which can conflict with char $ac_func (); below.
29170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29171 <limits.h> exists even on freestanding compilers. */
f95e4495 29172
e6cc62c6
VS
29173#ifdef __STDC__
29174# include <limits.h>
29175#else
29176# include <assert.h>
29177#endif
f95e4495
VS
29178
29179#undef $ac_func
29180
af15babd 29181/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29182#ifdef __cplusplus
29183extern "C"
29184{
29185#endif
af15babd 29186/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29187 builtin and then its argument prototype would still apply. */
29188char $ac_func ();
af15babd
VZ
29189/* The GNU C library defines this for functions which it implements
29190 to always fail with ENOSYS. Some functions are actually named
29191 something starting with __ and the normal name is an alias. */
29192#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29193choke me
29194#else
e6cc62c6
VS
29195char (*f) () = $ac_func;
29196#endif
29197#ifdef __cplusplus
29198}
af15babd
VZ
29199#endif
29200
e6cc62c6
VS
29201int
29202main ()
29203{
29204return f != $ac_func;
29205 ;
29206 return 0;
29207}
29208_ACEOF
29209rm -f conftest.$ac_objext conftest$ac_exeext
29210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 29211 (eval $ac_link) 2>conftest.er1
e6cc62c6 29212 ac_status=$?
f95e4495
VS
29213 grep -v '^ *+' conftest.er1 >conftest.err
29214 rm -f conftest.er1
29215 cat conftest.err >&5
e6cc62c6
VS
29216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29217 (exit $ac_status); } &&
f95e4495
VS
29218 { ac_try='test -z "$ac_c_werror_flag"
29219 || test ! -s conftest.err'
29220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29221 (eval $ac_try) 2>&5
29222 ac_status=$?
29223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29224 (exit $ac_status); }; } &&
29225 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29227 (eval $ac_try) 2>&5
29228 ac_status=$?
29229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29230 (exit $ac_status); }; }; then
29231 eval "$as_ac_var=yes"
29232else
29233 echo "$as_me: failed program was:" >&5
29234sed 's/^/| /' conftest.$ac_ext >&5
29235
29236eval "$as_ac_var=no"
29237fi
f95e4495
VS
29238rm -f conftest.err conftest.$ac_objext \
29239 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29240fi
29241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29242echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29243if test `eval echo '${'$as_ac_var'}'` = yes; then
29244 cat >>confdefs.h <<_ACEOF
29245#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29246_ACEOF
ade35f11 29247 break
ade35f11
VZ
29248fi
29249done
29250
8284b0c5 29251
e6cc62c6
VS
29252echo "$as_me:$LINENO: checking for statfs" >&5
29253echo $ECHO_N "checking for statfs... $ECHO_C" >&6
29254if test "${wx_cv_func_statfs+set}" = set; then
29255 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 29256else
e6cc62c6 29257 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29258/* confdefs.h. */
29259_ACEOF
29260cat confdefs.h >>conftest.$ac_ext
29261cat >>conftest.$ac_ext <<_ACEOF
29262/* end confdefs.h. */
4f14bcd8
GD
29263
29264 #if defined(__BSD__)
29265 #include <sys/param.h>
29266 #include <sys/mount.h>
29267 #else
29268 #include <sys/vfs.h>
29269 #endif
e6cc62c6
VS
29270
29271int
29272main ()
29273{
4f14bcd8
GD
29274
29275 long l;
29276 struct statfs fs;
29277 statfs("/", &fs);
29278 l = fs.f_bsize;
29279 l += fs.f_blocks;
29280 l += fs.f_bavail;
e6cc62c6
VS
29281
29282 ;
29283 return 0;
29284}
29285_ACEOF
29286rm -f conftest.$ac_objext
29287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 29288 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29289 ac_status=$?
f95e4495
VS
29290 grep -v '^ *+' conftest.er1 >conftest.err
29291 rm -f conftest.er1
29292 cat conftest.err >&5
e6cc62c6
VS
29293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294 (exit $ac_status); } &&
f95e4495
VS
29295 { ac_try='test -z "$ac_c_werror_flag"
29296 || test ! -s conftest.err'
29297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29298 (eval $ac_try) 2>&5
29299 ac_status=$?
29300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29301 (exit $ac_status); }; } &&
29302 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29304 (eval $ac_try) 2>&5
29305 ac_status=$?
29306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307 (exit $ac_status); }; }; then
29308
4f14bcd8 29309 wx_cv_func_statfs=yes
e6cc62c6 29310
4f14bcd8 29311else
e6cc62c6
VS
29312 echo "$as_me: failed program was:" >&5
29313sed 's/^/| /' conftest.$ac_ext >&5
29314
29315
4f14bcd8 29316 wx_cv_func_statfs=no
e6cc62c6 29317
8284b0c5 29318
247f5006 29319fi
f95e4495 29320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29321
e6cc62c6
VS
29322fi
29323echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
29324echo "${ECHO_T}$wx_cv_func_statfs" >&6
4f14bcd8
GD
29325
29326if test "$wx_cv_func_statfs" = "yes"; then
54ab82b3 29327 wx_cv_type_statvfs_t="struct statfs"
e6cc62c6 29328 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29329#define HAVE_STATFS 1
e6cc62c6 29330_ACEOF
4f14bcd8
GD
29331
29332else
e6cc62c6
VS
29333 echo "$as_me:$LINENO: checking for statvfs" >&5
29334echo $ECHO_N "checking for statvfs... $ECHO_C" >&6
29335if test "${wx_cv_func_statvfs+set}" = set; then
29336 echo $ECHO_N "(cached) $ECHO_C" >&6
af15babd 29337else
e6cc62c6 29338 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29339/* confdefs.h. */
29340_ACEOF
29341cat confdefs.h >>conftest.$ac_ext
29342cat >>conftest.$ac_ext <<_ACEOF
29343/* end confdefs.h. */
af15babd 29344
54ab82b3
VZ
29345 #include <stddef.h>
29346 #include <sys/statvfs.h>
e6cc62c6
VS
29347
29348int
29349main ()
29350{
af15babd 29351
54ab82b3 29352 statvfs("/", NULL);
e6cc62c6
VS
29353
29354 ;
29355 return 0;
29356}
29357_ACEOF
29358rm -f conftest.$ac_objext
29359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 29360 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29361 ac_status=$?
f95e4495
VS
29362 grep -v '^ *+' conftest.er1 >conftest.err
29363 rm -f conftest.er1
29364 cat conftest.err >&5
e6cc62c6
VS
29365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29366 (exit $ac_status); } &&
f95e4495
VS
29367 { ac_try='test -z "$ac_c_werror_flag"
29368 || test ! -s conftest.err'
29369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29370 (eval $ac_try) 2>&5
29371 ac_status=$?
29372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29373 (exit $ac_status); }; } &&
29374 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29376 (eval $ac_try) 2>&5
29377 ac_status=$?
29378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29379 (exit $ac_status); }; }; then
54ab82b3 29380 wx_cv_func_statvfs=yes
af15babd 29381else
e6cc62c6
VS
29382 echo "$as_me: failed program was:" >&5
29383sed 's/^/| /' conftest.$ac_ext >&5
29384
29385wx_cv_func_statvfs=no
29386
247f5006 29387fi
f95e4495 29388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 29389
e6cc62c6
VS
29390fi
29391echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
29392echo "${ECHO_T}$wx_cv_func_statvfs" >&6
af15babd 29393
4f14bcd8 29394 if test "$wx_cv_func_statvfs" = "yes"; then
e6cc62c6
VS
29395
29396
29397 ac_ext=cc
54ab82b3 29398ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
29399ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29400ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29401ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
54ab82b3
VZ
29402
29403
e6cc62c6
VS
29404 echo "$as_me:$LINENO: checking for statvfs argument type" >&5
29405echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6
29406if test "${wx_cv_type_statvfs_t+set}" = set; then
29407 echo $ECHO_N "(cached) $ECHO_C" >&6
54ab82b3 29408else
e6cc62c6 29409 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29410/* confdefs.h. */
29411_ACEOF
29412cat confdefs.h >>conftest.$ac_ext
29413cat >>conftest.$ac_ext <<_ACEOF
29414/* end confdefs.h. */
54ab82b3
VZ
29415
29416 #include <sys/statvfs.h>
e6cc62c6
VS
29417
29418int
29419main ()
29420{
54ab82b3
VZ
29421
29422 long l;
29423 statvfs_t fs;
29424 statvfs("/", &fs);
29425 l = fs.f_bsize;
29426 l += fs.f_blocks;
29427 l += fs.f_bavail;
e6cc62c6
VS
29428
29429 ;
29430 return 0;
29431}
29432_ACEOF
29433rm -f conftest.$ac_objext
29434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 29435 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29436 ac_status=$?
f95e4495
VS
29437 grep -v '^ *+' conftest.er1 >conftest.err
29438 rm -f conftest.er1
29439 cat conftest.err >&5
e6cc62c6
VS
29440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441 (exit $ac_status); } &&
f95e4495
VS
29442 { ac_try='test -z "$ac_cxx_werror_flag"
29443 || test ! -s conftest.err'
29444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29445 (eval $ac_try) 2>&5
29446 ac_status=$?
29447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448 (exit $ac_status); }; } &&
29449 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29451 (eval $ac_try) 2>&5
29452 ac_status=$?
29453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29454 (exit $ac_status); }; }; then
54ab82b3
VZ
29455 wx_cv_type_statvfs_t=statvfs_t
29456else
e6cc62c6
VS
29457 echo "$as_me: failed program was:" >&5
29458sed 's/^/| /' conftest.$ac_ext >&5
29459
29460
29461 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29462/* confdefs.h. */
29463_ACEOF
29464cat confdefs.h >>conftest.$ac_ext
29465cat >>conftest.$ac_ext <<_ACEOF
29466/* end confdefs.h. */
54ab82b3
VZ
29467
29468 #include <sys/statvfs.h>
e6cc62c6
VS
29469
29470int
29471main ()
29472{
54ab82b3
VZ
29473
29474 long l;
65d8ef1e 29475 struct statvfs fs;
54ab82b3
VZ
29476 statvfs("/", &fs);
29477 l = fs.f_bsize;
29478 l += fs.f_blocks;
29479 l += fs.f_bavail;
e6cc62c6
VS
29480
29481 ;
29482 return 0;
29483}
29484_ACEOF
29485rm -f conftest.$ac_objext
29486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 29487 (eval $ac_compile) 2>conftest.er1
e6cc62c6 29488 ac_status=$?
f95e4495
VS
29489 grep -v '^ *+' conftest.er1 >conftest.err
29490 rm -f conftest.er1
29491 cat conftest.err >&5
e6cc62c6
VS
29492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29493 (exit $ac_status); } &&
f95e4495
VS
29494 { ac_try='test -z "$ac_cxx_werror_flag"
29495 || test ! -s conftest.err'
29496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29497 (eval $ac_try) 2>&5
29498 ac_status=$?
29499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500 (exit $ac_status); }; } &&
29501 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
29502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29503 (eval $ac_try) 2>&5
29504 ac_status=$?
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506 (exit $ac_status); }; }; then
54ab82b3
VZ
29507 wx_cv_type_statvfs_t="struct statvfs"
29508else
e6cc62c6
VS
29509 echo "$as_me: failed program was:" >&5
29510sed 's/^/| /' conftest.$ac_ext >&5
29511
29512wx_cv_type_statvfs_t="unknown"
29513
54ab82b3 29514fi
f95e4495 29515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
29516
29517
54ab82b3 29518fi
f95e4495 29519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
54ab82b3 29520
e6cc62c6
VS
29521fi
29522echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
29523echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6
54ab82b3
VZ
29524
29525 ac_ext=c
54ab82b3 29526ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
29527ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29528ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29529ac_compiler_gnu=$ac_cv_c_compiler_gnu
54ab82b3
VZ
29530
29531
29532 if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 29533 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29534#define HAVE_STATVFS 1
e6cc62c6 29535_ACEOF
af15babd 29536
54ab82b3 29537 fi
4f14bcd8 29538 else
54ab82b3 29539 wx_cv_type_statvfs_t="unknown"
4f14bcd8
GD
29540 fi
29541fi
af15babd 29542
54ab82b3 29543if test "$wx_cv_type_statvfs_t" != "unknown"; then
e6cc62c6 29544 cat >>confdefs.h <<_ACEOF
54ab82b3 29545#define WX_STATFS_T $wx_cv_type_statvfs_t
e6cc62c6 29546_ACEOF
54ab82b3
VZ
29547
29548else
e6cc62c6
VS
29549 { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
29550echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
54ab82b3
VZ
29551fi
29552
4f14bcd8 29553if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6
VS
29554
29555
29556for ac_func in fcntl flock
af15babd 29557do
e6cc62c6
VS
29558as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29559echo "$as_me:$LINENO: checking for $ac_func" >&5
29560echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29561if eval "test \"\${$as_ac_var+set}\" = set"; then
29562 echo $ECHO_N "(cached) $ECHO_C" >&6
29563else
29564 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29565/* confdefs.h. */
29566_ACEOF
29567cat confdefs.h >>conftest.$ac_ext
29568cat >>conftest.$ac_ext <<_ACEOF
29569/* end confdefs.h. */
f95e4495
VS
29570/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29572#define $ac_func innocuous_$ac_func
29573
af15babd 29574/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29575 which can conflict with char $ac_func (); below.
29576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29577 <limits.h> exists even on freestanding compilers. */
f95e4495 29578
e6cc62c6
VS
29579#ifdef __STDC__
29580# include <limits.h>
29581#else
29582# include <assert.h>
29583#endif
f95e4495
VS
29584
29585#undef $ac_func
29586
af15babd 29587/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29588#ifdef __cplusplus
29589extern "C"
29590{
29591#endif
af15babd 29592/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29593 builtin and then its argument prototype would still apply. */
29594char $ac_func ();
af15babd
VZ
29595/* The GNU C library defines this for functions which it implements
29596 to always fail with ENOSYS. Some functions are actually named
29597 something starting with __ and the normal name is an alias. */
29598#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29599choke me
29600#else
e6cc62c6
VS
29601char (*f) () = $ac_func;
29602#endif
29603#ifdef __cplusplus
29604}
af15babd
VZ
29605#endif
29606
e6cc62c6
VS
29607int
29608main ()
29609{
29610return f != $ac_func;
29611 ;
29612 return 0;
29613}
29614_ACEOF
29615rm -f conftest.$ac_objext conftest$ac_exeext
29616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 29617 (eval $ac_link) 2>conftest.er1
e6cc62c6 29618 ac_status=$?
f95e4495
VS
29619 grep -v '^ *+' conftest.er1 >conftest.err
29620 rm -f conftest.er1
29621 cat conftest.err >&5
e6cc62c6
VS
29622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29623 (exit $ac_status); } &&
f95e4495
VS
29624 { ac_try='test -z "$ac_c_werror_flag"
29625 || test ! -s conftest.err'
29626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29627 (eval $ac_try) 2>&5
29628 ac_status=$?
29629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29630 (exit $ac_status); }; } &&
29631 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29633 (eval $ac_try) 2>&5
29634 ac_status=$?
29635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29636 (exit $ac_status); }; }; then
29637 eval "$as_ac_var=yes"
29638else
29639 echo "$as_me: failed program was:" >&5
29640sed 's/^/| /' conftest.$ac_ext >&5
29641
29642eval "$as_ac_var=no"
29643fi
f95e4495
VS
29644rm -f conftest.err conftest.$ac_objext \
29645 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29646fi
29647echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29648echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29649if test `eval echo '${'$as_ac_var'}'` = yes; then
29650 cat >>confdefs.h <<_ACEOF
29651#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29652_ACEOF
4f14bcd8 29653 break
af15babd
VZ
29654fi
29655done
29656
8284b0c5 29657
4f14bcd8 29658 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
e6cc62c6
VS
29659 { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
29660echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
4f14bcd8
GD
29661 wxUSE_SNGLINST_CHECKER=no
29662 fi
29663fi
af15babd 29664
e6cc62c6 29665
4f14bcd8 29666for ac_func in timegm
af15babd 29667do
e6cc62c6
VS
29668as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29669echo "$as_me:$LINENO: checking for $ac_func" >&5
29670echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29671if eval "test \"\${$as_ac_var+set}\" = set"; then
29672 echo $ECHO_N "(cached) $ECHO_C" >&6
29673else
29674 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29675/* confdefs.h. */
29676_ACEOF
29677cat confdefs.h >>conftest.$ac_ext
29678cat >>conftest.$ac_ext <<_ACEOF
29679/* end confdefs.h. */
f95e4495
VS
29680/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29682#define $ac_func innocuous_$ac_func
29683
af15babd 29684/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29685 which can conflict with char $ac_func (); below.
29686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29687 <limits.h> exists even on freestanding compilers. */
f95e4495 29688
e6cc62c6
VS
29689#ifdef __STDC__
29690# include <limits.h>
29691#else
29692# include <assert.h>
29693#endif
f95e4495
VS
29694
29695#undef $ac_func
29696
af15babd 29697/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29698#ifdef __cplusplus
29699extern "C"
29700{
29701#endif
af15babd 29702/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29703 builtin and then its argument prototype would still apply. */
29704char $ac_func ();
af15babd
VZ
29705/* The GNU C library defines this for functions which it implements
29706 to always fail with ENOSYS. Some functions are actually named
29707 something starting with __ and the normal name is an alias. */
247f5006
VZ
29708#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29709choke me
29710#else
e6cc62c6
VS
29711char (*f) () = $ac_func;
29712#endif
29713#ifdef __cplusplus
29714}
247f5006
VZ
29715#endif
29716
e6cc62c6
VS
29717int
29718main ()
29719{
29720return f != $ac_func;
29721 ;
29722 return 0;
29723}
29724_ACEOF
29725rm -f conftest.$ac_objext conftest$ac_exeext
29726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 29727 (eval $ac_link) 2>conftest.er1
e6cc62c6 29728 ac_status=$?
f95e4495
VS
29729 grep -v '^ *+' conftest.er1 >conftest.err
29730 rm -f conftest.er1
29731 cat conftest.err >&5
e6cc62c6
VS
29732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29733 (exit $ac_status); } &&
f95e4495
VS
29734 { ac_try='test -z "$ac_c_werror_flag"
29735 || test ! -s conftest.err'
29736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29737 (eval $ac_try) 2>&5
29738 ac_status=$?
29739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740 (exit $ac_status); }; } &&
29741 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29743 (eval $ac_try) 2>&5
29744 ac_status=$?
29745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29746 (exit $ac_status); }; }; then
29747 eval "$as_ac_var=yes"
29748else
29749 echo "$as_me: failed program was:" >&5
29750sed 's/^/| /' conftest.$ac_ext >&5
29751
29752eval "$as_ac_var=no"
29753fi
f95e4495
VS
29754rm -f conftest.err conftest.$ac_objext \
29755 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29756fi
29757echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29758echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29759if test `eval echo '${'$as_ac_var'}'` = yes; then
29760 cat >>confdefs.h <<_ACEOF
29761#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29762_ACEOF
703e0a69 29763
af15babd
VZ
29764fi
29765done
29766
8284b0c5 29767
e6cc62c6
VS
29768
29769
4f14bcd8 29770for ac_func in putenv setenv
10f2d63a 29771do
e6cc62c6
VS
29772as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29773echo "$as_me:$LINENO: checking for $ac_func" >&5
29774echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29775if eval "test \"\${$as_ac_var+set}\" = set"; then
29776 echo $ECHO_N "(cached) $ECHO_C" >&6
29777else
29778 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29779/* confdefs.h. */
29780_ACEOF
29781cat confdefs.h >>conftest.$ac_ext
29782cat >>conftest.$ac_ext <<_ACEOF
29783/* end confdefs.h. */
f95e4495
VS
29784/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29786#define $ac_func innocuous_$ac_func
29787
af15babd 29788/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29789 which can conflict with char $ac_func (); below.
29790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29791 <limits.h> exists even on freestanding compilers. */
f95e4495 29792
e6cc62c6
VS
29793#ifdef __STDC__
29794# include <limits.h>
29795#else
29796# include <assert.h>
29797#endif
f95e4495
VS
29798
29799#undef $ac_func
29800
af15babd 29801/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29802#ifdef __cplusplus
29803extern "C"
29804{
29805#endif
af15babd 29806/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29807 builtin and then its argument prototype would still apply. */
29808char $ac_func ();
af15babd
VZ
29809/* The GNU C library defines this for functions which it implements
29810 to always fail with ENOSYS. Some functions are actually named
29811 something starting with __ and the normal name is an alias. */
29812#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29813choke me
29814#else
e6cc62c6
VS
29815char (*f) () = $ac_func;
29816#endif
29817#ifdef __cplusplus
29818}
af15babd
VZ
29819#endif
29820
e6cc62c6
VS
29821int
29822main ()
29823{
29824return f != $ac_func;
29825 ;
29826 return 0;
29827}
29828_ACEOF
29829rm -f conftest.$ac_objext conftest$ac_exeext
29830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 29831 (eval $ac_link) 2>conftest.er1
e6cc62c6 29832 ac_status=$?
f95e4495
VS
29833 grep -v '^ *+' conftest.er1 >conftest.err
29834 rm -f conftest.er1
29835 cat conftest.err >&5
e6cc62c6
VS
29836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29837 (exit $ac_status); } &&
f95e4495
VS
29838 { ac_try='test -z "$ac_c_werror_flag"
29839 || test ! -s conftest.err'
29840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29841 (eval $ac_try) 2>&5
29842 ac_status=$?
29843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29844 (exit $ac_status); }; } &&
29845 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29847 (eval $ac_try) 2>&5
29848 ac_status=$?
29849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29850 (exit $ac_status); }; }; then
29851 eval "$as_ac_var=yes"
29852else
29853 echo "$as_me: failed program was:" >&5
29854sed 's/^/| /' conftest.$ac_ext >&5
29855
29856eval "$as_ac_var=no"
29857fi
f95e4495
VS
29858rm -f conftest.err conftest.$ac_objext \
29859 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29860fi
29861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29862echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29863if test `eval echo '${'$as_ac_var'}'` = yes; then
29864 cat >>confdefs.h <<_ACEOF
29865#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29866_ACEOF
4f14bcd8 29867 break
af15babd 29868fi
af15babd
VZ
29869done
29870
8284b0c5 29871
4f14bcd8
GD
29872HAVE_SOME_SLEEP_FUNC=0
29873if test "$USE_BEOS" = 1; then
e6cc62c6 29874 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29875#define HAVE_SLEEP 1
e6cc62c6 29876_ACEOF
af15babd 29877
4f14bcd8 29878 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
29879fi
29880
4f14bcd8 29881if test "$USE_DARWIN" = 1; then
e6cc62c6 29882 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29883#define HAVE_USLEEP 1
e6cc62c6 29884_ACEOF
10f2d63a 29885
4f14bcd8 29886 HAVE_SOME_SLEEP_FUNC=1
10f2d63a
VZ
29887fi
29888
4f14bcd8
GD
29889if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
29890 POSIX4_LINK=
e6cc62c6
VS
29891
29892for ac_func in nanosleep
4f14bcd8 29893do
e6cc62c6
VS
29894as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
29895echo "$as_me:$LINENO: checking for $ac_func" >&5
29896echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
29897if eval "test \"\${$as_ac_var+set}\" = set"; then
29898 echo $ECHO_N "(cached) $ECHO_C" >&6
29899else
29900 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
29901/* confdefs.h. */
29902_ACEOF
29903cat confdefs.h >>conftest.$ac_ext
29904cat >>conftest.$ac_ext <<_ACEOF
29905/* end confdefs.h. */
f95e4495
VS
29906/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29908#define $ac_func innocuous_$ac_func
29909
4f14bcd8 29910/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
29911 which can conflict with char $ac_func (); below.
29912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29913 <limits.h> exists even on freestanding compilers. */
f95e4495 29914
e6cc62c6
VS
29915#ifdef __STDC__
29916# include <limits.h>
29917#else
29918# include <assert.h>
29919#endif
f95e4495
VS
29920
29921#undef $ac_func
29922
10f2d63a 29923/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
29924#ifdef __cplusplus
29925extern "C"
29926{
29927#endif
10f2d63a 29928/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
29929 builtin and then its argument prototype would still apply. */
29930char $ac_func ();
4f14bcd8
GD
29931/* The GNU C library defines this for functions which it implements
29932 to always fail with ENOSYS. Some functions are actually named
29933 something starting with __ and the normal name is an alias. */
29934#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
29935choke me
29936#else
e6cc62c6
VS
29937char (*f) () = $ac_func;
29938#endif
29939#ifdef __cplusplus
29940}
4f14bcd8
GD
29941#endif
29942
e6cc62c6
VS
29943int
29944main ()
29945{
29946return f != $ac_func;
29947 ;
29948 return 0;
29949}
29950_ACEOF
29951rm -f conftest.$ac_objext conftest$ac_exeext
29952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 29953 (eval $ac_link) 2>conftest.er1
e6cc62c6 29954 ac_status=$?
f95e4495
VS
29955 grep -v '^ *+' conftest.er1 >conftest.err
29956 rm -f conftest.er1
29957 cat conftest.err >&5
e6cc62c6
VS
29958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29959 (exit $ac_status); } &&
f95e4495
VS
29960 { ac_try='test -z "$ac_c_werror_flag"
29961 || test ! -s conftest.err'
29962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29963 (eval $ac_try) 2>&5
29964 ac_status=$?
29965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29966 (exit $ac_status); }; } &&
29967 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
29968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29969 (eval $ac_try) 2>&5
29970 ac_status=$?
29971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972 (exit $ac_status); }; }; then
29973 eval "$as_ac_var=yes"
29974else
29975 echo "$as_me: failed program was:" >&5
29976sed 's/^/| /' conftest.$ac_ext >&5
29977
29978eval "$as_ac_var=no"
29979fi
f95e4495
VS
29980rm -f conftest.err conftest.$ac_objext \
29981 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
29982fi
29983echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
29984echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
29985if test `eval echo '${'$as_ac_var'}'` = yes; then
29986 cat >>confdefs.h <<_ACEOF
29987#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
29988_ACEOF
29989 cat >>confdefs.h <<\_ACEOF
4f14bcd8 29990#define HAVE_NANOSLEEP 1
e6cc62c6 29991_ACEOF
4f14bcd8 29992
10f2d63a 29993else
e6cc62c6
VS
29994
29995 echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
29996echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6
29997if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
29998 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 29999else
e6cc62c6 30000 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 30001LIBS="-lposix4 $LIBS"
e6cc62c6 30002cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30003/* confdefs.h. */
30004_ACEOF
30005cat confdefs.h >>conftest.$ac_ext
30006cat >>conftest.$ac_ext <<_ACEOF
30007/* end confdefs.h. */
30008
10f2d63a 30009/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30010#ifdef __cplusplus
30011extern "C"
30012#endif
10f2d63a 30013/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30014 builtin and then its argument prototype would still apply. */
30015char nanosleep ();
30016int
30017main ()
30018{
30019nanosleep ();
30020 ;
30021 return 0;
30022}
30023_ACEOF
30024rm -f conftest.$ac_objext conftest$ac_exeext
30025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 30026 (eval $ac_link) 2>conftest.er1
e6cc62c6 30027 ac_status=$?
f95e4495
VS
30028 grep -v '^ *+' conftest.er1 >conftest.err
30029 rm -f conftest.er1
30030 cat conftest.err >&5
e6cc62c6
VS
30031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032 (exit $ac_status); } &&
f95e4495
VS
30033 { ac_try='test -z "$ac_c_werror_flag"
30034 || test ! -s conftest.err'
30035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30036 (eval $ac_try) 2>&5
30037 ac_status=$?
30038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039 (exit $ac_status); }; } &&
30040 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30042 (eval $ac_try) 2>&5
30043 ac_status=$?
30044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30045 (exit $ac_status); }; }; then
30046 ac_cv_lib_posix4_nanosleep=yes
30047else
30048 echo "$as_me: failed program was:" >&5
30049sed 's/^/| /' conftest.$ac_ext >&5
30050
30051ac_cv_lib_posix4_nanosleep=no
30052fi
f95e4495
VS
30053rm -f conftest.err conftest.$ac_objext \
30054 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30055LIBS=$ac_check_lib_save_LIBS
30056fi
30057echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
30058echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6
30059if test $ac_cv_lib_posix4_nanosleep = yes; then
30060
30061 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30062#define HAVE_NANOSLEEP 1
e6cc62c6 30063_ACEOF
4f14bcd8 30064
3d63bc3a 30065 POSIX4_LINK=" -lposix4"
e6cc62c6 30066
10f2d63a 30067else
10f2d63a 30068
e6cc62c6
VS
30069
30070for ac_func in usleep
4f14bcd8 30071do
e6cc62c6
VS
30072as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30073echo "$as_me:$LINENO: checking for $ac_func" >&5
30074echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30075if eval "test \"\${$as_ac_var+set}\" = set"; then
30076 echo $ECHO_N "(cached) $ECHO_C" >&6
30077else
30078 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30079/* confdefs.h. */
30080_ACEOF
30081cat confdefs.h >>conftest.$ac_ext
30082cat >>conftest.$ac_ext <<_ACEOF
30083/* end confdefs.h. */
f95e4495
VS
30084/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30086#define $ac_func innocuous_$ac_func
30087
4f14bcd8 30088/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30089 which can conflict with char $ac_func (); below.
30090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30091 <limits.h> exists even on freestanding compilers. */
f95e4495 30092
e6cc62c6
VS
30093#ifdef __STDC__
30094# include <limits.h>
30095#else
30096# include <assert.h>
30097#endif
f95e4495
VS
30098
30099#undef $ac_func
30100
4f14bcd8 30101/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30102#ifdef __cplusplus
30103extern "C"
30104{
30105#endif
4f14bcd8 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 $ac_func ();
4f14bcd8
GD
30109/* The GNU C library defines this for functions which it implements
30110 to always fail with ENOSYS. Some functions are actually named
30111 something starting with __ and the normal name is an alias. */
30112#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30113choke me
30114#else
e6cc62c6
VS
30115char (*f) () = $ac_func;
30116#endif
30117#ifdef __cplusplus
30118}
4f14bcd8
GD
30119#endif
30120
e6cc62c6
VS
30121int
30122main ()
30123{
30124return f != $ac_func;
30125 ;
30126 return 0;
30127}
30128_ACEOF
30129rm -f conftest.$ac_objext conftest$ac_exeext
30130if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 30131 (eval $ac_link) 2>conftest.er1
e6cc62c6 30132 ac_status=$?
f95e4495
VS
30133 grep -v '^ *+' conftest.er1 >conftest.err
30134 rm -f conftest.er1
30135 cat conftest.err >&5
e6cc62c6
VS
30136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30137 (exit $ac_status); } &&
f95e4495
VS
30138 { ac_try='test -z "$ac_c_werror_flag"
30139 || test ! -s conftest.err'
30140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30141 (eval $ac_try) 2>&5
30142 ac_status=$?
30143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144 (exit $ac_status); }; } &&
30145 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30147 (eval $ac_try) 2>&5
30148 ac_status=$?
30149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30150 (exit $ac_status); }; }; then
30151 eval "$as_ac_var=yes"
30152else
30153 echo "$as_me: failed program was:" >&5
30154sed 's/^/| /' conftest.$ac_ext >&5
30155
30156eval "$as_ac_var=no"
30157fi
f95e4495
VS
30158rm -f conftest.err conftest.$ac_objext \
30159 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30160fi
30161echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30162echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30163if test `eval echo '${'$as_ac_var'}'` = yes; then
30164 cat >>confdefs.h <<_ACEOF
30165#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30166_ACEOF
30167 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30168#define HAVE_USLEEP 1
e6cc62c6 30169_ACEOF
4f14bcd8 30170
698dcdb6 30171else
e6cc62c6
VS
30172 { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
30173echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
30174
10f2d63a 30175fi
4f14bcd8 30176done
10f2d63a 30177
e6cc62c6
VS
30178
30179
6232543b 30180fi
10f2d63a 30181
e6cc62c6
VS
30182
30183
1e487827 30184fi
4f14bcd8 30185done
703e0a69 30186
10f2d63a
VZ
30187fi
30188
e6cc62c6
VS
30189
30190
4f14bcd8 30191for ac_func in uname gethostname
70846f0a 30192do
e6cc62c6
VS
30193as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30194echo "$as_me:$LINENO: checking for $ac_func" >&5
30195echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30196if eval "test \"\${$as_ac_var+set}\" = set"; then
30197 echo $ECHO_N "(cached) $ECHO_C" >&6
30198else
30199 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30200/* confdefs.h. */
30201_ACEOF
30202cat confdefs.h >>conftest.$ac_ext
30203cat >>conftest.$ac_ext <<_ACEOF
30204/* end confdefs.h. */
f95e4495
VS
30205/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30207#define $ac_func innocuous_$ac_func
30208
70846f0a 30209/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30210 which can conflict with char $ac_func (); below.
30211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30212 <limits.h> exists even on freestanding compilers. */
f95e4495 30213
e6cc62c6
VS
30214#ifdef __STDC__
30215# include <limits.h>
30216#else
30217# include <assert.h>
30218#endif
f95e4495
VS
30219
30220#undef $ac_func
30221
70846f0a 30222/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30223#ifdef __cplusplus
30224extern "C"
30225{
30226#endif
70846f0a 30227/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30228 builtin and then its argument prototype would still apply. */
30229char $ac_func ();
70846f0a
VZ
30230/* The GNU C library defines this for functions which it implements
30231 to always fail with ENOSYS. Some functions are actually named
30232 something starting with __ and the normal name is an alias. */
30233#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30234choke me
30235#else
e6cc62c6
VS
30236char (*f) () = $ac_func;
30237#endif
30238#ifdef __cplusplus
30239}
70846f0a
VZ
30240#endif
30241
e6cc62c6
VS
30242int
30243main ()
30244{
30245return f != $ac_func;
30246 ;
30247 return 0;
30248}
30249_ACEOF
30250rm -f conftest.$ac_objext conftest$ac_exeext
30251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 30252 (eval $ac_link) 2>conftest.er1
e6cc62c6 30253 ac_status=$?
f95e4495
VS
30254 grep -v '^ *+' conftest.er1 >conftest.err
30255 rm -f conftest.er1
30256 cat conftest.err >&5
e6cc62c6
VS
30257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30258 (exit $ac_status); } &&
f95e4495
VS
30259 { ac_try='test -z "$ac_c_werror_flag"
30260 || test ! -s conftest.err'
30261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30262 (eval $ac_try) 2>&5
30263 ac_status=$?
30264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30265 (exit $ac_status); }; } &&
30266 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30268 (eval $ac_try) 2>&5
30269 ac_status=$?
30270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30271 (exit $ac_status); }; }; then
30272 eval "$as_ac_var=yes"
30273else
30274 echo "$as_me: failed program was:" >&5
30275sed 's/^/| /' conftest.$ac_ext >&5
30276
30277eval "$as_ac_var=no"
30278fi
f95e4495
VS
30279rm -f conftest.err conftest.$ac_objext \
30280 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30281fi
30282echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30283echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30284if test `eval echo '${'$as_ac_var'}'` = yes; then
30285 cat >>confdefs.h <<_ACEOF
30286#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30287_ACEOF
4f14bcd8 30288 break
70846f0a
VZ
30289fi
30290done
30291
8284b0c5
MB
30292
30293
e6cc62c6
VS
30294
30295ac_ext=cc
4f14bcd8 30296ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
30297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30300
8284b0c5 30301
4f14bcd8
GD
30302
30303for ac_func in strtok_r
10f2d63a 30304do
e6cc62c6
VS
30305as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30306echo "$as_me:$LINENO: checking for $ac_func" >&5
30307echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30308if eval "test \"\${$as_ac_var+set}\" = set"; then
30309 echo $ECHO_N "(cached) $ECHO_C" >&6
30310else
30311 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30312/* confdefs.h. */
30313_ACEOF
30314cat confdefs.h >>conftest.$ac_ext
30315cat >>conftest.$ac_ext <<_ACEOF
30316/* end confdefs.h. */
f95e4495
VS
30317/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30318 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30319#define $ac_func innocuous_$ac_func
30320
4f14bcd8 30321/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30322 which can conflict with char $ac_func (); below.
30323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30324 <limits.h> exists even on freestanding compilers. */
f95e4495 30325
e6cc62c6
VS
30326#ifdef __STDC__
30327# include <limits.h>
30328#else
30329# include <assert.h>
30330#endif
f95e4495
VS
30331
30332#undef $ac_func
30333
4f14bcd8
GD
30334/* Override any gcc2 internal prototype to avoid an error. */
30335#ifdef __cplusplus
30336extern "C"
e6cc62c6 30337{
4f14bcd8
GD
30338#endif
30339/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30340 builtin and then its argument prototype would still apply. */
30341char $ac_func ();
4f14bcd8
GD
30342/* The GNU C library defines this for functions which it implements
30343 to always fail with ENOSYS. Some functions are actually named
30344 something starting with __ and the normal name is an alias. */
30345#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30346choke me
30347#else
e6cc62c6
VS
30348char (*f) () = $ac_func;
30349#endif
30350#ifdef __cplusplus
30351}
4f14bcd8
GD
30352#endif
30353
e6cc62c6
VS
30354int
30355main ()
30356{
30357return f != $ac_func;
30358 ;
30359 return 0;
30360}
30361_ACEOF
30362rm -f conftest.$ac_objext conftest$ac_exeext
30363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 30364 (eval $ac_link) 2>conftest.er1
e6cc62c6 30365 ac_status=$?
f95e4495
VS
30366 grep -v '^ *+' conftest.er1 >conftest.err
30367 rm -f conftest.er1
30368 cat conftest.err >&5
e6cc62c6
VS
30369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30370 (exit $ac_status); } &&
f95e4495
VS
30371 { ac_try='test -z "$ac_cxx_werror_flag"
30372 || test ! -s conftest.err'
30373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30374 (eval $ac_try) 2>&5
30375 ac_status=$?
30376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30377 (exit $ac_status); }; } &&
30378 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30380 (eval $ac_try) 2>&5
30381 ac_status=$?
30382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30383 (exit $ac_status); }; }; then
30384 eval "$as_ac_var=yes"
30385else
30386 echo "$as_me: failed program was:" >&5
30387sed 's/^/| /' conftest.$ac_ext >&5
30388
30389eval "$as_ac_var=no"
30390fi
f95e4495
VS
30391rm -f conftest.err conftest.$ac_objext \
30392 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30393fi
30394echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30395echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30396if test `eval echo '${'$as_ac_var'}'` = yes; then
30397 cat >>confdefs.h <<_ACEOF
30398#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30399_ACEOF
4f14bcd8 30400
10f2d63a
VZ
30401fi
30402done
30403
8284b0c5 30404
4f14bcd8 30405ac_ext=c
4f14bcd8 30406ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
30407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30409ac_compiler_gnu=$ac_cv_c_compiler_gnu
7b4a847f 30410
5c6fa7d2 30411
8284b0c5 30412INET_LINK=
e6cc62c6 30413
4f14bcd8
GD
30414for ac_func in inet_addr
30415do
e6cc62c6
VS
30416as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30417echo "$as_me:$LINENO: checking for $ac_func" >&5
30418echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30419if eval "test \"\${$as_ac_var+set}\" = set"; then
30420 echo $ECHO_N "(cached) $ECHO_C" >&6
30421else
30422 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30423/* confdefs.h. */
30424_ACEOF
30425cat confdefs.h >>conftest.$ac_ext
30426cat >>conftest.$ac_ext <<_ACEOF
30427/* end confdefs.h. */
f95e4495
VS
30428/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30430#define $ac_func innocuous_$ac_func
30431
4f14bcd8 30432/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
30433 which can conflict with char $ac_func (); below.
30434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30435 <limits.h> exists even on freestanding compilers. */
f95e4495 30436
e6cc62c6
VS
30437#ifdef __STDC__
30438# include <limits.h>
30439#else
30440# include <assert.h>
30441#endif
f95e4495
VS
30442
30443#undef $ac_func
30444
10f2d63a 30445/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30446#ifdef __cplusplus
30447extern "C"
30448{
30449#endif
10f2d63a 30450/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30451 builtin and then its argument prototype would still apply. */
30452char $ac_func ();
4f14bcd8
GD
30453/* The GNU C library defines this for functions which it implements
30454 to always fail with ENOSYS. Some functions are actually named
30455 something starting with __ and the normal name is an alias. */
30456#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30457choke me
30458#else
e6cc62c6
VS
30459char (*f) () = $ac_func;
30460#endif
30461#ifdef __cplusplus
30462}
4f14bcd8
GD
30463#endif
30464
e6cc62c6
VS
30465int
30466main ()
30467{
30468return f != $ac_func;
30469 ;
30470 return 0;
30471}
30472_ACEOF
30473rm -f conftest.$ac_objext conftest$ac_exeext
30474if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 30475 (eval $ac_link) 2>conftest.er1
e6cc62c6 30476 ac_status=$?
f95e4495
VS
30477 grep -v '^ *+' conftest.er1 >conftest.err
30478 rm -f conftest.er1
30479 cat conftest.err >&5
e6cc62c6
VS
30480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30481 (exit $ac_status); } &&
f95e4495
VS
30482 { ac_try='test -z "$ac_c_werror_flag"
30483 || test ! -s conftest.err'
30484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30485 (eval $ac_try) 2>&5
30486 ac_status=$?
30487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30488 (exit $ac_status); }; } &&
30489 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30491 (eval $ac_try) 2>&5
30492 ac_status=$?
30493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30494 (exit $ac_status); }; }; then
30495 eval "$as_ac_var=yes"
30496else
30497 echo "$as_me: failed program was:" >&5
30498sed 's/^/| /' conftest.$ac_ext >&5
30499
30500eval "$as_ac_var=no"
30501fi
f95e4495
VS
30502rm -f conftest.err conftest.$ac_objext \
30503 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30504fi
30505echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30506echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30507if test `eval echo '${'$as_ac_var'}'` = yes; then
30508 cat >>confdefs.h <<_ACEOF
30509#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30510_ACEOF
30511 cat >>confdefs.h <<\_ACEOF
4f14bcd8 30512#define HAVE_INET_ADDR 1
e6cc62c6 30513_ACEOF
10f2d63a
VZ
30514
30515else
e6cc62c6
VS
30516
30517 echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
30518echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6
30519if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
30520 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 30521else
e6cc62c6 30522 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 30523LIBS="-lnsl $LIBS"
e6cc62c6 30524cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30525/* confdefs.h. */
30526_ACEOF
30527cat confdefs.h >>conftest.$ac_ext
30528cat >>conftest.$ac_ext <<_ACEOF
30529/* end confdefs.h. */
30530
10f2d63a 30531/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30532#ifdef __cplusplus
30533extern "C"
30534#endif
10f2d63a 30535/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30536 builtin and then its argument prototype would still apply. */
30537char inet_addr ();
30538int
30539main ()
30540{
30541inet_addr ();
30542 ;
30543 return 0;
30544}
30545_ACEOF
30546rm -f conftest.$ac_objext conftest$ac_exeext
30547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 30548 (eval $ac_link) 2>conftest.er1
e6cc62c6 30549 ac_status=$?
f95e4495
VS
30550 grep -v '^ *+' conftest.er1 >conftest.err
30551 rm -f conftest.er1
30552 cat conftest.err >&5
e6cc62c6
VS
30553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30554 (exit $ac_status); } &&
f95e4495
VS
30555 { ac_try='test -z "$ac_c_werror_flag"
30556 || test ! -s conftest.err'
30557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30558 (eval $ac_try) 2>&5
30559 ac_status=$?
30560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30561 (exit $ac_status); }; } &&
30562 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30564 (eval $ac_try) 2>&5
30565 ac_status=$?
30566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30567 (exit $ac_status); }; }; then
30568 ac_cv_lib_nsl_inet_addr=yes
30569else
30570 echo "$as_me: failed program was:" >&5
30571sed 's/^/| /' conftest.$ac_ext >&5
30572
30573ac_cv_lib_nsl_inet_addr=no
30574fi
f95e4495
VS
30575rm -f conftest.err conftest.$ac_objext \
30576 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30577LIBS=$ac_check_lib_save_LIBS
30578fi
30579echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
30580echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6
30581if test $ac_cv_lib_nsl_inet_addr = yes; then
4f14bcd8 30582 INET_LINK="nsl"
10f2d63a 30583else
0e012a93
VZ
30584
30585 echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
e6cc62c6
VS
30586echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6
30587if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
30588 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 30589else
e6cc62c6 30590 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 30591LIBS="-lresolv $LIBS"
e6cc62c6 30592cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30593/* confdefs.h. */
30594_ACEOF
30595cat confdefs.h >>conftest.$ac_ext
30596cat >>conftest.$ac_ext <<_ACEOF
30597/* end confdefs.h. */
30598
5c6fa7d2 30599/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30600#ifdef __cplusplus
30601extern "C"
30602#endif
5c6fa7d2 30603/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30604 builtin and then its argument prototype would still apply. */
30605char inet_addr ();
30606int
30607main ()
30608{
30609inet_addr ();
30610 ;
30611 return 0;
30612}
30613_ACEOF
30614rm -f conftest.$ac_objext conftest$ac_exeext
30615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 30616 (eval $ac_link) 2>conftest.er1
e6cc62c6 30617 ac_status=$?
f95e4495
VS
30618 grep -v '^ *+' conftest.er1 >conftest.err
30619 rm -f conftest.er1
30620 cat conftest.err >&5
e6cc62c6
VS
30621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622 (exit $ac_status); } &&
f95e4495
VS
30623 { ac_try='test -z "$ac_c_werror_flag"
30624 || test ! -s conftest.err'
30625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30626 (eval $ac_try) 2>&5
30627 ac_status=$?
30628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30629 (exit $ac_status); }; } &&
30630 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30632 (eval $ac_try) 2>&5
30633 ac_status=$?
30634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30635 (exit $ac_status); }; }; then
30636 ac_cv_lib_resolv_inet_addr=yes
30637else
30638 echo "$as_me: failed program was:" >&5
30639sed 's/^/| /' conftest.$ac_ext >&5
30640
30641ac_cv_lib_resolv_inet_addr=no
30642fi
f95e4495
VS
30643rm -f conftest.err conftest.$ac_objext \
30644 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30645LIBS=$ac_check_lib_save_LIBS
30646fi
30647echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
30648echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6
30649if test $ac_cv_lib_resolv_inet_addr = yes; then
4f14bcd8 30650 INET_LINK="resolv"
698dcdb6 30651else
0e012a93
VZ
30652
30653 echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
e6cc62c6
VS
30654echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6
30655if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
30656 echo $ECHO_N "(cached) $ECHO_C" >&6
3c011993 30657else
e6cc62c6 30658 ac_check_lib_save_LIBS=$LIBS
3c011993 30659LIBS="-lsocket $LIBS"
e6cc62c6 30660cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30661/* confdefs.h. */
30662_ACEOF
30663cat confdefs.h >>conftest.$ac_ext
30664cat >>conftest.$ac_ext <<_ACEOF
30665/* end confdefs.h. */
30666
3c011993 30667/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
30668#ifdef __cplusplus
30669extern "C"
30670#endif
3c011993 30671/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
30672 builtin and then its argument prototype would still apply. */
30673char inet_addr ();
30674int
30675main ()
30676{
30677inet_addr ();
30678 ;
30679 return 0;
30680}
30681_ACEOF
30682rm -f conftest.$ac_objext conftest$ac_exeext
30683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 30684 (eval $ac_link) 2>conftest.er1
e6cc62c6 30685 ac_status=$?
f95e4495
VS
30686 grep -v '^ *+' conftest.er1 >conftest.err
30687 rm -f conftest.er1
30688 cat conftest.err >&5
e6cc62c6
VS
30689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30690 (exit $ac_status); } &&
f95e4495
VS
30691 { ac_try='test -z "$ac_c_werror_flag"
30692 || test ! -s conftest.err'
30693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30694 (eval $ac_try) 2>&5
30695 ac_status=$?
30696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30697 (exit $ac_status); }; } &&
30698 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30700 (eval $ac_try) 2>&5
30701 ac_status=$?
30702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30703 (exit $ac_status); }; }; then
30704 ac_cv_lib_socket_inet_addr=yes
30705else
30706 echo "$as_me: failed program was:" >&5
30707sed 's/^/| /' conftest.$ac_ext >&5
30708
30709ac_cv_lib_socket_inet_addr=no
30710fi
f95e4495
VS
30711rm -f conftest.err conftest.$ac_objext \
30712 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30713LIBS=$ac_check_lib_save_LIBS
30714fi
30715echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
30716echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6
30717if test $ac_cv_lib_socket_inet_addr = yes; then
30718 INET_LINK="socket"
4f14bcd8 30719
8284b0c5 30720fi
e6cc62c6 30721
698dcdb6 30722
0e012a93 30723
7b4a847f 30724fi
e6cc62c6
VS
30725
30726
0e012a93 30727
a0b9e27f 30728fi
579d8138 30729
e6cc62c6
VS
30730
30731
5c6fa7d2 30732fi
e6cc62c6
VS
30733done
30734
30735
30736
30737for ac_func in inet_aton
30738do
30739as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
30740echo "$as_me:$LINENO: checking for $ac_func" >&5
30741echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
30742if eval "test \"\${$as_ac_var+set}\" = set"; then
30743 echo $ECHO_N "(cached) $ECHO_C" >&6
30744else
30745 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30746/* confdefs.h. */
30747_ACEOF
30748cat confdefs.h >>conftest.$ac_ext
30749cat >>conftest.$ac_ext <<_ACEOF
30750/* end confdefs.h. */
f95e4495
VS
30751/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30753#define $ac_func innocuous_$ac_func
30754
e6cc62c6
VS
30755/* System header to define __stub macros and hopefully few prototypes,
30756 which can conflict with char $ac_func (); below.
30757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30758 <limits.h> exists even on freestanding compilers. */
f95e4495 30759
e6cc62c6
VS
30760#ifdef __STDC__
30761# include <limits.h>
30762#else
30763# include <assert.h>
30764#endif
f95e4495
VS
30765
30766#undef $ac_func
30767
e6cc62c6
VS
30768/* Override any gcc2 internal prototype to avoid an error. */
30769#ifdef __cplusplus
30770extern "C"
30771{
30772#endif
30773/* We use char because int might match the return type of a gcc2
30774 builtin and then its argument prototype would still apply. */
30775char $ac_func ();
30776/* The GNU C library defines this for functions which it implements
30777 to always fail with ENOSYS. Some functions are actually named
30778 something starting with __ and the normal name is an alias. */
30779#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
30780choke me
30781#else
30782char (*f) () = $ac_func;
30783#endif
30784#ifdef __cplusplus
30785}
30786#endif
30787
30788int
30789main ()
30790{
30791return f != $ac_func;
30792 ;
30793 return 0;
30794}
30795_ACEOF
30796rm -f conftest.$ac_objext conftest$ac_exeext
30797if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 30798 (eval $ac_link) 2>conftest.er1
e6cc62c6 30799 ac_status=$?
f95e4495
VS
30800 grep -v '^ *+' conftest.er1 >conftest.err
30801 rm -f conftest.er1
30802 cat conftest.err >&5
e6cc62c6
VS
30803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30804 (exit $ac_status); } &&
f95e4495
VS
30805 { ac_try='test -z "$ac_c_werror_flag"
30806 || test ! -s conftest.err'
30807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30808 (eval $ac_try) 2>&5
30809 ac_status=$?
30810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30811 (exit $ac_status); }; } &&
30812 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30814 (eval $ac_try) 2>&5
30815 ac_status=$?
30816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817 (exit $ac_status); }; }; then
30818 eval "$as_ac_var=yes"
30819else
30820 echo "$as_me: failed program was:" >&5
30821sed 's/^/| /' conftest.$ac_ext >&5
30822
30823eval "$as_ac_var=no"
30824fi
f95e4495
VS
30825rm -f conftest.err conftest.$ac_objext \
30826 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30827fi
30828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
30829echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
30830if test `eval echo '${'$as_ac_var'}'` = yes; then
30831 cat >>confdefs.h <<_ACEOF
30832#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
30833_ACEOF
30834 cat >>confdefs.h <<\_ACEOF
30835#define HAVE_INET_ATON 1
30836_ACEOF
30837
30838else
30839
30840 as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
30841echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
30842echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6
30843if eval "test \"\${$as_ac_Lib+set}\" = set"; then
30844 echo $ECHO_N "(cached) $ECHO_C" >&6
30845else
30846 ac_check_lib_save_LIBS=$LIBS
30847LIBS="-l$INET_LINK $LIBS"
30848cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
30849/* confdefs.h. */
30850_ACEOF
30851cat confdefs.h >>conftest.$ac_ext
30852cat >>conftest.$ac_ext <<_ACEOF
30853/* end confdefs.h. */
30854
30855/* Override any gcc2 internal prototype to avoid an error. */
30856#ifdef __cplusplus
30857extern "C"
30858#endif
30859/* We use char because int might match the return type of a gcc2
30860 builtin and then its argument prototype would still apply. */
30861char inet_aton ();
30862int
30863main ()
30864{
30865inet_aton ();
30866 ;
30867 return 0;
30868}
30869_ACEOF
30870rm -f conftest.$ac_objext conftest$ac_exeext
30871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 30872 (eval $ac_link) 2>conftest.er1
e6cc62c6 30873 ac_status=$?
f95e4495
VS
30874 grep -v '^ *+' conftest.er1 >conftest.err
30875 rm -f conftest.er1
30876 cat conftest.err >&5
e6cc62c6
VS
30877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878 (exit $ac_status); } &&
f95e4495
VS
30879 { ac_try='test -z "$ac_c_werror_flag"
30880 || test ! -s conftest.err'
30881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30882 (eval $ac_try) 2>&5
30883 ac_status=$?
30884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30885 (exit $ac_status); }; } &&
30886 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
30887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30888 (eval $ac_try) 2>&5
30889 ac_status=$?
30890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30891 (exit $ac_status); }; }; then
30892 eval "$as_ac_Lib=yes"
30893else
30894 echo "$as_me: failed program was:" >&5
30895sed 's/^/| /' conftest.$ac_ext >&5
30896
30897eval "$as_ac_Lib=no"
30898fi
f95e4495
VS
30899rm -f conftest.err conftest.$ac_objext \
30900 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
30901LIBS=$ac_check_lib_save_LIBS
30902fi
30903echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
30904echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
30905if test `eval echo '${'$as_ac_Lib'}'` = yes; then
30906 cat >>confdefs.h <<\_ACEOF
30907#define HAVE_INET_ATON 1
30908_ACEOF
52127426 30909
a0b9e27f 30910fi
247f5006 30911
8284b0c5 30912
698dcdb6 30913fi
4f14bcd8
GD
30914done
30915
8284b0c5 30916
e6cc62c6
VS
30917if test "x$INET_LINK" != "x"; then
30918 cat >>confdefs.h <<\_ACEOF
30919#define HAVE_INET_ADDR 1
30920_ACEOF
30921
30922 INET_LINK=" -l$INET_LINK"
30923fi
30924
30925fi
a0b9e27f 30926
a0b9e27f 30927
4f14bcd8 30928
edd891e2
VS
30929EXTRALIBS_ESD=
30930echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5
30931echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6
30932if test "${ac_cv_lib_esd_esd_close+set}" = set; then
30933 echo $ECHO_N "(cached) $ECHO_C" >&6
30934else
30935 ac_check_lib_save_LIBS=$LIBS
30936LIBS="-lesd $LIBS"
30937cat >conftest.$ac_ext <<_ACEOF
edd891e2
VS
30938/* confdefs.h. */
30939_ACEOF
30940cat confdefs.h >>conftest.$ac_ext
30941cat >>conftest.$ac_ext <<_ACEOF
30942/* end confdefs.h. */
30943
30944/* Override any gcc2 internal prototype to avoid an error. */
30945#ifdef __cplusplus
30946extern "C"
30947#endif
30948/* We use char because int might match the return type of a gcc2
30949 builtin and then its argument prototype would still apply. */
30950char esd_close ();
30951int
30952main ()
30953{
30954esd_close ();
30955 ;
30956 return 0;
30957}
30958_ACEOF
30959rm -f conftest.$ac_objext conftest$ac_exeext
30960if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 30961 (eval $ac_link) 2>conftest.er1
edd891e2 30962 ac_status=$?
f95e4495
VS
30963 grep -v '^ *+' conftest.er1 >conftest.err
30964 rm -f conftest.er1
30965 cat conftest.err >&5
edd891e2
VS
30966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30967 (exit $ac_status); } &&
f95e4495
VS
30968 { ac_try='test -z "$ac_c_werror_flag"
30969 || test ! -s conftest.err'
30970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30971 (eval $ac_try) 2>&5
30972 ac_status=$?
30973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30974 (exit $ac_status); }; } &&
30975 { ac_try='test -s conftest$ac_exeext'
edd891e2
VS
30976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30977 (eval $ac_try) 2>&5
30978 ac_status=$?
30979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30980 (exit $ac_status); }; }; then
30981 ac_cv_lib_esd_esd_close=yes
30982else
30983 echo "$as_me: failed program was:" >&5
30984sed 's/^/| /' conftest.$ac_ext >&5
30985
30986ac_cv_lib_esd_esd_close=no
30987fi
f95e4495
VS
30988rm -f conftest.err conftest.$ac_objext \
30989 conftest$ac_exeext conftest.$ac_ext
edd891e2
VS
30990LIBS=$ac_check_lib_save_LIBS
30991fi
30992echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5
30993echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6
30994if test $ac_cv_lib_esd_esd_close = yes; then
30995
30996
30997for ac_header in esd.h
30998do
30999as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31000if eval "test \"\${$as_ac_Header+set}\" = set"; then
31001 echo "$as_me:$LINENO: checking for $ac_header" >&5
31002echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31003if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
31004 echo $ECHO_N "(cached) $ECHO_C" >&6
31005fi
edd891e2
VS
31006echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31007echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
e6cc62c6
VS
31008else
31009 # Is the header compilable?
edd891e2
VS
31010echo "$as_me:$LINENO: checking $ac_header usability" >&5
31011echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
e6cc62c6 31012cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31013/* confdefs.h. */
31014_ACEOF
31015cat confdefs.h >>conftest.$ac_ext
31016cat >>conftest.$ac_ext <<_ACEOF
31017/* end confdefs.h. */
31018$ac_includes_default
edd891e2 31019#include <$ac_header>
e6cc62c6
VS
31020_ACEOF
31021rm -f conftest.$ac_objext
31022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 31023 (eval $ac_compile) 2>conftest.er1
e6cc62c6 31024 ac_status=$?
f95e4495
VS
31025 grep -v '^ *+' conftest.er1 >conftest.err
31026 rm -f conftest.er1
31027 cat conftest.err >&5
e6cc62c6
VS
31028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31029 (exit $ac_status); } &&
f95e4495
VS
31030 { ac_try='test -z "$ac_c_werror_flag"
31031 || test ! -s conftest.err'
31032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31033 (eval $ac_try) 2>&5
31034 ac_status=$?
31035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31036 (exit $ac_status); }; } &&
31037 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
31038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31039 (eval $ac_try) 2>&5
31040 ac_status=$?
31041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31042 (exit $ac_status); }; }; then
31043 ac_header_compiler=yes
31044else
31045 echo "$as_me: failed program was:" >&5
31046sed 's/^/| /' conftest.$ac_ext >&5
31047
31048ac_header_compiler=no
31049fi
f95e4495 31050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
31051echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31052echo "${ECHO_T}$ac_header_compiler" >&6
31053
31054# Is the header present?
edd891e2
VS
31055echo "$as_me:$LINENO: checking $ac_header presence" >&5
31056echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
e6cc62c6 31057cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31058/* confdefs.h. */
31059_ACEOF
31060cat confdefs.h >>conftest.$ac_ext
31061cat >>conftest.$ac_ext <<_ACEOF
31062/* end confdefs.h. */
edd891e2 31063#include <$ac_header>
e6cc62c6
VS
31064_ACEOF
31065if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31067 ac_status=$?
31068 grep -v '^ *+' conftest.er1 >conftest.err
31069 rm -f conftest.er1
31070 cat conftest.err >&5
31071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072 (exit $ac_status); } >/dev/null; then
31073 if test -s conftest.err; then
31074 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 31075 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
31076 else
31077 ac_cpp_err=
31078 fi
a0b9e27f 31079else
e6cc62c6
VS
31080 ac_cpp_err=yes
31081fi
31082if test -z "$ac_cpp_err"; then
31083 ac_header_preproc=yes
31084else
31085 echo "$as_me: failed program was:" >&5
31086sed 's/^/| /' conftest.$ac_ext >&5
31087
31088 ac_header_preproc=no
31089fi
31090rm -f conftest.err conftest.$ac_ext
31091echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31092echo "${ECHO_T}$ac_header_preproc" >&6
31093
31094# So? What about this header?
f95e4495
VS
31095case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31096 yes:no: )
edd891e2
VS
31097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31098echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
31099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31100echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31101 ac_header_preproc=yes
e6cc62c6 31102 ;;
f95e4495 31103 no:yes:* )
edd891e2
VS
31104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31105echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
31106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31107echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31109echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31111echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
edd891e2
VS
31112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31113echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
31114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31115echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
31116 (
31117 cat <<\_ASBOX
f95e4495
VS
31118## ----------------------------------------- ##
31119## Report this to wx-dev@lists.wxwindows.org ##
31120## ----------------------------------------- ##
e6cc62c6
VS
31121_ASBOX
31122 ) |
31123 sed "s/^/$as_me: WARNING: /" >&2
31124 ;;
31125esac
edd891e2
VS
31126echo "$as_me:$LINENO: checking for $ac_header" >&5
31127echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31128if eval "test \"\${$as_ac_Header+set}\" = set"; then
e6cc62c6
VS
31129 echo $ECHO_N "(cached) $ECHO_C" >&6
31130else
f95e4495 31131 eval "$as_ac_Header=\$ac_header_preproc"
a0b9e27f 31132fi
edd891e2
VS
31133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31134echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
a0b9e27f 31135
e6cc62c6 31136fi
edd891e2
VS
31137if test `eval echo '${'$as_ac_Header'}'` = yes; then
31138 cat >>confdefs.h <<_ACEOF
31139#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
e6cc62c6 31140_ACEOF
e6cc62c6 31141
edd891e2 31142 EXTRALIBS_ESD="-lesd"
4f14bcd8 31143
a0b9e27f 31144fi
247f5006 31145
edd891e2 31146done
8284b0c5 31147
4f14bcd8 31148
6232543b 31149fi
10f2d63a 31150
703e0a69 31151
8284b0c5 31152
d19d1899
MB
31153echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5
31154echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6
31155cat >conftest.$ac_ext <<_ACEOF
d19d1899
MB
31156/* confdefs.h. */
31157_ACEOF
31158cat confdefs.h >>conftest.$ac_ext
31159cat >>conftest.$ac_ext <<_ACEOF
31160/* end confdefs.h. */
31161#ifdef __linux__
31162 #include <linux/cdrom.h>
31163 #else
31164 /* For Solaris */
31165 #include <sys/cdio.h>
31166 #endif
31167
31168int
31169main ()
31170{
31171struct cdrom_tocentry entry, old_entry;
31172 ;
31173 return 0;
31174}
31175_ACEOF
31176rm -f conftest.$ac_objext
31177if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 31178 (eval $ac_compile) 2>conftest.er1
d19d1899 31179 ac_status=$?
f95e4495
VS
31180 grep -v '^ *+' conftest.er1 >conftest.err
31181 rm -f conftest.er1
31182 cat conftest.err >&5
d19d1899
MB
31183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31184 (exit $ac_status); } &&
f95e4495
VS
31185 { ac_try='test -z "$ac_c_werror_flag"
31186 || test ! -s conftest.err'
31187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31188 (eval $ac_try) 2>&5
31189 ac_status=$?
31190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31191 (exit $ac_status); }; } &&
31192 { ac_try='test -s conftest.$ac_objext'
d19d1899
MB
31193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31194 (eval $ac_try) 2>&5
31195 ac_status=$?
31196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31197 (exit $ac_status); }; }; then
31198 echo "$as_me:$LINENO: result: yes" >&5
31199echo "${ECHO_T}yes" >&6
31200 cat >>confdefs.h <<\_ACEOF
31201#define HAVE_KNOWN_CDROM_INTERFACE 1
31202_ACEOF
31203
31204else
31205 echo "$as_me: failed program was:" >&5
31206sed 's/^/| /' conftest.$ac_ext >&5
31207
31208echo "$as_me:$LINENO: result: no" >&5
31209echo "${ECHO_T}no" >&6
31210fi
f95e4495 31211rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
31212
31213
31214cat >confcache <<\_ACEOF
4f14bcd8
GD
31215# This file is a shell script that caches the results of configure
31216# tests run on this system so they can be shared between configure
e6cc62c6
VS
31217# scripts and configure runs, see configure's option --config-cache.
31218# It is not useful on other systems. If it contains results you don't
31219# want to keep, you may remove or edit it.
4f14bcd8 31220#
e6cc62c6
VS
31221# config.status only pays attention to the cache file if you give it
31222# the --recheck option to rerun configure.
4f14bcd8 31223#
e6cc62c6
VS
31224# `ac_cv_env_foo' variables (set or unset) will be overridden when
31225# loading this file, other *unset* `ac_cv_foo' will be assigned the
31226# following values.
31227
31228_ACEOF
31229
4f14bcd8
GD
31230# The following way of writing the cache mishandles newlines in values,
31231# but we know of no workaround that is simple, portable, and efficient.
31232# So, don't put newlines in cache variables' values.
31233# Ultrix sh set writes to stderr and can't be redirected directly,
31234# and sets the high bit in the cache file unless we assign to the vars.
e6cc62c6
VS
31235{
31236 (set) 2>&1 |
31237 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31238 *ac_space=\ *)
31239 # `set' does not quote correctly, so add quotes (double-quote
31240 # substitution turns \\\\ into \\, and sed turns \\ into \).
31241 sed -n \
f95e4495
VS
31242 "s/'/'\\\\''/g;
31243 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
31244 ;;
31245 *)
31246 # `set' quotes correctly as required by POSIX, so do not add quotes.
31247 sed -n \
f95e4495 31248 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
31249 ;;
31250 esac;
31251} |
31252 sed '
31253 t clear
31254 : clear
31255 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31256 t end
31257 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31258 : end' >>confcache
31259if diff $cache_file confcache >/dev/null 2>&1; then :; else
4f14bcd8 31260 if test -w $cache_file; then
e6cc62c6
VS
31261 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31262 cat confcache >$cache_file
f6bcfd97 31263 else
4f14bcd8 31264 echo "not updating unwritable cache $cache_file"
f6bcfd97 31265 fi
4f14bcd8
GD
31266fi
31267rm -f confcache
f6bcfd97 31268
8284b0c5 31269
009fead0 31270CPP_MT_FLAG=
73d617c9 31271if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
4f14bcd8 31272
e6cc62c6 31273
7274f1c7 31274 THREADS_LINK=
009fead0 31275 THREADS_CFLAGS=
7274f1c7
RL
31276
31277 if test "$wxUSE_THREADS" = "yes" ; then
89e6bf6d 31278 if test "$USE_BEOS" = 1; then
e6cc62c6
VS
31279 { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
31280echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
7274f1c7
RL
31281 wxUSE_THREADS="no"
31282 fi
4f14bcd8 31283 fi
4f14bcd8 31284
7274f1c7 31285 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
31286
31287
009fead0
VZ
31288 THREAD_OPTS="-pthread"
31289 case "${host}" in
31290 *-*-solaris2* | *-*-sunos4* )
31291 if test "x$GCC" = "xyes"; then
126be6b4 31292 THREAD_OPTS="-pthreads $THREAD_OPTS"
009fead0
VZ
31293 else
31294 THREAD_OPTS="-mt $THREAD_OPTS"
31295 fi
31296 ;;
31297 *-*-freebsd*)
31298 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
31299 ;;
17234b26
MB
31300 *-*-darwin* | *-*-cygwin* )
31301 THREAD_OPTS=""
4101db81 31302 ;;
8f4a9a10 31303 *-*-aix*)
009fead0
VZ
31304 THREAD_OPTS="pthreads"
31305 ;;
4f5a7f74
VZ
31306 *-hp-hpux* )
31307 if test "x$GCC" != "xyes"; then
31308 THREAD_OPTS=""
31309 fi
89e3b3e4
VZ
31310 ;;
31311
31312 *-*-irix* )
31313 if test "x$GCC" = "xyes"; then
31314 THREAD_OPTS=""
31315 fi
31316 ;;
31317
31318 *-*-*UnixWare*)
31319 if test "x$GCC" != "xyes"; then
31320 THREAD_OPTS="-Ethread"
31321 fi
31322 ;;
009fead0 31323 esac
4f14bcd8 31324
02a1dfba 31325 THREAD_OPTS="$THREAD_OPTS pthread none"
595e0e44 31326
009fead0
VZ
31327 THREADS_OK=no
31328 for flag in $THREAD_OPTS; do
31329 case $flag in
31330 none)
e6cc62c6
VS
31331 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
31332echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
009fead0 31333 ;;
698dcdb6 31334
009fead0 31335 -*)
e6cc62c6
VS
31336 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
31337echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
009fead0
VZ
31338 THREADS_CFLAGS="$flag"
31339 ;;
698dcdb6 31340
009fead0 31341 *)
e6cc62c6
VS
31342 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
31343echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
009fead0
VZ
31344 THREADS_LINK="-l$flag"
31345 ;;
31346 esac
10f2d63a 31347
009fead0
VZ
31348 save_LIBS="$LIBS"
31349 save_CFLAGS="$CFLAGS"
31350 LIBS="$THREADS_LINK $LIBS"
04727afd 31351 CFLAGS="$THREADS_CFLAGS $CFLAGS"
10f2d63a 31352
e6cc62c6 31353 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31354/* confdefs.h. */
31355_ACEOF
31356cat confdefs.h >>conftest.$ac_ext
31357cat >>conftest.$ac_ext <<_ACEOF
31358/* end confdefs.h. */
009fead0 31359#include <pthread.h>
e6cc62c6
VS
31360int
31361main ()
31362{
009fead0 31363pthread_create(0,0,0,0);
e6cc62c6
VS
31364 ;
31365 return 0;
31366}
31367_ACEOF
31368rm -f conftest.$ac_objext conftest$ac_exeext
31369if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 31370 (eval $ac_link) 2>conftest.er1
e6cc62c6 31371 ac_status=$?
f95e4495
VS
31372 grep -v '^ *+' conftest.er1 >conftest.err
31373 rm -f conftest.er1
31374 cat conftest.err >&5
e6cc62c6
VS
31375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31376 (exit $ac_status); } &&
f95e4495
VS
31377 { ac_try='test -z "$ac_c_werror_flag"
31378 || test ! -s conftest.err'
31379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31380 (eval $ac_try) 2>&5
31381 ac_status=$?
31382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31383 (exit $ac_status); }; } &&
31384 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31386 (eval $ac_try) 2>&5
31387 ac_status=$?
31388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31389 (exit $ac_status); }; }; then
009fead0 31390 THREADS_OK=yes
10f2d63a 31391else
e6cc62c6
VS
31392 echo "$as_me: failed program was:" >&5
31393sed 's/^/| /' conftest.$ac_ext >&5
31394
6232543b 31395fi
f95e4495
VS
31396rm -f conftest.err conftest.$ac_objext \
31397 conftest$ac_exeext conftest.$ac_ext
698dcdb6 31398
009fead0
VZ
31399 LIBS="$save_LIBS"
31400 CFLAGS="$save_CFLAGS"
d9b9876f 31401
e6cc62c6
VS
31402 echo "$as_me:$LINENO: result: $THREADS_OK" >&5
31403echo "${ECHO_T}$THREADS_OK" >&6
009fead0
VZ
31404 if test "x$THREADS_OK" = "xyes"; then
31405 break;
31406 fi
d9b9876f 31407
009fead0
VZ
31408 THREADS_LINK=""
31409 THREADS_CFLAGS=""
31410 done
4f14bcd8 31411
009fead0
VZ
31412 if test "x$THREADS_OK" != "xyes"; then
31413 wxUSE_THREADS=no
e6cc62c6
VS
31414 { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
31415echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
009fead0 31416 else
db82f09e
VZ
31417 LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
31418 LIBS="$THREADS_LINK $LIBS"
fe5a9cab 31419
e6cc62c6
VS
31420 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
31421echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
009fead0
VZ
31422 flag=no
31423 case "${host}" in
2b5f62a0
VZ
31424 *-aix*)
31425 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
31426 flag="-D_THREAD_SAFE"
31427 ;;
31428 *-freebsd*)
009fead0
VZ
31429 flag="-D_THREAD_SAFE"
31430 ;;
06313569
GD
31431 *-hp-hpux* )
31432 flag="-D_REENTRANT"
4f5a7f74
VZ
31433 if test "x$GCC" != "xyes"; then
31434 flag="$flag -D_RWSTD_MULTI_THREAD"
31435 fi
06313569 31436 ;;
009fead0
VZ
31437 *solaris* | alpha*-osf*)
31438 flag="-D_REENTRANT"
31439 ;;
31440 esac
e6cc62c6
VS
31441 echo "$as_me:$LINENO: result: ${flag}" >&5
31442echo "${ECHO_T}${flag}" >&6
009fead0 31443 if test "x$flag" != xno; then
04727afd 31444 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
009fead0
VZ
31445 fi
31446
009fead0 31447 if test "x$THREADS_CFLAGS" != "x"; then
04727afd 31448 CFLAGS="$CFLAGS $THREADS_CFLAGS"
009fead0
VZ
31449 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
31450 fi
31451 fi
4f14bcd8 31452 fi
4f14bcd8 31453
7274f1c7 31454 if test "$wxUSE_THREADS" = "yes" ; then
e6cc62c6
VS
31455
31456for ac_func in thr_setconcurrency
4f14bcd8 31457do
e6cc62c6
VS
31458as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31459echo "$as_me:$LINENO: checking for $ac_func" >&5
31460echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
31461if eval "test \"\${$as_ac_var+set}\" = set"; then
31462 echo $ECHO_N "(cached) $ECHO_C" >&6
31463else
31464 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31465/* confdefs.h. */
31466_ACEOF
31467cat confdefs.h >>conftest.$ac_ext
31468cat >>conftest.$ac_ext <<_ACEOF
31469/* end confdefs.h. */
f95e4495
VS
31470/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31472#define $ac_func innocuous_$ac_func
31473
4f14bcd8 31474/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31475 which can conflict with char $ac_func (); below.
31476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31477 <limits.h> exists even on freestanding compilers. */
f95e4495 31478
e6cc62c6
VS
31479#ifdef __STDC__
31480# include <limits.h>
31481#else
31482# include <assert.h>
31483#endif
f95e4495
VS
31484
31485#undef $ac_func
31486
4f14bcd8 31487/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31488#ifdef __cplusplus
31489extern "C"
31490{
31491#endif
4f14bcd8 31492/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31493 builtin and then its argument prototype would still apply. */
31494char $ac_func ();
4f14bcd8
GD
31495/* The GNU C library defines this for functions which it implements
31496 to always fail with ENOSYS. Some functions are actually named
31497 something starting with __ and the normal name is an alias. */
31498#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
31499choke me
31500#else
e6cc62c6
VS
31501char (*f) () = $ac_func;
31502#endif
31503#ifdef __cplusplus
31504}
4f14bcd8
GD
31505#endif
31506
e6cc62c6
VS
31507int
31508main ()
31509{
31510return f != $ac_func;
31511 ;
31512 return 0;
31513}
31514_ACEOF
31515rm -f conftest.$ac_objext conftest$ac_exeext
31516if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 31517 (eval $ac_link) 2>conftest.er1
e6cc62c6 31518 ac_status=$?
f95e4495
VS
31519 grep -v '^ *+' conftest.er1 >conftest.err
31520 rm -f conftest.er1
31521 cat conftest.err >&5
e6cc62c6
VS
31522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31523 (exit $ac_status); } &&
f95e4495
VS
31524 { ac_try='test -z "$ac_c_werror_flag"
31525 || test ! -s conftest.err'
31526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31527 (eval $ac_try) 2>&5
31528 ac_status=$?
31529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31530 (exit $ac_status); }; } &&
31531 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31533 (eval $ac_try) 2>&5
31534 ac_status=$?
31535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31536 (exit $ac_status); }; }; then
31537 eval "$as_ac_var=yes"
31538else
31539 echo "$as_me: failed program was:" >&5
31540sed 's/^/| /' conftest.$ac_ext >&5
31541
31542eval "$as_ac_var=no"
31543fi
f95e4495
VS
31544rm -f conftest.err conftest.$ac_objext \
31545 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31546fi
31547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
31548echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
31549if test `eval echo '${'$as_ac_var'}'` = yes; then
31550 cat >>confdefs.h <<_ACEOF
31551#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
31552_ACEOF
698dcdb6 31553
10f2d63a 31554fi
4f14bcd8 31555done
10f2d63a 31556
8284b0c5 31557
e6cc62c6
VS
31558
31559for ac_header in sched.h
4f14bcd8 31560do
e6cc62c6
VS
31561as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31562if eval "test \"\${$as_ac_Header+set}\" = set"; then
31563 echo "$as_me:$LINENO: checking for $ac_header" >&5
31564echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31565if eval "test \"\${$as_ac_Header+set}\" = set"; then
31566 echo $ECHO_N "(cached) $ECHO_C" >&6
31567fi
31568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31569echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31570else
31571 # Is the header compilable?
31572echo "$as_me:$LINENO: checking $ac_header usability" >&5
31573echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31574cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31575/* confdefs.h. */
31576_ACEOF
31577cat confdefs.h >>conftest.$ac_ext
31578cat >>conftest.$ac_ext <<_ACEOF
31579/* end confdefs.h. */
31580$ac_includes_default
31581#include <$ac_header>
31582_ACEOF
31583rm -f conftest.$ac_objext
31584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 31585 (eval $ac_compile) 2>conftest.er1
e6cc62c6 31586 ac_status=$?
f95e4495
VS
31587 grep -v '^ *+' conftest.er1 >conftest.err
31588 rm -f conftest.er1
31589 cat conftest.err >&5
e6cc62c6
VS
31590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31591 (exit $ac_status); } &&
f95e4495
VS
31592 { ac_try='test -z "$ac_c_werror_flag"
31593 || test ! -s conftest.err'
31594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31595 (eval $ac_try) 2>&5
31596 ac_status=$?
31597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31598 (exit $ac_status); }; } &&
31599 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
31600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31601 (eval $ac_try) 2>&5
31602 ac_status=$?
31603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31604 (exit $ac_status); }; }; then
31605 ac_header_compiler=yes
31606else
31607 echo "$as_me: failed program was:" >&5
31608sed 's/^/| /' conftest.$ac_ext >&5
31609
31610ac_header_compiler=no
31611fi
f95e4495 31612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
31613echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31614echo "${ECHO_T}$ac_header_compiler" >&6
31615
31616# Is the header present?
31617echo "$as_me:$LINENO: checking $ac_header presence" >&5
31618echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31619cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31620/* confdefs.h. */
31621_ACEOF
31622cat confdefs.h >>conftest.$ac_ext
31623cat >>conftest.$ac_ext <<_ACEOF
31624/* end confdefs.h. */
31625#include <$ac_header>
31626_ACEOF
31627if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31629 ac_status=$?
31630 grep -v '^ *+' conftest.er1 >conftest.err
31631 rm -f conftest.er1
31632 cat conftest.err >&5
31633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31634 (exit $ac_status); } >/dev/null; then
31635 if test -s conftest.err; then
31636 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 31637 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
31638 else
31639 ac_cpp_err=
31640 fi
31641else
31642 ac_cpp_err=yes
31643fi
31644if test -z "$ac_cpp_err"; then
31645 ac_header_preproc=yes
31646else
31647 echo "$as_me: failed program was:" >&5
31648sed 's/^/| /' conftest.$ac_ext >&5
31649
31650 ac_header_preproc=no
31651fi
31652rm -f conftest.err conftest.$ac_ext
31653echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31654echo "${ECHO_T}$ac_header_preproc" >&6
31655
31656# So? What about this header?
f95e4495
VS
31657case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31658 yes:no: )
e6cc62c6
VS
31659 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31660echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
31661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31662echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31663 ac_header_preproc=yes
e6cc62c6 31664 ;;
f95e4495 31665 no:yes:* )
e6cc62c6
VS
31666 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31667echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
31668 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31669echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31670 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31671echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31672 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31673echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
31674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31675echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
31676 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31677echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
31678 (
31679 cat <<\_ASBOX
f95e4495
VS
31680## ----------------------------------------- ##
31681## Report this to wx-dev@lists.wxwindows.org ##
31682## ----------------------------------------- ##
e6cc62c6
VS
31683_ASBOX
31684 ) |
31685 sed "s/^/$as_me: WARNING: /" >&2
31686 ;;
31687esac
31688echo "$as_me:$LINENO: checking for $ac_header" >&5
31689echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31690if eval "test \"\${$as_ac_Header+set}\" = set"; then
31691 echo $ECHO_N "(cached) $ECHO_C" >&6
31692else
f95e4495 31693 eval "$as_ac_Header=\$ac_header_preproc"
13111b2a 31694fi
e6cc62c6
VS
31695echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31696echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31697
10f2d63a 31698fi
e6cc62c6
VS
31699if test `eval echo '${'$as_ac_Header'}'` = yes; then
31700 cat >>confdefs.h <<_ACEOF
31701#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31702_ACEOF
31703
f6bcfd97 31704fi
e6cc62c6 31705
4f14bcd8 31706done
f6bcfd97 31707
009fead0 31708 if test "$ac_cv_header_sched_h" = "yes"; then
e6cc62c6
VS
31709 echo "$as_me:$LINENO: checking for sched_yield" >&5
31710echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
31711if test "${ac_cv_func_sched_yield+set}" = set; then
31712 echo $ECHO_N "(cached) $ECHO_C" >&6
31713else
31714 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31715/* confdefs.h. */
31716_ACEOF
31717cat confdefs.h >>conftest.$ac_ext
31718cat >>conftest.$ac_ext <<_ACEOF
31719/* end confdefs.h. */
f95e4495
VS
31720/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
31721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31722#define sched_yield innocuous_sched_yield
31723
009fead0 31724/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31725 which can conflict with char sched_yield (); below.
31726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31727 <limits.h> exists even on freestanding compilers. */
f95e4495 31728
e6cc62c6
VS
31729#ifdef __STDC__
31730# include <limits.h>
31731#else
31732# include <assert.h>
31733#endif
f95e4495
VS
31734
31735#undef sched_yield
31736
4f14bcd8 31737/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31738#ifdef __cplusplus
31739extern "C"
31740{
31741#endif
4f14bcd8 31742/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31743 builtin and then its argument prototype would still apply. */
31744char sched_yield ();
009fead0
VZ
31745/* The GNU C library defines this for functions which it implements
31746 to always fail with ENOSYS. Some functions are actually named
31747 something starting with __ and the normal name is an alias. */
31748#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
31749choke me
31750#else
e6cc62c6
VS
31751char (*f) () = sched_yield;
31752#endif
31753#ifdef __cplusplus
31754}
009fead0
VZ
31755#endif
31756
e6cc62c6
VS
31757int
31758main ()
31759{
31760return f != sched_yield;
31761 ;
31762 return 0;
31763}
31764_ACEOF
31765rm -f conftest.$ac_objext conftest$ac_exeext
31766if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 31767 (eval $ac_link) 2>conftest.er1
e6cc62c6 31768 ac_status=$?
f95e4495
VS
31769 grep -v '^ *+' conftest.er1 >conftest.err
31770 rm -f conftest.er1
31771 cat conftest.err >&5
e6cc62c6
VS
31772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31773 (exit $ac_status); } &&
f95e4495
VS
31774 { ac_try='test -z "$ac_c_werror_flag"
31775 || test ! -s conftest.err'
31776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31777 (eval $ac_try) 2>&5
31778 ac_status=$?
31779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31780 (exit $ac_status); }; } &&
31781 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31783 (eval $ac_try) 2>&5
31784 ac_status=$?
31785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31786 (exit $ac_status); }; }; then
31787 ac_cv_func_sched_yield=yes
31788else
31789 echo "$as_me: failed program was:" >&5
31790sed 's/^/| /' conftest.$ac_ext >&5
31791
31792ac_cv_func_sched_yield=no
31793fi
f95e4495
VS
31794rm -f conftest.err conftest.$ac_objext \
31795 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31796fi
31797echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
31798echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
31799if test $ac_cv_func_sched_yield = yes; then
31800 cat >>confdefs.h <<\_ACEOF
4f14bcd8 31801#define HAVE_SCHED_YIELD 1
e6cc62c6 31802_ACEOF
10f2d63a 31803
4f14bcd8 31804else
009fead0 31805
e6cc62c6
VS
31806 echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
31807echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6
31808if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
31809 echo $ECHO_N "(cached) $ECHO_C" >&6
4f14bcd8 31810else
e6cc62c6 31811 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 31812LIBS="-lposix4 $LIBS"
e6cc62c6 31813cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31814/* confdefs.h. */
31815_ACEOF
31816cat confdefs.h >>conftest.$ac_ext
31817cat >>conftest.$ac_ext <<_ACEOF
31818/* end confdefs.h. */
31819
4f14bcd8 31820/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31821#ifdef __cplusplus
31822extern "C"
31823#endif
4f14bcd8 31824/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31825 builtin and then its argument prototype would still apply. */
31826char sched_yield ();
31827int
31828main ()
31829{
31830sched_yield ();
31831 ;
31832 return 0;
31833}
31834_ACEOF
31835rm -f conftest.$ac_objext conftest$ac_exeext
31836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 31837 (eval $ac_link) 2>conftest.er1
e6cc62c6 31838 ac_status=$?
f95e4495
VS
31839 grep -v '^ *+' conftest.er1 >conftest.err
31840 rm -f conftest.er1
31841 cat conftest.err >&5
e6cc62c6
VS
31842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31843 (exit $ac_status); } &&
f95e4495
VS
31844 { ac_try='test -z "$ac_c_werror_flag"
31845 || test ! -s conftest.err'
31846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31847 (eval $ac_try) 2>&5
31848 ac_status=$?
31849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); }; } &&
31851 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31853 (eval $ac_try) 2>&5
31854 ac_status=$?
31855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31856 (exit $ac_status); }; }; then
31857 ac_cv_lib_posix4_sched_yield=yes
31858else
31859 echo "$as_me: failed program was:" >&5
31860sed 's/^/| /' conftest.$ac_ext >&5
31861
31862ac_cv_lib_posix4_sched_yield=no
31863fi
f95e4495
VS
31864rm -f conftest.err conftest.$ac_objext \
31865 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31866LIBS=$ac_check_lib_save_LIBS
31867fi
31868echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
31869echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6
31870if test $ac_cv_lib_posix4_sched_yield = yes; then
31871 cat >>confdefs.h <<\_ACEOF
4f14bcd8 31872#define HAVE_SCHED_YIELD 1
e6cc62c6 31873_ACEOF
3d63bc3a 31874 POSIX4_LINK=" -lposix4"
4f14bcd8 31875else
e6cc62c6
VS
31876 { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
31877echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
31878
54276ccf
VZ
31879fi
31880
e6cc62c6
VS
31881
31882
4f14bcd8 31883fi
698dcdb6 31884
009fead0 31885 fi
10f2d63a 31886
7274f1c7 31887 HAVE_PRIOR_FUNCS=0
e6cc62c6
VS
31888 echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
31889echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6
31890if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
31891 echo $ECHO_N "(cached) $ECHO_C" >&6
31892else
31893 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31894/* confdefs.h. */
31895_ACEOF
31896cat confdefs.h >>conftest.$ac_ext
31897cat >>conftest.$ac_ext <<_ACEOF
31898/* end confdefs.h. */
f95e4495
VS
31899/* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
31900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31901#define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
31902
009fead0 31903/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31904 which can conflict with char pthread_attr_getschedpolicy (); below.
31905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31906 <limits.h> exists even on freestanding compilers. */
f95e4495 31907
e6cc62c6
VS
31908#ifdef __STDC__
31909# include <limits.h>
31910#else
31911# include <assert.h>
31912#endif
f95e4495
VS
31913
31914#undef pthread_attr_getschedpolicy
31915
4f14bcd8 31916/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
31917#ifdef __cplusplus
31918extern "C"
31919{
31920#endif
4f14bcd8 31921/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
31922 builtin and then its argument prototype would still apply. */
31923char pthread_attr_getschedpolicy ();
009fead0
VZ
31924/* The GNU C library defines this for functions which it implements
31925 to always fail with ENOSYS. Some functions are actually named
31926 something starting with __ and the normal name is an alias. */
31927#if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
31928choke me
31929#else
e6cc62c6
VS
31930char (*f) () = pthread_attr_getschedpolicy;
31931#endif
31932#ifdef __cplusplus
31933}
009fead0
VZ
31934#endif
31935
e6cc62c6
VS
31936int
31937main ()
31938{
31939return f != pthread_attr_getschedpolicy;
31940 ;
31941 return 0;
31942}
31943_ACEOF
31944rm -f conftest.$ac_objext conftest$ac_exeext
31945if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 31946 (eval $ac_link) 2>conftest.er1
e6cc62c6 31947 ac_status=$?
f95e4495
VS
31948 grep -v '^ *+' conftest.er1 >conftest.err
31949 rm -f conftest.er1
31950 cat conftest.err >&5
e6cc62c6
VS
31951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31952 (exit $ac_status); } &&
f95e4495
VS
31953 { ac_try='test -z "$ac_c_werror_flag"
31954 || test ! -s conftest.err'
31955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31956 (eval $ac_try) 2>&5
31957 ac_status=$?
31958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31959 (exit $ac_status); }; } &&
31960 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
31961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31962 (eval $ac_try) 2>&5
31963 ac_status=$?
31964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31965 (exit $ac_status); }; }; then
31966 ac_cv_func_pthread_attr_getschedpolicy=yes
31967else
31968 echo "$as_me: failed program was:" >&5
31969sed 's/^/| /' conftest.$ac_ext >&5
31970
31971ac_cv_func_pthread_attr_getschedpolicy=no
31972fi
f95e4495
VS
31973rm -f conftest.err conftest.$ac_objext \
31974 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
31975fi
31976echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
31977echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6
31978if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
31979 echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
31980echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6
31981if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
31982 echo $ECHO_N "(cached) $ECHO_C" >&6
31983else
31984 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
31985/* confdefs.h. */
31986_ACEOF
31987cat confdefs.h >>conftest.$ac_ext
31988cat >>conftest.$ac_ext <<_ACEOF
31989/* end confdefs.h. */
f95e4495
VS
31990/* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
31991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31992#define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
31993
a0b9e27f 31994/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
31995 which can conflict with char pthread_attr_setschedparam (); below.
31996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31997 <limits.h> exists even on freestanding compilers. */
f95e4495 31998
e6cc62c6
VS
31999#ifdef __STDC__
32000# include <limits.h>
32001#else
32002# include <assert.h>
32003#endif
f95e4495
VS
32004
32005#undef pthread_attr_setschedparam
32006
422107f9 32007/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32008#ifdef __cplusplus
32009extern "C"
32010{
32011#endif
422107f9 32012/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32013 builtin and then its argument prototype would still apply. */
32014char pthread_attr_setschedparam ();
009fead0
VZ
32015/* The GNU C library defines this for functions which it implements
32016 to always fail with ENOSYS. Some functions are actually named
32017 something starting with __ and the normal name is an alias. */
32018#if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
32019choke me
32020#else
e6cc62c6
VS
32021char (*f) () = pthread_attr_setschedparam;
32022#endif
32023#ifdef __cplusplus
32024}
009fead0
VZ
32025#endif
32026
e6cc62c6
VS
32027int
32028main ()
32029{
32030return f != pthread_attr_setschedparam;
32031 ;
32032 return 0;
32033}
32034_ACEOF
32035rm -f conftest.$ac_objext conftest$ac_exeext
32036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 32037 (eval $ac_link) 2>conftest.er1
e6cc62c6 32038 ac_status=$?
f95e4495
VS
32039 grep -v '^ *+' conftest.er1 >conftest.err
32040 rm -f conftest.er1
32041 cat conftest.err >&5
e6cc62c6
VS
32042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32043 (exit $ac_status); } &&
f95e4495
VS
32044 { ac_try='test -z "$ac_c_werror_flag"
32045 || test ! -s conftest.err'
32046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32047 (eval $ac_try) 2>&5
32048 ac_status=$?
32049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32050 (exit $ac_status); }; } &&
32051 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32053 (eval $ac_try) 2>&5
32054 ac_status=$?
32055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32056 (exit $ac_status); }; }; then
32057 ac_cv_func_pthread_attr_setschedparam=yes
32058else
32059 echo "$as_me: failed program was:" >&5
32060sed 's/^/| /' conftest.$ac_ext >&5
32061
32062ac_cv_func_pthread_attr_setschedparam=no
32063fi
f95e4495
VS
32064rm -f conftest.err conftest.$ac_objext \
32065 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32066fi
32067echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
32068echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6
32069if test $ac_cv_func_pthread_attr_setschedparam = yes; then
32070 echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
32071echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6
32072if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
32073 echo $ECHO_N "(cached) $ECHO_C" >&6
32074else
32075 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32076/* confdefs.h. */
32077_ACEOF
32078cat confdefs.h >>conftest.$ac_ext
32079cat >>conftest.$ac_ext <<_ACEOF
32080/* end confdefs.h. */
f95e4495
VS
32081/* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
32082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32083#define sched_get_priority_max innocuous_sched_get_priority_max
32084
ef33c576 32085/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32086 which can conflict with char sched_get_priority_max (); below.
32087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32088 <limits.h> exists even on freestanding compilers. */
f95e4495 32089
e6cc62c6
VS
32090#ifdef __STDC__
32091# include <limits.h>
32092#else
32093# include <assert.h>
32094#endif
f95e4495
VS
32095
32096#undef sched_get_priority_max
32097
4f14bcd8 32098/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32099#ifdef __cplusplus
32100extern "C"
32101{
32102#endif
4f14bcd8 32103/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32104 builtin and then its argument prototype would still apply. */
32105char sched_get_priority_max ();
009fead0
VZ
32106/* The GNU C library defines this for functions which it implements
32107 to always fail with ENOSYS. Some functions are actually named
32108 something starting with __ and the normal name is an alias. */
32109#if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
32110choke me
32111#else
e6cc62c6
VS
32112char (*f) () = sched_get_priority_max;
32113#endif
32114#ifdef __cplusplus
32115}
009fead0
VZ
32116#endif
32117
e6cc62c6
VS
32118int
32119main ()
32120{
32121return f != sched_get_priority_max;
32122 ;
32123 return 0;
32124}
32125_ACEOF
32126rm -f conftest.$ac_objext conftest$ac_exeext
32127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 32128 (eval $ac_link) 2>conftest.er1
e6cc62c6 32129 ac_status=$?
f95e4495
VS
32130 grep -v '^ *+' conftest.er1 >conftest.err
32131 rm -f conftest.er1
32132 cat conftest.err >&5
e6cc62c6
VS
32133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32134 (exit $ac_status); } &&
f95e4495
VS
32135 { ac_try='test -z "$ac_c_werror_flag"
32136 || test ! -s conftest.err'
32137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32138 (eval $ac_try) 2>&5
32139 ac_status=$?
32140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32141 (exit $ac_status); }; } &&
32142 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32144 (eval $ac_try) 2>&5
32145 ac_status=$?
32146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32147 (exit $ac_status); }; }; then
32148 ac_cv_func_sched_get_priority_max=yes
32149else
32150 echo "$as_me: failed program was:" >&5
32151sed 's/^/| /' conftest.$ac_ext >&5
32152
32153ac_cv_func_sched_get_priority_max=no
32154fi
f95e4495
VS
32155rm -f conftest.err conftest.$ac_objext \
32156 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32157fi
32158echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
32159echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6
32160if test $ac_cv_func_sched_get_priority_max = yes; then
4f14bcd8
GD
32161 HAVE_PRIOR_FUNCS=1
32162else
e6cc62c6
VS
32163 echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
32164echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6
32165if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
32166 echo $ECHO_N "(cached) $ECHO_C" >&6
422107f9 32167else
e6cc62c6 32168 ac_check_lib_save_LIBS=$LIBS
4f14bcd8 32169LIBS="-lposix4 $LIBS"
e6cc62c6 32170cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32171/* confdefs.h. */
32172_ACEOF
32173cat confdefs.h >>conftest.$ac_ext
32174cat >>conftest.$ac_ext <<_ACEOF
32175/* end confdefs.h. */
32176
422107f9 32177/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32178#ifdef __cplusplus
32179extern "C"
32180#endif
422107f9 32181/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32182 builtin and then its argument prototype would still apply. */
32183char sched_get_priority_max ();
32184int
32185main ()
32186{
32187sched_get_priority_max ();
32188 ;
32189 return 0;
32190}
32191_ACEOF
32192rm -f conftest.$ac_objext conftest$ac_exeext
32193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 32194 (eval $ac_link) 2>conftest.er1
e6cc62c6 32195 ac_status=$?
f95e4495
VS
32196 grep -v '^ *+' conftest.er1 >conftest.err
32197 rm -f conftest.er1
32198 cat conftest.err >&5
e6cc62c6
VS
32199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32200 (exit $ac_status); } &&
f95e4495
VS
32201 { ac_try='test -z "$ac_c_werror_flag"
32202 || test ! -s conftest.err'
32203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32204 (eval $ac_try) 2>&5
32205 ac_status=$?
32206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32207 (exit $ac_status); }; } &&
32208 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32210 (eval $ac_try) 2>&5
32211 ac_status=$?
32212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32213 (exit $ac_status); }; }; then
32214 ac_cv_lib_posix4_sched_get_priority_max=yes
32215else
32216 echo "$as_me: failed program was:" >&5
32217sed 's/^/| /' conftest.$ac_ext >&5
32218
32219ac_cv_lib_posix4_sched_get_priority_max=no
32220fi
f95e4495
VS
32221rm -f conftest.err conftest.$ac_objext \
32222 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32223LIBS=$ac_check_lib_save_LIBS
32224fi
32225echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
32226echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6
32227if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
698dcdb6 32228
7274f1c7
RL
32229 HAVE_PRIOR_FUNCS=1
32230 POSIX4_LINK=" -lposix4"
e6cc62c6 32231
4f14bcd8 32232fi
463abc64 32233
e6cc62c6 32234
328a083c 32235fi
463abc64 32236
e6cc62c6 32237
7b4a847f 32238fi
579d8138 32239
e6cc62c6 32240
5c6fa7d2 32241fi
52127426 32242
8284b0c5 32243
7274f1c7 32244 if test "$HAVE_PRIOR_FUNCS" = 1; then
e6cc62c6 32245 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32246#define HAVE_THREAD_PRIORITY_FUNCTIONS 1
e6cc62c6 32247_ACEOF
463abc64 32248
7274f1c7 32249 else
e6cc62c6
VS
32250 { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
32251echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
7274f1c7 32252 fi
463abc64 32253
e6cc62c6
VS
32254 echo "$as_me:$LINENO: checking for pthread_cancel" >&5
32255echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6
32256if test "${ac_cv_func_pthread_cancel+set}" = set; then
32257 echo $ECHO_N "(cached) $ECHO_C" >&6
32258else
32259 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32260/* confdefs.h. */
32261_ACEOF
32262cat confdefs.h >>conftest.$ac_ext
32263cat >>conftest.$ac_ext <<_ACEOF
32264/* end confdefs.h. */
f95e4495
VS
32265/* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
32266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32267#define pthread_cancel innocuous_pthread_cancel
32268
009fead0 32269/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
32270 which can conflict with char pthread_cancel (); below.
32271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32272 <limits.h> exists even on freestanding compilers. */
f95e4495 32273
e6cc62c6
VS
32274#ifdef __STDC__
32275# include <limits.h>
32276#else
32277# include <assert.h>
32278#endif
f95e4495
VS
32279
32280#undef pthread_cancel
32281
422107f9 32282/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
32283#ifdef __cplusplus
32284extern "C"
32285{
32286#endif
422107f9 32287/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
32288 builtin and then its argument prototype would still apply. */
32289char pthread_cancel ();
009fead0
VZ
32290/* The GNU C library defines this for functions which it implements
32291 to always fail with ENOSYS. Some functions are actually named
32292 something starting with __ and the normal name is an alias. */
32293#if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
32294choke me
32295#else
e6cc62c6
VS
32296char (*f) () = pthread_cancel;
32297#endif
32298#ifdef __cplusplus
32299}
009fead0
VZ
32300#endif
32301
e6cc62c6
VS
32302int
32303main ()
32304{
32305return f != pthread_cancel;
32306 ;
32307 return 0;
32308}
32309_ACEOF
32310rm -f conftest.$ac_objext conftest$ac_exeext
32311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 32312 (eval $ac_link) 2>conftest.er1
e6cc62c6 32313 ac_status=$?
f95e4495
VS
32314 grep -v '^ *+' conftest.er1 >conftest.err
32315 rm -f conftest.er1
32316 cat conftest.err >&5
e6cc62c6
VS
32317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32318 (exit $ac_status); } &&
f95e4495
VS
32319 { ac_try='test -z "$ac_c_werror_flag"
32320 || test ! -s conftest.err'
32321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32322 (eval $ac_try) 2>&5
32323 ac_status=$?
32324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32325 (exit $ac_status); }; } &&
32326 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
32327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32328 (eval $ac_try) 2>&5
32329 ac_status=$?
32330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32331 (exit $ac_status); }; }; then
32332 ac_cv_func_pthread_cancel=yes
32333else
32334 echo "$as_me: failed program was:" >&5
32335sed 's/^/| /' conftest.$ac_ext >&5
32336
32337ac_cv_func_pthread_cancel=no
32338fi
f95e4495
VS
32339rm -f conftest.err conftest.$ac_objext \
32340 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
32341fi
32342echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
32343echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6
32344if test $ac_cv_func_pthread_cancel = yes; then
32345 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32346#define HAVE_PTHREAD_CANCEL 1
e6cc62c6 32347_ACEOF
4f14bcd8 32348
698dcdb6 32349else
e6cc62c6
VS
32350 { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
32351echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
422107f9
VZ
32352fi
32353
5c6fa7d2 32354
4f14bcd8 32355
e6cc62c6
VS
32356
32357 echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
32358echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6
32359if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
32360 echo $ECHO_N "(cached) $ECHO_C" >&6
698dcdb6 32361else
e6cc62c6
VS
32362
32363 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32364/* confdefs.h. */
32365_ACEOF
32366cat confdefs.h >>conftest.$ac_ext
32367cat >>conftest.$ac_ext <<_ACEOF
32368/* end confdefs.h. */
4f14bcd8 32369#include <pthread.h>
e6cc62c6
VS
32370int
32371main ()
32372{
4f14bcd8 32373
7274f1c7
RL
32374 pthread_mutexattr_t attr;
32375 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
e6cc62c6
VS
32376
32377 ;
32378 return 0;
32379}
32380_ACEOF
32381rm -f conftest.$ac_objext
32382if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 32383 (eval $ac_compile) 2>conftest.er1
e6cc62c6 32384 ac_status=$?
f95e4495
VS
32385 grep -v '^ *+' conftest.er1 >conftest.err
32386 rm -f conftest.er1
32387 cat conftest.err >&5
e6cc62c6
VS
32388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32389 (exit $ac_status); } &&
f95e4495
VS
32390 { ac_try='test -z "$ac_c_werror_flag"
32391 || test ! -s conftest.err'
32392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32393 (eval $ac_try) 2>&5
32394 ac_status=$?
32395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396 (exit $ac_status); }; } &&
32397 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32399 (eval $ac_try) 2>&5
32400 ac_status=$?
32401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32402 (exit $ac_status); }; }; then
32403
7274f1c7 32404 wx_cv_type_pthread_mutexattr_t=yes
e6cc62c6 32405
3fed1840 32406else
e6cc62c6
VS
32407 echo "$as_me: failed program was:" >&5
32408sed 's/^/| /' conftest.$ac_ext >&5
32409
32410
7274f1c7 32411 wx_cv_type_pthread_mutexattr_t=no
e6cc62c6
VS
32412
32413
247f5006 32414fi
f95e4495 32415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 32416
e6cc62c6
VS
32417fi
32418echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
32419echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6
4f14bcd8 32420
7274f1c7 32421 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
e6cc62c6 32422 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32423#define HAVE_PTHREAD_MUTEXATTR_T 1
e6cc62c6 32424_ACEOF
4f14bcd8 32425
7274f1c7 32426 else
e6cc62c6
VS
32427 echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
32428echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6
32429if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
32430 echo $ECHO_N "(cached) $ECHO_C" >&6
32431else
32432
32433 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32434/* confdefs.h. */
32435_ACEOF
32436cat confdefs.h >>conftest.$ac_ext
32437cat >>conftest.$ac_ext <<_ACEOF
32438/* end confdefs.h. */
4f14bcd8 32439#include <pthread.h>
e6cc62c6
VS
32440int
32441main ()
32442{
4f14bcd8 32443
7274f1c7 32444 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
e6cc62c6
VS
32445
32446 ;
32447 return 0;
32448}
32449_ACEOF
32450rm -f conftest.$ac_objext
32451if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 32452 (eval $ac_compile) 2>conftest.er1
e6cc62c6 32453 ac_status=$?
f95e4495
VS
32454 grep -v '^ *+' conftest.er1 >conftest.err
32455 rm -f conftest.er1
32456 cat conftest.err >&5
e6cc62c6
VS
32457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32458 (exit $ac_status); } &&
f95e4495
VS
32459 { ac_try='test -z "$ac_c_werror_flag"
32460 || test ! -s conftest.err'
32461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32462 (eval $ac_try) 2>&5
32463 ac_status=$?
32464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32465 (exit $ac_status); }; } &&
32466 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32468 (eval $ac_try) 2>&5
32469 ac_status=$?
32470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32471 (exit $ac_status); }; }; then
32472
7274f1c7 32473 wx_cv_type_pthread_rec_mutex_init=yes
e6cc62c6 32474
698dcdb6 32475else
e6cc62c6
VS
32476 echo "$as_me: failed program was:" >&5
32477sed 's/^/| /' conftest.$ac_ext >&5
32478
32479
7274f1c7 32480 wx_cv_type_pthread_rec_mutex_init=no
e6cc62c6
VS
32481
32482
247f5006 32483fi
f95e4495 32484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 32485
e6cc62c6
VS
32486fi
32487echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
32488echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6
7274f1c7 32489 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
e6cc62c6 32490 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32491#define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
e6cc62c6 32492_ACEOF
3fed1840 32493
7274f1c7 32494 else
e6cc62c6
VS
32495 { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
32496echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
7274f1c7
RL
32497 fi
32498 fi
7274f1c7 32499 fi
3fed1840 32500
a0b9e27f
MB
32501else
32502 if test "$wxUSE_THREADS" = "yes" ; then
32503 case "${host}" in
32504 *-*-mingw32* )
e6cc62c6
VS
32505 echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
32506echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6
32507if test "${wx_cv_cflags_mthread+set}" = set; then
32508 echo $ECHO_N "(cached) $ECHO_C" >&6
ca8e52b3 32509else
e6cc62c6 32510
ca8e52b3
VZ
32511 CFLAGS_OLD="$CFLAGS"
32512 CFLAGS="$CFLAGS -mthreads"
e6cc62c6 32513 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32514/* confdefs.h. */
32515_ACEOF
32516cat confdefs.h >>conftest.$ac_ext
32517cat >>conftest.$ac_ext <<_ACEOF
32518/* end confdefs.h. */
32519
32520int
32521main ()
32522{
ca8e52b3 32523
e6cc62c6
VS
32524 ;
32525 return 0;
32526}
32527_ACEOF
32528rm -f conftest.$ac_objext
32529if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 32530 (eval $ac_compile) 2>conftest.er1
e6cc62c6 32531 ac_status=$?
f95e4495
VS
32532 grep -v '^ *+' conftest.er1 >conftest.err
32533 rm -f conftest.er1
32534 cat conftest.err >&5
e6cc62c6
VS
32535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32536 (exit $ac_status); } &&
f95e4495
VS
32537 { ac_try='test -z "$ac_c_werror_flag"
32538 || test ! -s conftest.err'
32539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32540 (eval $ac_try) 2>&5
32541 ac_status=$?
32542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32543 (exit $ac_status); }; } &&
32544 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
32545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32546 (eval $ac_try) 2>&5
32547 ac_status=$?
32548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32549 (exit $ac_status); }; }; then
ca8e52b3
VZ
32550 wx_cv_cflags_mthread=yes
32551else
e6cc62c6
VS
32552 echo "$as_me: failed program was:" >&5
32553sed 's/^/| /' conftest.$ac_ext >&5
32554
32555wx_cv_cflags_mthread=no
32556
ca8e52b3 32557fi
f95e4495 32558rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 32559
ca8e52b3 32560
e6cc62c6
VS
32561fi
32562echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
32563echo "${ECHO_T}$wx_cv_cflags_mthread" >&6
ca8e52b3
VZ
32564
32565 if test "$wx_cv_cflags_mthread" = "yes"; then
32566 CXXFLAGS="$CXXFLAGS -mthreads"
32567 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads"
32568 LDFLAGS="$LDFLAGS -mthreads"
32569 else
32570 CFLAGS="$CFLAGS_OLD"
32571 fi
a0b9e27f 32572 ;;
73d617c9
MB
32573 *-pc-os2*emx )
32574 CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__"
32575 CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__"
32576 LDFLAGS="$LDFLAGS -Zmt"
32577 ;;
a0b9e27f
MB
32578 esac
32579 fi
4f14bcd8
GD
32580fi
32581
32582if test "$wxUSE_THREADS" = "yes"; then
e6cc62c6 32583 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32584#define wxUSE_THREADS 1
e6cc62c6 32585_ACEOF
7b6058cd 32586
8284b0c5 32587
4f14bcd8 32588 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
698dcdb6 32589else
4f14bcd8 32590 if test "$ac_cv_func_strtok_r" = "yes"; then
e6cc62c6
VS
32591 echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
32592echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6
4f14bcd8
GD
32593 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
32594 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
e6cc62c6
VS
32595 echo "$as_me:$LINENO: result: yes" >&5
32596echo "${ECHO_T}yes" >&6
4f14bcd8 32597 else
e6cc62c6
VS
32598 echo "$as_me:$LINENO: result: no" >&5
32599echo "${ECHO_T}no" >&6
4f14bcd8
GD
32600 fi
32601 fi
32602fi
32603
32604if test "$WXGTK20" = 1 ; then
e6cc62c6 32605 cat >>confdefs.h <<_ACEOF
4f14bcd8 32606#define __WXGTK20__ $WXGTK20
e6cc62c6 32607_ACEOF
4f14bcd8
GD
32608
32609 WXGTK12=1
10f2d63a 32610fi
4f14bcd8
GD
32611
32612if test "$WXGTK12" = 1 ; then
e6cc62c6 32613 cat >>confdefs.h <<_ACEOF
4f14bcd8 32614#define __WXGTK12__ $WXGTK12
e6cc62c6 32615_ACEOF
4f14bcd8 32616
10f2d63a 32617fi
698dcdb6 32618
4f14bcd8 32619if test "$WXGTK127" = 1 ; then
e6cc62c6 32620 cat >>confdefs.h <<_ACEOF
4f14bcd8 32621#define __WXGTK127__ $WXGTK127
e6cc62c6 32622_ACEOF
4f14bcd8 32623
698dcdb6 32624fi
10f2d63a 32625
4f14bcd8
GD
32626WXDEBUG=
32627
32628if test "$wxUSE_DEBUG_INFO" = "yes" ; then
32629 WXDEBUG="-g"
32630 wxUSE_OPTIMISE=no
698dcdb6 32631fi
4f14bcd8
GD
32632
32633if test "$wxUSE_DEBUG_GDB" = "yes" ; then
32634 wxUSE_DEBUG_INFO=yes
32635 WXDEBUG="-ggdb"
10f2d63a
VZ
32636fi
32637
4f14bcd8 32638if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
e6cc62c6 32639 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32640#define WXDEBUG 1
e6cc62c6 32641_ACEOF
4f14bcd8
GD
32642
32643 WXDEBUG_DEFINE="-D__WXDEBUG__"
10f2d63a 32644else
4f14bcd8
GD
32645 if test "$wxUSE_GTK" = 1 ; then
32646 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
32647 fi
32648fi
32649
32650if test "$wxUSE_MEM_TRACING" = "yes" ; then
e6cc62c6 32651 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32652#define wxUSE_MEMORY_TRACING 1
e6cc62c6 32653_ACEOF
4f14bcd8 32654
e6cc62c6 32655 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32656#define wxUSE_GLOBAL_MEMORY_OPERATORS 1
e6cc62c6 32657_ACEOF
4f14bcd8 32658
e6cc62c6 32659 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32660#define wxUSE_DEBUG_NEW_ALWAYS 1
e6cc62c6 32661_ACEOF
4f14bcd8
GD
32662
32663 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
32664fi
32665
32666if test "$wxUSE_DMALLOC" = "yes" ; then
3d63bc3a 32667 DMALLOC_LIBS="-ldmalloc"
4f14bcd8
GD
32668fi
32669
32670PROFILE=
32671if test "$wxUSE_PROFILE" = "yes" ; then
3d63bc3a 32672 PROFILE=" -pg"
10f2d63a
VZ
32673fi
32674
009fead0
VZ
32675CODE_GEN_FLAGS=
32676CODE_GEN_FLAGS_CXX=
88e30f2b 32677if test "$GCC" = "yes" ; then
4f14bcd8
GD
32678 if test "$wxUSE_NO_RTTI" = "yes" ; then
32679 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
3a922bb4 32680 fi
4f14bcd8
GD
32681 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
32682 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
32683 fi
32684 if test "$wxUSE_PERMISSIVE" = "yes" ; then
32685 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
32686 fi
1d1b75ac 32687
2b5f62a0 32688 case "${host}" in
1d1b75ac
VZ
32689 powerpc*-*-aix* )
32690 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
32691 ;;
2b5f62a0
VZ
32692 *-hppa* )
32693 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections"
32694 ;;
1d1b75ac 32695 esac
4f14bcd8
GD
32696fi
32697
af7b5345 32698OPTIMISE=
4f14bcd8 32699if test "$wxUSE_OPTIMISE" = "no" ; then
af7b5345
VZ
32700 if test "$GCC" = yes ; then
32701 OPTIMISE="-O0"
32702 fi
4f14bcd8
GD
32703else
32704 if test "$GCC" = yes ; then
32705 OPTIMISE="-O2"
af7b5345
VZ
32706
32707 case "${host}" in
4f14bcd8
GD
32708 i586-*-*|i686-*-* )
32709 OPTIMISE="${OPTIMISE} "
32710 ;;
32711 esac
32712 else
32713 OPTIMISE="-O"
32714 fi
32715fi
32716
8d90d2f2 32717
65d8ef1e 32718if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then
e6cc62c6 32719 cat >>confdefs.h <<\_ACEOF
4f14bcd8 32720#define WXWIN_COMPATIBILITY_2_2 1
e6cc62c6 32721_ACEOF
4f14bcd8 32722
8d90d2f2
VZ
32723
32724 WXWIN_COMPATIBILITY_2_4="yes"
10f2d63a
VZ
32725fi
32726
65d8ef1e 32727if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then
e6cc62c6 32728 cat >>confdefs.h <<\_ACEOF
65d8ef1e 32729#define WXWIN_COMPATIBILITY_2_4 1
e6cc62c6 32730_ACEOF
65d8ef1e
VS
32731
32732fi
32733
8284b0c5 32734
10f2d63a 32735if test "$wxUSE_GUI" = "yes"; then
e6cc62c6 32736 cat >>confdefs.h <<\_ACEOF
10f2d63a 32737#define wxUSE_GUI 1
e6cc62c6 32738_ACEOF
10f2d63a 32739
8284b0c5 32740
10f2d63a 32741 else
e6cc62c6 32742 cat >>confdefs.h <<\_ACEOF
10f2d63a 32743#define wxUSE_NOGUI 1
e6cc62c6 32744_ACEOF
10f2d63a
VZ
32745
32746fi
32747
8284b0c5 32748
10f2d63a 32749if test "$wxUSE_UNIX" = "yes"; then
e6cc62c6 32750 cat >>confdefs.h <<\_ACEOF
10f2d63a 32751#define wxUSE_UNIX 1
e6cc62c6 32752_ACEOF
10f2d63a
VZ
32753
32754fi
32755
8284b0c5 32756
df5168c4
MB
32757if test "$wxUSE_STL" = "yes"; then
32758 cat >>confdefs.h <<\_ACEOF
32759#define wxUSE_STL 1
32760_ACEOF
32761
32762fi
32763
10f2d63a 32764if test "$wxUSE_APPLE_IEEE" = "yes"; then
e6cc62c6 32765 cat >>confdefs.h <<\_ACEOF
10f2d63a 32766#define wxUSE_APPLE_IEEE 1
e6cc62c6 32767_ACEOF
10f2d63a
VZ
32768
32769fi
32770
1e6feb95 32771if test "$wxUSE_TIMER" = "yes"; then
e6cc62c6 32772 cat >>confdefs.h <<\_ACEOF
1e6feb95 32773#define wxUSE_TIMER 1
e6cc62c6 32774_ACEOF
1e6feb95
VZ
32775
32776fi
32777
10f2d63a 32778if test "$wxUSE_WAVE" = "yes"; then
e6cc62c6 32779 cat >>confdefs.h <<\_ACEOF
10f2d63a 32780#define wxUSE_WAVE 1
e6cc62c6 32781_ACEOF
10f2d63a
VZ
32782
32783fi
32784
1e6feb95 32785if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
e6cc62c6 32786 cat >>confdefs.h <<\_ACEOF
1e6feb95 32787#define wxUSE_CMDLINE_PARSER 1
e6cc62c6 32788_ACEOF
1e6feb95
VZ
32789
32790fi
32791
32792if test "$wxUSE_STOPWATCH" = "yes"; then
e6cc62c6 32793 cat >>confdefs.h <<\_ACEOF
1e6feb95 32794#define wxUSE_STOPWATCH 1
e6cc62c6 32795_ACEOF
1e6feb95
VZ
32796
32797fi
32798
32799if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6 32800 cat >>confdefs.h <<\_ACEOF
1e6feb95 32801#define wxUSE_DATETIME 1
e6cc62c6 32802_ACEOF
1e6feb95
VZ
32803
32804fi
32805
10f2d63a 32806if test "$wxUSE_FILE" = "yes"; then
e6cc62c6 32807 cat >>confdefs.h <<\_ACEOF
10f2d63a 32808#define wxUSE_FILE 1
e6cc62c6 32809_ACEOF
10f2d63a
VZ
32810
32811fi
32812
1e6feb95 32813if test "$wxUSE_FFILE" = "yes"; then
e6cc62c6 32814 cat >>confdefs.h <<\_ACEOF
1e6feb95 32815#define wxUSE_FFILE 1
e6cc62c6 32816_ACEOF
1e6feb95
VZ
32817
32818fi
32819
24528b0c 32820if test "$wxUSE_FILESYSTEM" = "yes"; then
e6cc62c6 32821 cat >>confdefs.h <<\_ACEOF
24528b0c 32822#define wxUSE_FILESYSTEM 1
e6cc62c6 32823_ACEOF
24528b0c
VS
32824
32825fi
32826
10f2d63a 32827if test "$wxUSE_FS_ZIP" = "yes"; then
e6cc62c6 32828 cat >>confdefs.h <<\_ACEOF
10f2d63a 32829#define wxUSE_FS_ZIP 1
e6cc62c6 32830_ACEOF
10f2d63a
VZ
32831
32832fi
32833
32834if test "$wxUSE_ZIPSTREAM" = "yes"; then
e6cc62c6 32835 cat >>confdefs.h <<\_ACEOF
10f2d63a 32836#define wxUSE_ZIPSTREAM 1
e6cc62c6 32837_ACEOF
10f2d63a
VZ
32838
32839fi
32840
7015ef3a
VZ
32841if test "$wxUSE_GZSTREAM" = "yes"; then
32842 cat >>confdefs.h <<\_ACEOF
32843#define wxUSE_GZSTREAM 1
32844_ACEOF
32845
32846fi
32847
eb4efbdc 32848if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
e6cc62c6 32849 cat >>confdefs.h <<\_ACEOF
eb4efbdc 32850#define wxUSE_ON_FATAL_EXCEPTION 1
e6cc62c6 32851_ACEOF
eb4efbdc
VZ
32852
32853fi
32854
4f3c5f06 32855if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
e6cc62c6 32856 cat >>confdefs.h <<\_ACEOF
4f3c5f06 32857#define wxUSE_SNGLINST_CHECKER 1
e6cc62c6 32858_ACEOF
4f3c5f06
VZ
32859
32860fi
32861
10f2d63a 32862if test "$wxUSE_BUSYINFO" = "yes"; then
e6cc62c6 32863 cat >>confdefs.h <<\_ACEOF
10f2d63a 32864#define wxUSE_BUSYINFO 1
e6cc62c6 32865_ACEOF
10f2d63a
VZ
32866
32867fi
32868
32869if test "$wxUSE_STD_IOSTREAM" = "yes"; then
e6cc62c6 32870 cat >>confdefs.h <<\_ACEOF
10f2d63a 32871#define wxUSE_STD_IOSTREAM 1
e6cc62c6 32872_ACEOF
10f2d63a
VZ
32873
32874fi
32875
a3a584a7 32876if test "$wxUSE_TEXTBUFFER" = "yes"; then
e6cc62c6 32877 cat >>confdefs.h <<\_ACEOF
a3a584a7 32878#define wxUSE_TEXTBUFFER 1
e6cc62c6 32879_ACEOF
a3a584a7
VZ
32880
32881fi
32882
10f2d63a 32883if test "$wxUSE_TEXTFILE" = "yes"; then
a3a584a7 32884 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
e6cc62c6
VS
32885 { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
32886echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
10f2d63a 32887 else
e6cc62c6 32888 cat >>confdefs.h <<\_ACEOF
10f2d63a 32889#define wxUSE_TEXTFILE 1
e6cc62c6 32890_ACEOF
10f2d63a
VZ
32891
32892 fi
32893fi
32894
32895if test "$wxUSE_CONFIG" = "yes" ; then
32896 if test "$wxUSE_TEXTFILE" != "yes"; then
e6cc62c6
VS
32897 { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
32898echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
10f2d63a 32899 else
e6cc62c6 32900 cat >>confdefs.h <<\_ACEOF
10f2d63a 32901#define wxUSE_CONFIG 1
e6cc62c6 32902_ACEOF
10f2d63a
VZ
32903
32904 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
32905 fi
32906fi
32907
32908if test "$wxUSE_INTL" = "yes" ; then
32909 if test "$wxUSE_FILE" != "yes"; then
e6cc62c6
VS
32910 { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
32911echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
10f2d63a 32912 else
e6cc62c6 32913 cat >>confdefs.h <<\_ACEOF
10f2d63a 32914#define wxUSE_INTL 1
e6cc62c6 32915_ACEOF
10f2d63a
VZ
32916
32917 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
f6bcfd97 32918 GUIDIST="$GUIDIST INTL_DIST"
10f2d63a
VZ
32919 fi
32920fi
32921
32922if test "$wxUSE_LOG" = "yes"; then
e6cc62c6 32923 cat >>confdefs.h <<\_ACEOF
10f2d63a 32924#define wxUSE_LOG 1
e6cc62c6 32925_ACEOF
10f2d63a 32926
8284b0c5 32927
d73be714 32928 if test "$wxUSE_LOGGUI" = "yes"; then
e6cc62c6 32929 cat >>confdefs.h <<\_ACEOF
d73be714 32930#define wxUSE_LOGGUI 1
e6cc62c6 32931_ACEOF
d73be714
VZ
32932
32933 fi
32934
32935 if test "$wxUSE_LOGWINDOW" = "yes"; then
e6cc62c6 32936 cat >>confdefs.h <<\_ACEOF
d73be714 32937#define wxUSE_LOGWINDOW 1
e6cc62c6 32938_ACEOF
69d27ff7
MB
32939
32940 fi
32941
32942 if test "$wxUSE_LOGDIALOG" = "yes"; then
e6cc62c6 32943 cat >>confdefs.h <<\_ACEOF
69d27ff7 32944#define wxUSE_LOG_DIALOG 1
e6cc62c6 32945_ACEOF
d73be714
VZ
32946
32947 fi
10f2d63a
VZ
32948fi
32949
32950if test "$wxUSE_LONGLONG" = "yes"; then
e6cc62c6 32951 cat >>confdefs.h <<\_ACEOF
10f2d63a 32952#define wxUSE_LONGLONG 1
e6cc62c6 32953_ACEOF
10f2d63a
VZ
32954
32955fi
32956
e8f65ba6 32957if test "$wxUSE_GEOMETRY" = "yes"; then
e6cc62c6 32958 cat >>confdefs.h <<\_ACEOF
e8f65ba6 32959#define wxUSE_GEOMETRY 1
e6cc62c6 32960_ACEOF
e8f65ba6
RR
32961
32962fi
32963
10f2d63a 32964if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
e6cc62c6 32965 cat >>confdefs.h <<\_ACEOF
10f2d63a 32966#define wxUSE_DIALUP_MANAGER 1
e6cc62c6 32967_ACEOF
10f2d63a 32968
70f7a477 32969 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
10f2d63a
VZ
32970fi
32971
32972if test "$wxUSE_STREAMS" = "yes" ; then
e6cc62c6 32973 cat >>confdefs.h <<\_ACEOF
10f2d63a 32974#define wxUSE_STREAMS 1
e6cc62c6 32975_ACEOF
10f2d63a
VZ
32976
32977fi
32978
5c6fa7d2 32979
8284b0c5 32980if test "$wxUSE_DATETIME" = "yes"; then
e6cc62c6
VS
32981
32982for ac_func in strptime
83307f33 32983do
e6cc62c6
VS
32984as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32985echo "$as_me:$LINENO: checking for $ac_func" >&5
32986echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
32987if eval "test \"\${$as_ac_var+set}\" = set"; then
32988 echo $ECHO_N "(cached) $ECHO_C" >&6
32989else
32990 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
32991/* confdefs.h. */
32992_ACEOF
32993cat confdefs.h >>conftest.$ac_ext
32994cat >>conftest.$ac_ext <<_ACEOF
32995/* end confdefs.h. */
f95e4495
VS
32996/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
32998#define $ac_func innocuous_$ac_func
32999
83307f33 33000/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33001 which can conflict with char $ac_func (); below.
33002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33003 <limits.h> exists even on freestanding compilers. */
f95e4495 33004
e6cc62c6
VS
33005#ifdef __STDC__
33006# include <limits.h>
33007#else
33008# include <assert.h>
33009#endif
f95e4495
VS
33010
33011#undef $ac_func
33012
83307f33 33013/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33014#ifdef __cplusplus
33015extern "C"
33016{
33017#endif
83307f33 33018/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33019 builtin and then its argument prototype would still apply. */
33020char $ac_func ();
83307f33
VZ
33021/* The GNU C library defines this for functions which it implements
33022 to always fail with ENOSYS. Some functions are actually named
33023 something starting with __ and the normal name is an alias. */
33024#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33025choke me
33026#else
e6cc62c6
VS
33027char (*f) () = $ac_func;
33028#endif
33029#ifdef __cplusplus
33030}
83307f33
VZ
33031#endif
33032
e6cc62c6
VS
33033int
33034main ()
33035{
33036return f != $ac_func;
33037 ;
33038 return 0;
33039}
33040_ACEOF
33041rm -f conftest.$ac_objext conftest$ac_exeext
33042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 33043 (eval $ac_link) 2>conftest.er1
e6cc62c6 33044 ac_status=$?
f95e4495
VS
33045 grep -v '^ *+' conftest.er1 >conftest.err
33046 rm -f conftest.er1
33047 cat conftest.err >&5
e6cc62c6
VS
33048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33049 (exit $ac_status); } &&
f95e4495
VS
33050 { ac_try='test -z "$ac_c_werror_flag"
33051 || test ! -s conftest.err'
33052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33053 (eval $ac_try) 2>&5
33054 ac_status=$?
33055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33056 (exit $ac_status); }; } &&
33057 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33059 (eval $ac_try) 2>&5
33060 ac_status=$?
33061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33062 (exit $ac_status); }; }; then
33063 eval "$as_ac_var=yes"
33064else
33065 echo "$as_me: failed program was:" >&5
33066sed 's/^/| /' conftest.$ac_ext >&5
33067
33068eval "$as_ac_var=no"
33069fi
f95e4495
VS
33070rm -f conftest.err conftest.$ac_objext \
33071 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33072fi
33073echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33074echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33075if test `eval echo '${'$as_ac_var'}'` = yes; then
33076 cat >>confdefs.h <<_ACEOF
33077#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33078_ACEOF
83307f33 33079
83307f33
VZ
33080fi
33081done
33082
5c6fa7d2 33083
e6cc62c6
VS
33084 echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
33085echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6
33086if test "${wx_cv_var_timezone+set}" = set; then
33087 echo $ECHO_N "(cached) $ECHO_C" >&6
8284b0c5 33088else
e6cc62c6
VS
33089
33090 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33091/* confdefs.h. */
33092_ACEOF
33093cat confdefs.h >>conftest.$ac_ext
33094cat >>conftest.$ac_ext <<_ACEOF
33095/* end confdefs.h. */
360d6699 33096
b4085ce6 33097 #include <time.h>
e6cc62c6
VS
33098
33099int
33100main ()
33101{
360d6699
VZ
33102
33103 int tz;
4f11a343 33104 tz = timezone;
e6cc62c6
VS
33105
33106 ;
33107 return 0;
33108}
33109_ACEOF
33110rm -f conftest.$ac_objext
33111if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 33112 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33113 ac_status=$?
f95e4495
VS
33114 grep -v '^ *+' conftest.er1 >conftest.err
33115 rm -f conftest.er1
33116 cat conftest.err >&5
e6cc62c6
VS
33117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33118 (exit $ac_status); } &&
f95e4495
VS
33119 { ac_try='test -z "$ac_c_werror_flag"
33120 || test ! -s conftest.err'
33121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33122 (eval $ac_try) 2>&5
33123 ac_status=$?
33124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33125 (exit $ac_status); }; } &&
33126 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33128 (eval $ac_try) 2>&5
33129 ac_status=$?
33130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33131 (exit $ac_status); }; }; then
33132
4f11a343 33133 wx_cv_var_timezone=timezone
e6cc62c6 33134
360d6699 33135else
e6cc62c6
VS
33136 echo "$as_me: failed program was:" >&5
33137sed 's/^/| /' conftest.$ac_ext >&5
33138
33139
33140 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33141/* confdefs.h. */
33142_ACEOF
33143cat confdefs.h >>conftest.$ac_ext
33144cat >>conftest.$ac_ext <<_ACEOF
33145/* end confdefs.h. */
360d6699 33146
b4085ce6 33147 #include <time.h>
e6cc62c6
VS
33148
33149int
33150main ()
33151{
360d6699
VZ
33152
33153 int tz;
33154 tz = _timezone;
e6cc62c6
VS
33155
33156 ;
33157 return 0;
33158}
33159_ACEOF
33160rm -f conftest.$ac_objext
33161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 33162 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33163 ac_status=$?
f95e4495
VS
33164 grep -v '^ *+' conftest.er1 >conftest.err
33165 rm -f conftest.er1
33166 cat conftest.err >&5
e6cc62c6
VS
33167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33168 (exit $ac_status); } &&
f95e4495
VS
33169 { ac_try='test -z "$ac_c_werror_flag"
33170 || test ! -s conftest.err'
33171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33172 (eval $ac_try) 2>&5
33173 ac_status=$?
33174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33175 (exit $ac_status); }; } &&
33176 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33178 (eval $ac_try) 2>&5
33179 ac_status=$?
33180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33181 (exit $ac_status); }; }; then
33182
360d6699 33183 wx_cv_var_timezone=_timezone
e6cc62c6 33184
5357c8e8 33185else
e6cc62c6
VS
33186 echo "$as_me: failed program was:" >&5
33187sed 's/^/| /' conftest.$ac_ext >&5
33188
33189
33190 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33191/* confdefs.h. */
33192_ACEOF
33193cat confdefs.h >>conftest.$ac_ext
33194cat >>conftest.$ac_ext <<_ACEOF
33195/* end confdefs.h. */
5357c8e8 33196
b4085ce6 33197 #include <time.h>
e6cc62c6
VS
33198
33199int
33200main ()
33201{
5357c8e8
VZ
33202
33203 int tz;
4f11a343 33204 tz = __timezone;
e6cc62c6
VS
33205
33206 ;
33207 return 0;
33208}
33209_ACEOF
33210rm -f conftest.$ac_objext
33211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 33212 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33213 ac_status=$?
f95e4495
VS
33214 grep -v '^ *+' conftest.er1 >conftest.err
33215 rm -f conftest.er1
33216 cat conftest.err >&5
e6cc62c6
VS
33217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33218 (exit $ac_status); } &&
f95e4495
VS
33219 { ac_try='test -z "$ac_c_werror_flag"
33220 || test ! -s conftest.err'
33221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33222 (eval $ac_try) 2>&5
33223 ac_status=$?
33224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33225 (exit $ac_status); }; } &&
33226 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33228 (eval $ac_try) 2>&5
33229 ac_status=$?
33230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33231 (exit $ac_status); }; }; then
33232
4f11a343 33233 wx_cv_var_timezone=__timezone
e6cc62c6 33234
360d6699 33235else
e6cc62c6
VS
33236 echo "$as_me: failed program was:" >&5
33237sed 's/^/| /' conftest.$ac_ext >&5
33238
33239
f9bc1684 33240 if test "$USE_DOS" = 0 ; then
e6cc62c6
VS
33241 { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
33242echo "$as_me: WARNING: no timezone variable" >&2;}
f9bc1684 33243 fi
e6cc62c6
VS
33244
33245
7b4a847f 33246fi
f95e4495 33247rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
33248
33249
5c6fa7d2 33250fi
f95e4495 33251rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
33252
33253
247f5006 33254fi
f95e4495 33255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 33256
e6cc62c6
VS
33257
33258fi
33259echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
33260echo "${ECHO_T}$wx_cv_var_timezone" >&6
698dcdb6 33261
f9bc1684 33262 if test "x$wx_cv_var_timezone" != x ; then
e6cc62c6 33263 cat >>confdefs.h <<_ACEOF
360d6699 33264#define WX_TIMEZONE $wx_cv_var_timezone
e6cc62c6 33265_ACEOF
360d6699 33266
f9bc1684 33267 fi
698dcdb6 33268
e6cc62c6
VS
33269
33270for ac_func in localtime
afc31813 33271do
e6cc62c6
VS
33272as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33273echo "$as_me:$LINENO: checking for $ac_func" >&5
33274echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33275if eval "test \"\${$as_ac_var+set}\" = set"; then
33276 echo $ECHO_N "(cached) $ECHO_C" >&6
33277else
33278 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33279/* confdefs.h. */
33280_ACEOF
33281cat confdefs.h >>conftest.$ac_ext
33282cat >>conftest.$ac_ext <<_ACEOF
33283/* end confdefs.h. */
f95e4495
VS
33284/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33286#define $ac_func innocuous_$ac_func
33287
afc31813 33288/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33289 which can conflict with char $ac_func (); below.
33290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33291 <limits.h> exists even on freestanding compilers. */
f95e4495 33292
e6cc62c6
VS
33293#ifdef __STDC__
33294# include <limits.h>
33295#else
33296# include <assert.h>
33297#endif
f95e4495
VS
33298
33299#undef $ac_func
33300
afc31813 33301/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33302#ifdef __cplusplus
33303extern "C"
33304{
33305#endif
afc31813 33306/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33307 builtin and then its argument prototype would still apply. */
33308char $ac_func ();
afc31813
VZ
33309/* The GNU C library defines this for functions which it implements
33310 to always fail with ENOSYS. Some functions are actually named
33311 something starting with __ and the normal name is an alias. */
33312#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33313choke me
33314#else
e6cc62c6
VS
33315char (*f) () = $ac_func;
33316#endif
33317#ifdef __cplusplus
33318}
afc31813
VZ
33319#endif
33320
e6cc62c6
VS
33321int
33322main ()
33323{
33324return f != $ac_func;
33325 ;
33326 return 0;
33327}
33328_ACEOF
33329rm -f conftest.$ac_objext conftest$ac_exeext
33330if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 33331 (eval $ac_link) 2>conftest.er1
e6cc62c6 33332 ac_status=$?
f95e4495
VS
33333 grep -v '^ *+' conftest.er1 >conftest.err
33334 rm -f conftest.er1
33335 cat conftest.err >&5
e6cc62c6
VS
33336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33337 (exit $ac_status); } &&
f95e4495
VS
33338 { ac_try='test -z "$ac_c_werror_flag"
33339 || test ! -s conftest.err'
33340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33341 (eval $ac_try) 2>&5
33342 ac_status=$?
33343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33344 (exit $ac_status); }; } &&
33345 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33347 (eval $ac_try) 2>&5
33348 ac_status=$?
33349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33350 (exit $ac_status); }; }; then
33351 eval "$as_ac_var=yes"
33352else
33353 echo "$as_me: failed program was:" >&5
33354sed 's/^/| /' conftest.$ac_ext >&5
33355
33356eval "$as_ac_var=no"
33357fi
f95e4495
VS
33358rm -f conftest.err conftest.$ac_objext \
33359 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33360fi
33361echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33362echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33363if test `eval echo '${'$as_ac_var'}'` = yes; then
33364 cat >>confdefs.h <<_ACEOF
33365#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33366_ACEOF
afc31813 33367
afc31813
VZ
33368fi
33369done
33370
5c6fa7d2 33371
8284b0c5 33372 if test "$ac_cv_func_localtime" = "yes"; then
e6cc62c6
VS
33373 echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
33374echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6
33375if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
33376 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 33377else
e6cc62c6
VS
33378
33379 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33380/* confdefs.h. */
33381_ACEOF
33382cat confdefs.h >>conftest.$ac_ext
33383cat >>conftest.$ac_ext <<_ACEOF
33384/* end confdefs.h. */
0470b1e6 33385
b4085ce6 33386 #include <time.h>
e6cc62c6
VS
33387
33388int
33389main ()
33390{
0470b1e6
VZ
33391
33392 struct tm tm;
33393 tm.tm_gmtoff++;
e6cc62c6
VS
33394
33395 ;
33396 return 0;
33397}
33398_ACEOF
33399rm -f conftest.$ac_objext
33400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 33401 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33402 ac_status=$?
f95e4495
VS
33403 grep -v '^ *+' conftest.er1 >conftest.err
33404 rm -f conftest.er1
33405 cat conftest.err >&5
e6cc62c6
VS
33406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33407 (exit $ac_status); } &&
f95e4495
VS
33408 { ac_try='test -z "$ac_c_werror_flag"
33409 || test ! -s conftest.err'
33410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33411 (eval $ac_try) 2>&5
33412 ac_status=$?
33413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33414 (exit $ac_status); }; } &&
33415 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33417 (eval $ac_try) 2>&5
33418 ac_status=$?
33419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33420 (exit $ac_status); }; }; then
33421
f03a98d8 33422 wx_cv_struct_tm_has_gmtoff=yes
e6cc62c6 33423
0470b1e6 33424else
e6cc62c6
VS
33425 echo "$as_me: failed program was:" >&5
33426sed 's/^/| /' conftest.$ac_ext >&5
33427
33428wx_cv_struct_tm_has_gmtoff=no
33429
247f5006 33430fi
f95e4495 33431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 33432
e6cc62c6
VS
33433fi
33434echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
33435echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6
6232543b
VS
33436 fi
33437
33438 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
e6cc62c6 33439 cat >>confdefs.h <<\_ACEOF
6232543b 33440#define WX_GMTOFF_IN_TM 1
e6cc62c6 33441_ACEOF
0470b1e6 33442
3fcdd07b
VZ
33443 fi
33444
e6cc62c6
VS
33445
33446
33447for ac_func in gettimeofday ftime
3fcdd07b 33448do
e6cc62c6
VS
33449as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
33450echo "$as_me:$LINENO: checking for $ac_func" >&5
33451echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
33452if eval "test \"\${$as_ac_var+set}\" = set"; then
33453 echo $ECHO_N "(cached) $ECHO_C" >&6
33454else
33455 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33456/* confdefs.h. */
33457_ACEOF
33458cat confdefs.h >>conftest.$ac_ext
33459cat >>conftest.$ac_ext <<_ACEOF
33460/* end confdefs.h. */
f95e4495
VS
33461/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33463#define $ac_func innocuous_$ac_func
33464
3fcdd07b 33465/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33466 which can conflict with char $ac_func (); below.
33467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33468 <limits.h> exists even on freestanding compilers. */
f95e4495 33469
e6cc62c6
VS
33470#ifdef __STDC__
33471# include <limits.h>
33472#else
33473# include <assert.h>
33474#endif
f95e4495
VS
33475
33476#undef $ac_func
33477
3fcdd07b 33478/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33479#ifdef __cplusplus
33480extern "C"
33481{
33482#endif
3fcdd07b 33483/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33484 builtin and then its argument prototype would still apply. */
33485char $ac_func ();
3fcdd07b
VZ
33486/* The GNU C library defines this for functions which it implements
33487 to always fail with ENOSYS. Some functions are actually named
33488 something starting with __ and the normal name is an alias. */
33489#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
33490choke me
33491#else
e6cc62c6
VS
33492char (*f) () = $ac_func;
33493#endif
33494#ifdef __cplusplus
33495}
3fcdd07b
VZ
33496#endif
33497
e6cc62c6
VS
33498int
33499main ()
33500{
33501return f != $ac_func;
33502 ;
33503 return 0;
33504}
33505_ACEOF
33506rm -f conftest.$ac_objext conftest$ac_exeext
33507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 33508 (eval $ac_link) 2>conftest.er1
e6cc62c6 33509 ac_status=$?
f95e4495
VS
33510 grep -v '^ *+' conftest.er1 >conftest.err
33511 rm -f conftest.er1
33512 cat conftest.err >&5
e6cc62c6
VS
33513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33514 (exit $ac_status); } &&
f95e4495
VS
33515 { ac_try='test -z "$ac_c_werror_flag"
33516 || test ! -s conftest.err'
33517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33518 (eval $ac_try) 2>&5
33519 ac_status=$?
33520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33521 (exit $ac_status); }; } &&
33522 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33524 (eval $ac_try) 2>&5
33525 ac_status=$?
33526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33527 (exit $ac_status); }; }; then
33528 eval "$as_ac_var=yes"
33529else
33530 echo "$as_me: failed program was:" >&5
33531sed 's/^/| /' conftest.$ac_ext >&5
33532
33533eval "$as_ac_var=no"
33534fi
f95e4495
VS
33535rm -f conftest.err conftest.$ac_objext \
33536 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33537fi
33538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
33539echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
33540if test `eval echo '${'$as_ac_var'}'` = yes; then
33541 cat >>confdefs.h <<_ACEOF
33542#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
33543_ACEOF
3fcdd07b 33544 break
3fcdd07b
VZ
33545fi
33546done
33547
698dcdb6 33548
8284b0c5 33549 if test "$ac_cv_func_gettimeofday" = "yes"; then
e6cc62c6
VS
33550 echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
33551echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6
33552if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
33553 echo $ECHO_N "(cached) $ECHO_C" >&6
33554else
33555
33556
33557
33558 ac_ext=cc
5c6fa7d2 33559ac_cpp='$CXXCPP $CPPFLAGS'
e6cc62c6
VS
33560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
52127426 33563
8284b0c5 33564
e6cc62c6 33565 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33566/* confdefs.h. */
33567_ACEOF
33568cat confdefs.h >>conftest.$ac_ext
33569cat >>conftest.$ac_ext <<_ACEOF
33570/* end confdefs.h. */
afc31813
VZ
33571
33572 #include <sys/time.h>
33573 #include <unistd.h>
e6cc62c6
VS
33574
33575int
33576main ()
33577{
afc31813
VZ
33578
33579 struct timeval tv;
776862b4 33580 gettimeofday(&tv, NULL);
e6cc62c6
VS
33581
33582 ;
33583 return 0;
33584}
33585_ACEOF
33586rm -f conftest.$ac_objext
33587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 33588 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33589 ac_status=$?
f95e4495
VS
33590 grep -v '^ *+' conftest.er1 >conftest.err
33591 rm -f conftest.er1
33592 cat conftest.err >&5
e6cc62c6
VS
33593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33594 (exit $ac_status); } &&
f95e4495
VS
33595 { ac_try='test -z "$ac_cxx_werror_flag"
33596 || test ! -s conftest.err'
33597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33598 (eval $ac_try) 2>&5
33599 ac_status=$?
33600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33601 (exit $ac_status); }; } &&
33602 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33604 (eval $ac_try) 2>&5
33605 ac_status=$?
33606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33607 (exit $ac_status); }; }; then
afc31813 33608 wx_cv_func_gettimeofday_has_2_args=yes
10f2d63a 33609else
e6cc62c6
VS
33610 echo "$as_me: failed program was:" >&5
33611sed 's/^/| /' conftest.$ac_ext >&5
33612
33613cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33614/* confdefs.h. */
33615_ACEOF
33616cat confdefs.h >>conftest.$ac_ext
33617cat >>conftest.$ac_ext <<_ACEOF
33618/* end confdefs.h. */
afc31813
VZ
33619
33620 #include <sys/time.h>
33621 #include <unistd.h>
e6cc62c6
VS
33622
33623int
33624main ()
33625{
afc31813
VZ
33626
33627 struct timeval tv;
33628 gettimeofday(&tv);
e6cc62c6
VS
33629
33630 ;
33631 return 0;
33632}
33633_ACEOF
33634rm -f conftest.$ac_objext
33635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 33636 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33637 ac_status=$?
f95e4495
VS
33638 grep -v '^ *+' conftest.er1 >conftest.err
33639 rm -f conftest.er1
33640 cat conftest.err >&5
e6cc62c6
VS
33641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33642 (exit $ac_status); } &&
f95e4495
VS
33643 { ac_try='test -z "$ac_cxx_werror_flag"
33644 || test ! -s conftest.err'
33645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33646 (eval $ac_try) 2>&5
33647 ac_status=$?
33648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33649 (exit $ac_status); }; } &&
33650 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33652 (eval $ac_try) 2>&5
33653 ac_status=$?
33654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33655 (exit $ac_status); }; }; then
afc31813 33656 wx_cv_func_gettimeofday_has_2_args=no
10f2d63a 33657else
e6cc62c6
VS
33658 echo "$as_me: failed program was:" >&5
33659sed 's/^/| /' conftest.$ac_ext >&5
33660
33661
33662 { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
33663echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
776862b4 33664 wx_cv_func_gettimeofday_has_2_args=unknown
e6cc62c6
VS
33665
33666
10f2d63a 33667fi
f95e4495 33668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 33669
10f2d63a 33670fi
f95e4495 33671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
afc31813 33672 ac_ext=c
10f2d63a 33673ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
33674ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33675ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33676ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 33677
a0b9e27f 33678
e6cc62c6
VS
33679fi
33680echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
33681echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6
c63c7106 33682
afc31813 33683 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
e6cc62c6 33684 cat >>confdefs.h <<\_ACEOF
afc31813 33685#define WX_GETTIMEOFDAY_NO_TZ 1
e6cc62c6 33686_ACEOF
afc31813
VZ
33687
33688 fi
33689 fi
33690
afc31813
VZ
33691 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
33692fi
33693
8284b0c5 33694
52127426 33695if test "$wxUSE_SOCKETS" = "yes"; then
6c657b52 33696 if test "$wxUSE_MGL" = "1"; then
e6cc62c6
VS
33697 { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
33698echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
6c657b52
VS
33699 wxUSE_SOCKETS="no"
33700 fi
0feee163 33701fi
b089607b 33702
0feee163
VZ
33703if test "$wxUSE_SOCKETS" = "yes"; then
33704 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
33705 echo "$as_me:$LINENO: checking for socket" >&5
33706echo $ECHO_N "checking for socket... $ECHO_C" >&6
33707if test "${ac_cv_func_socket+set}" = set; then
33708 echo $ECHO_N "(cached) $ECHO_C" >&6
33709else
33710 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33711/* confdefs.h. */
33712_ACEOF
33713cat confdefs.h >>conftest.$ac_ext
33714cat >>conftest.$ac_ext <<_ACEOF
33715/* end confdefs.h. */
f95e4495
VS
33716/* Define socket to an innocuous variant, in case <limits.h> declares socket.
33717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
33718#define socket innocuous_socket
33719
c63c7106 33720/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
33721 which can conflict with char socket (); below.
33722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33723 <limits.h> exists even on freestanding compilers. */
f95e4495 33724
e6cc62c6
VS
33725#ifdef __STDC__
33726# include <limits.h>
33727#else
33728# include <assert.h>
33729#endif
f95e4495
VS
33730
33731#undef socket
33732
c63c7106 33733/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33734#ifdef __cplusplus
33735extern "C"
33736{
33737#endif
c63c7106 33738/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33739 builtin and then its argument prototype would still apply. */
33740char socket ();
c63c7106
VZ
33741/* The GNU C library defines this for functions which it implements
33742 to always fail with ENOSYS. Some functions are actually named
33743 something starting with __ and the normal name is an alias. */
33744#if defined (__stub_socket) || defined (__stub___socket)
33745choke me
33746#else
e6cc62c6
VS
33747char (*f) () = socket;
33748#endif
33749#ifdef __cplusplus
33750}
c63c7106
VZ
33751#endif
33752
e6cc62c6
VS
33753int
33754main ()
33755{
33756return f != socket;
33757 ;
33758 return 0;
33759}
33760_ACEOF
33761rm -f conftest.$ac_objext conftest$ac_exeext
33762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 33763 (eval $ac_link) 2>conftest.er1
e6cc62c6 33764 ac_status=$?
f95e4495
VS
33765 grep -v '^ *+' conftest.er1 >conftest.err
33766 rm -f conftest.er1
33767 cat conftest.err >&5
e6cc62c6
VS
33768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33769 (exit $ac_status); } &&
f95e4495
VS
33770 { ac_try='test -z "$ac_c_werror_flag"
33771 || test ! -s conftest.err'
33772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33773 (eval $ac_try) 2>&5
33774 ac_status=$?
33775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33776 (exit $ac_status); }; } &&
33777 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33779 (eval $ac_try) 2>&5
33780 ac_status=$?
33781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33782 (exit $ac_status); }; }; then
33783 ac_cv_func_socket=yes
33784else
33785 echo "$as_me: failed program was:" >&5
33786sed 's/^/| /' conftest.$ac_ext >&5
33787
33788ac_cv_func_socket=no
33789fi
f95e4495
VS
33790rm -f conftest.err conftest.$ac_objext \
33791 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33792fi
33793echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
33794echo "${ECHO_T}$ac_cv_func_socket" >&6
33795if test $ac_cv_func_socket = yes; then
c63c7106
VZ
33796 :
33797else
0e012a93
VZ
33798
33799 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
e6cc62c6
VS
33800echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
33801if test "${ac_cv_lib_socket_socket+set}" = set; then
33802 echo $ECHO_N "(cached) $ECHO_C" >&6
c63c7106 33803else
e6cc62c6 33804 ac_check_lib_save_LIBS=$LIBS
c63c7106 33805LIBS="-lsocket $LIBS"
e6cc62c6 33806cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33807/* confdefs.h. */
33808_ACEOF
33809cat confdefs.h >>conftest.$ac_ext
33810cat >>conftest.$ac_ext <<_ACEOF
33811/* end confdefs.h. */
33812
c63c7106 33813/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
33814#ifdef __cplusplus
33815extern "C"
33816#endif
c63c7106 33817/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
33818 builtin and then its argument prototype would still apply. */
33819char socket ();
33820int
33821main ()
33822{
33823socket ();
33824 ;
33825 return 0;
33826}
33827_ACEOF
33828rm -f conftest.$ac_objext conftest$ac_exeext
33829if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 33830 (eval $ac_link) 2>conftest.er1
e6cc62c6 33831 ac_status=$?
f95e4495
VS
33832 grep -v '^ *+' conftest.er1 >conftest.err
33833 rm -f conftest.er1
33834 cat conftest.err >&5
e6cc62c6
VS
33835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33836 (exit $ac_status); } &&
f95e4495
VS
33837 { ac_try='test -z "$ac_c_werror_flag"
33838 || test ! -s conftest.err'
33839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33840 (eval $ac_try) 2>&5
33841 ac_status=$?
33842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33843 (exit $ac_status); }; } &&
33844 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
33845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33846 (eval $ac_try) 2>&5
33847 ac_status=$?
33848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33849 (exit $ac_status); }; }; then
33850 ac_cv_lib_socket_socket=yes
33851else
33852 echo "$as_me: failed program was:" >&5
33853sed 's/^/| /' conftest.$ac_ext >&5
33854
33855ac_cv_lib_socket_socket=no
33856fi
f95e4495
VS
33857rm -f conftest.err conftest.$ac_objext \
33858 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
33859LIBS=$ac_check_lib_save_LIBS
33860fi
33861echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
33862echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
33863if test $ac_cv_lib_socket_socket = yes; then
d558c907 33864 if test "$INET_LINK" != " -lsocket"; then
0e012a93
VZ
33865 INET_LINK="$INET_LINK -lsocket"
33866 fi
c63c7106 33867else
afc31813 33868
0e012a93 33869 { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
e6cc62c6 33870echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
0e012a93 33871 wxUSE_SOCKETS=no
e6cc62c6
VS
33872
33873
6232543b 33874fi
b089607b 33875
e6cc62c6 33876
0e012a93 33877
1e487827 33878fi
afc31813 33879
3a922bb4 33880 fi
0feee163 33881fi
51a9faba 33882
0feee163
VZ
33883if test "$wxUSE_SOCKETS" = "yes" ; then
33884 if test "$TOOLKIT" != "MSW"; then
e6cc62c6
VS
33885 echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
33886echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6
33887if test "${wx_cv_type_getsockname3+set}" = set; then
33888 echo $ECHO_N "(cached) $ECHO_C" >&6
a0b9e27f 33889else
e6cc62c6
VS
33890
33891 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33892/* confdefs.h. */
33893_ACEOF
33894cat confdefs.h >>conftest.$ac_ext
33895cat >>conftest.$ac_ext <<_ACEOF
33896/* end confdefs.h. */
51a9faba 33897
3a922bb4
RL
33898 #include <sys/types.h>
33899 #include <sys/socket.h>
e6cc62c6
VS
33900
33901int
33902main ()
33903{
51a9faba 33904
3a922bb4
RL
33905 socklen_t len;
33906 getsockname(0, 0, &len);
e6cc62c6
VS
33907
33908 ;
33909 return 0;
33910}
33911_ACEOF
33912rm -f conftest.$ac_objext
33913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 33914 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33915 ac_status=$?
f95e4495
VS
33916 grep -v '^ *+' conftest.er1 >conftest.err
33917 rm -f conftest.er1
33918 cat conftest.err >&5
e6cc62c6
VS
33919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33920 (exit $ac_status); } &&
f95e4495
VS
33921 { ac_try='test -z "$ac_c_werror_flag"
33922 || test ! -s conftest.err'
33923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33924 (eval $ac_try) 2>&5
33925 ac_status=$?
33926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33927 (exit $ac_status); }; } &&
33928 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33930 (eval $ac_try) 2>&5
33931 ac_status=$?
33932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33933 (exit $ac_status); }; }; then
51a9faba 33934 wx_cv_type_getsockname3=socklen_t
afc31813 33935else
e6cc62c6
VS
33936 echo "$as_me: failed program was:" >&5
33937sed 's/^/| /' conftest.$ac_ext >&5
33938
33939
9711d31e
GD
33940 CFLAGS_OLD="$CFLAGS"
33941 if test "$GCC" = yes ; then
33942 CFLAGS="$CFLAGS -Werror"
33943 fi
33944
e6cc62c6 33945 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33946/* confdefs.h. */
33947_ACEOF
33948cat confdefs.h >>conftest.$ac_ext
33949cat >>conftest.$ac_ext <<_ACEOF
33950/* end confdefs.h. */
51a9faba 33951
9711d31e
GD
33952 #include <sys/types.h>
33953 #include <sys/socket.h>
e6cc62c6
VS
33954
33955int
33956main ()
33957{
51a9faba 33958
9711d31e
GD
33959 size_t len;
33960 getsockname(0, 0, &len);
e6cc62c6
VS
33961
33962 ;
33963 return 0;
33964}
33965_ACEOF
33966rm -f conftest.$ac_objext
33967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 33968 (eval $ac_compile) 2>conftest.er1
e6cc62c6 33969 ac_status=$?
f95e4495
VS
33970 grep -v '^ *+' conftest.er1 >conftest.err
33971 rm -f conftest.er1
33972 cat conftest.err >&5
e6cc62c6
VS
33973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33974 (exit $ac_status); } &&
f95e4495
VS
33975 { ac_try='test -z "$ac_c_werror_flag"
33976 || test ! -s conftest.err'
33977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33978 (eval $ac_try) 2>&5
33979 ac_status=$?
33980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33981 (exit $ac_status); }; } &&
33982 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
33983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33984 (eval $ac_try) 2>&5
33985 ac_status=$?
33986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33987 (exit $ac_status); }; }; then
51a9faba 33988 wx_cv_type_getsockname3=size_t
afc31813 33989else
e6cc62c6
VS
33990 echo "$as_me: failed program was:" >&5
33991sed 's/^/| /' conftest.$ac_ext >&5
33992
33993cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
33994/* confdefs.h. */
33995_ACEOF
33996cat confdefs.h >>conftest.$ac_ext
33997cat >>conftest.$ac_ext <<_ACEOF
33998/* end confdefs.h. */
51a9faba 33999
9711d31e
GD
34000 #include <sys/types.h>
34001 #include <sys/socket.h>
e6cc62c6
VS
34002
34003int
34004main ()
34005{
51a9faba 34006
9711d31e
GD
34007 int len;
34008 getsockname(0, 0, &len);
e6cc62c6
VS
34009
34010 ;
34011 return 0;
34012}
34013_ACEOF
34014rm -f conftest.$ac_objext
34015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 34016 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34017 ac_status=$?
f95e4495
VS
34018 grep -v '^ *+' conftest.er1 >conftest.err
34019 rm -f conftest.er1
34020 cat conftest.err >&5
e6cc62c6
VS
34021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34022 (exit $ac_status); } &&
f95e4495
VS
34023 { ac_try='test -z "$ac_c_werror_flag"
34024 || test ! -s conftest.err'
34025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34026 (eval $ac_try) 2>&5
34027 ac_status=$?
34028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34029 (exit $ac_status); }; } &&
34030 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
34031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34032 (eval $ac_try) 2>&5
34033 ac_status=$?
34034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34035 (exit $ac_status); }; }; then
51a9faba 34036 wx_cv_type_getsockname3=int
afc31813 34037else
e6cc62c6
VS
34038 echo "$as_me: failed program was:" >&5
34039sed 's/^/| /' conftest.$ac_ext >&5
34040
34041wx_cv_type_getsockname3=unknown
34042
afc31813 34043fi
f95e4495 34044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6 34045
afc31813 34046fi
f95e4495 34047rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9711d31e
GD
34048
34049 CFLAGS="$CFLAGS_OLD"
e6cc62c6
VS
34050
34051
247f5006 34052fi
f95e4495 34053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
a0b9e27f 34054
e6cc62c6
VS
34055fi
34056echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
34057echo "${ECHO_T}$wx_cv_type_getsockname3" >&6
51a9faba 34058
3a922bb4
RL
34059 if test "$wx_cv_type_getsockname3" = "unknown"; then
34060 wxUSE_SOCKETS=no
e6cc62c6
VS
34061 { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
34062echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
3a922bb4 34063 else
e6cc62c6 34064 cat >>confdefs.h <<_ACEOF
51a9faba 34065#define SOCKLEN_T $wx_cv_type_getsockname3
e6cc62c6 34066_ACEOF
51a9faba 34067
3a922bb4 34068 fi
51a9faba
VZ
34069 fi
34070fi
afc31813 34071
51a9faba 34072if test "$wxUSE_SOCKETS" = "yes" ; then
e6cc62c6 34073 cat >>confdefs.h <<\_ACEOF
afc31813 34074#define wxUSE_SOCKETS 1
e6cc62c6 34075_ACEOF
afc31813 34076
70f7a477 34077 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
afc31813
VZ
34078fi
34079
3879ecda
VZ
34080if test "$wxUSE_PROTOCOL" = "yes"; then
34081 if test "$wxUSE_SOCKETS" != "yes"; then
34082 { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
34083echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
34084 wxUSE_PROTOCOL=no
34085 fi
34086fi
34087
34088if test "$wxUSE_PROTOCOL" = "yes"; then
34089 cat >>confdefs.h <<\_ACEOF
34090#define wxUSE_PROTOCOL 1
34091_ACEOF
34092
34093
34094 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
34095 cat >>confdefs.h <<\_ACEOF
34096#define wxUSE_PROTOCOL_HTTP 1
34097_ACEOF
34098
34099 fi
34100 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
34101 cat >>confdefs.h <<\_ACEOF
34102#define wxUSE_PROTOCOL_FTP 1
34103_ACEOF
34104
34105 fi
34106 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
34107 cat >>confdefs.h <<\_ACEOF
34108#define wxUSE_PROTOCOL_FILE 1
34109_ACEOF
34110
34111 fi
34112else
34113 if test "$wxUSE_FS_INET" = "yes"; then
34114 { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
34115echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
34116 wxUSE_FS_INET="no"
34117 fi
34118fi
34119
34120if test "$wxUSE_URL" = "yes"; then
34121 if test "$wxUSE_PROTOCOL" != "yes"; then
34122 { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
34123echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
34124 wxUSE_URL=no
34125 fi
34126 if test "$wxUSE_URL" = "yes"; then
34127 cat >>confdefs.h <<\_ACEOF
34128#define wxUSE_URL 1
34129_ACEOF
34130
34131 fi
34132fi
34133
34134if test "$wxUSE_FS_INET" = "yes"; then
34135 cat >>confdefs.h <<\_ACEOF
34136#define wxUSE_FS_INET 1
34137_ACEOF
34138
34139fi
34140
8284b0c5 34141
dc3d889d
VZ
34142if test "$wxUSE_GUI" = "yes"; then
34143
ac0c4cc3 34144 if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
e6cc62c6
VS
34145 { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5
34146echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;}
156b2523 34147 wxUSE_JOYSTICK=no
156b2523
GD
34148 fi
34149
131f235d 34150 if test "$TOOLKIT" != "MSW"; then
3a922bb4 34151 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6
VS
34152
34153for ac_header in linux/joystick.h
10f2d63a 34154do
e6cc62c6
VS
34155as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34156if eval "test \"\${$as_ac_Header+set}\" = set"; then
34157 echo "$as_me:$LINENO: checking for $ac_header" >&5
34158echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34159if eval "test \"\${$as_ac_Header+set}\" = set"; then
34160 echo $ECHO_N "(cached) $ECHO_C" >&6
34161fi
34162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34163echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34164else
34165 # Is the header compilable?
34166echo "$as_me:$LINENO: checking $ac_header usability" >&5
34167echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34168cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34169/* confdefs.h. */
34170_ACEOF
34171cat confdefs.h >>conftest.$ac_ext
34172cat >>conftest.$ac_ext <<_ACEOF
34173/* end confdefs.h. */
34174$ac_includes_default
34175#include <$ac_header>
34176_ACEOF
34177rm -f conftest.$ac_objext
34178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 34179 (eval $ac_compile) 2>conftest.er1
e6cc62c6 34180 ac_status=$?
f95e4495
VS
34181 grep -v '^ *+' conftest.er1 >conftest.err
34182 rm -f conftest.er1
34183 cat conftest.err >&5
e6cc62c6
VS
34184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34185 (exit $ac_status); } &&
f95e4495
VS
34186 { ac_try='test -z "$ac_c_werror_flag"
34187 || test ! -s conftest.err'
34188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34189 (eval $ac_try) 2>&5
34190 ac_status=$?
34191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34192 (exit $ac_status); }; } &&
34193 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
34194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34195 (eval $ac_try) 2>&5
34196 ac_status=$?
34197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34198 (exit $ac_status); }; }; then
34199 ac_header_compiler=yes
34200else
34201 echo "$as_me: failed program was:" >&5
34202sed 's/^/| /' conftest.$ac_ext >&5
34203
34204ac_header_compiler=no
34205fi
f95e4495 34206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
34207echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34208echo "${ECHO_T}$ac_header_compiler" >&6
34209
34210# Is the header present?
34211echo "$as_me:$LINENO: checking $ac_header presence" >&5
34212echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34213cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34214/* confdefs.h. */
34215_ACEOF
34216cat confdefs.h >>conftest.$ac_ext
34217cat >>conftest.$ac_ext <<_ACEOF
34218/* end confdefs.h. */
34219#include <$ac_header>
34220_ACEOF
34221if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34223 ac_status=$?
34224 grep -v '^ *+' conftest.er1 >conftest.err
34225 rm -f conftest.er1
34226 cat conftest.err >&5
34227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34228 (exit $ac_status); } >/dev/null; then
34229 if test -s conftest.err; then
34230 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 34231 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
34232 else
34233 ac_cpp_err=
34234 fi
34235else
34236 ac_cpp_err=yes
34237fi
34238if test -z "$ac_cpp_err"; then
34239 ac_header_preproc=yes
34240else
34241 echo "$as_me: failed program was:" >&5
34242sed 's/^/| /' conftest.$ac_ext >&5
34243
34244 ac_header_preproc=no
34245fi
34246rm -f conftest.err conftest.$ac_ext
34247echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34248echo "${ECHO_T}$ac_header_preproc" >&6
34249
34250# So? What about this header?
f95e4495
VS
34251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34252 yes:no: )
e6cc62c6
VS
34253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34254echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
34255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34256echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34257 ac_header_preproc=yes
e6cc62c6 34258 ;;
f95e4495 34259 no:yes:* )
e6cc62c6
VS
34260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34261echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
34262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
34263echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
34264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34265echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
34267echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
34268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34269echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
34270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34271echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
34272 (
34273 cat <<\_ASBOX
f95e4495
VS
34274## ----------------------------------------- ##
34275## Report this to wx-dev@lists.wxwindows.org ##
34276## ----------------------------------------- ##
e6cc62c6
VS
34277_ASBOX
34278 ) |
34279 sed "s/^/$as_me: WARNING: /" >&2
34280 ;;
34281esac
34282echo "$as_me:$LINENO: checking for $ac_header" >&5
34283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34284if eval "test \"\${$as_ac_Header+set}\" = set"; then
34285 echo $ECHO_N "(cached) $ECHO_C" >&6
34286else
f95e4495 34287 eval "$as_ac_Header=\$ac_header_preproc"
247f5006 34288fi
e6cc62c6
VS
34289echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34290echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34291
10f2d63a 34292fi
e6cc62c6
VS
34293if test `eval echo '${'$as_ac_Header'}'` = yes; then
34294 cat >>confdefs.h <<_ACEOF
34295#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
34296_ACEOF
34297
247f5006 34298fi
e6cc62c6 34299
10f2d63a
VZ
34300done
34301
3a922bb4
RL
34302 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
34303 wxUSE_JOYSTICK=no
e6cc62c6
VS
34304 { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
34305echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
3a922bb4
RL
34306 fi
34307 fi
34308 fi
b089607b 34309
3a922bb4 34310 if test "$wxUSE_JOYSTICK" = "yes"; then
e6cc62c6 34311 cat >>confdefs.h <<\_ACEOF
10f2d63a 34312#define wxUSE_JOYSTICK 1
e6cc62c6 34313_ACEOF
10f2d63a 34314
3a922bb4
RL
34315 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
34316 fi
dc3d889d
VZ
34317fi
34318
8284b0c5 34319
73d617c9 34320if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
b089607b 34321
3a922bb4
RL
34322 HAVE_DL_FUNCS=0
34323 HAVE_SHL_FUNCS=0
0b9ab0bd 34324 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
3a922bb4
RL
34325 if test "$USE_DARWIN" = 1; then
34326 HAVE_DL_FUNCS=1
34327 else
e6cc62c6
VS
34328
34329for ac_func in dlopen
10f2d63a 34330do
e6cc62c6
VS
34331as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34332echo "$as_me:$LINENO: checking for $ac_func" >&5
34333echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34334if eval "test \"\${$as_ac_var+set}\" = set"; then
34335 echo $ECHO_N "(cached) $ECHO_C" >&6
34336else
34337 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34338/* confdefs.h. */
34339_ACEOF
34340cat confdefs.h >>conftest.$ac_ext
34341cat >>conftest.$ac_ext <<_ACEOF
34342/* end confdefs.h. */
f95e4495
VS
34343/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34345#define $ac_func innocuous_$ac_func
34346
10f2d63a 34347/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34348 which can conflict with char $ac_func (); below.
34349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34350 <limits.h> exists even on freestanding compilers. */
f95e4495 34351
e6cc62c6
VS
34352#ifdef __STDC__
34353# include <limits.h>
34354#else
34355# include <assert.h>
34356#endif
f95e4495
VS
34357
34358#undef $ac_func
34359
10f2d63a 34360/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34361#ifdef __cplusplus
34362extern "C"
34363{
34364#endif
10f2d63a 34365/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34366 builtin and then its argument prototype would still apply. */
34367char $ac_func ();
10f2d63a
VZ
34368/* The GNU C library defines this for functions which it implements
34369 to always fail with ENOSYS. Some functions are actually named
34370 something starting with __ and the normal name is an alias. */
34371#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34372choke me
34373#else
e6cc62c6
VS
34374char (*f) () = $ac_func;
34375#endif
34376#ifdef __cplusplus
34377}
10f2d63a
VZ
34378#endif
34379
e6cc62c6
VS
34380int
34381main ()
34382{
34383return f != $ac_func;
34384 ;
34385 return 0;
34386}
34387_ACEOF
34388rm -f conftest.$ac_objext conftest$ac_exeext
34389if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 34390 (eval $ac_link) 2>conftest.er1
e6cc62c6 34391 ac_status=$?
f95e4495
VS
34392 grep -v '^ *+' conftest.er1 >conftest.err
34393 rm -f conftest.er1
34394 cat conftest.err >&5
e6cc62c6
VS
34395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34396 (exit $ac_status); } &&
f95e4495
VS
34397 { ac_try='test -z "$ac_c_werror_flag"
34398 || test ! -s conftest.err'
34399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34400 (eval $ac_try) 2>&5
34401 ac_status=$?
34402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34403 (exit $ac_status); }; } &&
34404 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34406 (eval $ac_try) 2>&5
34407 ac_status=$?
34408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34409 (exit $ac_status); }; }; then
34410 eval "$as_ac_var=yes"
34411else
34412 echo "$as_me: failed program was:" >&5
34413sed 's/^/| /' conftest.$ac_ext >&5
34414
34415eval "$as_ac_var=no"
34416fi
f95e4495
VS
34417rm -f conftest.err conftest.$ac_objext \
34418 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34419fi
34420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34421echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34422if test `eval echo '${'$as_ac_var'}'` = yes; then
34423 cat >>confdefs.h <<_ACEOF
34424#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34425_ACEOF
34426
34427 cat >>confdefs.h <<\_ACEOF
10f2d63a 34428#define HAVE_DLOPEN 1
e6cc62c6 34429_ACEOF
10f2d63a 34430
3a922bb4 34431 HAVE_DL_FUNCS=1
e6cc62c6 34432
10f2d63a 34433else
e6cc62c6
VS
34434
34435 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
34436echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
34437if test "${ac_cv_lib_dl_dlopen+set}" = set; then
34438 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 34439else
e6cc62c6 34440 ac_check_lib_save_LIBS=$LIBS
10f2d63a 34441LIBS="-ldl $LIBS"
e6cc62c6 34442cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34443/* confdefs.h. */
34444_ACEOF
34445cat confdefs.h >>conftest.$ac_ext
34446cat >>conftest.$ac_ext <<_ACEOF
34447/* end confdefs.h. */
34448
10f2d63a 34449/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34450#ifdef __cplusplus
34451extern "C"
34452#endif
10f2d63a 34453/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34454 builtin and then its argument prototype would still apply. */
34455char dlopen ();
34456int
34457main ()
34458{
34459dlopen ();
34460 ;
34461 return 0;
34462}
34463_ACEOF
34464rm -f conftest.$ac_objext conftest$ac_exeext
34465if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 34466 (eval $ac_link) 2>conftest.er1
e6cc62c6 34467 ac_status=$?
f95e4495
VS
34468 grep -v '^ *+' conftest.er1 >conftest.err
34469 rm -f conftest.er1
34470 cat conftest.err >&5
e6cc62c6
VS
34471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34472 (exit $ac_status); } &&
f95e4495
VS
34473 { ac_try='test -z "$ac_c_werror_flag"
34474 || test ! -s conftest.err'
34475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34476 (eval $ac_try) 2>&5
34477 ac_status=$?
34478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34479 (exit $ac_status); }; } &&
34480 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34482 (eval $ac_try) 2>&5
34483 ac_status=$?
34484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34485 (exit $ac_status); }; }; then
34486 ac_cv_lib_dl_dlopen=yes
34487else
34488 echo "$as_me: failed program was:" >&5
34489sed 's/^/| /' conftest.$ac_ext >&5
34490
34491ac_cv_lib_dl_dlopen=no
34492fi
f95e4495
VS
34493rm -f conftest.err conftest.$ac_objext \
34494 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34495LIBS=$ac_check_lib_save_LIBS
34496fi
34497echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
34498echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
34499if test $ac_cv_lib_dl_dlopen = yes; then
34500
34501 cat >>confdefs.h <<\_ACEOF
10f2d63a 34502#define HAVE_DLOPEN 1
e6cc62c6 34503_ACEOF
10f2d63a 34504
3a922bb4 34505 HAVE_DL_FUNCS=1
3d63bc3a 34506 DL_LINK=" -ldl$DL_LINK"
e6cc62c6 34507
10f2d63a 34508else
10f2d63a 34509
e6cc62c6
VS
34510
34511for ac_func in shl_load
10f2d63a 34512do
e6cc62c6
VS
34513as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34514echo "$as_me:$LINENO: checking for $ac_func" >&5
34515echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34516if eval "test \"\${$as_ac_var+set}\" = set"; then
34517 echo $ECHO_N "(cached) $ECHO_C" >&6
34518else
34519 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34520/* confdefs.h. */
34521_ACEOF
34522cat confdefs.h >>conftest.$ac_ext
34523cat >>conftest.$ac_ext <<_ACEOF
34524/* end confdefs.h. */
f95e4495
VS
34525/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34526 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34527#define $ac_func innocuous_$ac_func
34528
10f2d63a 34529/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34530 which can conflict with char $ac_func (); below.
34531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34532 <limits.h> exists even on freestanding compilers. */
f95e4495 34533
e6cc62c6
VS
34534#ifdef __STDC__
34535# include <limits.h>
34536#else
34537# include <assert.h>
34538#endif
f95e4495
VS
34539
34540#undef $ac_func
34541
10f2d63a 34542/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34543#ifdef __cplusplus
34544extern "C"
34545{
34546#endif
10f2d63a 34547/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34548 builtin and then its argument prototype would still apply. */
34549char $ac_func ();
10f2d63a
VZ
34550/* The GNU C library defines this for functions which it implements
34551 to always fail with ENOSYS. Some functions are actually named
34552 something starting with __ and the normal name is an alias. */
34553#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34554choke me
34555#else
e6cc62c6
VS
34556char (*f) () = $ac_func;
34557#endif
34558#ifdef __cplusplus
34559}
10f2d63a
VZ
34560#endif
34561
e6cc62c6
VS
34562int
34563main ()
34564{
34565return f != $ac_func;
34566 ;
34567 return 0;
34568}
34569_ACEOF
34570rm -f conftest.$ac_objext conftest$ac_exeext
34571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 34572 (eval $ac_link) 2>conftest.er1
e6cc62c6 34573 ac_status=$?
f95e4495
VS
34574 grep -v '^ *+' conftest.er1 >conftest.err
34575 rm -f conftest.er1
34576 cat conftest.err >&5
e6cc62c6
VS
34577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34578 (exit $ac_status); } &&
f95e4495
VS
34579 { ac_try='test -z "$ac_c_werror_flag"
34580 || test ! -s conftest.err'
34581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34582 (eval $ac_try) 2>&5
34583 ac_status=$?
34584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34585 (exit $ac_status); }; } &&
34586 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34588 (eval $ac_try) 2>&5
34589 ac_status=$?
34590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34591 (exit $ac_status); }; }; then
34592 eval "$as_ac_var=yes"
34593else
34594 echo "$as_me: failed program was:" >&5
34595sed 's/^/| /' conftest.$ac_ext >&5
34596
34597eval "$as_ac_var=no"
34598fi
f95e4495
VS
34599rm -f conftest.err conftest.$ac_objext \
34600 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34601fi
34602echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34603echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34604if test `eval echo '${'$as_ac_var'}'` = yes; then
34605 cat >>confdefs.h <<_ACEOF
34606#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34607_ACEOF
34608
34609 cat >>confdefs.h <<\_ACEOF
10f2d63a 34610#define HAVE_SHL_LOAD 1
e6cc62c6 34611_ACEOF
10f2d63a 34612
3a922bb4 34613 HAVE_SHL_FUNCS=1
e6cc62c6 34614
10f2d63a 34615else
e6cc62c6
VS
34616
34617 echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
34618echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6
34619if test "${ac_cv_lib_shl_load_dld+set}" = set; then
34620 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 34621else
e6cc62c6 34622 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 34623LIBS="-lshl_load $LIBS"
e6cc62c6 34624cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34625/* confdefs.h. */
34626_ACEOF
34627cat confdefs.h >>conftest.$ac_ext
34628cat >>conftest.$ac_ext <<_ACEOF
34629/* end confdefs.h. */
34630
8284b0c5 34631/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34632#ifdef __cplusplus
34633extern "C"
34634#endif
f6bcfd97 34635/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34636 builtin and then its argument prototype would still apply. */
34637char dld ();
34638int
34639main ()
34640{
34641dld ();
34642 ;
34643 return 0;
34644}
34645_ACEOF
34646rm -f conftest.$ac_objext conftest$ac_exeext
34647if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 34648 (eval $ac_link) 2>conftest.er1
e6cc62c6 34649 ac_status=$?
f95e4495
VS
34650 grep -v '^ *+' conftest.er1 >conftest.err
34651 rm -f conftest.er1
34652 cat conftest.err >&5
e6cc62c6
VS
34653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34654 (exit $ac_status); } &&
f95e4495
VS
34655 { ac_try='test -z "$ac_c_werror_flag"
34656 || test ! -s conftest.err'
34657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34658 (eval $ac_try) 2>&5
34659 ac_status=$?
34660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34661 (exit $ac_status); }; } &&
34662 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34664 (eval $ac_try) 2>&5
34665 ac_status=$?
34666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34667 (exit $ac_status); }; }; then
34668 ac_cv_lib_shl_load_dld=yes
34669else
34670 echo "$as_me: failed program was:" >&5
34671sed 's/^/| /' conftest.$ac_ext >&5
34672
34673ac_cv_lib_shl_load_dld=no
34674fi
f95e4495
VS
34675rm -f conftest.err conftest.$ac_objext \
34676 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34677LIBS=$ac_check_lib_save_LIBS
34678fi
34679echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
34680echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6
34681if test $ac_cv_lib_shl_load_dld = yes; then
f6bcfd97 34682
3a922bb4 34683 HAVE_SHL_FUNCS=1
3d63bc3a 34684 DL_LINK=" -ldld$DL_LINK"
e6cc62c6 34685
f6bcfd97
BP
34686fi
34687
e6cc62c6 34688
10f2d63a
VZ
34689fi
34690done
34691
e6cc62c6 34692
10f2d63a
VZ
34693fi
34694
e6cc62c6 34695
10f2d63a
VZ
34696fi
34697done
34698
5c6fa7d2 34699
8284b0c5 34700 if test "$HAVE_DL_FUNCS" = 1; then
e6cc62c6
VS
34701
34702for ac_func in dlerror
f6bcfd97 34703do
e6cc62c6
VS
34704as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34705echo "$as_me:$LINENO: checking for $ac_func" >&5
34706echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34707if eval "test \"\${$as_ac_var+set}\" = set"; then
34708 echo $ECHO_N "(cached) $ECHO_C" >&6
34709else
34710 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34711/* confdefs.h. */
34712_ACEOF
34713cat confdefs.h >>conftest.$ac_ext
34714cat >>conftest.$ac_ext <<_ACEOF
34715/* end confdefs.h. */
f95e4495
VS
34716/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34718#define $ac_func innocuous_$ac_func
34719
f6bcfd97 34720/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
34721 which can conflict with char $ac_func (); below.
34722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34723 <limits.h> exists even on freestanding compilers. */
f95e4495 34724
e6cc62c6
VS
34725#ifdef __STDC__
34726# include <limits.h>
34727#else
34728# include <assert.h>
34729#endif
f95e4495
VS
34730
34731#undef $ac_func
34732
f6bcfd97 34733/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34734#ifdef __cplusplus
34735extern "C"
34736{
34737#endif
f6bcfd97 34738/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34739 builtin and then its argument prototype would still apply. */
34740char $ac_func ();
f6bcfd97
BP
34741/* The GNU C library defines this for functions which it implements
34742 to always fail with ENOSYS. Some functions are actually named
34743 something starting with __ and the normal name is an alias. */
34744#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34745choke me
34746#else
e6cc62c6
VS
34747char (*f) () = $ac_func;
34748#endif
34749#ifdef __cplusplus
34750}
f6bcfd97
BP
34751#endif
34752
e6cc62c6
VS
34753int
34754main ()
34755{
34756return f != $ac_func;
34757 ;
34758 return 0;
34759}
34760_ACEOF
34761rm -f conftest.$ac_objext conftest$ac_exeext
34762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 34763 (eval $ac_link) 2>conftest.er1
e6cc62c6 34764 ac_status=$?
f95e4495
VS
34765 grep -v '^ *+' conftest.er1 >conftest.err
34766 rm -f conftest.er1
34767 cat conftest.err >&5
e6cc62c6
VS
34768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34769 (exit $ac_status); } &&
f95e4495
VS
34770 { ac_try='test -z "$ac_c_werror_flag"
34771 || test ! -s conftest.err'
34772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34773 (eval $ac_try) 2>&5
34774 ac_status=$?
34775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34776 (exit $ac_status); }; } &&
34777 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34779 (eval $ac_try) 2>&5
34780 ac_status=$?
34781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34782 (exit $ac_status); }; }; then
34783 eval "$as_ac_var=yes"
34784else
34785 echo "$as_me: failed program was:" >&5
34786sed 's/^/| /' conftest.$ac_ext >&5
34787
34788eval "$as_ac_var=no"
34789fi
f95e4495
VS
34790rm -f conftest.err conftest.$ac_objext \
34791 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34792fi
34793echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34794echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34795if test `eval echo '${'$as_ac_var'}'` = yes; then
34796 cat >>confdefs.h <<_ACEOF
34797#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34798_ACEOF
34799 cat >>confdefs.h <<\_ACEOF
f6bcfd97 34800#define HAVE_DLERROR 1
e6cc62c6 34801_ACEOF
f6bcfd97
BP
34802
34803else
0e012a93
VZ
34804
34805 echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
e6cc62c6
VS
34806echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6
34807if test "${ac_cv_lib_dl_dlerror+set}" = set; then
34808 echo $ECHO_N "(cached) $ECHO_C" >&6
f6bcfd97 34809else
e6cc62c6 34810 ac_check_lib_save_LIBS=$LIBS
f6bcfd97 34811LIBS="-ldl $LIBS"
e6cc62c6 34812cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34813/* confdefs.h. */
34814_ACEOF
34815cat confdefs.h >>conftest.$ac_ext
34816cat >>conftest.$ac_ext <<_ACEOF
34817/* end confdefs.h. */
34818
f6bcfd97 34819/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
34820#ifdef __cplusplus
34821extern "C"
34822#endif
f6bcfd97 34823/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
34824 builtin and then its argument prototype would still apply. */
34825char dlerror ();
34826int
34827main ()
34828{
34829dlerror ();
34830 ;
34831 return 0;
34832}
34833_ACEOF
34834rm -f conftest.$ac_objext conftest$ac_exeext
34835if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 34836 (eval $ac_link) 2>conftest.er1
e6cc62c6 34837 ac_status=$?
f95e4495
VS
34838 grep -v '^ *+' conftest.er1 >conftest.err
34839 rm -f conftest.er1
34840 cat conftest.err >&5
e6cc62c6
VS
34841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34842 (exit $ac_status); } &&
f95e4495
VS
34843 { ac_try='test -z "$ac_c_werror_flag"
34844 || test ! -s conftest.err'
34845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34846 (eval $ac_try) 2>&5
34847 ac_status=$?
34848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34849 (exit $ac_status); }; } &&
34850 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34852 (eval $ac_try) 2>&5
34853 ac_status=$?
34854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34855 (exit $ac_status); }; }; then
34856 ac_cv_lib_dl_dlerror=yes
34857else
34858 echo "$as_me: failed program was:" >&5
34859sed 's/^/| /' conftest.$ac_ext >&5
34860
34861ac_cv_lib_dl_dlerror=no
34862fi
f95e4495
VS
34863rm -f conftest.err conftest.$ac_objext \
34864 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34865LIBS=$ac_check_lib_save_LIBS
34866fi
34867echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
34868echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6
34869if test $ac_cv_lib_dl_dlerror = yes; then
34870 cat >>confdefs.h <<\_ACEOF
f6bcfd97 34871#define HAVE_DLERROR 1
e6cc62c6 34872_ACEOF
f6bcfd97 34873
f6bcfd97
BP
34874fi
34875
0e012a93
VZ
34876
34877
f6bcfd97
BP
34878fi
34879done
34880
3a922bb4
RL
34881 fi
34882 fi
f6bcfd97 34883
3a922bb4
RL
34884 if test "$HAVE_DL_FUNCS" = 0; then
34885 if test "$HAVE_SHL_FUNCS" = 0; then
34886 if test "$USE_UNIX" = 1; then
e6cc62c6
VS
34887 { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
34888echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
0b9ab0bd 34889 wxUSE_DYNAMIC_LOADER=no
3a922bb4
RL
34890 wxUSE_DYNLIB_CLASS=no
34891 else
e6cc62c6
VS
34892 { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
34893echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
3a922bb4
RL
34894 fi
34895 fi
10f2d63a
VZ
34896 fi
34897 fi
34898fi
34899
0b9ab0bd 34900if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
e6cc62c6 34901 cat >>confdefs.h <<\_ACEOF
0b9ab0bd 34902#define wxUSE_DYNAMIC_LOADER 1
e6cc62c6 34903_ACEOF
0b9ab0bd 34904
1948bb32
VS
34905fi
34906if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
e6cc62c6 34907 cat >>confdefs.h <<\_ACEOF
10f2d63a 34908#define wxUSE_DYNLIB_CLASS 1
e6cc62c6 34909_ACEOF
10f2d63a
VZ
34910
34911fi
34912
8284b0c5 34913
1e6feb95 34914if test "$wxUSE_FONTMAP" = "yes" ; then
e6cc62c6 34915 cat >>confdefs.h <<\_ACEOF
1e6feb95 34916#define wxUSE_FONTMAP 1
e6cc62c6 34917_ACEOF
1e6feb95
VZ
34918
34919fi
34920
10f2d63a 34921if test "$wxUSE_UNICODE" = "yes" ; then
e6cc62c6 34922 cat >>confdefs.h <<\_ACEOF
10f2d63a 34923#define wxUSE_UNICODE 1
e6cc62c6 34924_ACEOF
10f2d63a 34925
8284b0c5 34926
eb854003 34927 if test "$USE_WIN32" != 1; then
bbc3925a
VS
34928 wxUSE_UNICODE_MSLU=no
34929 fi
a72a4bfa 34930
eb854003 34931 if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
e6cc62c6
VS
34932 echo "$as_me:$LINENO: checking for main in -lunicows" >&5
34933echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6
34934if test "${ac_cv_lib_unicows_main+set}" = set; then
34935 echo $ECHO_N "(cached) $ECHO_C" >&6
a72a4bfa 34936else
e6cc62c6 34937 ac_check_lib_save_LIBS=$LIBS
a72a4bfa 34938LIBS="-lunicows $LIBS"
e6cc62c6 34939cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
34940/* confdefs.h. */
34941_ACEOF
34942cat confdefs.h >>conftest.$ac_ext
34943cat >>conftest.$ac_ext <<_ACEOF
34944/* end confdefs.h. */
a72a4bfa 34945
8284b0c5 34946
e6cc62c6
VS
34947int
34948main ()
34949{
34950main ();
34951 ;
34952 return 0;
34953}
34954_ACEOF
34955rm -f conftest.$ac_objext conftest$ac_exeext
34956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 34957 (eval $ac_link) 2>conftest.er1
e6cc62c6 34958 ac_status=$?
f95e4495
VS
34959 grep -v '^ *+' conftest.er1 >conftest.err
34960 rm -f conftest.er1
34961 cat conftest.err >&5
e6cc62c6
VS
34962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963 (exit $ac_status); } &&
f95e4495
VS
34964 { ac_try='test -z "$ac_c_werror_flag"
34965 || test ! -s conftest.err'
34966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34967 (eval $ac_try) 2>&5
34968 ac_status=$?
34969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34970 (exit $ac_status); }; } &&
34971 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
34972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34973 (eval $ac_try) 2>&5
34974 ac_status=$?
34975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34976 (exit $ac_status); }; }; then
34977 ac_cv_lib_unicows_main=yes
34978else
34979 echo "$as_me: failed program was:" >&5
34980sed 's/^/| /' conftest.$ac_ext >&5
34981
34982ac_cv_lib_unicows_main=no
34983fi
f95e4495
VS
34984rm -f conftest.err conftest.$ac_objext \
34985 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
34986LIBS=$ac_check_lib_save_LIBS
34987fi
34988echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
34989echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6
34990if test $ac_cv_lib_unicows_main = yes; then
34991
34992 cat >>confdefs.h <<\_ACEOF
a72a4bfa 34993#define wxUSE_UNICODE_MSLU 1
e6cc62c6
VS
34994_ACEOF
34995
a72a4bfa 34996
a72a4bfa 34997else
a72a4bfa 34998
e6cc62c6
VS
34999 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35000 Applications will only run on Windows NT/2000/XP!" >&5
35001echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
35002 Applications will only run on Windows NT/2000/XP!" >&2;}
a72a4bfa 35003 wxUSE_UNICODE_MSLU=no
e6cc62c6 35004
a72a4bfa
VS
35005fi
35006
35007 fi
10f2d63a
VZ
35008fi
35009
10f2d63a 35010if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
e6cc62c6 35011 cat >>confdefs.h <<\_ACEOF
10f2d63a 35012#define wxUSE_EXPERIMENTAL_PRINTF 1
e6cc62c6 35013_ACEOF
10f2d63a
VZ
35014
35015fi
35016
8284b0c5 35017
10f2d63a 35018if test "$wxUSE_POSTSCRIPT" = "yes" ; then
e6cc62c6 35019 cat >>confdefs.h <<\_ACEOF
10f2d63a 35020#define wxUSE_POSTSCRIPT 1
e6cc62c6 35021_ACEOF
10f2d63a
VZ
35022
35023fi
35024
e6cc62c6 35025cat >>confdefs.h <<\_ACEOF
10f2d63a 35026#define wxUSE_AFM_FOR_POSTSCRIPT 1
e6cc62c6 35027_ACEOF
10f2d63a 35028
8284b0c5 35029
e6cc62c6 35030cat >>confdefs.h <<\_ACEOF
10f2d63a 35031#define wxUSE_NORMALIZED_PS_FONTS 1
e6cc62c6 35032_ACEOF
10f2d63a 35033
8284b0c5
MB
35034
35035
10f2d63a 35036if test "$wxUSE_CONSTRAINTS" = "yes"; then
e6cc62c6 35037 cat >>confdefs.h <<\_ACEOF
10f2d63a 35038#define wxUSE_CONSTRAINTS 1
e6cc62c6 35039_ACEOF
10f2d63a
VZ
35040
35041 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
35042fi
35043
3879ecda 35044if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
1772d20c 35045 cat >>confdefs.h <<\_ACEOF
10f2d63a 35046#define wxUSE_MDI_ARCHITECTURE 1
e6cc62c6 35047_ACEOF
10f2d63a 35048
1772d20c 35049 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
10f2d63a
VZ
35050fi
35051
35052if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
e6cc62c6 35053 cat >>confdefs.h <<\_ACEOF
10f2d63a 35054#define wxUSE_DOC_VIEW_ARCHITECTURE 1
e6cc62c6 35055_ACEOF
10f2d63a
VZ
35056
35057 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
35058 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
35059 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
35060 fi
35061fi
35062
35063if test "$wxUSE_HELP" = "yes"; then
e6cc62c6 35064 cat >>confdefs.h <<\_ACEOF
10f2d63a 35065#define wxUSE_HELP 1
e6cc62c6 35066_ACEOF
10f2d63a
VZ
35067
35068 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
3379ed37 35069
77e13408 35070 if test "$wxUSE_MSW" = 1; then
031d8228 35071 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
e6cc62c6 35072 cat >>confdefs.h <<\_ACEOF
29fd3c0c 35073#define wxUSE_MS_HTML_HELP 1
e6cc62c6 35074_ACEOF
29fd3c0c 35075
3e44f09d 35076 fi
3379ed37 35077 fi
031d8228
VS
35078
35079 if test "$wxUSE_WXHTML_HELP" = "yes"; then
35080 if test "$wxUSE_HTML" = "yes"; then
e6cc62c6 35081 cat >>confdefs.h <<\_ACEOF
031d8228 35082#define wxUSE_WXHTML_HELP 1
e6cc62c6 35083_ACEOF
031d8228
VS
35084
35085 else
e6cc62c6
VS
35086 { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
35087echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
031d8228
VS
35088 wxUSE_WXHTML_HELP=no
35089 fi
35090 fi
10f2d63a
VZ
35091fi
35092
35093if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
35094 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
35095 { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
35096echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
10f2d63a 35097 else
e6cc62c6 35098 cat >>confdefs.h <<\_ACEOF
10f2d63a 35099#define wxUSE_PRINTING_ARCHITECTURE 1
e6cc62c6 35100_ACEOF
10f2d63a
VZ
35101
35102 fi
35103 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
35104fi
35105
e6cc62c6
VS
35106if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then
35107 { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5
35108echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;}
35109 { (exit 1); exit 1; }; }
35110fi
35111
35112
f95e4495 35113if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
e6cc62c6
VS
35114 -o "$wxUSE_CLIPBOARD" = "yes" \
35115 -o "$wxUSE_OLE" = "yes" \
35116 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
35117
35118for ac_header in ole2.h
35119do
35120as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35121if eval "test \"\${$as_ac_Header+set}\" = set"; then
35122 echo "$as_me:$LINENO: checking for $ac_header" >&5
35123echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35124if eval "test \"\${$as_ac_Header+set}\" = set"; then
35125 echo $ECHO_N "(cached) $ECHO_C" >&6
35126fi
35127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35128echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35129else
35130 # Is the header compilable?
35131echo "$as_me:$LINENO: checking $ac_header usability" >&5
35132echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35133cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35134/* confdefs.h. */
35135_ACEOF
35136cat confdefs.h >>conftest.$ac_ext
35137cat >>conftest.$ac_ext <<_ACEOF
35138/* end confdefs.h. */
35139$ac_includes_default
35140#include <$ac_header>
35141_ACEOF
35142rm -f conftest.$ac_objext
35143if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 35144 (eval $ac_compile) 2>conftest.er1
e6cc62c6 35145 ac_status=$?
f95e4495
VS
35146 grep -v '^ *+' conftest.er1 >conftest.err
35147 rm -f conftest.er1
35148 cat conftest.err >&5
e6cc62c6
VS
35149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35150 (exit $ac_status); } &&
f95e4495
VS
35151 { ac_try='test -z "$ac_c_werror_flag"
35152 || test ! -s conftest.err'
35153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35154 (eval $ac_try) 2>&5
35155 ac_status=$?
35156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35157 (exit $ac_status); }; } &&
35158 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
35159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35160 (eval $ac_try) 2>&5
35161 ac_status=$?
35162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35163 (exit $ac_status); }; }; then
35164 ac_header_compiler=yes
35165else
35166 echo "$as_me: failed program was:" >&5
35167sed 's/^/| /' conftest.$ac_ext >&5
35168
35169ac_header_compiler=no
35170fi
f95e4495 35171rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
e6cc62c6
VS
35172echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35173echo "${ECHO_T}$ac_header_compiler" >&6
35174
35175# Is the header present?
35176echo "$as_me:$LINENO: checking $ac_header presence" >&5
35177echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35178cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35179/* confdefs.h. */
35180_ACEOF
35181cat confdefs.h >>conftest.$ac_ext
35182cat >>conftest.$ac_ext <<_ACEOF
35183/* end confdefs.h. */
35184#include <$ac_header>
35185_ACEOF
35186if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35188 ac_status=$?
35189 grep -v '^ *+' conftest.er1 >conftest.err
35190 rm -f conftest.er1
35191 cat conftest.err >&5
35192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35193 (exit $ac_status); } >/dev/null; then
35194 if test -s conftest.err; then
35195 ac_cpp_err=$ac_c_preproc_warn_flag
f95e4495 35196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
e6cc62c6
VS
35197 else
35198 ac_cpp_err=
35199 fi
35200else
35201 ac_cpp_err=yes
35202fi
35203if test -z "$ac_cpp_err"; then
35204 ac_header_preproc=yes
35205else
35206 echo "$as_me: failed program was:" >&5
35207sed 's/^/| /' conftest.$ac_ext >&5
35208
35209 ac_header_preproc=no
35210fi
35211rm -f conftest.err conftest.$ac_ext
35212echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35213echo "${ECHO_T}$ac_header_preproc" >&6
35214
35215# So? What about this header?
f95e4495
VS
35216case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35217 yes:no: )
e6cc62c6
VS
35218 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35219echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
f95e4495
VS
35220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35221echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35222 ac_header_preproc=yes
e6cc62c6 35223 ;;
f95e4495 35224 no:yes:* )
e6cc62c6
VS
35225 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35226echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
f95e4495
VS
35227 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35228echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35229 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35230echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35231 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35232echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
e6cc62c6
VS
35233 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35234echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
f95e4495
VS
35235 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35236echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
e6cc62c6
VS
35237 (
35238 cat <<\_ASBOX
f95e4495
VS
35239## ----------------------------------------- ##
35240## Report this to wx-dev@lists.wxwindows.org ##
35241## ----------------------------------------- ##
e6cc62c6
VS
35242_ASBOX
35243 ) |
35244 sed "s/^/$as_me: WARNING: /" >&2
35245 ;;
35246esac
35247echo "$as_me:$LINENO: checking for $ac_header" >&5
35248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35249if eval "test \"\${$as_ac_Header+set}\" = set"; then
35250 echo $ECHO_N "(cached) $ECHO_C" >&6
35251else
f95e4495 35252 eval "$as_ac_Header=\$ac_header_preproc"
e6cc62c6
VS
35253fi
35254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35255echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35256
10f2d63a 35257fi
e6cc62c6
VS
35258if test `eval echo '${'$as_ac_Header'}'` = yes; then
35259 cat >>confdefs.h <<_ACEOF
35260#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35261_ACEOF
10f2d63a 35262
10f2d63a 35263fi
e6cc62c6 35264
10f2d63a
VZ
35265done
35266
8284b0c5 35267
2b9bdf71
VZ
35268 if test "$ac_cv_header_ole2_h" = "yes" ; then
35269 if test "$GCC" = yes ; then
8284b0c5
MB
35270
35271
e6cc62c6
VS
35272 ac_ext=cc
35273ac_cpp='$CXXCPP $CPPFLAGS'
35274ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35275ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35276ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35277
35278
35279 echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
35280echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6
35281 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
35282/* confdefs.h. */
35283_ACEOF
35284cat confdefs.h >>conftest.$ac_ext
35285cat >>conftest.$ac_ext <<_ACEOF
35286/* end confdefs.h. */
8284b0c5
MB
35287#include <windows.h>
35288 #include <ole2.h>
e6cc62c6
VS
35289int
35290main ()
35291{
8284b0c5 35292
e6cc62c6
VS
35293 ;
35294 return 0;
35295}
35296_ACEOF
35297rm -f conftest.$ac_objext
35298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 35299 (eval $ac_compile) 2>conftest.er1
e6cc62c6 35300 ac_status=$?
f95e4495
VS
35301 grep -v '^ *+' conftest.er1 >conftest.err
35302 rm -f conftest.er1
35303 cat conftest.err >&5
e6cc62c6
VS
35304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35305 (exit $ac_status); } &&
f95e4495
VS
35306 { ac_try='test -z "$ac_cxx_werror_flag"
35307 || test ! -s conftest.err'
35308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35309 (eval $ac_try) 2>&5
35310 ac_status=$?
35311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35312 (exit $ac_status); }; } &&
35313 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
35314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35315 (eval $ac_try) 2>&5
35316 ac_status=$?
35317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35318 (exit $ac_status); }; }; then
35319 echo "$as_me:$LINENO: result: no" >&5
35320echo "${ECHO_T}no" >&6
35321else
35322 echo "$as_me: failed program was:" >&5
35323sed 's/^/| /' conftest.$ac_ext >&5
35324
35325echo "$as_me:$LINENO: result: yes" >&5
35326echo "${ECHO_T}yes" >&6
8284b0c5
MB
35327 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
35328fi
f95e4495 35329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8284b0c5 35330 ac_ext=c
8284b0c5 35331ac_cpp='$CPP $CPPFLAGS'
e6cc62c6
VS
35332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35334ac_compiler_gnu=$ac_cv_c_compiler_gnu
8284b0c5 35335
2b9bdf71 35336 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
3d63bc3a 35337 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
f95e4495
VS
35338 if test "$wxUSE_OLE" = "yes" ; then
35339 cat >>confdefs.h <<\_ACEOF
4f11a343 35340#define wxUSE_OLE 1
e6cc62c6 35341_ACEOF
4f11a343 35342
f95e4495 35343 fi
2b9bdf71
VZ
35344 fi
35345
f95e4495
VS
35346 if test "$wxUSE_DATAOBJ" = "yes" ; then
35347 cat >>confdefs.h <<\_ACEOF
2b9bdf71 35348#define wxUSE_DATAOBJ 1
e6cc62c6 35349_ACEOF
2b9bdf71 35350
f95e4495 35351 fi
2b9bdf71 35352 else
e6cc62c6
VS
35353 { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
35354echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
2b9bdf71
VZ
35355
35356 wxUSE_CLIPBOARD=no
35357 wxUSE_DRAG_AND_DROP=no
35358 wxUSE_DATAOBJ=no
3bce6687
JS
35359 wxUSE_OLE=no
35360 fi
35361
35362 if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 35363 cat >>confdefs.h <<\_ACEOF
3bce6687 35364#define wxUSE_METAFILE 1
e6cc62c6 35365_ACEOF
3bce6687
JS
35366
35367
e6cc62c6 35368 cat >>confdefs.h <<\_ACEOF
3bce6687 35369#define wxUSE_ENH_METAFILE 1
e6cc62c6 35370_ACEOF
3bce6687
JS
35371
35372 fi
35373fi
35374
2b9bdf71
VZ
35375if test "$wxUSE_IPC" = "yes"; then
35376 if test "$wxUSE_SOCKETS" != "yes"; then
e6cc62c6
VS
35377 { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5
35378echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;}
2b9bdf71
VZ
35379 fi
35380
e6cc62c6 35381 cat >>confdefs.h <<\_ACEOF
2b9bdf71 35382#define wxUSE_IPC 1
e6cc62c6 35383_ACEOF
2b9bdf71
VZ
35384
35385fi
35386
35387if test "$wxUSE_CLIPBOARD" = "yes"; then
6c657b52 35388 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
35389 { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5
35390echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;}
6c657b52
VS
35391 wxUSE_CLIPBOARD=no
35392 fi
35393
35394 if test "$wxUSE_CLIPBOARD" = "yes"; then
e6cc62c6 35395 cat >>confdefs.h <<\_ACEOF
2b9bdf71 35396#define wxUSE_CLIPBOARD 1
e6cc62c6 35397_ACEOF
2b9bdf71 35398
8284b0c5 35399
e6cc62c6 35400 cat >>confdefs.h <<\_ACEOF
673f4220 35401#define wxUSE_DATAOBJ 1
e6cc62c6 35402_ACEOF
673f4220 35403
6c657b52 35404 fi
2b9bdf71
VZ
35405fi
35406
35407if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
35408 if test "$wxUSE_GTK" = 1; then
35409 if test "$WXGTK12" != 1; then
e6cc62c6
VS
35410 { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
35411echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
10f2d63a
VZ
35412 wxUSE_DRAG_AND_DROP=no
35413 fi
35414 fi
35415
2b9bdf71 35416 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
35417 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5
35418echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;}
2b9bdf71
VZ
35419 wxUSE_DRAG_AND_DROP=no
35420 fi
35421
f79bd02d 35422 if test "$wxUSE_X11" = 1; then
e6cc62c6
VS
35423 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5
35424echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;}
f79bd02d
JS
35425 wxUSE_DRAG_AND_DROP=no
35426 fi
35427
6c657b52 35428 if test "$wxUSE_MGL" = 1; then
e6cc62c6
VS
35429 { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5
35430echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;}
6c657b52
VS
35431 wxUSE_DRAG_AND_DROP=no
35432 fi
35433
10f2d63a 35434 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
e6cc62c6 35435 cat >>confdefs.h <<\_ACEOF
10f2d63a 35436#define wxUSE_DRAG_AND_DROP 1
e6cc62c6 35437_ACEOF
10f2d63a
VZ
35438
35439 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
35440 fi
35441
35442fi
35443
35444if test "$wxUSE_SPLINES" = "yes" ; then
e6cc62c6 35445 cat >>confdefs.h <<\_ACEOF
10f2d63a 35446#define wxUSE_SPLINES 1
e6cc62c6 35447_ACEOF
10f2d63a
VZ
35448
35449fi
35450
8284b0c5 35451
1e6feb95
VZ
35452USES_CONTROLS=0
35453if test "$wxUSE_CONTROLS" = "yes"; then
35454 USES_CONTROLS=1
35455fi
35456
10f2d63a 35457if test "$wxUSE_ACCEL" = "yes"; then
e6cc62c6 35458 cat >>confdefs.h <<\_ACEOF
10f2d63a 35459#define wxUSE_ACCEL 1
e6cc62c6 35460_ACEOF
10f2d63a 35461
1e6feb95
VZ
35462 USES_CONTROLS=1
35463fi
35464
35465if test "$wxUSE_BUTTON" = "yes"; then
e6cc62c6 35466 cat >>confdefs.h <<\_ACEOF
1e6feb95 35467#define wxUSE_BUTTON 1
e6cc62c6 35468_ACEOF
1e6feb95
VZ
35469
35470 USES_CONTROLS=1
35471fi
35472
35473if test "$wxUSE_BMPBUTTON" = "yes"; then
e6cc62c6 35474 cat >>confdefs.h <<\_ACEOF
1e6feb95 35475#define wxUSE_BMPBUTTON 1
e6cc62c6 35476_ACEOF
1e6feb95
VZ
35477
35478 USES_CONTROLS=1
35479fi
35480
35481if test "$wxUSE_CALCTRL" = "yes"; then
e6cc62c6 35482 cat >>confdefs.h <<\_ACEOF
1e6feb95 35483#define wxUSE_CALENDARCTRL 1
e6cc62c6 35484_ACEOF
1e6feb95
VZ
35485
35486 USES_CONTROLS=1
35487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
10f2d63a
VZ
35488fi
35489
35490if test "$wxUSE_CARET" = "yes"; then
e6cc62c6 35491 cat >>confdefs.h <<\_ACEOF
10f2d63a 35492#define wxUSE_CARET 1
e6cc62c6 35493_ACEOF
10f2d63a 35494
1e6feb95 35495 USES_CONTROLS=1
10f2d63a
VZ
35496 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
35497fi
35498
35499if test "$wxUSE_COMBOBOX" = "yes"; then
e6cc62c6 35500 cat >>confdefs.h <<\_ACEOF
10f2d63a 35501#define wxUSE_COMBOBOX 1
e6cc62c6 35502_ACEOF
10f2d63a 35503
1e6feb95 35504 USES_CONTROLS=1
10f2d63a
VZ
35505fi
35506
35507if test "$wxUSE_CHOICE" = "yes"; then
e6cc62c6 35508 cat >>confdefs.h <<\_ACEOF
10f2d63a 35509#define wxUSE_CHOICE 1
e6cc62c6 35510_ACEOF
10f2d63a 35511
1e6feb95 35512 USES_CONTROLS=1
10f2d63a
VZ
35513fi
35514
35515if test "$wxUSE_CHECKBOX" = "yes"; then
e6cc62c6 35516 cat >>confdefs.h <<\_ACEOF
10f2d63a 35517#define wxUSE_CHECKBOX 1
e6cc62c6 35518_ACEOF
10f2d63a 35519
1e6feb95 35520 USES_CONTROLS=1
10f2d63a
VZ
35521fi
35522
35523if test "$wxUSE_CHECKLST" = "yes"; then
e6cc62c6 35524 cat >>confdefs.h <<\_ACEOF
10f2d63a 35525#define wxUSE_CHECKLISTBOX 1
e6cc62c6 35526_ACEOF
10f2d63a 35527
1e6feb95 35528 USES_CONTROLS=1
10f2d63a
VZ
35529 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
35530fi
35531
da494b40 35532if test "$wxUSE_DISPLAY" = "yes"; then
e6cc62c6 35533 cat >>confdefs.h <<\_ACEOF
da494b40 35534#define wxUSE_DISPLAY 1
e6cc62c6 35535_ACEOF
da494b40
MB
35536
35537 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
35538fi
35539
10f2d63a 35540if test "$wxUSE_GAUGE" = "yes"; then
e6cc62c6 35541 cat >>confdefs.h <<\_ACEOF
10f2d63a 35542#define wxUSE_GAUGE 1
e6cc62c6 35543_ACEOF
10f2d63a 35544
1e6feb95 35545 USES_CONTROLS=1
10f2d63a
VZ
35546fi
35547
d6a55c4b 35548if test "$wxUSE_GRID" = "yes"; then
e6cc62c6 35549 cat >>confdefs.h <<\_ACEOF
d6a55c4b 35550#define wxUSE_GRID 1
e6cc62c6 35551_ACEOF
10f2d63a 35552
1e6feb95 35553 USES_CONTROLS=1
d6a55c4b 35554 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
10f2d63a
VZ
35555fi
35556
35557if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 35558 cat >>confdefs.h <<\_ACEOF
10f2d63a 35559#define wxUSE_IMAGLIST 1
e6cc62c6 35560_ACEOF
10f2d63a
VZ
35561
35562fi
35563
0e012a93
VZ
35564if test "$wxUSE_LISTBOOK" = "yes"; then
35565 cat >>confdefs.h <<\_ACEOF
35566#define wxUSE_LISTBOOK 1
35567_ACEOF
35568
35569 USES_CONTROLS=1
35570fi
35571
10f2d63a 35572if test "$wxUSE_LISTBOX" = "yes"; then
e6cc62c6 35573 cat >>confdefs.h <<\_ACEOF
10f2d63a 35574#define wxUSE_LISTBOX 1
e6cc62c6 35575_ACEOF
10f2d63a 35576
1e6feb95 35577 USES_CONTROLS=1
10f2d63a
VZ
35578fi
35579
35580if test "$wxUSE_LISTCTRL" = "yes"; then
35581 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 35582 cat >>confdefs.h <<\_ACEOF
10f2d63a 35583#define wxUSE_LISTCTRL 1
e6cc62c6 35584_ACEOF
10f2d63a 35585
1e6feb95 35586 USES_CONTROLS=1
10f2d63a
VZ
35587 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
35588 else
e6cc62c6
VS
35589 { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
35590echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
35591 fi
35592fi
35593
35594if test "$wxUSE_NOTEBOOK" = "yes"; then
e6cc62c6 35595 cat >>confdefs.h <<\_ACEOF
10f2d63a 35596#define wxUSE_NOTEBOOK 1
e6cc62c6 35597_ACEOF
10f2d63a 35598
1e6feb95 35599 USES_CONTROLS=1
10f2d63a
VZ
35600 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
35601fi
35602
24176f2c 35603
10f2d63a 35604if test "$wxUSE_RADIOBOX" = "yes"; then
e6cc62c6 35605 cat >>confdefs.h <<\_ACEOF
10f2d63a 35606#define wxUSE_RADIOBOX 1
e6cc62c6 35607_ACEOF
10f2d63a 35608
1e6feb95 35609 USES_CONTROLS=1
10f2d63a
VZ
35610fi
35611
35612if test "$wxUSE_RADIOBTN" = "yes"; then
e6cc62c6 35613 cat >>confdefs.h <<\_ACEOF
10f2d63a 35614#define wxUSE_RADIOBTN 1
e6cc62c6 35615_ACEOF
10f2d63a 35616
1e6feb95 35617 USES_CONTROLS=1
10f2d63a
VZ
35618fi
35619
35620if test "$wxUSE_SASH" = "yes"; then
e6cc62c6 35621 cat >>confdefs.h <<\_ACEOF
10f2d63a 35622#define wxUSE_SASH 1
e6cc62c6 35623_ACEOF
10f2d63a
VZ
35624
35625 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
35626fi
35627
35628if test "$wxUSE_SCROLLBAR" = "yes"; then
e6cc62c6 35629 cat >>confdefs.h <<\_ACEOF
10f2d63a 35630#define wxUSE_SCROLLBAR 1
e6cc62c6 35631_ACEOF
10f2d63a 35632
1e6feb95 35633 USES_CONTROLS=1
741a9306 35634 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
10f2d63a
VZ
35635fi
35636
35637if test "$wxUSE_SLIDER" = "yes"; then
e6cc62c6 35638 cat >>confdefs.h <<\_ACEOF
10f2d63a 35639#define wxUSE_SLIDER 1
e6cc62c6 35640_ACEOF
10f2d63a 35641
1e6feb95 35642 USES_CONTROLS=1
10f2d63a
VZ
35643fi
35644
35645if test "$wxUSE_SPINBTN" = "yes"; then
e6cc62c6 35646 cat >>confdefs.h <<\_ACEOF
10f2d63a 35647#define wxUSE_SPINBTN 1
e6cc62c6 35648_ACEOF
10f2d63a 35649
1e6feb95 35650 USES_CONTROLS=1
10f2d63a
VZ
35651fi
35652
56cfaa52 35653if test "$wxUSE_SPINCTRL" = "yes"; then
e6cc62c6 35654 cat >>confdefs.h <<\_ACEOF
56cfaa52 35655#define wxUSE_SPINCTRL 1
e6cc62c6 35656_ACEOF
56cfaa52 35657
1e6feb95 35658 USES_CONTROLS=1
56cfaa52
RR
35659fi
35660
10f2d63a 35661if test "$wxUSE_SPLITTER" = "yes"; then
e6cc62c6 35662 cat >>confdefs.h <<\_ACEOF
10f2d63a 35663#define wxUSE_SPLITTER 1
e6cc62c6 35664_ACEOF
10f2d63a
VZ
35665
35666 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
35667fi
35668
35669if test "$wxUSE_STATBMP" = "yes"; then
e6cc62c6 35670 cat >>confdefs.h <<\_ACEOF
10f2d63a 35671#define wxUSE_STATBMP 1
e6cc62c6 35672_ACEOF
10f2d63a 35673
1e6feb95 35674 USES_CONTROLS=1
10f2d63a
VZ
35675fi
35676
35677if test "$wxUSE_STATBOX" = "yes"; then
e6cc62c6 35678 cat >>confdefs.h <<\_ACEOF
10f2d63a 35679#define wxUSE_STATBOX 1
e6cc62c6 35680_ACEOF
10f2d63a 35681
1e6feb95
VZ
35682 USES_CONTROLS=1
35683fi
35684
35685if test "$wxUSE_STATTEXT" = "yes"; then
e6cc62c6 35686 cat >>confdefs.h <<\_ACEOF
1e6feb95 35687#define wxUSE_STATTEXT 1
e6cc62c6 35688_ACEOF
1e6feb95
VZ
35689
35690 USES_CONTROLS=1
10f2d63a
VZ
35691fi
35692
35693if test "$wxUSE_STATLINE" = "yes"; then
e6cc62c6 35694 cat >>confdefs.h <<\_ACEOF
10f2d63a 35695#define wxUSE_STATLINE 1
e6cc62c6 35696_ACEOF
10f2d63a 35697
89e6bf6d 35698 USES_CONTROLS=1
10f2d63a
VZ
35699fi
35700
35701if test "$wxUSE_STATUSBAR" = "yes"; then
e6cc62c6 35702 cat >>confdefs.h <<\_ACEOF
10f2d63a 35703#define wxUSE_STATUSBAR 1
e6cc62c6 35704_ACEOF
10f2d63a 35705
1e6feb95 35706 USES_CONTROLS=1
698dcdb6 35707
2286341c 35708 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
10f2d63a
VZ
35709fi
35710
35711if test "$wxUSE_TABDIALOG" = "yes"; then
e6cc62c6 35712 cat >>confdefs.h <<\_ACEOF
10f2d63a 35713#define wxUSE_TAB_DIALOG 1
e6cc62c6 35714_ACEOF
10f2d63a
VZ
35715
35716 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
35717fi
35718
1e6feb95 35719if test "$wxUSE_TEXTCTRL" = "yes"; then
e6cc62c6 35720 cat >>confdefs.h <<\_ACEOF
1e6feb95 35721#define wxUSE_TEXTCTRL 1
e6cc62c6 35722_ACEOF
1e6feb95
VZ
35723
35724 USES_CONTROLS=1
35725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
35726fi
35727
1db8dc4a 35728if test "$wxUSE_TOGGLEBTN" = "yes"; then
ac0c4cc3 35729 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
35730 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
35731echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
156b2523
GD
35732 wxUSE_TOGGLEBTN=no
35733 fi
35734 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
35735 { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5
35736echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;}
a45d7ab7
GD
35737 wxUSE_TOGGLEBTN=no
35738 fi
35739
35740 if test "$wxUSE_TOGGLEBTN" = "yes"; then
e6cc62c6 35741 cat >>confdefs.h <<\_ACEOF
1db8dc4a 35742#define wxUSE_TOGGLEBTN 1
e6cc62c6 35743_ACEOF
1db8dc4a 35744
1e6feb95 35745 USES_CONTROLS=1
a45d7ab7 35746 fi
1db8dc4a
VZ
35747fi
35748
360d6699 35749if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
e6cc62c6 35750 cat >>confdefs.h <<\_ACEOF
360d6699 35751#define wxUSE_TOOLBAR_SIMPLE 1
e6cc62c6 35752_ACEOF
360d6699
VZ
35753
35754 wxUSE_TOOLBAR="yes"
1e6feb95 35755 USES_CONTROLS=1
360d6699
VZ
35756fi
35757
10f2d63a 35758if test "$wxUSE_TOOLBAR" = "yes"; then
e6cc62c6 35759 cat >>confdefs.h <<\_ACEOF
10f2d63a 35760#define wxUSE_TOOLBAR 1
e6cc62c6 35761_ACEOF
10f2d63a 35762
1e6feb95 35763 USES_CONTROLS=1
698dcdb6 35764
360d6699
VZ
35765 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
35766 wxUSE_TOOLBAR_NATIVE="yes"
35767 fi
35768
1e6feb95 35769 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
e6cc62c6 35770 cat >>confdefs.h <<\_ACEOF
360d6699 35771#define wxUSE_TOOLBAR_NATIVE 1
e6cc62c6 35772_ACEOF
360d6699 35773
1e6feb95
VZ
35774 USES_CONTROLS=1
35775 fi
35776
35777 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
360d6699
VZ
35778fi
35779
10f2d63a
VZ
35780if test "$wxUSE_TOOLTIPS" = "yes"; then
35781 if test "$wxUSE_MOTIF" = 1; then
e6cc62c6
VS
35782 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
35783echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
10f2d63a 35784 else
89e6bf6d 35785 if test "$wxUSE_UNIVERSAL" = "yes"; then
e6cc62c6
VS
35786 { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
35787echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
10f2d63a 35788 else
e6cc62c6 35789 cat >>confdefs.h <<\_ACEOF
10f2d63a 35790#define wxUSE_TOOLTIPS 1
e6cc62c6 35791_ACEOF
10f2d63a
VZ
35792
35793 fi
35794 fi
35795fi
35796
35797if test "$wxUSE_TREECTRL" = "yes"; then
35798 if test "$wxUSE_IMAGLIST" = "yes"; then
e6cc62c6 35799 cat >>confdefs.h <<\_ACEOF
10f2d63a 35800#define wxUSE_TREECTRL 1
e6cc62c6 35801_ACEOF
10f2d63a 35802
1e6feb95 35803 USES_CONTROLS=1
10f2d63a
VZ
35804 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
35805 else
e6cc62c6
VS
35806 { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
35807echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
10f2d63a
VZ
35808 fi
35809fi
35810
9f41d601 35811if test "$wxUSE_POPUPWIN" = "yes"; then
ac0c4cc3 35812 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
e6cc62c6
VS
35813 { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
35814echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
6abe4b65 35815 else
833a51f6
MB
35816 if test "$wxUSE_PM" = 1; then
35817 { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
e6cc62c6 35818echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
833a51f6
MB
35819 else
35820 cat >>confdefs.h <<\_ACEOF
9f41d601 35821#define wxUSE_POPUPWIN 1
e6cc62c6 35822_ACEOF
9f41d601 35823
8284b0c5 35824
833a51f6 35825 USES_CONTROLS=1
485cf710 35826 fi
6abe4b65 35827 fi
9f41d601
RR
35828fi
35829
dd964dcc 35830if test "$wxUSE_TIPWINDOW" = "yes"; then
3c011993 35831 if test "$wxUSE_PM" = 1; then
e6cc62c6
VS
35832 { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
35833echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
3bd8fb5f 35834 else
e6cc62c6 35835 cat >>confdefs.h <<\_ACEOF
dd964dcc 35836#define wxUSE_TIPWINDOW 1
e6cc62c6 35837_ACEOF
dd964dcc 35838
3c011993 35839 fi
dd964dcc
VZ
35840fi
35841
1e6feb95 35842if test "$USES_CONTROLS" = 1; then
e6cc62c6 35843 cat >>confdefs.h <<\_ACEOF
1e6feb95 35844#define wxUSE_CONTROLS 1
e6cc62c6 35845_ACEOF
10f2d63a 35846
10f2d63a
VZ
35847fi
35848
8284b0c5 35849
e46d2a18
VS
35850if test "$wxUSE_ACCESSIBILITY" = "yes"; then
35851 cat >>confdefs.h <<\_ACEOF
35852#define wxUSE_ACCESSIBILITY 1
35853_ACEOF
35854
35855 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
35856fi
1e6feb95 35857
24fd6d87 35858if test "$wxUSE_DRAGIMAGE" = "yes"; then
e6cc62c6 35859 cat >>confdefs.h <<\_ACEOF
24fd6d87 35860#define wxUSE_DRAGIMAGE 1
e6cc62c6 35861_ACEOF
24fd6d87
VZ
35862
35863 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
35864fi
35865
e46d2a18 35866if test "$wxUSE_EXCEPTIONS" = "yes"; then
e6cc62c6 35867 cat >>confdefs.h <<\_ACEOF
e46d2a18 35868#define wxUSE_EXCEPTIONS 1
e6cc62c6 35869_ACEOF
7bb2947d 35870
e46d2a18
VS
35871fi
35872
35873USE_HTML=0
35874if test "$wxUSE_HTML" = "yes"; then
35875 cat >>confdefs.h <<\_ACEOF
35876#define wxUSE_HTML 1
35877_ACEOF
35878
35879 USE_HTML=1
35880 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
7bb2947d
MB
35881fi
35882
1e6feb95 35883if test "$wxUSE_MENUS" = "yes"; then
e6cc62c6 35884 cat >>confdefs.h <<\_ACEOF
1e6feb95 35885#define wxUSE_MENUS 1
e6cc62c6 35886_ACEOF
10f2d63a 35887
1e6feb95 35888 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
10f2d63a
VZ
35889fi
35890
1e6feb95 35891if test "$wxUSE_METAFILE" = "yes"; then
e6cc62c6 35892 cat >>confdefs.h <<\_ACEOF
1e6feb95 35893#define wxUSE_METAFILE 1
e6cc62c6 35894_ACEOF
10f2d63a 35895
10f2d63a
VZ
35896fi
35897
1e6feb95 35898if test "$wxUSE_MIMETYPE" = "yes"; then
e6cc62c6 35899 cat >>confdefs.h <<\_ACEOF
1e6feb95 35900#define wxUSE_MIMETYPE 1
e6cc62c6 35901_ACEOF
10f2d63a 35902
10f2d63a
VZ
35903fi
35904
35905if test "$wxUSE_MINIFRAME" = "yes"; then
e6cc62c6 35906 cat >>confdefs.h <<\_ACEOF
10f2d63a 35907#define wxUSE_MINIFRAME 1
e6cc62c6 35908_ACEOF
10f2d63a
VZ
35909
35910 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
35911fi
35912
e46d2a18 35913if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
e6cc62c6 35914 cat >>confdefs.h <<\_ACEOF
e46d2a18 35915#define wxUSE_SYSTEM_OPTIONS 1
e6cc62c6 35916_ACEOF
10f2d63a 35917
e46d2a18
VS
35918 if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \
35919 "$TOOLKIT" = "MOTIF"; then
35920 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
35921 fi
10f2d63a
VZ
35922fi
35923
e46d2a18 35924
10f2d63a 35925if test "$wxUSE_VALIDATORS" = "yes"; then
e6cc62c6 35926 cat >>confdefs.h <<\_ACEOF
1e487827 35927#define wxUSE_VALIDATORS 1
e6cc62c6 35928_ACEOF
703e0a69 35929
698dcdb6
VZ
35930 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
35931fi
35932
edae8572 35933if test "$wxUSE_PALETTE" = "yes" ; then
e6cc62c6 35934 cat >>confdefs.h <<\_ACEOF
edae8572 35935#define wxUSE_PALETTE 1
e6cc62c6 35936_ACEOF
edae8572
VZ
35937
35938fi
35939
e46d2a18
VS
35940if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
35941 LIBS=" -lunicows $LIBS"
35942fi
35943
35944
698dcdb6 35945if test "$wxUSE_IMAGE" = "yes" ; then
e46d2a18 35946 cat >>confdefs.h <<\_ACEOF
698dcdb6 35947#define wxUSE_IMAGE 1
e6cc62c6 35948_ACEOF
698dcdb6 35949
698dcdb6 35950
e46d2a18
VS
35951 if test "$wxUSE_GIF" = "yes" ; then
35952 cat >>confdefs.h <<\_ACEOF
698dcdb6 35953#define wxUSE_GIF 1
e6cc62c6 35954_ACEOF
698dcdb6 35955
e46d2a18 35956 fi
698dcdb6 35957
e46d2a18
VS
35958 if test "$wxUSE_PCX" = "yes" ; then
35959 cat >>confdefs.h <<\_ACEOF
698dcdb6 35960#define wxUSE_PCX 1
e6cc62c6 35961_ACEOF
698dcdb6 35962
e46d2a18 35963 fi
698dcdb6 35964
e46d2a18
VS
35965 if test "$wxUSE_IFF" = "yes" ; then
35966 cat >>confdefs.h <<\_ACEOF
4b6b4dfc 35967#define wxUSE_IFF 1
e6cc62c6 35968_ACEOF
4b6b4dfc 35969
e46d2a18 35970 fi
4b6b4dfc 35971
e46d2a18
VS
35972 if test "$wxUSE_PNM" = "yes" ; then
35973 cat >>confdefs.h <<\_ACEOF
698dcdb6 35974#define wxUSE_PNM 1
e6cc62c6 35975_ACEOF
698dcdb6 35976
e46d2a18 35977 fi
698dcdb6 35978
e46d2a18
VS
35979 if test "$wxUSE_XPM" = "yes" ; then
35980 cat >>confdefs.h <<\_ACEOF
698dcdb6 35981#define wxUSE_XPM 1
e6cc62c6 35982_ACEOF
698dcdb6 35983
e46d2a18 35984 fi
698dcdb6 35985
e46d2a18
VS
35986 if test "$wxUSE_ICO_CUR" = "yes" ; then
35987 cat >>confdefs.h <<\_ACEOF
658974ae 35988#define wxUSE_ICO_CUR 1
e6cc62c6 35989_ACEOF
658974ae 35990
e46d2a18 35991 fi
a72a4bfa
VS
35992fi
35993
8284b0c5 35994
1e6feb95 35995if test "$wxUSE_CHOICEDLG" = "yes"; then
e6cc62c6 35996 cat >>confdefs.h <<\_ACEOF
1e6feb95 35997#define wxUSE_CHOICEDLG 1
e6cc62c6 35998_ACEOF
1e6feb95
VZ
35999
36000fi
36001
36002if test "$wxUSE_COLOURDLG" = "yes"; then
e6cc62c6 36003 cat >>confdefs.h <<\_ACEOF
1e6feb95 36004#define wxUSE_COLOURDLG 1
e6cc62c6 36005_ACEOF
1e6feb95
VZ
36006
36007fi
36008
36009if test "$wxUSE_FILEDLG" = "yes"; then
e6cc62c6 36010 cat >>confdefs.h <<\_ACEOF
1e6feb95 36011#define wxUSE_FILEDLG 1
e6cc62c6 36012_ACEOF
1e6feb95
VZ
36013
36014fi
36015
8db37e06 36016if test "$wxUSE_FINDREPLDLG" = "yes"; then
e6cc62c6 36017 cat >>confdefs.h <<\_ACEOF
8db37e06 36018#define wxUSE_FINDREPLDLG 1
e6cc62c6 36019_ACEOF
8db37e06
VZ
36020
36021fi
36022
1e6feb95 36023if test "$wxUSE_FONTDLG" = "yes"; then
e6cc62c6 36024 cat >>confdefs.h <<\_ACEOF
1e6feb95 36025#define wxUSE_FONTDLG 1
e6cc62c6 36026_ACEOF
1e6feb95
VZ
36027
36028fi
36029
36030if test "$wxUSE_DIRDLG" = "yes"; then
ae1daed0 36031 if test "$wxUSE_TREECTRL" != "yes"; then
e6cc62c6
VS
36032 { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
36033echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
1e6feb95 36034 else
e6cc62c6 36035 cat >>confdefs.h <<\_ACEOF
1e6feb95 36036#define wxUSE_DIRDLG 1
e6cc62c6 36037_ACEOF
1e6feb95 36038
1e6feb95
VZ
36039 fi
36040fi
36041
36042if test "$wxUSE_MSGDLG" = "yes"; then
e6cc62c6 36043 cat >>confdefs.h <<\_ACEOF
1e6feb95 36044#define wxUSE_MSGDLG 1
e6cc62c6 36045_ACEOF
1e6feb95
VZ
36046
36047fi
36048
36049if test "$wxUSE_NUMBERDLG" = "yes"; then
e6cc62c6 36050 cat >>confdefs.h <<\_ACEOF
1e6feb95 36051#define wxUSE_NUMBERDLG 1
e6cc62c6 36052_ACEOF
1e6feb95
VZ
36053
36054fi
36055
36056if test "$wxUSE_PROGRESSDLG" = "yes"; then
36057 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
36058 { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
36059echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
1e6feb95 36060 else
e6cc62c6 36061 cat >>confdefs.h <<\_ACEOF
1e6feb95 36062#define wxUSE_PROGRESSDLG 1
e6cc62c6 36063_ACEOF
1e6feb95
VZ
36064
36065 fi
36066fi
36067
cbca9943 36068if test "$wxUSE_SPLASH" = "yes"; then
e6cc62c6 36069 cat >>confdefs.h <<\_ACEOF
cbca9943 36070#define wxUSE_SPLASH 1
e6cc62c6 36071_ACEOF
cbca9943
VZ
36072
36073fi
36074
1e6feb95
VZ
36075if test "$wxUSE_STARTUP_TIPS" = "yes"; then
36076 if test "$wxUSE_CONSTRAINTS" != "yes"; then
e6cc62c6
VS
36077 { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
36078echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
1e6feb95 36079 else
e6cc62c6 36080 cat >>confdefs.h <<\_ACEOF
1e6feb95 36081#define wxUSE_STARTUP_TIPS 1
e6cc62c6 36082_ACEOF
1e6feb95 36083
7b4a847f
RR
36084 fi
36085fi
579d8138 36086
8284b0c5 36087if test "$wxUSE_TEXTDLG" = "yes"; then
e6cc62c6 36088 cat >>confdefs.h <<\_ACEOF
8284b0c5 36089#define wxUSE_TEXTDLG 1
e6cc62c6 36090_ACEOF
8284b0c5
MB
36091
36092fi
36093
36094if test "$wxUSE_WIZARDDLG" = "yes"; then
e6cc62c6 36095 cat >>confdefs.h <<\_ACEOF
8284b0c5 36096#define wxUSE_WIZARDDLG 1
e6cc62c6 36097_ACEOF
8284b0c5
MB
36098
36099 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
36100fi
36101
36102
36103if test "$cross_compiling" = "yes"; then
36104 OSINFO="\"$host\""
36105else
36106 OSINFO=`uname -s -r -m`
36107 OSINFO="\"$OSINFO\""
36108fi
36109
e6cc62c6 36110cat >>confdefs.h <<_ACEOF
8284b0c5 36111#define WXWIN_OS_DESCRIPTION $OSINFO
e6cc62c6 36112_ACEOF
8284b0c5
MB
36113
36114
36115
36116if test "x$prefix" != "xNONE"; then
36117 wxPREFIX=$prefix
36118else
36119 wxPREFIX=$ac_default_prefix
36120fi
36121
e6cc62c6 36122cat >>confdefs.h <<_ACEOF
8284b0c5 36123#define wxINSTALL_PREFIX "$wxPREFIX"
e6cc62c6 36124_ACEOF
8284b0c5
MB
36125
36126
e6cc62c6 36127top_builddir_wxconfig=`pwd`
52c71b80 36128
8284b0c5
MB
36129
36130
edd891e2
VS
36131CORE_BASE_LIBS="net base"
36132CORE_GUI_LIBS="adv core"
36133
36134if test "$wxUSE_XML" = "yes" ; then
36135 CORE_BASE_LIBS="xml $CORE_BASE_LIBS"
36136fi
45293562
VS
36137if test "$wxUSE_ODBC" != "no" ; then
36138 CORE_BASE_LIBS="odbc $CORE_BASE_LIBS"
36139 CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS"
edd891e2
VS
36140fi
36141if test "$wxUSE_HTML" = "yes" ; then
36142 CORE_GUI_LIBS="html $CORE_GUI_LIBS"
36143fi
36144
57e7d4ac
VS
36145if test "$wxUSE_GUI" != "yes"; then
36146 CORE_GUI_LIBS=""
36147fi
36148
edd891e2
VS
36149
36150
36151
36152
36153
36154
8284b0c5
MB
36155
36156if test "$wxUSE_MAC" = 1 ; then
36157 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
36158fi
ac0c4cc3
DE
36159if test "$wxUSE_COCOA" = 1 ; then
36160 LDFLAGS="$LDFLAGS -framework Cocoa -framework System"
36161fi
8284b0c5
MB
36162
36163
2b5f62a0
VZ
36164LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
36165
36166have_cos=0
36167have_floor=0
e6cc62c6 36168
2b5f62a0
VZ
36169for ac_func in cos
36170do
e6cc62c6
VS
36171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36172echo "$as_me:$LINENO: checking for $ac_func" >&5
36173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36174if eval "test \"\${$as_ac_var+set}\" = set"; then
36175 echo $ECHO_N "(cached) $ECHO_C" >&6
36176else
36177 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36178/* confdefs.h. */
36179_ACEOF
36180cat confdefs.h >>conftest.$ac_ext
36181cat >>conftest.$ac_ext <<_ACEOF
36182/* end confdefs.h. */
f95e4495
VS
36183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36185#define $ac_func innocuous_$ac_func
36186
2b5f62a0 36187/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
36188 which can conflict with char $ac_func (); below.
36189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36190 <limits.h> exists even on freestanding compilers. */
f95e4495 36191
e6cc62c6
VS
36192#ifdef __STDC__
36193# include <limits.h>
36194#else
36195# include <assert.h>
36196#endif
f95e4495
VS
36197
36198#undef $ac_func
36199
2b5f62a0 36200/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
36201#ifdef __cplusplus
36202extern "C"
36203{
36204#endif
2b5f62a0 36205/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
36206 builtin and then its argument prototype would still apply. */
36207char $ac_func ();
2b5f62a0
VZ
36208/* The GNU C library defines this for functions which it implements
36209 to always fail with ENOSYS. Some functions are actually named
36210 something starting with __ and the normal name is an alias. */
36211#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36212choke me
36213#else
e6cc62c6
VS
36214char (*f) () = $ac_func;
36215#endif
36216#ifdef __cplusplus
36217}
2b5f62a0
VZ
36218#endif
36219
e6cc62c6
VS
36220int
36221main ()
36222{
36223return f != $ac_func;
36224 ;
36225 return 0;
36226}
36227_ACEOF
36228rm -f conftest.$ac_objext conftest$ac_exeext
36229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 36230 (eval $ac_link) 2>conftest.er1
e6cc62c6 36231 ac_status=$?
f95e4495
VS
36232 grep -v '^ *+' conftest.er1 >conftest.err
36233 rm -f conftest.er1
36234 cat conftest.err >&5
e6cc62c6
VS
36235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36236 (exit $ac_status); } &&
f95e4495
VS
36237 { ac_try='test -z "$ac_c_werror_flag"
36238 || test ! -s conftest.err'
36239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36240 (eval $ac_try) 2>&5
36241 ac_status=$?
36242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36243 (exit $ac_status); }; } &&
36244 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
36245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36246 (eval $ac_try) 2>&5
36247 ac_status=$?
36248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36249 (exit $ac_status); }; }; then
36250 eval "$as_ac_var=yes"
36251else
36252 echo "$as_me: failed program was:" >&5
36253sed 's/^/| /' conftest.$ac_ext >&5
36254
36255eval "$as_ac_var=no"
36256fi
f95e4495
VS
36257rm -f conftest.err conftest.$ac_objext \
36258 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
36259fi
36260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36261echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36262if test `eval echo '${'$as_ac_var'}'` = yes; then
36263 cat >>confdefs.h <<_ACEOF
36264#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36265_ACEOF
2b5f62a0 36266 have_cos=1
2b5f62a0
VZ
36267fi
36268done
36269
e6cc62c6 36270
2b5f62a0
VZ
36271for ac_func in floor
36272do
e6cc62c6
VS
36273as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36274echo "$as_me:$LINENO: checking for $ac_func" >&5
36275echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36276if eval "test \"\${$as_ac_var+set}\" = set"; then
36277 echo $ECHO_N "(cached) $ECHO_C" >&6
36278else
36279 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36280/* confdefs.h. */
36281_ACEOF
36282cat confdefs.h >>conftest.$ac_ext
36283cat >>conftest.$ac_ext <<_ACEOF
36284/* end confdefs.h. */
f95e4495
VS
36285/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36287#define $ac_func innocuous_$ac_func
36288
2b5f62a0 36289/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
36290 which can conflict with char $ac_func (); below.
36291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36292 <limits.h> exists even on freestanding compilers. */
f95e4495 36293
e6cc62c6
VS
36294#ifdef __STDC__
36295# include <limits.h>
36296#else
36297# include <assert.h>
36298#endif
f95e4495
VS
36299
36300#undef $ac_func
36301
2b5f62a0 36302/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
36303#ifdef __cplusplus
36304extern "C"
36305{
36306#endif
2b5f62a0 36307/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
36308 builtin and then its argument prototype would still apply. */
36309char $ac_func ();
2b5f62a0
VZ
36310/* The GNU C library defines this for functions which it implements
36311 to always fail with ENOSYS. Some functions are actually named
36312 something starting with __ and the normal name is an alias. */
36313#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36314choke me
36315#else
e6cc62c6
VS
36316char (*f) () = $ac_func;
36317#endif
36318#ifdef __cplusplus
36319}
2b5f62a0
VZ
36320#endif
36321
e6cc62c6
VS
36322int
36323main ()
36324{
36325return f != $ac_func;
36326 ;
36327 return 0;
36328}
36329_ACEOF
36330rm -f conftest.$ac_objext conftest$ac_exeext
36331if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 36332 (eval $ac_link) 2>conftest.er1
e6cc62c6 36333 ac_status=$?
f95e4495
VS
36334 grep -v '^ *+' conftest.er1 >conftest.err
36335 rm -f conftest.er1
36336 cat conftest.err >&5
e6cc62c6
VS
36337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36338 (exit $ac_status); } &&
f95e4495
VS
36339 { ac_try='test -z "$ac_c_werror_flag"
36340 || test ! -s conftest.err'
36341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36342 (eval $ac_try) 2>&5
36343 ac_status=$?
36344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36345 (exit $ac_status); }; } &&
36346 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
36347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36348 (eval $ac_try) 2>&5
36349 ac_status=$?
36350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36351 (exit $ac_status); }; }; then
36352 eval "$as_ac_var=yes"
36353else
36354 echo "$as_me: failed program was:" >&5
36355sed 's/^/| /' conftest.$ac_ext >&5
36356
36357eval "$as_ac_var=no"
36358fi
f95e4495
VS
36359rm -f conftest.err conftest.$ac_objext \
36360 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
36361fi
36362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36363echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36364if test `eval echo '${'$as_ac_var'}'` = yes; then
36365 cat >>confdefs.h <<_ACEOF
36366#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36367_ACEOF
2b5f62a0 36368 have_floor=1
2b5f62a0
VZ
36369fi
36370done
36371
e6cc62c6
VS
36372echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
36373echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6
2b5f62a0 36374if test "$have_cos" = 1 -a "$have_floor" = 1; then
e6cc62c6
VS
36375 echo "$as_me:$LINENO: result: yes" >&5
36376echo "${ECHO_T}yes" >&6
2b5f62a0 36377else
e6cc62c6
VS
36378 echo "$as_me:$LINENO: result: no" >&5
36379echo "${ECHO_T}no" >&6
2b5f62a0
VZ
36380 LIBS="$LIBS -lm"
36381 # use different functions to avoid configure caching
36382 have_sin=0
36383 have_ceil=0
e6cc62c6
VS
36384
36385for ac_func in sin
2b5f62a0 36386do
e6cc62c6
VS
36387as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36388echo "$as_me:$LINENO: checking for $ac_func" >&5
36389echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36390if eval "test \"\${$as_ac_var+set}\" = set"; then
36391 echo $ECHO_N "(cached) $ECHO_C" >&6
36392else
36393 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36394/* confdefs.h. */
36395_ACEOF
36396cat confdefs.h >>conftest.$ac_ext
36397cat >>conftest.$ac_ext <<_ACEOF
36398/* end confdefs.h. */
f95e4495
VS
36399/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36401#define $ac_func innocuous_$ac_func
36402
2b5f62a0 36403/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
36404 which can conflict with char $ac_func (); below.
36405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36406 <limits.h> exists even on freestanding compilers. */
f95e4495 36407
e6cc62c6
VS
36408#ifdef __STDC__
36409# include <limits.h>
36410#else
36411# include <assert.h>
36412#endif
f95e4495
VS
36413
36414#undef $ac_func
36415
2b5f62a0 36416/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
36417#ifdef __cplusplus
36418extern "C"
36419{
36420#endif
2b5f62a0 36421/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
36422 builtin and then its argument prototype would still apply. */
36423char $ac_func ();
2b5f62a0
VZ
36424/* The GNU C library defines this for functions which it implements
36425 to always fail with ENOSYS. Some functions are actually named
36426 something starting with __ and the normal name is an alias. */
36427#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36428choke me
36429#else
e6cc62c6
VS
36430char (*f) () = $ac_func;
36431#endif
36432#ifdef __cplusplus
36433}
2b5f62a0
VZ
36434#endif
36435
e6cc62c6
VS
36436int
36437main ()
36438{
36439return f != $ac_func;
36440 ;
36441 return 0;
36442}
36443_ACEOF
36444rm -f conftest.$ac_objext conftest$ac_exeext
36445if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 36446 (eval $ac_link) 2>conftest.er1
e6cc62c6 36447 ac_status=$?
f95e4495
VS
36448 grep -v '^ *+' conftest.er1 >conftest.err
36449 rm -f conftest.er1
36450 cat conftest.err >&5
e6cc62c6
VS
36451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36452 (exit $ac_status); } &&
f95e4495
VS
36453 { ac_try='test -z "$ac_c_werror_flag"
36454 || test ! -s conftest.err'
36455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36456 (eval $ac_try) 2>&5
36457 ac_status=$?
36458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36459 (exit $ac_status); }; } &&
36460 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
36461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36462 (eval $ac_try) 2>&5
36463 ac_status=$?
36464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36465 (exit $ac_status); }; }; then
36466 eval "$as_ac_var=yes"
36467else
36468 echo "$as_me: failed program was:" >&5
36469sed 's/^/| /' conftest.$ac_ext >&5
36470
36471eval "$as_ac_var=no"
36472fi
f95e4495
VS
36473rm -f conftest.err conftest.$ac_objext \
36474 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
36475fi
36476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36477echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36478if test `eval echo '${'$as_ac_var'}'` = yes; then
36479 cat >>confdefs.h <<_ACEOF
36480#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36481_ACEOF
2b5f62a0 36482 have_sin=1
2b5f62a0
VZ
36483fi
36484done
36485
e6cc62c6
VS
36486
36487for ac_func in ceil
2b5f62a0 36488do
e6cc62c6
VS
36489as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36490echo "$as_me:$LINENO: checking for $ac_func" >&5
36491echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36492if eval "test \"\${$as_ac_var+set}\" = set"; then
36493 echo $ECHO_N "(cached) $ECHO_C" >&6
36494else
36495 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
36496/* confdefs.h. */
36497_ACEOF
36498cat confdefs.h >>conftest.$ac_ext
36499cat >>conftest.$ac_ext <<_ACEOF
36500/* end confdefs.h. */
f95e4495
VS
36501/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36503#define $ac_func innocuous_$ac_func
36504
2b5f62a0 36505/* System header to define __stub macros and hopefully few prototypes,
e6cc62c6
VS
36506 which can conflict with char $ac_func (); below.
36507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36508 <limits.h> exists even on freestanding compilers. */
f95e4495 36509
e6cc62c6
VS
36510#ifdef __STDC__
36511# include <limits.h>
36512#else
36513# include <assert.h>
36514#endif
f95e4495
VS
36515
36516#undef $ac_func
36517
2b5f62a0 36518/* Override any gcc2 internal prototype to avoid an error. */
e6cc62c6
VS
36519#ifdef __cplusplus
36520extern "C"
36521{
36522#endif
2b5f62a0 36523/* We use char because int might match the return type of a gcc2
e6cc62c6
VS
36524 builtin and then its argument prototype would still apply. */
36525char $ac_func ();
2b5f62a0
VZ
36526/* The GNU C library defines this for functions which it implements
36527 to always fail with ENOSYS. Some functions are actually named
36528 something starting with __ and the normal name is an alias. */
36529#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36530choke me
36531#else
e6cc62c6
VS
36532char (*f) () = $ac_func;
36533#endif
36534#ifdef __cplusplus
36535}
2b5f62a0
VZ
36536#endif
36537
e6cc62c6
VS
36538int
36539main ()
36540{
36541return f != $ac_func;
36542 ;
36543 return 0;
36544}
36545_ACEOF
36546rm -f conftest.$ac_objext conftest$ac_exeext
36547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
f95e4495 36548 (eval $ac_link) 2>conftest.er1
e6cc62c6 36549 ac_status=$?
f95e4495
VS
36550 grep -v '^ *+' conftest.er1 >conftest.err
36551 rm -f conftest.er1
36552 cat conftest.err >&5
e6cc62c6
VS
36553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36554 (exit $ac_status); } &&
f95e4495
VS
36555 { ac_try='test -z "$ac_c_werror_flag"
36556 || test ! -s conftest.err'
36557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36558 (eval $ac_try) 2>&5
36559 ac_status=$?
36560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36561 (exit $ac_status); }; } &&
36562 { ac_try='test -s conftest$ac_exeext'
e6cc62c6
VS
36563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36564 (eval $ac_try) 2>&5
36565 ac_status=$?
36566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36567 (exit $ac_status); }; }; then
36568 eval "$as_ac_var=yes"
36569else
36570 echo "$as_me: failed program was:" >&5
36571sed 's/^/| /' conftest.$ac_ext >&5
36572
36573eval "$as_ac_var=no"
36574fi
f95e4495
VS
36575rm -f conftest.err conftest.$ac_objext \
36576 conftest$ac_exeext conftest.$ac_ext
e6cc62c6
VS
36577fi
36578echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36579echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36580if test `eval echo '${'$as_ac_var'}'` = yes; then
36581 cat >>confdefs.h <<_ACEOF
36582#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36583_ACEOF
2b5f62a0 36584 have_ceil=1
2b5f62a0
VZ
36585fi
36586done
36587
e6cc62c6
VS
36588 echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
36589echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6
2b5f62a0 36590 if test "$have_sin" = 1 -a "$have_ceil" = 1; then
e6cc62c6
VS
36591 echo "$as_me:$LINENO: result: yes" >&5
36592echo "${ECHO_T}yes" >&6
2b5f62a0 36593 else
e6cc62c6
VS
36594 echo "$as_me:$LINENO: result: no" >&5
36595echo "${ECHO_T}no" >&6
2b5f62a0
VZ
36596 # not sure we should warn the user, crash, etc.
36597 fi
36598fi
8284b0c5
MB
36599
36600if test "$wxUSE_GUI" = "yes"; then
36601
e6cc62c6 36602
8284b0c5
MB
36603 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
36604 drawing dynamic erase event exec font image \
1dd02ac0 36605 minimal propsize rotate shaped widgets render"
b625909c
VS
36606
36607 if test "$wxUSE_MONOLITHIC" != "yes"; then
36608 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
36609 fi
8284b0c5
MB
36610else
36611 SAMPLES_SUBDIRS="console"
36612fi
36613
36614
e6cc62c6 36615INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \
eea650d8 36616-I\${top_srcdir}/include $TOOLKIT_INCLUDE"
8284b0c5 36617
fddeb06b
VS
36618if test "$GXX" = yes ; then
36619 CXXWARNINGS="-Wall"
36620 fi
36621
36622EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE"
36623
95318f7d 36624CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'`
fddeb06b
VS
36625CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
36626CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
c74dc163
VS
36627
36628
fddeb06b 36629LIBS=`echo $LIBS | sed 's/ \+/ /g'`
c74dc163 36630EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
672abd7a 36631EXTRALIBS_XML="$EXPAT_LINK"
3527f29c 36632EXTRALIBS_HTML="$MSPACK_LINK"
bb41dcbe 36633EXTRALIBS_ODBC="$ODBC_LINK"
c74dc163
VS
36634if test "$wxUSE_GUI" = "yes"; then
36635 EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'`
36636fi
34b08d2c
VS
36637if test "$wxUSE_OPENGL" = "yes"; then
36638 EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
36639fi
fddeb06b
VS
36640
36641LDFLAGS="$LDFLAGS $PROFILE"
36642
8284b0c5
MB
36643if test "$wxUSE_GTK" = 1; then
36644 WXCONFIG_INCLUDE=
36645else
36646 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
36647fi
36648
67c13b6c
VS
36649WXCONFIG_EXTRALIBS="$LIBS"
36650
36651if test "$wxUSE_REGEX" = "builtin" ; then
36652 wxconfig_3rdparty="$wxconfig_3rdparty regex"
36653fi
36654if test "$wxUSE_EXPAT" = "builtin" ; then
36655 wxconfig_3rdparty="$wxconfig_3rdparty expat"
36656fi
36657if test "$wxUSE_ODBC" = "builtin" ; then
36658 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
36659fi
36660if test "$wxUSE_LIBTIFF" = "builtin" ; then
36661 wxconfig_3rdparty="$wxconfig_3rdparty tiff"
36662fi
36663if test "$wxUSE_LIBJPEG" = "builtin" ; then
36664 wxconfig_3rdparty="$wxconfig_3rdparty jpeg"
36665fi
36666if test "$wxUSE_LIBPNG" = "builtin" ; then
36667 wxconfig_3rdparty="$wxconfig_3rdparty png"
36668fi
36669if test "$wxUSE_ZLIB" = "builtin" ; then
36670 wxconfig_3rdparty="$wxconfig_3rdparty zlib"
36671fi
bb41dcbe
VS
36672if test "$wxUSE_ODBC" = "builtin" ; then
36673 wxconfig_3rdparty="$wxconfig_3rdparty odbc"
36674fi
67c13b6c
VS
36675
36676for i in $wxconfig_3rdparty ; do
36677 WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}"
36678done
36679
36680
fe0895cf
VS
36681if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
36682 WXUNIV=1
36683else
36684 WXUNIV=0
8284b0c5
MB
36685fi
36686
8284b0c5
MB
36687
36688
36689
36690
36691
36692
36693
672abd7a 36694
9747f85d
VS
36695if test $wxUSE_MONOLITHIC = "yes" ; then
36696 MONOLITHIC=1
36697else
36698 MONOLITHIC=0
36699fi
8284b0c5 36700
bb41dcbe
VS
36701if test $wxUSE_ODBC != "no" ; then
36702 USE_ODBC=1
36703else
36704 USE_ODBC=0
36705fi
36706
029b47ad
VS
36707if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
36708 OFFICIAL_BUILD=1
36709else
36710 OFFICIAL_BUILD=0
36711fi
36712
8ee2dd05
VS
36713
36714
36715
8284b0c5
MB
36716
36717
36718
36719
36720
36721
c74dc163 36722
34b08d2c 36723
672abd7a 36724
cf615ebb 36725
6c67131a
VS
36726
36727
bb41dcbe 36728
3527f29c 36729
89fe663f 36730TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
8284b0c5
MB
36731
36732
36733
36734
36735
ea66c762 36736
0f1bc9c2 36737
f95e4495
VS
36738 if test "x$BAKEFILE_HOST" = "x"; then
36739 BAKEFILE_HOST="${host}"
36740 fi
36741
fe0895cf 36742 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
e6cc62c6
VS
36743
36744 if test -n "$ac_tool_prefix"; then
36745 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
36746set dummy ${ac_tool_prefix}ranlib; ac_word=$2
36747echo "$as_me:$LINENO: checking for $ac_word" >&5
36748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36749if test "${ac_cv_prog_RANLIB+set}" = set; then
36750 echo $ECHO_N "(cached) $ECHO_C" >&6
10f2d63a 36751else
fe0895cf
VS
36752 if test -n "$RANLIB"; then
36753 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10f2d63a 36754else
e6cc62c6
VS
36755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36756for as_dir in $PATH
36757do
36758 IFS=$as_save_IFS
36759 test -z "$as_dir" && as_dir=.
36760 for ac_exec_ext in '' $ac_executable_extensions; do
36761 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36762 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
36763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36764 break 2
36765 fi
36766done
36767done
36768
10f2d63a 36769fi
10f2d63a 36770fi
e6cc62c6 36771RANLIB=$ac_cv_prog_RANLIB
fe0895cf 36772if test -n "$RANLIB"; then
e6cc62c6
VS
36773 echo "$as_me:$LINENO: result: $RANLIB" >&5
36774echo "${ECHO_T}$RANLIB" >&6
36775else
36776 echo "$as_me:$LINENO: result: no" >&5
36777echo "${ECHO_T}no" >&6
36778fi
36779
36780fi
36781if test -z "$ac_cv_prog_RANLIB"; then
36782 ac_ct_RANLIB=$RANLIB
36783 # Extract the first word of "ranlib", so it can be a program name with args.
36784set dummy ranlib; ac_word=$2
36785echo "$as_me:$LINENO: checking for $ac_word" >&5
36786echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36787if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
36788 echo $ECHO_N "(cached) $ECHO_C" >&6
36789else
36790 if test -n "$ac_ct_RANLIB"; then
36791 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
36792else
36793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36794for as_dir in $PATH
36795do
36796 IFS=$as_save_IFS
36797 test -z "$as_dir" && as_dir=.
36798 for ac_exec_ext in '' $ac_executable_extensions; do
36799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
36800 ac_cv_prog_ac_ct_RANLIB="ranlib"
36801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36802 break 2
36803 fi
36804done
36805done
36806
36807 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
36808fi
36809fi
36810ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
36811if test -n "$ac_ct_RANLIB"; then
36812 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
36813echo "${ECHO_T}$ac_ct_RANLIB" >&6
10f2d63a 36814else
e6cc62c6
VS
36815 echo "$as_me:$LINENO: result: no" >&5
36816echo "${ECHO_T}no" >&6
36817fi
36818
36819 RANLIB=$ac_ct_RANLIB
36820else
36821 RANLIB="$ac_cv_prog_RANLIB"
00cf1208 36822fi
665bbe97 36823
fe0895cf
VS
36824 # Find a good install program. We prefer a C program (faster),
36825# so one script is as good as another. But avoid the broken or
36826# incompatible versions:
36827# SysV /etc/install, /usr/sbin/install
36828# SunOS /usr/etc/install
36829# IRIX /sbin/install
36830# AIX /bin/install
e6cc62c6 36831# AmigaOS /C/install, which installs bootblocks on floppy discs
fe0895cf
VS
36832# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
36833# AFS /usr/afsws/bin/install, which mishandles nonexistent args
36834# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
f95e4495 36835# OS/2's system install, which has a completely different semantic
fe0895cf 36836# ./install, which can be erroneously created by make from ./install.sh.
e6cc62c6
VS
36837echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
36838echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
fe0895cf 36839if test -z "$INSTALL"; then
e6cc62c6
VS
36840if test "${ac_cv_path_install+set}" = set; then
36841 echo $ECHO_N "(cached) $ECHO_C" >&6
36842else
36843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36844for as_dir in $PATH
36845do
36846 IFS=$as_save_IFS
36847 test -z "$as_dir" && as_dir=.
36848 # Account for people who put trailing slashes in PATH elements.
36849case $as_dir/ in
36850 ./ | .// | /cC/* | \
36851 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
f95e4495 36852 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
e6cc62c6
VS
36853 /usr/ucb/* ) ;;
36854 *)
36855 # OSF1 and SCO ODT 3.0 have their own names for install.
36856 # Don't use installbsd from OSF since it installs stuff as root
36857 # by default.
36858 for ac_prog in ginstall scoinst install; do
36859 for ac_exec_ext in '' $ac_executable_extensions; do
f95e4495
VS
36860 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
36861 if test $ac_prog = install &&
36862 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36863 # AIX install. It has an incompatible calling convention.
36864 :
36865 elif test $ac_prog = install &&
36866 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
36867 # program-specific install script used by HP pwplus--don't use.
36868 :
36869 else
36870 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
36871 break 3
36872 fi
36873 fi
fe0895cf 36874 done
e6cc62c6
VS
36875 done
36876 ;;
36877esac
36878done
36879
fe0895cf
VS
36880
36881fi
36882 if test "${ac_cv_path_install+set}" = set; then
e6cc62c6 36883 INSTALL=$ac_cv_path_install
fe0895cf
VS
36884 else
36885 # As a last resort, use the slow shell script. We don't cache a
36886 # path for INSTALL within a source directory, because that will
36887 # break other packages using the cache if that directory is
36888 # removed, or if the path is relative.
e6cc62c6 36889 INSTALL=$ac_install_sh
fe0895cf
VS
36890 fi
36891fi
e6cc62c6
VS
36892echo "$as_me:$LINENO: result: $INSTALL" >&5
36893echo "${ECHO_T}$INSTALL" >&6
fe0895cf
VS
36894
36895# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
36896# It thinks the first close brace ends the variable substitution.
36897test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
36898
e6cc62c6 36899test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
fe0895cf
VS
36900
36901test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
36902
e6cc62c6
VS
36903 echo "$as_me:$LINENO: checking whether ln -s works" >&5
36904echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
36905LN_S=$as_ln_s
36906if test "$LN_S" = "ln -s"; then
36907 echo "$as_me:$LINENO: result: yes" >&5
36908echo "${ECHO_T}yes" >&6
fe0895cf 36909else
e6cc62c6
VS
36910 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
36911echo "${ECHO_T}no, using $LN_S" >&6
fe0895cf
VS
36912fi
36913
36914
e6cc62c6
VS
36915 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
36916echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
f95e4495 36917set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
e6cc62c6
VS
36918if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
36919 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 36920else
e6cc62c6 36921 cat >conftest.make <<\_ACEOF
fe0895cf 36922all:
e6cc62c6
VS
36923 @echo 'ac_maketemp="$(MAKE)"'
36924_ACEOF
fe0895cf 36925# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
e6cc62c6 36926eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
fe0895cf
VS
36927if test -n "$ac_maketemp"; then
36928 eval ac_cv_prog_make_${ac_make}_set=yes
36929else
36930 eval ac_cv_prog_make_${ac_make}_set=no
36931fi
e6cc62c6 36932rm -f conftest.make
fe0895cf
VS
36933fi
36934if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
e6cc62c6
VS
36935 echo "$as_me:$LINENO: result: yes" >&5
36936echo "${ECHO_T}yes" >&6
fe0895cf
VS
36937 SET_MAKE=
36938else
e6cc62c6
VS
36939 echo "$as_me:$LINENO: result: no" >&5
36940echo "${ECHO_T}no" >&6
fe0895cf
VS
36941 SET_MAKE="MAKE=${MAKE-make}"
36942fi
36943
e6cc62c6
VS
36944
36945
874d12cf
VS
36946 if test -n "$ac_tool_prefix"; then
36947 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
36948set dummy ${ac_tool_prefix}ar; ac_word=$2
e6cc62c6
VS
36949echo "$as_me:$LINENO: checking for $ac_word" >&5
36950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36951if test "${ac_cv_prog_AR+set}" = set; then
36952 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
36953else
36954 if test -n "$AR"; then
36955 ac_cv_prog_AR="$AR" # Let the user override the test.
36956else
e6cc62c6
VS
36957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36958for as_dir in $PATH
36959do
36960 IFS=$as_save_IFS
36961 test -z "$as_dir" && as_dir=.
36962 for ac_exec_ext in '' $ac_executable_extensions; do
36963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 36964 ac_cv_prog_AR="${ac_tool_prefix}ar"
e6cc62c6
VS
36965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36966 break 2
36967 fi
36968done
36969done
36970
fe0895cf
VS
36971fi
36972fi
e6cc62c6 36973AR=$ac_cv_prog_AR
fe0895cf 36974if test -n "$AR"; then
e6cc62c6
VS
36975 echo "$as_me:$LINENO: result: $AR" >&5
36976echo "${ECHO_T}$AR" >&6
fe0895cf 36977else
e6cc62c6
VS
36978 echo "$as_me:$LINENO: result: no" >&5
36979echo "${ECHO_T}no" >&6
fe0895cf
VS
36980fi
36981
874d12cf
VS
36982fi
36983if test -z "$ac_cv_prog_AR"; then
36984 ac_ct_AR=$AR
36985 # Extract the first word of "ar", so it can be a program name with args.
36986set dummy ar; ac_word=$2
36987echo "$as_me:$LINENO: checking for $ac_word" >&5
36988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
36989if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
36990 echo $ECHO_N "(cached) $ECHO_C" >&6
36991else
36992 if test -n "$ac_ct_AR"; then
36993 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
36994else
36995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36996for as_dir in $PATH
36997do
36998 IFS=$as_save_IFS
36999 test -z "$as_dir" && as_dir=.
37000 for ac_exec_ext in '' $ac_executable_extensions; do
37001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37002 ac_cv_prog_ac_ct_AR="ar"
37003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37004 break 2
37005 fi
37006done
37007done
37008
37009 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
37010fi
37011fi
37012ac_ct_AR=$ac_cv_prog_ac_ct_AR
37013if test -n "$ac_ct_AR"; then
37014 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
37015echo "${ECHO_T}$ac_ct_AR" >&6
37016else
37017 echo "$as_me:$LINENO: result: no" >&5
37018echo "${ECHO_T}no" >&6
37019fi
37020
37021 AR=$ac_ct_AR
37022else
37023 AR="$ac_cv_prog_AR"
37024fi
37025
37026 if test -n "$ac_tool_prefix"; then
37027 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
37028set dummy ${ac_tool_prefix}strip; ac_word=$2
e6cc62c6
VS
37029echo "$as_me:$LINENO: checking for $ac_word" >&5
37030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37031if test "${ac_cv_prog_STRIP+set}" = set; then
37032 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37033else
37034 if test -n "$STRIP"; then
37035 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
37036else
e6cc62c6
VS
37037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37038for as_dir in $PATH
37039do
37040 IFS=$as_save_IFS
37041 test -z "$as_dir" && as_dir=.
37042 for ac_exec_ext in '' $ac_executable_extensions; do
37043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
874d12cf 37044 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
e6cc62c6
VS
37045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37046 break 2
37047 fi
37048done
37049done
37050
fe0895cf
VS
37051fi
37052fi
e6cc62c6 37053STRIP=$ac_cv_prog_STRIP
fe0895cf 37054if test -n "$STRIP"; then
e6cc62c6
VS
37055 echo "$as_me:$LINENO: result: $STRIP" >&5
37056echo "${ECHO_T}$STRIP" >&6
fe0895cf 37057else
e6cc62c6
VS
37058 echo "$as_me:$LINENO: result: no" >&5
37059echo "${ECHO_T}no" >&6
fe0895cf
VS
37060fi
37061
874d12cf
VS
37062fi
37063if test -z "$ac_cv_prog_STRIP"; then
37064 ac_ct_STRIP=$STRIP
37065 # Extract the first word of "strip", so it can be a program name with args.
37066set dummy strip; ac_word=$2
37067echo "$as_me:$LINENO: checking for $ac_word" >&5
37068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37069if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
37070 echo $ECHO_N "(cached) $ECHO_C" >&6
37071else
37072 if test -n "$ac_ct_STRIP"; then
37073 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
37074else
37075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37076for as_dir in $PATH
37077do
37078 IFS=$as_save_IFS
37079 test -z "$as_dir" && as_dir=.
37080 for ac_exec_ext in '' $ac_executable_extensions; do
37081 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37082 ac_cv_prog_ac_ct_STRIP="strip"
37083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37084 break 2
37085 fi
37086done
37087done
37088
37089 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
37090fi
37091fi
37092ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
37093if test -n "$ac_ct_STRIP"; then
37094 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
37095echo "${ECHO_T}$ac_ct_STRIP" >&6
37096else
37097 echo "$as_me:$LINENO: result: no" >&5
37098echo "${ECHO_T}no" >&6
37099fi
37100
37101 STRIP=$ac_ct_STRIP
37102else
37103 STRIP="$ac_cv_prog_STRIP"
37104fi
37105
37106 if test -n "$ac_tool_prefix"; then
37107 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
37108set dummy ${ac_tool_prefix}nm; ac_word=$2
37109echo "$as_me:$LINENO: checking for $ac_word" >&5
37110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37111if test "${ac_cv_prog_NM+set}" = set; then
37112 echo $ECHO_N "(cached) $ECHO_C" >&6
37113else
37114 if test -n "$NM"; then
37115 ac_cv_prog_NM="$NM" # Let the user override the test.
37116else
37117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37118for as_dir in $PATH
37119do
37120 IFS=$as_save_IFS
37121 test -z "$as_dir" && as_dir=.
37122 for ac_exec_ext in '' $ac_executable_extensions; do
37123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37124 ac_cv_prog_NM="${ac_tool_prefix}nm"
37125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37126 break 2
37127 fi
37128done
37129done
37130
37131fi
37132fi
37133NM=$ac_cv_prog_NM
37134if test -n "$NM"; then
37135 echo "$as_me:$LINENO: result: $NM" >&5
37136echo "${ECHO_T}$NM" >&6
37137else
37138 echo "$as_me:$LINENO: result: no" >&5
37139echo "${ECHO_T}no" >&6
37140fi
37141
37142fi
37143if test -z "$ac_cv_prog_NM"; then
37144 ac_ct_NM=$NM
37145 # Extract the first word of "nm", so it can be a program name with args.
37146set dummy nm; ac_word=$2
37147echo "$as_me:$LINENO: checking for $ac_word" >&5
37148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37149if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
37150 echo $ECHO_N "(cached) $ECHO_C" >&6
37151else
37152 if test -n "$ac_ct_NM"; then
37153 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
37154else
37155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37156for as_dir in $PATH
37157do
37158 IFS=$as_save_IFS
37159 test -z "$as_dir" && as_dir=.
37160 for ac_exec_ext in '' $ac_executable_extensions; do
37161 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37162 ac_cv_prog_ac_ct_NM="nm"
37163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37164 break 2
37165 fi
37166done
37167done
37168
37169 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
37170fi
37171fi
37172ac_ct_NM=$ac_cv_prog_ac_ct_NM
37173if test -n "$ac_ct_NM"; then
37174 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
37175echo "${ECHO_T}$ac_ct_NM" >&6
37176else
37177 echo "$as_me:$LINENO: result: no" >&5
37178echo "${ECHO_T}no" >&6
37179fi
37180
37181 NM=$ac_ct_NM
37182else
37183 NM="$ac_cv_prog_NM"
37184fi
37185
fe0895cf 37186
f95e4495 37187 case ${BAKEFILE_HOST} in
fe0895cf
VS
37188 *-hp-hpux* )
37189 INSTALL_DIR="mkdir"
37190 ;;
37191 *) INSTALL_DIR="$INSTALL -d"
37192 ;;
37193 esac
e6cc62c6 37194
fe0895cf 37195
6b9d41a5 37196 LDFLAGS_GUI=
f95e4495 37197 case ${BAKEFILE_HOST} in
6b9d41a5
VS
37198 *-*-cygwin* | *-*-mingw32* )
37199 LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows"
37200 esac
37201
37202
fe0895cf 37203 fi
e6cc62c6
VS
37204
37205 echo "$as_me:$LINENO: checking if make is GNU make" >&5
37206echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
49b0a3aa 37207if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
e6cc62c6 37208 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 37209else
e6cc62c6 37210
fe0895cf
VS
37211 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
37212 egrep -s GNU > /dev/null); then
37213 bakefile_cv_prog_makeisgnu="yes"
37214 else
37215 bakefile_cv_prog_makeisgnu="no"
37216 fi
fe0895cf 37217
e6cc62c6 37218fi
49b0a3aa
VS
37219echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
37220echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
fe0895cf
VS
37221
37222 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
37223 IF_GNU_MAKE=""
37224 else
37225 IF_GNU_MAKE="#"
37226 fi
fe0895cf 37227
e6cc62c6
VS
37228
37229
fe0895cf
VS
37230 PLATFORM_UNIX=0
37231 PLATFORM_WIN32=0
37232 PLATFORM_MSDOS=0
37233 PLATFORM_MAC=0
37234 PLATFORM_MACOSX=0
96c1699d 37235 PLATFORM_OS2=0
e6cc62c6 37236
f95e4495
VS
37237 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
37238 case "${BAKEFILE_HOST}" in
37239 *-*-cygwin* | *-*-mingw32* )
37240 PLATFORM_WIN32=1
37241 ;;
37242 *-pc-msdosdjgpp )
37243 PLATFORM_MSDOS=1
37244 ;;
37245 *-pc-os2_emx | *-pc-os2-emx )
37246 PLATFORM_OS2=1
37247 ;;
37248 powerpc-*-darwin* )
37249 PLATFORM_MAC=1
37250 PLATFORM_MACOSX=1
37251 ;;
37252 * )
37253 PLATFORM_UNIX=1
37254 ;;
37255 esac
37256 else
37257 case "$BAKEFILE_FORCE_PLATFORM" in
37258 win32 )
37259 PLATFORM_WIN32=1
37260 ;;
37261 msdos )
37262 PLATFORM_MSDOS=1
37263 ;;
37264 os2 )
37265 PLATFORM_OS2=1
37266 ;;
37267 darwin )
37268 PLATFORM_MAC=1
37269 PLATFORM_MACOSX=1
37270 ;;
37271 unix )
37272 PLATFORM_UNIX=1
37273 ;;
37274 * )
37275 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
37276echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
37277 { (exit 1); exit 1; }; }
37278 ;;
37279 esac
37280 fi
fe0895cf 37281
fe0895cf 37282
e6cc62c6
VS
37283
37284
37285
37286
37287
37288
96c1699d 37289
fe0895cf 37290 SO_SUFFIX="so"
131f235d 37291 SO_SUFFIX_MODULE="so"
fe0895cf 37292 EXEEXT=""
4b1f6360 37293 LIBPREFIX=lib
fe0895cf 37294 DLLPREFIX=lib
131f235d 37295 DLLPREFIX_MODULE=
e6cc62c6 37296
f95e4495 37297 case "${BAKEFILE_HOST}" in
fe0895cf
VS
37298 *-hp-hpux* )
37299 SO_SUFFIX="sl"
131f235d 37300 SO_SUFFIX_MODULE="sl"
fe0895cf
VS
37301 ;;
37302 *-*-aix* )
37303 SO_SUFFIX="a"
131f235d 37304 SO_SUFFIX_MODULE="a"
fe0895cf
VS
37305 ;;
37306 *-*-cygwin* | *-*-mingw32* )
37307 SO_SUFFIX="dll"
131f235d 37308 SO_SUFFIX_MODULE="dll"
fe0895cf
VS
37309 EXEEXT=".exe"
37310 DLLPREFIX=""
37311 ;;
4b1f6360
VS
37312 *-pc-msdosdjgpp )
37313 EXEEXT=".exe"
37314 DLLPREFIX=""
37315 ;;
37316 *-pc-os2_emx | *-pc-os2-emx )
fe0895cf
VS
37317 EXEEXT=".exe"
37318 DLLPREFIX=""
4b1f6360 37319 LIBPREFIX=""
fe0895cf
VS
37320 ;;
37321 powerpc-*-darwin* )
37322 SO_SUFFIX="dylib"
131f235d 37323 SO_SUFFIX_MODULE="bundle"
fe0895cf
VS
37324 ;;
37325 esac
37326
fe0895cf 37327
e6cc62c6
VS
37328
37329
37330
37331
131f235d
VS
37332
37333
4b1f6360 37334
fe0895cf
VS
37335 SHARED_LD_CC="\$(CC) -shared -o"
37336 SHARED_LD_CXX="\$(CXX) -shared -o"
37337
37338 if test "x$GCC" = "xyes"; then
37339 PIC_FLAG="-fPIC"
37340 fi
37341
f95e4495 37342 case "${BAKEFILE_HOST}" in
fe0895cf
VS
37343 *-hp-hpux* )
37344 if test "x$GCC" = "xyes"; then
37345 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
37346 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
37347 else
37348 LDFLAGS="$LDFLAGS -L/usr/lib"
37349
37350 SHARED_LD_CC="${CC} -b -o"
37351 SHARED_LD_CXX="${CXX} -b -o"
37352 PIC_FLAG="+Z"
37353 fi
37354 ;;
37355
37356 *-*-linux* )
37357 if test "x$GCC" != "xyes"; then
e6cc62c6
VS
37358 echo "$as_me:$LINENO: checking for Intel compiler" >&5
37359echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
37360if test "${bakefile_cv_prog_icc+set}" = set; then
37361 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf 37362else
fe0895cf 37363
e6cc62c6 37364 cat >conftest.$ac_ext <<_ACEOF
e6cc62c6
VS
37365/* confdefs.h. */
37366_ACEOF
37367cat confdefs.h >>conftest.$ac_ext
37368cat >>conftest.$ac_ext <<_ACEOF
37369/* end confdefs.h. */
37370
37371int
37372main ()
37373{
fe0895cf
VS
37374
37375 #ifndef __INTEL_COMPILER
37376 #error Not icc
37377 #endif
e6cc62c6
VS
37378
37379 ;
37380 return 0;
37381}
37382_ACEOF
37383rm -f conftest.$ac_objext
37384if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 37385 (eval $ac_compile) 2>conftest.er1
e6cc62c6 37386 ac_status=$?
f95e4495
VS
37387 grep -v '^ *+' conftest.er1 >conftest.err
37388 rm -f conftest.er1
37389 cat conftest.err >&5
e6cc62c6
VS
37390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37391 (exit $ac_status); } &&
f95e4495
VS
37392 { ac_try='test -z "$ac_c_werror_flag"
37393 || test ! -s conftest.err'
37394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37395 (eval $ac_try) 2>&5
37396 ac_status=$?
37397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37398 (exit $ac_status); }; } &&
37399 { ac_try='test -s conftest.$ac_objext'
e6cc62c6
VS
37400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37401 (eval $ac_try) 2>&5
37402 ac_status=$?
37403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37404 (exit $ac_status); }; }; then
fe0895cf
VS
37405 bakefile_cv_prog_icc=yes
37406else
e6cc62c6
VS
37407 echo "$as_me: failed program was:" >&5
37408sed 's/^/| /' conftest.$ac_ext >&5
37409
37410bakefile_cv_prog_icc=no
37411
fe0895cf 37412fi
f95e4495 37413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
fe0895cf 37414
e6cc62c6
VS
37415fi
37416echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
37417echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
fe0895cf
VS
37418 if test "$bakefile_cv_prog_icc" = "yes"; then
37419 PIC_FLAG="-KPIC"
37420 fi
37421 fi
37422 ;;
37423
37424 *-*-solaris2* )
37425 if test "x$GCC" != xyes ; then
37426 SHARED_LD_CC="${CC} -G -o"
37427 SHARED_LD_CXX="${CXX} -G -o"
37428 PIC_FLAG="-KPIC"
37429 fi
37430 ;;
37431
37432 *-*-darwin* )
37433 CFLAGS="$CFLAGS -fno-common"
37434 CXXFLAGS="$CXXFLAGS -fno-common"
e6cc62c6
VS
37435
37436
2a879853 37437 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
43948499
RD
37438echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
37439if test "${wx_cv_gcc31+set}" = set; then
37440 echo $ECHO_N "(cached) $ECHO_C" >&6
37441else
37442
2a879853 37443 cat >conftest.$ac_ext <<_ACEOF
43948499
RD
37444/* confdefs.h. */
37445_ACEOF
37446cat confdefs.h >>conftest.$ac_ext
37447cat >>conftest.$ac_ext <<_ACEOF
37448/* end confdefs.h. */
37449
37450int
37451main ()
37452{
37453
2a879853
VS
37454 #if (__GNUC__ < 3) || \
37455 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
37456 #error old gcc
37457 #endif
43948499
RD
37458
37459 ;
37460 return 0;
37461}
37462_ACEOF
37463rm -f conftest.$ac_objext
37464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 37465 (eval $ac_compile) 2>conftest.er1
43948499 37466 ac_status=$?
f95e4495
VS
37467 grep -v '^ *+' conftest.er1 >conftest.err
37468 rm -f conftest.er1
37469 cat conftest.err >&5
43948499
RD
37470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37471 (exit $ac_status); } &&
f95e4495
VS
37472 { ac_try='test -z "$ac_c_werror_flag"
37473 || test ! -s conftest.err'
37474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37475 (eval $ac_try) 2>&5
37476 ac_status=$?
37477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37478 (exit $ac_status); }; } &&
37479 { ac_try='test -s conftest.$ac_objext'
43948499
RD
37480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37481 (eval $ac_try) 2>&5
37482 ac_status=$?
37483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37484 (exit $ac_status); }; }; then
37485
2a879853 37486 wx_cv_gcc31=yes
43948499
RD
37487
37488else
37489 echo "$as_me: failed program was:" >&5
37490sed 's/^/| /' conftest.$ac_ext >&5
37491
37492
2a879853 37493 wx_cv_gcc31=no
43948499
RD
37494
37495
37496fi
f95e4495 37497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43948499
RD
37498
37499fi
37500echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5
37501echo "${ECHO_T}$wx_cv_gcc31" >&6
2a879853 37502 if test "$wx_cv_gcc31" = "no"; then
43948499 37503 cat <<EOF >shared-ld-sh
fe0895cf
VS
37504#!/bin/sh
37505#-----------------------------------------------------------------------------
37506#-- Name: distrib/mac/shared-ld-sh
37507#-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
37508#-- Author: Gilles Depeyrot
37509#-- Copyright: (c) 2002 Gilles Depeyrot
37510#-- Licence: any use permitted
37511#-----------------------------------------------------------------------------
37512
37513verbose=0
37514args=""
37515objects=""
131f235d 37516linking_flag="-dynamiclib"
fe0895cf
VS
37517
37518while test \${#} -gt 0; do
37519 case \${1} in
37520
37521 -v)
37522 verbose=1
37523 ;;
37524
37525 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
37526 # collect these options and values
37527 args="\${args} \${1} \${2}"
37528 shift
37529 ;;
37530
74500461 37531 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
fe0895cf
VS
37532 # collect these options
37533 args="\${args} \${1}"
37534 ;;
37535
131f235d
VS
37536 -dynamiclib|-bundle)
37537 linking_flag="\${1}"
fe0895cf
VS
37538 ;;
37539
37540 -*)
37541 echo "shared-ld: unhandled option '\${1}'"
37542 exit 1
37543 ;;
37544
4d264332 37545 *.o | *.a | *.dylib)
fe0895cf
VS
37546 # collect object files
37547 objects="\${objects} \${1}"
37548 ;;
37549
37550 *)
37551 echo "shared-ld: unhandled argument '\${1}'"
37552 exit 1
37553 ;;
37554
37555 esac
37556 shift
37557done
37558
37559#
37560# Link one module containing all the others
37561#
37562if test \${verbose} = 1; then
37563 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
37564fi
37565c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
37566status=\$?
37567if test \${status} != 0; then
37568 exit \${status}
37569fi
37570
37571#
37572# Link the shared library from the single module created
37573#
37574if test \${verbose} = 1; then
2a879853 37575 echo "cc \${linking_flag} master.\$\$.o \${args}"
fe0895cf 37576fi
131f235d 37577c++ \${linking_flag} master.\$\$.o \${args}
fe0895cf
VS
37578status=\$?
37579if test \${status} != 0; then
37580 exit \${status}
37581fi
37582
37583#
37584# Remove intermediate module
37585#
37586rm -f master.\$\$.o
37587
37588exit 0
37589EOF
43948499 37590 chmod +x shared-ld-sh
fe0895cf 37591
7f523214
VS
37592 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
37593 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
2a879853
VS
37594 SHARED_LD_CXX="$SHARED_LD_CC"
37595 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
37596 else
7f523214
VS
37597 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
37598 SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o"
37599 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
37600 SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o"
2a879853
VS
37601 fi
37602
fe0895cf 37603 PIC_FLAG="-dynamic -fPIC"
2a879853 37604 ;;
fe0895cf
VS
37605
37606 *-*-aix* )
37607 if test "x$GCC" != "xyes"; then
37608 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
37609set dummy makeC++SharedLib; ac_word=$2
e6cc62c6
VS
37610echo "$as_me:$LINENO: checking for $ac_word" >&5
37611echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37612if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
37613 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37614else
37615 if test -n "$AIX_CXX_LD"; then
37616 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
37617else
e6cc62c6
VS
37618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37619for as_dir in $PATH
37620do
37621 IFS=$as_save_IFS
37622 test -z "$as_dir" && as_dir=.
37623 for ac_exec_ext in '' $ac_executable_extensions; do
37624 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37625 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
37626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37627 break 2
37628 fi
37629done
37630done
37631
fe0895cf
VS
37632 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
37633fi
37634fi
e6cc62c6 37635AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
fe0895cf 37636if test -n "$AIX_CXX_LD"; then
e6cc62c6
VS
37637 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
37638echo "${ECHO_T}$AIX_CXX_LD" >&6
fe0895cf 37639else
e6cc62c6
VS
37640 echo "$as_me:$LINENO: result: no" >&5
37641echo "${ECHO_T}no" >&6
fe0895cf
VS
37642fi
37643
37644 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
37645 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
37646 fi
37647 ;;
37648
37649 *-*-beos* )
37650 SHARED_LD_CC="${LD} -shared -o"
37651 SHARED_LD_CXX="${LD} -shared -o"
37652 ;;
37653
37654 *-*-irix* )
37655 if test "x$GCC" != "xyes"; then
37656 PIC_FLAG="-KPIC"
37657 fi
37658 ;;
e6cc62c6 37659
fe0895cf
VS
37660 *-*-cygwin* | *-*-mingw32* )
37661 PIC_FLAG=""
37662 ;;
e6cc62c6 37663
fe0895cf
VS
37664 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
37665 *-*-sunos4* | \
37666 *-*-osf* | \
37667 *-*-dgux5* | \
4b1f6360 37668 *-pc-os2_emx | *-pc-os2-emx | \
fe0895cf
VS
37669 *-*-sysv5* )
37670 ;;
37671
37672 *)
f95e4495
VS
37673 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
37674echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
e6cc62c6 37675 { (exit 1); exit 1; }; }
fe0895cf
VS
37676 esac
37677
131f235d
VS
37678 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
37679 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
37680 fi
37681 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
239394fb 37682 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
131f235d
VS
37683 fi
37684
37685
37686
fe0895cf 37687
e6cc62c6
VS
37688
37689
37690
37691
fe0895cf
VS
37692 USE_SOVERSION=0
37693 USE_SOVERLINUX=0
37694 USE_SOVERSOLARIS=0
37695 USE_SOSYMLINKS=0
37696 USE_MACVERSION=0
37697 SONAME_FLAG=
37698
f95e4495 37699 case "${BAKEFILE_HOST}" in
fe0895cf
VS
37700 *-*-linux* )
37701 SONAME_FLAG="-Wl,-soname,"
37702 USE_SOVERSION=1
37703 USE_SOVERLINUX=1
37704 USE_SOSYMLINKS=1
37705 ;;
37706
37707 *-*-solaris2* )
37708 SONAME_FLAG="-h "
37709 USE_SOVERSION=1
37710 USE_SOVERSOLARIS=1
37711 USE_SOSYMLINKS=1
37712 ;;
37713
37714 *-*-darwin* )
37715 USE_MACVERSION=1
37716 USE_SOVERSION=1
37717 USE_SOSYMLINKS=1
e6cc62c6 37718 ;;
fe0895cf
VS
37719 esac
37720
fe0895cf 37721
e6cc62c6
VS
37722
37723
37724
37725
37726
37727
37728
49b0a3aa
VS
37729 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
37730echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
37731 DEPS_TRACKING=0
37732
fe0895cf 37733 if test "x$GCC" = "xyes"; then
49b0a3aa
VS
37734 DEPSMODE=gcc
37735 DEPS_TRACKING=1
f95e4495 37736 case "${BAKEFILE_HOST}" in
3e5c3c83
VS
37737 powerpc-*-darwin* )
37738 DEPSFLAG_GCC="-no-cpp-precomp -MMD"
37739 ;;
37740 * )
37741 DEPSFLAG_GCC="-MMD"
37742 ;;
37743 esac
49b0a3aa
VS
37744 echo "$as_me:$LINENO: result: gcc" >&5
37745echo "${ECHO_T}gcc" >&6
37746 else
37747 echo "$as_me:$LINENO: result: none" >&5
37748echo "${ECHO_T}none" >&6
37749 fi
37750
37751 if test $DEPS_TRACKING = 1 ; then
37752 cat <<EOF >bk-deps
37753#!/bin/sh
37754
45842500
VS
37755# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
37756# script. It is used to track C/C++ files dependencies in portable way.
49b0a3aa
VS
37757#
37758# Permission is given to use this file in any way.
37759
37760DEPSMODE=$DEPSMODE
37761DEPSDIR=.deps
3e5c3c83 37762DEPSFLAG_GCC="$DEPSFLAG_GCC"
49b0a3aa
VS
37763
37764mkdir -p \$DEPSDIR
37765
37766if test \$DEPSMODE = gcc ; then
3e5c3c83 37767 \${*} \${DEPSFLAG_GCC}
49b0a3aa
VS
37768 status=\${?}
37769 if test \${status} != 0 ; then
37770 exit \${status}
37771 fi
37772 # move created file to the location we want it in:
37773 while test \${#} -gt 0; do
37774 case "\${1}" in
37775 -o )
37776 shift
37777 objfile=\${1}
37778 ;;
37779 -* )
37780 ;;
37781 * )
37782 srcfile=\${1}
37783 ;;
37784 esac
37785 shift
37786 done
37787 depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\`
37788 depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\`
6b9d41a5
VS
37789 if test -f \$depfile ; then
37790 sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
37791 rm -f \$depfile
37792 else
37793 depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\`
37794 if test -f \$depfile ; then
9d0be83a 37795 sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d
6b9d41a5
VS
37796 rm -f \$depfile
37797 fi
37798 fi
49b0a3aa
VS
37799 exit 0
37800else
37801 \${*}
37802 exit \${?}
37803fi
37804EOF
37805 chmod +x bk-deps
fe0895cf 37806 fi
fe0895cf 37807
e6cc62c6
VS
37808
37809
37810
fe0895cf
VS
37811 RESCOMP=
37812 SETFILE=
37813
f95e4495 37814 case ${BAKEFILE_HOST} in
fe0895cf
VS
37815 *-*-cygwin* | *-*-mingw32* )
37816 if test "$build" != "$host" ; then
37817 RESCOMP=$host_alias-windres
37818 else
37819 # Extract the first word of "windres", so it can be a program name with args.
37820set dummy windres; ac_word=$2
e6cc62c6
VS
37821echo "$as_me:$LINENO: checking for $ac_word" >&5
37822echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37823if test "${ac_cv_prog_RESCOMP+set}" = set; then
37824 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37825else
37826 if test -n "$RESCOMP"; then
37827 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
37828else
e6cc62c6
VS
37829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37830for as_dir in $PATH
37831do
37832 IFS=$as_save_IFS
37833 test -z "$as_dir" && as_dir=.
37834 for ac_exec_ext in '' $ac_executable_extensions; do
37835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37836 ac_cv_prog_RESCOMP="windres"
37837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37838 break 2
37839 fi
37840done
37841done
37842
fe0895cf
VS
37843 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
37844fi
37845fi
e6cc62c6 37846RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 37847if test -n "$RESCOMP"; then
e6cc62c6
VS
37848 echo "$as_me:$LINENO: result: $RESCOMP" >&5
37849echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 37850else
e6cc62c6
VS
37851 echo "$as_me:$LINENO: result: no" >&5
37852echo "${ECHO_T}no" >&6
fe0895cf
VS
37853fi
37854
37855 fi
37856 ;;
e6cc62c6 37857
fe0895cf
VS
37858 *-*-darwin* )
37859 # Extract the first word of "Rez", so it can be a program name with args.
37860set dummy Rez; ac_word=$2
e6cc62c6
VS
37861echo "$as_me:$LINENO: checking for $ac_word" >&5
37862echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37863if test "${ac_cv_prog_RESCOMP+set}" = set; then
37864 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37865else
37866 if test -n "$RESCOMP"; then
37867 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
37868else
e6cc62c6
VS
37869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37870for as_dir in $PATH
37871do
37872 IFS=$as_save_IFS
37873 test -z "$as_dir" && as_dir=.
37874 for ac_exec_ext in '' $ac_executable_extensions; do
37875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37876 ac_cv_prog_RESCOMP="Rez"
37877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37878 break 2
37879 fi
37880done
37881done
37882
fe0895cf
VS
37883 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
37884fi
37885fi
e6cc62c6 37886RESCOMP=$ac_cv_prog_RESCOMP
fe0895cf 37887if test -n "$RESCOMP"; then
e6cc62c6
VS
37888 echo "$as_me:$LINENO: result: $RESCOMP" >&5
37889echo "${ECHO_T}$RESCOMP" >&6
fe0895cf 37890else
e6cc62c6
VS
37891 echo "$as_me:$LINENO: result: no" >&5
37892echo "${ECHO_T}no" >&6
fe0895cf
VS
37893fi
37894
37895 # Extract the first word of "SetFile", so it can be a program name with args.
37896set dummy SetFile; ac_word=$2
e6cc62c6
VS
37897echo "$as_me:$LINENO: checking for $ac_word" >&5
37898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
37899if test "${ac_cv_prog_SETFILE+set}" = set; then
37900 echo $ECHO_N "(cached) $ECHO_C" >&6
fe0895cf
VS
37901else
37902 if test -n "$SETFILE"; then
37903 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
37904else
e6cc62c6
VS
37905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37906for as_dir in $PATH
37907do
37908 IFS=$as_save_IFS
37909 test -z "$as_dir" && as_dir=.
37910 for ac_exec_ext in '' $ac_executable_extensions; do
37911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
37912 ac_cv_prog_SETFILE="SetFile"
37913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37914 break 2
37915 fi
37916done
37917done
37918
fe0895cf
VS
37919 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
37920fi
37921fi
e6cc62c6 37922SETFILE=$ac_cv_prog_SETFILE
fe0895cf 37923if test -n "$SETFILE"; then
e6cc62c6
VS
37924 echo "$as_me:$LINENO: result: $SETFILE" >&5
37925echo "${ECHO_T}$SETFILE" >&6
fe0895cf 37926else
e6cc62c6
VS
37927 echo "$as_me:$LINENO: result: no" >&5
37928echo "${ECHO_T}no" >&6
fe0895cf
VS
37929fi
37930
37931 ;;
37932 esac
37933
fe0895cf
VS
37934
37935
e6cc62c6
VS
37936
37937
37938
37939
45842500 37940
45842500
VS
37941 # Check whether --enable-precomp-headers or --disable-precomp-headers was given.
37942if test "${enable_precomp_headers+set}" = set; then
37943 enableval="$enable_precomp_headers"
37944 bk_use_pch="$enableval"
37945fi;
37946
37947 GCC_PCH=0
37948
37949 if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
37950 if test "x$GCC" = "xyes"; then
37951 echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
37952echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6
37953 cat >conftest.$ac_ext <<_ACEOF
45842500
VS
37954/* confdefs.h. */
37955_ACEOF
37956cat confdefs.h >>conftest.$ac_ext
37957cat >>conftest.$ac_ext <<_ACEOF
37958/* end confdefs.h. */
37959
37960int
37961main ()
37962{
37963
8bcf2d20
VS
37964 #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
37965 #error "no pch support"
37966 #endif
37967 #if (__GNUC__ < 3)
37968 #error "no pch support"
37969 #endif
37970 #if (__GNUC__ == 3) && \
37971 ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
37972 ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3)))
37973 #error "no pch support"
45842500
VS
37974 #endif
37975
37976 ;
37977 return 0;
37978}
37979_ACEOF
37980rm -f conftest.$ac_objext
37981if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
f95e4495 37982 (eval $ac_compile) 2>conftest.er1
45842500 37983 ac_status=$?
f95e4495
VS
37984 grep -v '^ *+' conftest.er1 >conftest.err
37985 rm -f conftest.er1
37986 cat conftest.err >&5
45842500
VS
37987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37988 (exit $ac_status); } &&
f95e4495
VS
37989 { ac_try='test -z "$ac_c_werror_flag"
37990 || test ! -s conftest.err'
37991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37992 (eval $ac_try) 2>&5
37993 ac_status=$?
37994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37995 (exit $ac_status); }; } &&
37996 { ac_try='test -s conftest.$ac_objext'
45842500
VS
37997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37998 (eval $ac_try) 2>&5
37999 ac_status=$?
38000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38001 (exit $ac_status); }; }; then
38002
38003 echo "$as_me:$LINENO: result: yes" >&5
38004echo "${ECHO_T}yes" >&6
38005 CPPFLAGS="-fpch-deps $CPPFLAGS"
38006 GCC_PCH=1
38007
38008else
38009 echo "$as_me: failed program was:" >&5
38010sed 's/^/| /' conftest.$ac_ext >&5
38011
38012
38013 echo "$as_me:$LINENO: result: no" >&5
38014echo "${ECHO_T}no" >&6
38015
38016fi
f95e4495 38017rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45842500
VS
38018 if test $GCC_PCH = 1 ; then
38019 cat <<EOF >bk-make-pch
38020#!/bin/sh
38021
38022# This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
38023# script. It is used to generated precompiled headers.
38024#
38025# Permission is given to use this file in any way.
38026
38027outfile="\${1}"
38028header="\${2}"
38029shift
38030shift
38031
38032compiler=
38033headerfile=
38034while test \${#} -gt 0; do
38035 case "\${1}" in
38036 -I* )
38037 incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\`
38038 if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then
38039 headerfile="\${incdir}/\${header}"
38040 fi
38041 ;;
38042 esac
38043 compiler="\${compiler} \${1}"
38044 shift
38045done
38046
38047if test "x\${headerfile}" = "x" ; then
38048 echo "error: can't find header \${header} in include paths" >2
38049else
38050 if test -f \${outfile} ; then
38051 rm -f \${outfile}
38052 else
38053 mkdir -p \`dirname \${outfile}\`
38054 fi
38055 depsfile=".deps/\`basename \${outfile}\`.d"
38056 mkdir -p .deps
38057 # can do this because gcc is >= 3.4:
38058 \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}"
38059 exit \${?}
38060fi
38061EOF
38062 chmod +x bk-make-pch
38063 fi
38064 fi
38065 fi
38066
38067
38068
38069
38070
d78c94f2 38071 COND_BUILD_DEBUG="#"
6f628073 38072 if test "x$BUILD" = "xdebug" ; then
d78c94f2 38073 COND_BUILD_DEBUG=""
6f628073
VS
38074 fi
38075
6c67131a
VS
38076 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
38077 if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
38078 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
38079 fi
38080
38081 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
38082 if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
38083 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
38084 fi
38085
d78c94f2 38086 COND_BUILD_RELEASE="#"
6f628073 38087 if test "x$BUILD" = "xrelease" ; then
d78c94f2 38088 COND_BUILD_RELEASE=""
6b9d41a5
VS
38089 fi
38090
6c67131a
VS
38091 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
38092 if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
38093 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
38094 fi
38095
38096 COND_DEBUG_FLAG_1="#"
38097 if test "x$DEBUG_FLAG" = "x1" ; then
38098 COND_DEBUG_FLAG_1=""
38099 fi
38100
38101 COND_DEBUG_INFO_0="#"
38102 if test "x$DEBUG_INFO" = "x0" ; then
38103 COND_DEBUG_INFO_0=""
38104 fi
38105
38106 COND_DEBUG_INFO_1="#"
38107 if test "x$DEBUG_INFO" = "x1" ; then
38108 COND_DEBUG_INFO_1=""
38109 fi
38110
f95cd8fa
VS
38111 COND_DEPS_TRACKING_0="#"
38112 if test "x$DEPS_TRACKING" = "x0" ; then
38113 COND_DEPS_TRACKING_0=""
6b9d41a5
VS
38114 fi
38115
8ee2dd05
VS
38116 COND_DEPS_TRACKING_1="#"
38117 if test "x$DEPS_TRACKING" = "x1" ; then
38118 COND_DEPS_TRACKING_1=""
38119 fi
38120
45842500
VS
38121 COND_GCC_PCH_1="#"
38122 if test "x$GCC_PCH" = "x1" ; then
38123 COND_GCC_PCH_1=""
38124 fi
38125
6f628073
VS
38126 COND_MONOLITHIC_0="#"
38127 if test "x$MONOLITHIC" = "x0" ; then
38128 COND_MONOLITHIC_0=""
6b9d41a5
VS
38129 fi
38130
6f628073
VS
38131 COND_MONOLITHIC_0_SHARED_0="#"
38132 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
38133 COND_MONOLITHIC_0_SHARED_0=""
38134 fi
38135
38136 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
38137 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
38138 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
fe0895cf 38139 fi
e6cc62c6 38140
8772a1a7
VS
38141 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
38142 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
38143 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
38144 fi
38145
250700e4
RD
38146 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#"
38147 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then
38148 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1=""
38149 fi
38150
eb69fda5
VS
38151 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
38152 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
38153 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
38154 fi
38155
8ee2dd05
VS
38156 COND_MONOLITHIC_0_SHARED_1="#"
38157 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
38158 COND_MONOLITHIC_0_SHARED_1=""
fe0895cf 38159 fi
e6cc62c6 38160
6f628073
VS
38161 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
38162 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
38163 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
38164 fi
38165
8772a1a7
VS
38166 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
38167 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
38168 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
38169 fi
38170
250700e4
RD
38171 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#"
38172 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then
38173 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1=""
38174 fi
38175
eb69fda5
VS
38176 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
38177 if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
38178 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
38179 fi
38180
f95e4495
VS
38181 COND_MONOLITHIC_0_USE_ODBC_1="#"
38182 if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
38183 COND_MONOLITHIC_0_USE_ODBC_1=""
38184 fi
38185
3af038c0
VS
38186 COND_MONOLITHIC_1="#"
38187 if test "x$MONOLITHIC" = "x1" ; then
38188 COND_MONOLITHIC_1=""
38189 fi
38190
6f628073
VS
38191 COND_MONOLITHIC_1_SHARED_0="#"
38192 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
38193 COND_MONOLITHIC_1_SHARED_0=""
38194 fi
38195
38196 COND_MONOLITHIC_1_SHARED_1="#"
38197 if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
38198 COND_MONOLITHIC_1_SHARED_1=""
38199 fi
38200
3af038c0
VS
38201 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
38202 if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
38203 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
38204 fi
38205
38206 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
38207 if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
38208 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
38209 fi
38210
6f628073
VS
38211 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
38212 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
38213 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
38214 fi
38215
3af038c0
VS
38216 COND_PLATFORM_MACOSX_1="#"
38217 if test "x$PLATFORM_MACOSX" = "x1" ; then
38218 COND_PLATFORM_MACOSX_1=""
38219 fi
38220
250700e4
RD
38221 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
38222 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
38223 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
38224 fi
38225
38226 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
38227 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
38228 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
38229 fi
38230
38231 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
38232 if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
38233 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
38234 fi
38235
3527f29c
VS
38236 COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
38237 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
38238 COND_PLATFORM_MACOSX_1_USE_GUI_1=""
38239 fi
38240
8ee2dd05
VS
38241 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
38242 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
38243 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
38244 fi
38245
45842500
VS
38246 COND_PLATFORM_MAC_1="#"
38247 if test "x$PLATFORM_MAC" = "x1" ; then
38248 COND_PLATFORM_MAC_1=""
38249 fi
38250
3d8c1de0
VS
38251 COND_PLATFORM_OS2_1="#"
38252 if test "x$PLATFORM_OS2" = "x1" ; then
38253 COND_PLATFORM_OS2_1=""
38254 fi
38255
8772a1a7
VS
38256 COND_PLATFORM_UNIX_0="#"
38257 if test "x$PLATFORM_UNIX" = "x0" ; then
38258 COND_PLATFORM_UNIX_0=""
38259 fi
38260
3af038c0
VS
38261 COND_PLATFORM_UNIX_1="#"
38262 if test "x$PLATFORM_UNIX" = "x1" ; then
38263 COND_PLATFORM_UNIX_1=""
38264 fi
38265
3527f29c
VS
38266 COND_PLATFORM_UNIX_1_USE_GUI_1="#"
38267 if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
38268 COND_PLATFORM_UNIX_1_USE_GUI_1=""
38269 fi
38270
3af038c0
VS
38271 COND_PLATFORM_WIN32_0="#"
38272 if test "x$PLATFORM_WIN32" = "x0" ; then
38273 COND_PLATFORM_WIN32_0=""
38274 fi
38275
38276 COND_PLATFORM_WIN32_1="#"
38277 if test "x$PLATFORM_WIN32" = "x1" ; then
38278 COND_PLATFORM_WIN32_1=""
38279 fi
38280
45842500
VS
38281 COND_SHARED_0="#"
38282 if test "x$SHARED" = "x0" ; then
38283 COND_SHARED_0=""
38284 fi
38285
250700e4
RD
38286 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
38287 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
38288 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
38289 fi
38290
52a5a009
VS
38291 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
38292 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38293 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
38294 fi
38295
38296 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
38297 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38298 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
38299 fi
38300
38301 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
38302 if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38303 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
38304 fi
38305
38306 COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
38307 if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
38308 COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
38309 fi
38310
38311 COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
38312 if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
38313 COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
38314 fi
38315
38316 COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
38317 if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
38318 COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
38319 fi
38320
38321 COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
38322 if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
38323 COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
38324 fi
38325
45842500
VS
38326 COND_SHARED_1="#"
38327 if test "x$SHARED" = "x1" ; then
38328 COND_SHARED_1=""
38329 fi
38330
250700e4
RD
38331 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
38332 if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
38333 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
38334 fi
38335
6f628073
VS
38336 COND_TOOLKIT_COCOA="#"
38337 if test "x$TOOLKIT" = "xCOCOA" ; then
38338 COND_TOOLKIT_COCOA=""
8ee2dd05
VS
38339 fi
38340
6f628073
VS
38341 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
38342 if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38343 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
38344 fi
38345
6f628073
VS
38346 COND_TOOLKIT_GTK="#"
38347 if test "x$TOOLKIT" = "xGTK" ; then
38348 COND_TOOLKIT_GTK=""
f95cd8fa
VS
38349 fi
38350
6f628073
VS
38351 COND_TOOLKIT_GTK_USE_GUI_1="#"
38352 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
38353 COND_TOOLKIT_GTK_USE_GUI_1=""
f95cd8fa
VS
38354 fi
38355
6f628073
VS
38356 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#"
38357 if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38358 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
38359 fi
38360
3af038c0
VS
38361 COND_TOOLKIT_MAC="#"
38362 if test "x$TOOLKIT" = "xMAC" ; then
38363 COND_TOOLKIT_MAC=""
38364 fi
38365
8772a1a7
VS
38366 COND_TOOLKIT_MAC_USE_GUI_1="#"
38367 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
38368 COND_TOOLKIT_MAC_USE_GUI_1=""
38369 fi
38370
6f628073
VS
38371 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
38372 if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38373 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
38374 fi
38375
6f628073
VS
38376 COND_TOOLKIT_MGL="#"
38377 if test "x$TOOLKIT" = "xMGL" ; then
38378 COND_TOOLKIT_MGL=""
8ee2dd05
VS
38379 fi
38380
6f628073
VS
38381 COND_TOOLKIT_MGL_USE_GUI_1="#"
38382 if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
38383 COND_TOOLKIT_MGL_USE_GUI_1=""
8ee2dd05
VS
38384 fi
38385
6f628073
VS
38386 COND_TOOLKIT_MOTIF="#"
38387 if test "x$TOOLKIT" = "xMOTIF" ; then
38388 COND_TOOLKIT_MOTIF=""
f95cd8fa
VS
38389 fi
38390
6f628073
VS
38391 COND_TOOLKIT_MOTIF_USE_GUI_1="#"
38392 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
38393 COND_TOOLKIT_MOTIF_USE_GUI_1=""
fe0895cf 38394 fi
e6cc62c6 38395
6f628073
VS
38396 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
38397 if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38398 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
8ee2dd05
VS
38399 fi
38400
6f628073
VS
38401 COND_TOOLKIT_MSW="#"
38402 if test "x$TOOLKIT" = "xMSW" ; then
38403 COND_TOOLKIT_MSW=""
8ee2dd05
VS
38404 fi
38405
6f628073
VS
38406 COND_TOOLKIT_MSW_USE_GUI_1="#"
38407 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
38408 COND_TOOLKIT_MSW_USE_GUI_1=""
fe0895cf 38409 fi
e6cc62c6 38410
6f628073
VS
38411 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
38412 if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38413 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
fe0895cf 38414 fi
e6cc62c6 38415
96c1699d
VS
38416 COND_TOOLKIT_PM="#"
38417 if test "x$TOOLKIT" = "xPM" ; then
38418 COND_TOOLKIT_PM=""
38419 fi
38420
38421 COND_TOOLKIT_PM_USE_GUI_1="#"
38422 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
38423 COND_TOOLKIT_PM_USE_GUI_1=""
38424 fi
38425
38426 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
38427 if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38428 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
38429 fi
38430
6f628073
VS
38431 COND_TOOLKIT_X11="#"
38432 if test "x$TOOLKIT" = "xX11" ; then
38433 COND_TOOLKIT_X11=""
9747f85d
VS
38434 fi
38435
6f628073
VS
38436 COND_TOOLKIT_X11_USE_GUI_1="#"
38437 if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
38438 COND_TOOLKIT_X11_USE_GUI_1=""
f95cd8fa
VS
38439 fi
38440
3af038c0
VS
38441 COND_UNICODE_1="#"
38442 if test "x$UNICODE" = "x1" ; then
38443 COND_UNICODE_1=""
38444 fi
38445
7015ef3a
VZ
38446 COND_USE_EXCEPTIONS_0="#"
38447 if test "x$USE_EXCEPTIONS" = "x0" ; then
38448 COND_USE_EXCEPTIONS_0=""
38449 fi
38450
38451 COND_USE_EXCEPTIONS_1="#"
38452 if test "x$USE_EXCEPTIONS" = "x1" ; then
38453 COND_USE_EXCEPTIONS_1=""
38454 fi
38455
3af038c0
VS
38456 COND_USE_GUI_0="#"
38457 if test "x$USE_GUI" = "x0" ; then
38458 COND_USE_GUI_0=""
38459 fi
38460
38461 COND_USE_GUI_1="#"
38462 if test "x$USE_GUI" = "x1" ; then
38463 COND_USE_GUI_1=""
38464 fi
38465
e6cc62c6 38466 COND_USE_GUI_1_WXUNIV_0="#"
c7dfb5bb
VS
38467 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
38468 COND_USE_GUI_1_WXUNIV_0=""
fe0895cf 38469 fi
e6cc62c6
VS
38470
38471 COND_USE_GUI_1_WXUNIV_1="#"
c7dfb5bb
VS
38472 if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
38473 COND_USE_GUI_1_WXUNIV_1=""
e6cc62c6
VS
38474 fi
38475
66a96744
VS
38476 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
38477 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38478 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
38479 fi
38480
38481 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
38482 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38483 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
38484 fi
38485
38486 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
38487 if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38488 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
38489 fi
38490
57e7d4ac
VS
38491 COND_USE_ODBC_1="#"
38492 if test "x$USE_ODBC" = "x1" ; then
38493 COND_USE_ODBC_1=""
38494 fi
38495
6f628073
VS
38496 COND_USE_SOSYMLINKS_1="#"
38497 if test "x$USE_SOSYMLINKS" = "x1" ; then
38498 COND_USE_SOSYMLINKS_1=""
b625909c
VS
38499 fi
38500
6f628073
VS
38501 COND_USE_SOVERLINUX_1="#"
38502 if test "x$USE_SOVERLINUX" = "x1" ; then
38503 COND_USE_SOVERLINUX_1=""
b625909c
VS
38504 fi
38505
6f628073
VS
38506 COND_USE_SOVERSION_0="#"
38507 if test "x$USE_SOVERSION" = "x0" ; then
38508 COND_USE_SOVERSION_0=""
fddeb06b 38509 fi
fe0895cf 38510
6f628073
VS
38511 COND_USE_SOVERSOLARIS_1="#"
38512 if test "x$USE_SOVERSOLARIS" = "x1" ; then
38513 COND_USE_SOVERSOLARIS_1=""
fddeb06b 38514 fi
fe0895cf 38515
3af038c0
VS
38516 COND_WXUNIV_1="#"
38517 if test "x$WXUNIV" = "x1" ; then
38518 COND_WXUNIV_1=""
38519 fi
38520
66a96744
VS
38521 COND_WXUSE_EXPAT_BUILTIN="#"
38522 if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
38523 COND_WXUSE_EXPAT_BUILTIN=""
38524 fi
38525
02980527
VS
38526 COND_WXUSE_LIBJPEG_BUILTIN="#"
38527 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
38528 COND_WXUSE_LIBJPEG_BUILTIN=""
38529 fi
38530
38531 COND_WXUSE_LIBPNG_BUILTIN="#"
38532 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
38533 COND_WXUSE_LIBPNG_BUILTIN=""
38534 fi
38535
38536 COND_WXUSE_LIBTIFF_BUILTIN="#"
38537 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
38538 COND_WXUSE_LIBTIFF_BUILTIN=""
38539 fi
38540
38541 COND_WXUSE_ODBC_BUILTIN="#"
38542 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
38543 COND_WXUSE_ODBC_BUILTIN=""
38544 fi
38545
38546 COND_WXUSE_REGEX_BUILTIN="#"
38547 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
38548 COND_WXUSE_REGEX_BUILTIN=""
38549 fi
38550
38551 COND_WXUSE_ZLIB_BUILTIN="#"
38552 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
38553 COND_WXUSE_ZLIB_BUILTIN=""
38554 fi
38555
1772d20c 38556
fe0895cf 38557
fe0895cf 38558
fe0895cf 38559
45842500 38560if test $GCC_PCH = 1 ; then
130711ba 38561 CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
45842500
VS
38562 CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS"
38563else
38564 case "${host}" in
38565 powerpc-*-darwin* )
130711ba
VS
38566 CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS"
38567 CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS"
45842500 38568 ;;
45842500
VS
38569 esac
38570fi
fe0895cf
VS
38571
38572
fddeb06b 38573SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
fe0895cf
VS
38574
38575
38576
38577
38578
38579
38580
38581
38582
38583
38584
38585
38586
38587
38588
38589
38590
38591
38592
38593
38594
38595
38596
38597
38598
38599
38600
38601
38602
38603
38604
38605
38606
38607
38608
38609
38610
38611
38612
38613
38614
38615
38616
38617
38618
38619
38620
38621
38622
38623
38624
38625
38626
38627
38628
38629
38630
38631
38632
38633
38634
38635
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
fe0895cf 38668
f0290fca
VS
38669
38670
e6cc62c6
VS
38671
38672
38673echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
38674echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
f95e4495 38675set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
e6cc62c6
VS
38676if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
38677 echo $ECHO_N "(cached) $ECHO_C" >&6
38678else
38679 cat >conftest.make <<\_ACEOF
38680all:
38681 @echo 'ac_maketemp="$(MAKE)"'
38682_ACEOF
38683# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
38684eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
38685if test -n "$ac_maketemp"; then
38686 eval ac_cv_prog_make_${ac_make}_set=yes
38687else
38688 eval ac_cv_prog_make_${ac_make}_set=no
38689fi
38690rm -f conftest.make
38691fi
38692if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
38693 echo "$as_me:$LINENO: result: yes" >&5
38694echo "${ECHO_T}yes" >&6
38695 SET_MAKE=
38696else
38697 echo "$as_me:$LINENO: result: no" >&5
38698echo "${ECHO_T}no" >&6
38699 SET_MAKE="MAKE=${MAKE-make}"
38700fi
38701
38702
38703if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
38704 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
38705fi
38706
38707 ac_config_headers="$ac_config_headers setup.h"
38708
38709
81345eef 38710 ac_config_files="$ac_config_files wx-config version-script Makefile"
e6cc62c6
VS
38711
38712
38713 ac_config_commands="$ac_config_commands default"
38714
38715
9de9b8f0 38716
6c3e36af
VZ
38717if test "$wxUSE_GUI" = "yes"; then
38718 SUBDIRS="samples demos utils contrib"
38719else SUBDIRS="samples utils"
38720fi
e6cc62c6 38721
166263e6 38722for subdir in `echo $SUBDIRS`; do
9747f85d 38723 if test -d ${srcdir}/${subdir} ; then
6c3e36af 38724 if test "$wxUSE_GUI" = "yes"; then
166263e6 38725 if test ${subdir} = "samples"; then
8772a1a7
VS
38726 makefiles="samples/Makefile.in $makefiles"
38727 for sample in `echo $SAMPLES_SUBDIRS`; do
166263e6
VZ
38728 if test -d $srcdir/samples/$sample; then
38729 makefiles="samples/$sample/Makefile.in $makefiles"
38730 fi
38731 done
38732 else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
38733 fi
6c3e36af 38734 else if test ${subdir} = "samples"; then
8772a1a7 38735 makefiles="samples/Makefile.in samples/console/Makefile.in"
6c3e36af 38736 else makefiles="utils/HelpGen/Makefile.in \
2bf8cafb
VS
38737 utils/HelpGen/src/Makefile.in \
38738 utils/tex2rtf/Makefile.in \
38739 utils/tex2rtf/src/Makefile.in"
6c3e36af
VZ
38740 fi
38741 fi
38742
9747f85d
VS
38743 for mkin in $makefiles ; do
38744 mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
38745 ac_config_files="$ac_config_files $mk"
e6cc62c6 38746
9747f85d
VS
38747 done
38748 fi
38749done
e6cc62c6 38750
9de9b8f0 38751
e6cc62c6
VS
38752cat >confcache <<\_ACEOF
38753# This file is a shell script that caches the results of configure
38754# tests run on this system so they can be shared between configure
38755# scripts and configure runs, see configure's option --config-cache.
38756# It is not useful on other systems. If it contains results you don't
38757# want to keep, you may remove or edit it.
38758#
38759# config.status only pays attention to the cache file if you give it
38760# the --recheck option to rerun configure.
38761#
38762# `ac_cv_env_foo' variables (set or unset) will be overridden when
38763# loading this file, other *unset* `ac_cv_foo' will be assigned the
38764# following values.
38765
38766_ACEOF
38767
38768# The following way of writing the cache mishandles newlines in values,
38769# but we know of no workaround that is simple, portable, and efficient.
38770# So, don't put newlines in cache variables' values.
38771# Ultrix sh set writes to stderr and can't be redirected directly,
38772# and sets the high bit in the cache file unless we assign to the vars.
38773{
38774 (set) 2>&1 |
38775 case `(ac_space=' '; set | grep ac_space) 2>&1` in
38776 *ac_space=\ *)
38777 # `set' does not quote correctly, so add quotes (double-quote
38778 # substitution turns \\\\ into \\, and sed turns \\ into \).
38779 sed -n \
f95e4495
VS
38780 "s/'/'\\\\''/g;
38781 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e6cc62c6
VS
38782 ;;
38783 *)
38784 # `set' quotes correctly as required by POSIX, so do not add quotes.
38785 sed -n \
f95e4495 38786 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
e6cc62c6
VS
38787 ;;
38788 esac;
38789} |
38790 sed '
38791 t clear
38792 : clear
38793 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
38794 t end
38795 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
38796 : end' >>confcache
38797if diff $cache_file confcache >/dev/null 2>&1; then :; else
38798 if test -w $cache_file; then
38799 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
38800 cat confcache >$cache_file
38801 else
38802 echo "not updating unwritable cache $cache_file"
38803 fi
38804fi
38805rm -f confcache
38806
38807test "x$prefix" = xNONE && prefix=$ac_default_prefix
38808# Let make expand exec_prefix.
38809test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38810
38811# VPATH may cause trouble with some makes, so we remove $(srcdir),
38812# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
38813# trailing colons and then remove the whole line if VPATH becomes empty
38814# (actually we leave an empty line to preserve line numbers).
38815if test "x$srcdir" = x.; then
f95e4495 38816 ac_vpsub='/^[ ]*VPATH[ ]*=/{
e6cc62c6
VS
38817s/:*\$(srcdir):*/:/;
38818s/:*\${srcdir}:*/:/;
38819s/:*@srcdir@:*/:/;
f95e4495 38820s/^\([^=]*=[ ]*\):*/\1/;
e6cc62c6 38821s/:*$//;
f95e4495 38822s/^[^=]*=[ ]*$//;
e6cc62c6
VS
38823}'
38824fi
38825
38826DEFS=-DHAVE_CONFIG_H
38827
38828ac_libobjs=
38829ac_ltlibobjs=
38830for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38831 # 1. Remove the extension, and $U if already installed.
38832 ac_i=`echo "$ac_i" |
f95e4495 38833 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
e6cc62c6
VS
38834 # 2. Add them.
38835 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
38836 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
38837done
38838LIBOBJS=$ac_libobjs
38839
38840LTLIBOBJS=$ac_ltlibobjs
38841
38842
38843
38844: ${CONFIG_STATUS=./config.status}
38845ac_clean_files_save=$ac_clean_files
38846ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38847{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38848echo "$as_me: creating $CONFIG_STATUS" >&6;}
38849cat >$CONFIG_STATUS <<_ACEOF
38850#! $SHELL
38851# Generated by $as_me.
38852# Run this file to recreate the current configuration.
38853# Compiler output produced by configure, useful for debugging
38854# configure, is in config.log if it exists.
38855
38856debug=false
38857ac_cs_recheck=false
38858ac_cs_silent=false
38859SHELL=\${CONFIG_SHELL-$SHELL}
38860_ACEOF
38861
38862cat >>$CONFIG_STATUS <<\_ACEOF
38863## --------------------- ##
38864## M4sh Initialization. ##
38865## --------------------- ##
38866
38867# Be Bourne compatible
38868if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38869 emulate sh
38870 NULLCMD=:
38871 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38872 # is contrary to our usage. Disable this feature.
38873 alias -g '${1+"$@"}'='"$@"'
38874elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
38875 set -o posix
38876fi
f95e4495 38877DUALCASE=1; export DUALCASE # for MKS sh
e6cc62c6
VS
38878
38879# Support unset when possible.
f95e4495 38880if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
e6cc62c6
VS
38881 as_unset=unset
38882else
38883 as_unset=false
38884fi
38885
38886
38887# Work around bugs in pre-3.0 UWIN ksh.
38888$as_unset ENV MAIL MAILPATH
38889PS1='$ '
38890PS2='> '
38891PS4='+ '
38892
38893# NLS nuisances.
38894for as_var in \
38895 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
38896 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
38897 LC_TELEPHONE LC_TIME
38898do
f95e4495 38899 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
e6cc62c6
VS
38900 eval $as_var=C; export $as_var
38901 else
38902 $as_unset $as_var
38903 fi
38904done
38905
38906# Required to use basename.
38907if expr a : '\(a\)' >/dev/null 2>&1; then
38908 as_expr=expr
38909else
38910 as_expr=false
38911fi
38912
38913if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
38914 as_basename=basename
38915else
38916 as_basename=false
38917fi
38918
38919
38920# Name of the executable.
38921as_me=`$as_basename "$0" ||
38922$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38923 X"$0" : 'X\(//\)$' \| \
38924 X"$0" : 'X\(/\)$' \| \
38925 . : '\(.\)' 2>/dev/null ||
38926echo X/"$0" |
38927 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
38928 /^X\/\(\/\/\)$/{ s//\1/; q; }
38929 /^X\/\(\/\).*/{ s//\1/; q; }
38930 s/.*/./; q'`
38931
38932
38933# PATH needs CR, and LINENO needs CR and PATH.
38934# Avoid depending upon Character Ranges.
38935as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38936as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38937as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38938as_cr_digits='0123456789'
38939as_cr_alnum=$as_cr_Letters$as_cr_digits
38940
38941# The user is always right.
38942if test "${PATH_SEPARATOR+set}" != set; then
38943 echo "#! /bin/sh" >conf$$.sh
38944 echo "exit 0" >>conf$$.sh
38945 chmod +x conf$$.sh
38946 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38947 PATH_SEPARATOR=';'
38948 else
38949 PATH_SEPARATOR=:
38950 fi
38951 rm -f conf$$.sh
38952fi
38953
38954
38955 as_lineno_1=$LINENO
38956 as_lineno_2=$LINENO
38957 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
38958 test "x$as_lineno_1" != "x$as_lineno_2" &&
38959 test "x$as_lineno_3" = "x$as_lineno_2" || {
38960 # Find who we are. Look in the path if we contain no path at all
38961 # relative or not.
38962 case $0 in
38963 *[\\/]* ) as_myself=$0 ;;
38964 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38965for as_dir in $PATH
38966do
38967 IFS=$as_save_IFS
38968 test -z "$as_dir" && as_dir=.
38969 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38970done
38971
38972 ;;
38973 esac
38974 # We did not find ourselves, most probably we were run as `sh COMMAND'
38975 # in which case we are not to be found in the path.
38976 if test "x$as_myself" = x; then
38977 as_myself=$0
38978 fi
38979 if test ! -f "$as_myself"; then
38980 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
38981echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
38982 { (exit 1); exit 1; }; }
38983 fi
38984 case $CONFIG_SHELL in
38985 '')
38986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38987for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
38988do
38989 IFS=$as_save_IFS
38990 test -z "$as_dir" && as_dir=.
38991 for as_base in sh bash ksh sh5; do
38992 case $as_dir in
38993 /*)
38994 if ("$as_dir/$as_base" -c '
38995 as_lineno_1=$LINENO
38996 as_lineno_2=$LINENO
38997 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
38998 test "x$as_lineno_1" != "x$as_lineno_2" &&
38999 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
39000 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
39001 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
39002 CONFIG_SHELL=$as_dir/$as_base
39003 export CONFIG_SHELL
39004 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
39005 fi;;
39006 esac
39007 done
39008done
39009;;
39010 esac
39011
39012 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39013 # uniformly replaced by the line number. The first 'sed' inserts a
39014 # line-number line before each line; the second 'sed' does the real
39015 # work. The second script uses 'N' to pair each line-number line
39016 # with the numbered line, and appends trailing '-' during
39017 # substitution so that $LINENO is not a special case at line end.
39018 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39019 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
39020 sed '=' <$as_myself |
39021 sed '
39022 N
39023 s,$,-,
39024 : loop
39025 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
39026 t loop
39027 s,-$,,
39028 s,^['$as_cr_digits']*\n,,
39029 ' >$as_me.lineno &&
39030 chmod +x $as_me.lineno ||
39031 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
39032echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
39033 { (exit 1); exit 1; }; }
39034
39035 # Don't try to exec as it changes $[0], causing all sort of problems
39036 # (the dirname of $[0] is not the place where we might find the
39037 # original and so on. Autoconf is especially sensible to this).
39038 . ./$as_me.lineno
39039 # Exit status is that of the last command.
39040 exit
39041}
39042
39043
39044case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
39045 *c*,-n*) ECHO_N= ECHO_C='
39046' ECHO_T=' ' ;;
39047 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
39048 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
39049esac
39050
39051if expr a : '\(a\)' >/dev/null 2>&1; then
39052 as_expr=expr
39053else
39054 as_expr=false
39055fi
39056
39057rm -f conf$$ conf$$.exe conf$$.file
39058echo >conf$$.file
39059if ln -s conf$$.file conf$$ 2>/dev/null; then
39060 # We could just check for DJGPP; but this test a) works b) is more generic
39061 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
39062 if test -f conf$$.exe; then
39063 # Don't use ln at all; we don't have any links
39064 as_ln_s='cp -p'
39065 else
39066 as_ln_s='ln -s'
39067 fi
39068elif ln conf$$.file conf$$ 2>/dev/null; then
39069 as_ln_s=ln
39070else
39071 as_ln_s='cp -p'
39072fi
39073rm -f conf$$ conf$$.exe conf$$.file
39074
39075if mkdir -p . 2>/dev/null; then
39076 as_mkdir_p=:
39077else
f95e4495 39078 test -d ./-p && rmdir ./-p
e6cc62c6
VS
39079 as_mkdir_p=false
39080fi
39081
39082as_executable_p="test -f"
39083
39084# Sed expression to map a string onto a valid CPP name.
f95e4495 39085as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
e6cc62c6
VS
39086
39087# Sed expression to map a string onto a valid variable name.
f95e4495 39088as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e6cc62c6
VS
39089
39090
39091# IFS
39092# We need space, tab and new line, in precisely that order.
39093as_nl='
39094'
39095IFS=" $as_nl"
39096
39097# CDPATH.
39098$as_unset CDPATH
39099
39100exec 6>&1
39101
39102# Open the log real soon, to keep \$[0] and so on meaningful, and to
39103# report actual input values of CONFIG_FILES etc. instead of their
39104# values after options handling. Logging --version etc. is OK.
39105exec 5>>config.log
39106{
39107 echo
39108 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39109## Running $as_me. ##
39110_ASBOX
39111} >&5
39112cat >&5 <<_CSEOF
39113
e46d2a18 39114This file was extended by wxWindows $as_me 2.5.1, which was
f95e4495 39115generated by GNU Autoconf 2.59. Invocation command line was
e6cc62c6
VS
39116
39117 CONFIG_FILES = $CONFIG_FILES
39118 CONFIG_HEADERS = $CONFIG_HEADERS
39119 CONFIG_LINKS = $CONFIG_LINKS
39120 CONFIG_COMMANDS = $CONFIG_COMMANDS
39121 $ $0 $@
39122
39123_CSEOF
39124echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
39125echo >&5
39126_ACEOF
39127
39128# Files that config.status was made for.
39129if test -n "$ac_config_files"; then
39130 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
39131fi
39132
39133if test -n "$ac_config_headers"; then
39134 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
39135fi
39136
39137if test -n "$ac_config_links"; then
39138 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
39139fi
39140
39141if test -n "$ac_config_commands"; then
39142 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
39143fi
39144
39145cat >>$CONFIG_STATUS <<\_ACEOF
39146
39147ac_cs_usage="\
39148\`$as_me' instantiates files from templates according to the
39149current configuration.
39150
39151Usage: $0 [OPTIONS] [FILE]...
39152
39153 -h, --help print this help, then exit
39154 -V, --version print version number, then exit
39155 -q, --quiet do not print progress messages
39156 -d, --debug don't remove temporary files
39157 --recheck update $as_me by reconfiguring in the same conditions
39158 --file=FILE[:TEMPLATE]
f95e4495 39159 instantiate the configuration file FILE
e6cc62c6 39160 --header=FILE[:TEMPLATE]
f95e4495 39161 instantiate the configuration header FILE
e6cc62c6
VS
39162
39163Configuration files:
39164$config_files
39165
39166Configuration headers:
39167$config_headers
39168
39169Configuration commands:
39170$config_commands
39171
39172Report bugs to <bug-autoconf@gnu.org>."
39173_ACEOF
39174
39175cat >>$CONFIG_STATUS <<_ACEOF
39176ac_cs_version="\\
e46d2a18 39177wxWindows config.status 2.5.1
f95e4495 39178configured by $0, generated by GNU Autoconf 2.59,
e6cc62c6
VS
39179 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
39180
f95e4495 39181Copyright (C) 2003 Free Software Foundation, Inc.
e6cc62c6
VS
39182This config.status script is free software; the Free Software Foundation
39183gives unlimited permission to copy, distribute and modify it."
39184srcdir=$srcdir
39185INSTALL="$INSTALL"
39186_ACEOF
39187
39188cat >>$CONFIG_STATUS <<\_ACEOF
39189# If no file are specified by the user, then we need to provide default
39190# value. By we need to know if files were specified by the user.
39191ac_need_defaults=:
39192while test $# != 0
39193do
39194 case $1 in
39195 --*=*)
39196 ac_option=`expr "x$1" : 'x\([^=]*\)='`
39197 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
39198 ac_shift=:
39199 ;;
39200 -*)
39201 ac_option=$1
39202 ac_optarg=$2
39203 ac_shift=shift
39204 ;;
39205 *) # This is not an option, so the user has probably given explicit
39206 # arguments.
39207 ac_option=$1
39208 ac_need_defaults=false;;
39209 esac
39210
39211 case $ac_option in
39212 # Handling of the options.
39213_ACEOF
39214cat >>$CONFIG_STATUS <<\_ACEOF
39215 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39216 ac_cs_recheck=: ;;
39217 --version | --vers* | -V )
39218 echo "$ac_cs_version"; exit 0 ;;
39219 --he | --h)
39220 # Conflict between --help and --header
39221 { { echo "$as_me:$LINENO: error: ambiguous option: $1
39222Try \`$0 --help' for more information." >&5
39223echo "$as_me: error: ambiguous option: $1
39224Try \`$0 --help' for more information." >&2;}
39225 { (exit 1); exit 1; }; };;
39226 --help | --hel | -h )
39227 echo "$ac_cs_usage"; exit 0 ;;
39228 --debug | --d* | -d )
39229 debug=: ;;
39230 --file | --fil | --fi | --f )
39231 $ac_shift
39232 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39233 ac_need_defaults=false;;
39234 --header | --heade | --head | --hea )
39235 $ac_shift
39236 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39237 ac_need_defaults=false;;
39238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39239 | -silent | --silent | --silen | --sile | --sil | --si | --s)
39240 ac_cs_silent=: ;;
39241
39242 # This is an error.
39243 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
39244Try \`$0 --help' for more information." >&5
39245echo "$as_me: error: unrecognized option: $1
39246Try \`$0 --help' for more information." >&2;}
39247 { (exit 1); exit 1; }; } ;;
39248
39249 *) ac_config_targets="$ac_config_targets $1" ;;
39250
39251 esac
39252 shift
39253done
39254
39255ac_configure_extra_args=
39256
39257if $ac_cs_silent; then
39258 exec 6>/dev/null
39259 ac_configure_extra_args="$ac_configure_extra_args --silent"
fe0895cf
VS
39260fi
39261
e6cc62c6
VS
39262_ACEOF
39263cat >>$CONFIG_STATUS <<_ACEOF
39264if \$ac_cs_recheck; then
39265 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39266 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
fe0895cf
VS
39267fi
39268
e6cc62c6 39269_ACEOF
fe0895cf 39270
e6cc62c6 39271cat >>$CONFIG_STATUS <<_ACEOF
10f2d63a 39272#
e6cc62c6 39273# INIT-COMMANDS section.
10f2d63a 39274#
10f2d63a 39275
a0b9e27f 39276
e6cc62c6
VS
39277 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
39278 LN_S="${LN_S}"
10f2d63a 39279
10f2d63a 39280
10f2d63a 39281
e6cc62c6 39282_ACEOF
8284b0c5 39283
52127426 39284
247f5006 39285
e6cc62c6
VS
39286cat >>$CONFIG_STATUS <<\_ACEOF
39287for ac_config_target in $ac_config_targets
247f5006 39288do
e6cc62c6
VS
39289 case "$ac_config_target" in
39290 # Handling of arguments.
81345eef
VZ
39291 "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;;
39292 "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;;
39293 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9747f85d 39294 "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;;
e6cc62c6
VS
39295 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39296 "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;;
39297 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39298echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39299 { (exit 1); exit 1; }; };;
247f5006
VZ
39300 esac
39301done
39302
e6cc62c6
VS
39303# If the user did not use the arguments to specify the items to instantiate,
39304# then the envvar interface is used. Set only those that are not.
39305# We use the long form for the default assignment because of an extremely
39306# bizarre bug on SunOS 4.1.3.
39307if $ac_need_defaults; then
39308 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39309 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39310 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39311fi
39312
39313# Have a temporary directory for convenience. Make it in the build tree
39314# simply because there is no reason to put it here, and in addition,
39315# creating and moving files from /tmp can sometimes cause problems.
39316# Create a temporary directory, and hook for its removal unless debugging.
39317$debug ||
39318{
39319 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
39320 trap '{ (exit 1); exit 1; }' 1 2 13 15
39321}
247f5006 39322
e6cc62c6 39323# Create a (secure) tmp directory for tmp files.
247f5006 39324
e6cc62c6
VS
39325{
39326 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
39327 test -n "$tmp" && test -d "$tmp"
39328} ||
39329{
39330 tmp=./confstat$$-$RANDOM
39331 (umask 077 && mkdir $tmp)
39332} ||
39333{
39334 echo "$me: cannot create a temporary directory in ." >&2
39335 { (exit 1); exit 1; }
39336}
39337
39338_ACEOF
39339
39340cat >>$CONFIG_STATUS <<_ACEOF
39341
39342#
39343# CONFIG_FILES section.
39344#
247f5006 39345
e6cc62c6
VS
39346# No need to generate the scripts if there are no CONFIG_FILES.
39347# This happens for instance when ./config.status config.h
39348if test -n "\$CONFIG_FILES"; then
39349 # Protect against being on the right side of a sed subst in config.status.
39350 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
39351 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
39352s,@SHELL@,$SHELL,;t t
39353s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
39354s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
39355s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
39356s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
39357s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
39358s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
39359s,@exec_prefix@,$exec_prefix,;t t
39360s,@prefix@,$prefix,;t t
39361s,@program_transform_name@,$program_transform_name,;t t
39362s,@bindir@,$bindir,;t t
39363s,@sbindir@,$sbindir,;t t
39364s,@libexecdir@,$libexecdir,;t t
39365s,@datadir@,$datadir,;t t
39366s,@sysconfdir@,$sysconfdir,;t t
39367s,@sharedstatedir@,$sharedstatedir,;t t
39368s,@localstatedir@,$localstatedir,;t t
39369s,@libdir@,$libdir,;t t
39370s,@includedir@,$includedir,;t t
39371s,@oldincludedir@,$oldincludedir,;t t
39372s,@infodir@,$infodir,;t t
39373s,@mandir@,$mandir,;t t
39374s,@build_alias@,$build_alias,;t t
39375s,@host_alias@,$host_alias,;t t
39376s,@target_alias@,$target_alias,;t t
39377s,@DEFS@,$DEFS,;t t
39378s,@ECHO_C@,$ECHO_C,;t t
39379s,@ECHO_N@,$ECHO_N,;t t
39380s,@ECHO_T@,$ECHO_T,;t t
39381s,@LIBS@,$LIBS,;t t
39382s,@build@,$build,;t t
39383s,@build_cpu@,$build_cpu,;t t
39384s,@build_vendor@,$build_vendor,;t t
39385s,@build_os@,$build_os,;t t
39386s,@host@,$host,;t t
39387s,@host_cpu@,$host_cpu,;t t
39388s,@host_vendor@,$host_vendor,;t t
39389s,@host_os@,$host_os,;t t
39390s,@target@,$target,;t t
39391s,@target_cpu@,$target_cpu,;t t
39392s,@target_vendor@,$target_vendor,;t t
39393s,@target_os@,$target_os,;t t
39394s,@CC@,$CC,;t t
39395s,@CFLAGS@,$CFLAGS,;t t
39396s,@LDFLAGS@,$LDFLAGS,;t t
39397s,@CPPFLAGS@,$CPPFLAGS,;t t
39398s,@ac_ct_CC@,$ac_ct_CC,;t t
39399s,@EXEEXT@,$EXEEXT,;t t
39400s,@OBJEXT@,$OBJEXT,;t t
39401s,@CPP@,$CPP,;t t
39402s,@EGREP@,$EGREP,;t t
39403s,@CXX@,$CXX,;t t
39404s,@CXXFLAGS@,$CXXFLAGS,;t t
39405s,@ac_ct_CXX@,$ac_ct_CXX,;t t
39406s,@RANLIB@,$RANLIB,;t t
39407s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
39408s,@AR@,$AR,;t t
39409s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
39410s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
39411s,@INSTALL_DATA@,$INSTALL_DATA,;t t
39412s,@STRIP@,$STRIP,;t t
39413s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
e6cc62c6
VS
39414s,@LN_S@,$LN_S,;t t
39415s,@CXXCPP@,$CXXCPP,;t t
672abd7a 39416s,@subdirs@,$subdirs,;t t
e6cc62c6
VS
39417s,@PKG_CONFIG@,$PKG_CONFIG,;t t
39418s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
39419s,@GTK_LIBS@,$GTK_LIBS,;t t
39420s,@GTK_CONFIG@,$GTK_CONFIG,;t t
39421s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t
39422s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t
39423s,@X_CFLAGS@,$X_CFLAGS,;t t
39424s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
39425s,@X_LIBS@,$X_LIBS,;t t
39426s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
39427s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t
39428s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t
39429s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t
39430s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t
e6cc62c6
VS
39431s,@RESCOMP@,$RESCOMP,;t t
39432s,@DEREZ@,$DEREZ,;t t
39433s,@SETFILE@,$SETFILE,;t t
39434s,@LIBICONV@,$LIBICONV,;t t
edd891e2
VS
39435s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t
39436s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t
39437s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t
e6cc62c6
VS
39438s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t
39439s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t
672abd7a 39440s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t
e6cc62c6
VS
39441s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t
39442s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t
39443s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t
39444s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t
8ee2dd05
VS
39445s,@VENDOR@,$VENDOR,;t t
39446s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t
e6cc62c6
VS
39447s,@WXUNIV@,$WXUNIV,;t t
39448s,@MONOLITHIC@,$MONOLITHIC,;t t
39449s,@EXTRALIBS@,$EXTRALIBS,;t t
672abd7a 39450s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t
3527f29c 39451s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t
bb41dcbe 39452s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t
c74dc163 39453s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t
34b08d2c 39454s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t
e6cc62c6
VS
39455s,@UNICODE@,$UNICODE,;t t
39456s,@BUILD@,$BUILD,;t t
6c67131a
VS
39457s,@DEBUG_INFO@,$DEBUG_INFO,;t t
39458s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t
e6cc62c6
VS
39459s,@SHARED@,$SHARED,;t t
39460s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t
39461s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t
39462s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t
0f1bc9c2 39463s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t
ea66c762 39464s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t
e6cc62c6
VS
39465s,@SET_MAKE@,$SET_MAKE,;t t
39466s,@MAKE_SET@,$MAKE_SET,;t t
874d12cf
VS
39467s,@ac_ct_AR@,$ac_ct_AR,;t t
39468s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
39469s,@NM@,$NM,;t t
39470s,@ac_ct_NM@,$ac_ct_NM,;t t
e6cc62c6 39471s,@INSTALL_DIR@,$INSTALL_DIR,;t t
6b9d41a5 39472s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
e6cc62c6
VS
39473s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
39474s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
39475s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
39476s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
39477s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
96c1699d 39478s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
e6cc62c6 39479s,@SO_SUFFIX@,$SO_SUFFIX,;t t
131f235d 39480s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
4b1f6360 39481s,@LIBPREFIX@,$LIBPREFIX,;t t
e6cc62c6 39482s,@DLLPREFIX@,$DLLPREFIX,;t t
131f235d 39483s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
dc838d98 39484s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
e6cc62c6
VS
39485s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
39486s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
131f235d
VS
39487s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
39488s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
e6cc62c6
VS
39489s,@PIC_FLAG@,$PIC_FLAG,;t t
39490s,@USE_SOVERSION@,$USE_SOVERSION,;t t
39491s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
39492s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
39493s,@USE_MACVERSION@,$USE_MACVERSION,;t t
39494s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
39495s,@SONAME_FLAG@,$SONAME_FLAG,;t t
49b0a3aa 39496s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
45842500 39497s,@GCC_PCH@,$GCC_PCH,;t t
d78c94f2 39498s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t
6c67131a
VS
39499s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t
39500s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t
d78c94f2 39501s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t
6c67131a
VS
39502s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t
39503s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t
39504s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t
39505s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t
f95cd8fa 39506s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
8ee2dd05 39507s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
45842500 39508s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t
6f628073 39509s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t
6f628073
VS
39510s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t
39511s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t
8772a1a7 39512s,@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 39513s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t
eb69fda5 39514s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t
8ee2dd05 39515s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t
6f628073 39516s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t
8772a1a7 39517s,@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 39518s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t
eb69fda5 39519s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t
f95e4495 39520s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t
3af038c0 39521s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t
6f628073
VS
39522s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t
39523s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t
3af038c0
VS
39524s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t
39525s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t
6f628073 39526s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
3af038c0 39527s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
250700e4
RD
39528s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t
39529s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t
39530s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t
3527f29c 39531s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t
8ee2dd05 39532s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
45842500 39533s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
3d8c1de0 39534s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
8772a1a7 39535s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t
3af038c0 39536s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t
3527f29c 39537s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t
3af038c0
VS
39538s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t
39539s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t
45842500 39540s,@COND_SHARED_0@,$COND_SHARED_0,;t t
250700e4 39541s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t
52a5a009
VS
39542s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
39543s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
39544s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
39545s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t
39546s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t
39547s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t
39548s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t
45842500 39549s,@COND_SHARED_1@,$COND_SHARED_1,;t t
250700e4 39550s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t
6f628073
VS
39551s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t
39552s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t
39553s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t
39554s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t
8ee2dd05 39555s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t
3af038c0 39556s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t
8772a1a7 39557s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t
6f628073
VS
39558s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t
39559s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t
39560s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t
6f628073
VS
39561s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t
39562s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t
39563s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t
8ee2dd05 39564s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t
6f628073
VS
39565s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t
39566s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t
96c1699d
VS
39567s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t
39568s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t
39569s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t
6f628073
VS
39570s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t
39571s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t
3af038c0 39572s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t
7015ef3a
VZ
39573s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t
39574s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t
3af038c0
VS
39575s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t
39576s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t
9747f85d
VS
39577s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t
39578s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t
66a96744
VS
39579s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t
39580s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t
39581s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t
57e7d4ac 39582s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t
6f628073
VS
39583s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
39584s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
39585s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
39586s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
3af038c0 39587s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t
66a96744 39588s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t
3af038c0
VS
39589s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t
39590s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t
39591s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t
39592s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t
39593s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t
39594s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t
e6cc62c6
VS
39595s,@PATH_IFS@,$PATH_IFS,;t t
39596s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t
39597s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t
39598s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t
39599s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t
39600s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t
cf615ebb
VS
39601s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t
39602s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t
e6cc62c6
VS
39603s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t
39604s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t
39605s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t
39606s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t
39607s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t
39608s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t
39609s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t
39610s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t
39611s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t
39612s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t
39613s,@WX_ALL@,$WX_ALL,;t t
39614s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t
39615s,@SHARED_LD@,$SHARED_LD,;t t
e6cc62c6
VS
39616s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t
39617s,@STATIC_FLAG@,$STATIC_FLAG,;t t
39618s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t
39619s,@USE_GUI@,$USE_GUI,;t t
39620s,@AFMINSTALL@,$AFMINSTALL,;t t
39621s,@WIN32INSTALL@,$WIN32INSTALL,;t t
39622s,@TOOLKIT@,$TOOLKIT,;t t
39623s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t
39624s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t
39625s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t
39626s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t
39627s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t
39628s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t
39629s,@cross_compiling@,$cross_compiling,;t t
67c13b6c 39630s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t
e6cc62c6
VS
39631s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t
39632s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t
39633s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t
39634s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t
39635s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t
39636s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t
ffef10f6 39637s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t
e6cc62c6 39638s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t
f0290fca
VS
39639s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t
39640s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t
e6cc62c6
VS
39641s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t
39642s,@ALL_HEADERS@,$ALL_HEADERS,;t t
39643s,@ALL_SOURCES@,$ALL_SOURCES,;t t
39644s,@GUIDIST@,$GUIDIST,;t t
39645s,@PORT_FILES@,$PORT_FILES,;t t
39646s,@DISTDIR@,$DISTDIR,;t t
39647s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t
39648s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t
39649s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t
39650s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t
39651s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
39652s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t
39653s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t
39654s,@RESFLAGS@,$RESFLAGS,;t t
39655s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t
39656s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t
39657s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t
e6cc62c6
VS
39658s,@LIBWXMACRES@,$LIBWXMACRES,;t t
39659s,@MACRESCOMP@,$MACRESCOMP,;t t
39660s,@MACSETFILE@,$MACSETFILE,;t t
39661s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t
39662s,@GCC@,$GCC,;t t
39663s,@DLLTOOL@,$DLLTOOL,;t t
39664s,@AS@,$AS,;t t
e6cc62c6
VS
39665s,@LD@,$LD,;t t
39666s,@MAKEINFO@,$MAKEINFO,;t t
39667s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t
e6cc62c6
VS
39668s,@LIBOBJS@,$LIBOBJS,;t t
39669s,@LTLIBOBJS@,$LTLIBOBJS,;t t
247f5006
VZ
39670CEOF
39671
e6cc62c6
VS
39672_ACEOF
39673
39674 cat >>$CONFIG_STATUS <<\_ACEOF
39675 # Split the substitutions into bite-sized pieces for seds with
39676 # small command number limits, like on Digital OSF/1 and HP-UX.
39677 ac_max_sed_lines=48
39678 ac_sed_frag=1 # Number of current file.
39679 ac_beg=1 # First line for current file.
39680 ac_end=$ac_max_sed_lines # Line after last line for current file.
39681 ac_more_lines=:
39682 ac_sed_cmds=
39683 while $ac_more_lines; do
39684 if test $ac_beg -gt 1; then
39685 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
247f5006 39686 else
e6cc62c6
VS
39687 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
39688 fi
39689 if test ! -s $tmp/subs.frag; then
39690 ac_more_lines=false
39691 else
39692 # The purpose of the label and of the branching condition is to
39693 # speed up the sed processing (if there are no `@' at all, there
39694 # is no need to browse any of the substitutions).
39695 # These are the two extra sed commands mentioned above.
39696 (echo ':t
39697 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
39698 if test -z "$ac_sed_cmds"; then
f95e4495 39699 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6 39700 else
f95e4495 39701 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
e6cc62c6
VS
39702 fi
39703 ac_sed_frag=`expr $ac_sed_frag + 1`
39704 ac_beg=$ac_end
39705 ac_end=`expr $ac_end + $ac_max_sed_lines`
247f5006 39706 fi
e6cc62c6
VS
39707 done
39708 if test -z "$ac_sed_cmds"; then
39709 ac_sed_cmds=cat
10f2d63a 39710 fi
e6cc62c6 39711fi # test -n "$CONFIG_FILES"
10f2d63a 39712
e6cc62c6
VS
39713_ACEOF
39714cat >>$CONFIG_STATUS <<\_ACEOF
39715for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
a0b9e27f 39716 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
39717 case $ac_file in
39718 - | *:- | *:-:* ) # input from stdin
f95e4495
VS
39719 cat >$tmp/stdin
39720 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39721 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 39722 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
f95e4495 39723 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 39724 * ) ac_file_in=$ac_file.in ;;
10f2d63a 39725 esac
247f5006 39726
e6cc62c6
VS
39727 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
39728 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
39729$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f95e4495
VS
39730 X"$ac_file" : 'X\(//\)[^/]' \| \
39731 X"$ac_file" : 'X\(//\)$' \| \
39732 X"$ac_file" : 'X\(/\)' \| \
39733 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
39734echo X"$ac_file" |
39735 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39736 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39737 /^X\(\/\/\)$/{ s//\1/; q; }
39738 /^X\(\/\).*/{ s//\1/; q; }
39739 s/.*/./; q'`
39740 { if $as_mkdir_p; then
39741 mkdir -p "$ac_dir"
a0b9e27f 39742 else
e6cc62c6
VS
39743 as_dir="$ac_dir"
39744 as_dirs=
39745 while test ! -d "$as_dir"; do
39746 as_dirs="$as_dir $as_dirs"
39747 as_dir=`(dirname "$as_dir") 2>/dev/null ||
39748$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f95e4495
VS
39749 X"$as_dir" : 'X\(//\)[^/]' \| \
39750 X"$as_dir" : 'X\(//\)$' \| \
39751 X"$as_dir" : 'X\(/\)' \| \
39752 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
39753echo X"$as_dir" |
39754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
39755 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
39756 /^X\(\/\/\)$/{ s//\1/; q; }
39757 /^X\(\/\).*/{ s//\1/; q; }
39758 s/.*/./; q'`
39759 done
39760 test ! -n "$as_dirs" || mkdir $as_dirs
39761 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
39762echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
39763 { (exit 1); exit 1; }; }; }
39764
39765 ac_builddir=.
39766
39767if test "$ac_dir" != .; then
39768 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39769 # A "../" for each directory in $ac_dir_suffix.
39770 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
39771else
39772 ac_dir_suffix= ac_top_builddir=
39773fi
247f5006 39774
e6cc62c6
VS
39775case $srcdir in
39776 .) # No --srcdir option. We are building in place.
39777 ac_srcdir=.
39778 if test -z "$ac_top_builddir"; then
39779 ac_top_srcdir=.
39780 else
39781 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
39782 fi ;;
39783 [\\/]* | ?:[\\/]* ) # Absolute path.
39784 ac_srcdir=$srcdir$ac_dir_suffix;
39785 ac_top_srcdir=$srcdir ;;
247f5006 39786 *) # Relative path.
e6cc62c6
VS
39787 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
39788 ac_top_srcdir=$ac_top_builddir$srcdir ;;
39789esac
f95e4495
VS
39790
39791# Do not use `cd foo && pwd` to compute absolute paths, because
39792# the directories may not exist.
39793case `pwd` in
39794.) ac_abs_builddir="$ac_dir";;
39795*)
39796 case "$ac_dir" in
39797 .) ac_abs_builddir=`pwd`;;
39798 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
39799 *) ac_abs_builddir=`pwd`/"$ac_dir";;
39800 esac;;
39801esac
39802case $ac_abs_builddir in
39803.) ac_abs_top_builddir=${ac_top_builddir}.;;
39804*)
39805 case ${ac_top_builddir}. in
39806 .) ac_abs_top_builddir=$ac_abs_builddir;;
39807 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
39808 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
39809 esac;;
39810esac
39811case $ac_abs_builddir in
39812.) ac_abs_srcdir=$ac_srcdir;;
39813*)
39814 case $ac_srcdir in
39815 .) ac_abs_srcdir=$ac_abs_builddir;;
39816 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
39817 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
39818 esac;;
39819esac
39820case $ac_abs_builddir in
39821.) ac_abs_top_srcdir=$ac_top_srcdir;;
39822*)
39823 case $ac_top_srcdir in
39824 .) ac_abs_top_srcdir=$ac_abs_builddir;;
39825 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
39826 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
39827 esac;;
39828esac
10f2d63a 39829
247f5006 39830
e6cc62c6
VS
39831 case $INSTALL in
39832 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39833 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
a0b9e27f 39834 esac
247f5006 39835
e6cc62c6
VS
39836 if test x"$ac_file" != x-; then
39837 { echo "$as_me:$LINENO: creating $ac_file" >&5
39838echo "$as_me: creating $ac_file" >&6;}
39839 rm -f "$ac_file"
39840 fi
39841 # Let's still pretend it is `configure' which instantiates (i.e., don't
39842 # use $as_me), people would be surprised to read:
39843 # /* config.h. Generated by config.status. */
39844 if test x"$ac_file" = x-; then
39845 configure_input=
39846 else
39847 configure_input="$ac_file. "
39848 fi
39849 configure_input=$configure_input"Generated from `echo $ac_file_in |
f95e4495 39850 sed 's,.*/,,'` by configure."
e6cc62c6
VS
39851
39852 # First look for the input files in the build tree, otherwise in the
39853 # src tree.
39854 ac_file_inputs=`IFS=:
39855 for f in $ac_file_in; do
39856 case $f in
39857 -) echo $tmp/stdin ;;
39858 [\\/$]*)
f95e4495
VS
39859 # Absolute (can't be DOS-style, as IFS=:)
39860 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
39861echo "$as_me: error: cannot find input file: $f" >&2;}
39862 { (exit 1); exit 1; }; }
f95e4495 39863 echo "$f";;
e6cc62c6 39864 *) # Relative
f95e4495
VS
39865 if test -f "$f"; then
39866 # Build tree
39867 echo "$f"
39868 elif test -f "$srcdir/$f"; then
39869 # Source tree
39870 echo "$srcdir/$f"
39871 else
39872 # /dev/null tree
39873 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
39874echo "$as_me: error: cannot find input file: $f" >&2;}
39875 { (exit 1); exit 1; }; }
f95e4495 39876 fi;;
e6cc62c6
VS
39877 esac
39878 done` || { (exit 1); exit 1; }
39879_ACEOF
39880cat >>$CONFIG_STATUS <<_ACEOF
39881 sed "$ac_vpsub
39882$extrasub
39883_ACEOF
39884cat >>$CONFIG_STATUS <<\_ACEOF
39885:t
39886/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39887s,@configure_input@,$configure_input,;t t
39888s,@srcdir@,$ac_srcdir,;t t
39889s,@abs_srcdir@,$ac_abs_srcdir,;t t
39890s,@top_srcdir@,$ac_top_srcdir,;t t
39891s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
39892s,@builddir@,$ac_builddir,;t t
39893s,@abs_builddir@,$ac_abs_builddir,;t t
39894s,@top_builddir@,$ac_top_builddir,;t t
39895s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
39896s,@INSTALL@,$ac_INSTALL,;t t
39897" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
39898 rm -f $tmp/stdin
39899 if test x"$ac_file" != x-; then
39900 mv $tmp/out $ac_file
39901 else
39902 cat $tmp/out
39903 rm -f $tmp/out
39904 fi
39905
39906done
39907_ACEOF
39908cat >>$CONFIG_STATUS <<\_ACEOF
39909
39910#
39911# CONFIG_HEADER section.
39912#
10f2d63a
VZ
39913
39914# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
39915# NAME is the cpp macro being defined and VALUE is the value it is being given.
39916#
39917# ac_d sets the value in "#define NAME VALUE" lines.
f95e4495
VS
39918ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
39919ac_dB='[ ].*$,\1#\2'
e6cc62c6
VS
39920ac_dC=' '
39921ac_dD=',;t'
39922# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
f95e4495 39923ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
e6cc62c6 39924ac_uB='$,\1#\2define\3'
10f2d63a 39925ac_uC=' '
e6cc62c6
VS
39926ac_uD=',;t'
39927
39928for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10f2d63a 39929 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
e6cc62c6
VS
39930 case $ac_file in
39931 - | *:- | *:-:* ) # input from stdin
f95e4495
VS
39932 cat >$tmp/stdin
39933 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
39934 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 39935 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
f95e4495 39936 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
e6cc62c6 39937 * ) ac_file_in=$ac_file.in ;;
10f2d63a
VZ
39938 esac
39939
e6cc62c6
VS
39940 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
39941echo "$as_me: creating $ac_file" >&6;}
39942
39943 # First look for the input files in the build tree, otherwise in the
39944 # src tree.
39945 ac_file_inputs=`IFS=:
39946 for f in $ac_file_in; do
39947 case $f in
39948 -) echo $tmp/stdin ;;
39949 [\\/$]*)
f95e4495
VS
39950 # Absolute (can't be DOS-style, as IFS=:)
39951 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
39952echo "$as_me: error: cannot find input file: $f" >&2;}
39953 { (exit 1); exit 1; }; }
f95e4495
VS
39954 # Do quote $f, to prevent DOS paths from being IFS'd.
39955 echo "$f";;
e6cc62c6 39956 *) # Relative
f95e4495
VS
39957 if test -f "$f"; then
39958 # Build tree
39959 echo "$f"
39960 elif test -f "$srcdir/$f"; then
39961 # Source tree
39962 echo "$srcdir/$f"
39963 else
39964 # /dev/null tree
39965 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
e6cc62c6
VS
39966echo "$as_me: error: cannot find input file: $f" >&2;}
39967 { (exit 1); exit 1; }; }
f95e4495 39968 fi;;
e6cc62c6
VS
39969 esac
39970 done` || { (exit 1); exit 1; }
39971 # Remove the trailing spaces.
f95e4495 39972 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
e6cc62c6
VS
39973
39974_ACEOF
39975
39976# Transform confdefs.h into two sed scripts, `conftest.defines' and
39977# `conftest.undefs', that substitutes the proper values into
39978# config.h.in to produce config.h. The first handles `#define'
39979# templates, and the second `#undef' templates.
39980# And first: Protect against being on the right side of a sed subst in
39981# config.status. Protect against being in an unquoted here document
39982# in config.status.
39983rm -f conftest.defines conftest.undefs
39984# Using a here document instead of a string reduces the quoting nightmare.
39985# Putting comments in sed scripts is not portable.
39986#
39987# `end' is used to avoid that the second main sed command (meant for
39988# 0-ary CPP macros) applies to n-ary macro definitions.
39989# See the Autoconf documentation for `clear'.
39990cat >confdef2sed.sed <<\_ACEOF
39991s/[\\&,]/\\&/g
39992s,[\\$`],\\&,g
39993t clear
39994: clear
f95e4495 39995s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
e6cc62c6 39996t end
f95e4495 39997s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
e6cc62c6
VS
39998: end
39999_ACEOF
40000# If some macros were called several times there might be several times
40001# the same #defines, which is useless. Nevertheless, we may not want to
40002# sort them, since we want the *last* AC-DEFINE to be honored.
40003uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
40004sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
40005rm -f confdef2sed.sed
10f2d63a
VZ
40006
40007# This sed command replaces #undef with comments. This is necessary, for
40008# example, in the case of _POSIX_SOURCE, which is predefined and required
40009# on some systems where configure will not decide to define it.
e6cc62c6 40010cat >>conftest.undefs <<\_ACEOF
f95e4495 40011s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
e6cc62c6
VS
40012_ACEOF
40013
40014# Break up conftest.defines because some shells have a limit on the size
40015# of here documents, and old seds have small limits too (100 cmds).
40016echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
f95e4495 40017echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
e6cc62c6
VS
40018echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
40019echo ' :' >>$CONFIG_STATUS
40020rm -f conftest.tail
40021while grep . conftest.defines >/dev/null
40022do
40023 # Write a limited-size here document to $tmp/defines.sed.
40024 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
40025 # Speed up: don't consider the non `#define' lines.
f95e4495 40026 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
e6cc62c6
VS
40027 # Work around the forget-to-reset-the-flag bug.
40028 echo 't clr' >>$CONFIG_STATUS
40029 echo ': clr' >>$CONFIG_STATUS
40030 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
40031 echo 'CEOF
40032 sed -f $tmp/defines.sed $tmp/in >$tmp/out
40033 rm -f $tmp/in
40034 mv $tmp/out $tmp/in
40035' >>$CONFIG_STATUS
40036 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
40037 rm -f conftest.defines
40038 mv conftest.tail conftest.defines
40039done
40040rm -f conftest.defines
40041echo ' fi # grep' >>$CONFIG_STATUS
40042echo >>$CONFIG_STATUS
10f2d63a 40043
e6cc62c6
VS
40044# Break up conftest.undefs because some shells have a limit on the size
40045# of here documents, and old seds have small limits too (100 cmds).
40046echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10f2d63a 40047rm -f conftest.tail
e6cc62c6 40048while grep . conftest.undefs >/dev/null
10f2d63a 40049do
e6cc62c6
VS
40050 # Write a limited-size here document to $tmp/undefs.sed.
40051 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
40052 # Speed up: don't consider the non `#undef'
f95e4495 40053 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
e6cc62c6
VS
40054 # Work around the forget-to-reset-the-flag bug.
40055 echo 't clr' >>$CONFIG_STATUS
40056 echo ': clr' >>$CONFIG_STATUS
40057 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10f2d63a 40058 echo 'CEOF
e6cc62c6
VS
40059 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
40060 rm -f $tmp/in
40061 mv $tmp/out $tmp/in
40062' >>$CONFIG_STATUS
40063 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
40064 rm -f conftest.undefs
40065 mv conftest.tail conftest.undefs
10f2d63a 40066done
e6cc62c6
VS
40067rm -f conftest.undefs
40068
40069cat >>$CONFIG_STATUS <<\_ACEOF
40070 # Let's still pretend it is `configure' which instantiates (i.e., don't
40071 # use $as_me), people would be surprised to read:
40072 # /* config.h. Generated by config.status. */
40073 if test x"$ac_file" = x-; then
40074 echo "/* Generated by configure. */" >$tmp/config.h
10f2d63a 40075 else
e6cc62c6 40076 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
247f5006 40077 fi
e6cc62c6
VS
40078 cat $tmp/in >>$tmp/config.h
40079 rm -f $tmp/in
40080 if test x"$ac_file" != x-; then
40081 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
40082 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40083echo "$as_me: $ac_file is unchanged" >&6;}
40084 else
40085 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
40086$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f95e4495
VS
40087 X"$ac_file" : 'X\(//\)[^/]' \| \
40088 X"$ac_file" : 'X\(//\)$' \| \
40089 X"$ac_file" : 'X\(/\)' \| \
40090 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
40091echo X"$ac_file" |
40092 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40093 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40094 /^X\(\/\/\)$/{ s//\1/; q; }
40095 /^X\(\/\).*/{ s//\1/; q; }
40096 s/.*/./; q'`
40097 { if $as_mkdir_p; then
40098 mkdir -p "$ac_dir"
40099 else
40100 as_dir="$ac_dir"
40101 as_dirs=
40102 while test ! -d "$as_dir"; do
40103 as_dirs="$as_dir $as_dirs"
40104 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40105$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f95e4495
VS
40106 X"$as_dir" : 'X\(//\)[^/]' \| \
40107 X"$as_dir" : 'X\(//\)$' \| \
40108 X"$as_dir" : 'X\(/\)' \| \
40109 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
40110echo X"$as_dir" |
40111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40112 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40113 /^X\(\/\/\)$/{ s//\1/; q; }
40114 /^X\(\/\).*/{ s//\1/; q; }
40115 s/.*/./; q'`
40116 done
40117 test ! -n "$as_dirs" || mkdir $as_dirs
40118 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40119echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40120 { (exit 1); exit 1; }; }; }
a0b9e27f 40121
e6cc62c6
VS
40122 rm -f $ac_file
40123 mv $tmp/config.h $ac_file
40124 fi
40125 else
40126 cat $tmp/config.h
40127 rm -f $tmp/config.h
40128 fi
40129done
40130_ACEOF
40131cat >>$CONFIG_STATUS <<\_ACEOF
10f2d63a 40132
e6cc62c6
VS
40133#
40134# CONFIG_COMMANDS section.
40135#
40136for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
40137 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
40138 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
40139 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
40140$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f95e4495
VS
40141 X"$ac_dest" : 'X\(//\)[^/]' \| \
40142 X"$ac_dest" : 'X\(//\)$' \| \
40143 X"$ac_dest" : 'X\(/\)' \| \
40144 . : '\(.\)' 2>/dev/null ||
e6cc62c6
VS
40145echo X"$ac_dest" |
40146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40147 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40148 /^X\(\/\/\)$/{ s//\1/; q; }
40149 /^X\(\/\).*/{ s//\1/; q; }
40150 s/.*/./; q'`
f95e4495
VS
40151 { if $as_mkdir_p; then
40152 mkdir -p "$ac_dir"
40153 else
40154 as_dir="$ac_dir"
40155 as_dirs=
40156 while test ! -d "$as_dir"; do
40157 as_dirs="$as_dir $as_dirs"
40158 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40159$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40160 X"$as_dir" : 'X\(//\)[^/]' \| \
40161 X"$as_dir" : 'X\(//\)$' \| \
40162 X"$as_dir" : 'X\(/\)' \| \
40163 . : '\(.\)' 2>/dev/null ||
40164echo X"$as_dir" |
40165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40166 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40167 /^X\(\/\/\)$/{ s//\1/; q; }
40168 /^X\(\/\).*/{ s//\1/; q; }
40169 s/.*/./; q'`
40170 done
40171 test ! -n "$as_dirs" || mkdir $as_dirs
40172 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40173echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40174 { (exit 1); exit 1; }; }; }
40175
e6cc62c6
VS
40176 ac_builddir=.
40177
40178if test "$ac_dir" != .; then
40179 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40180 # A "../" for each directory in $ac_dir_suffix.
40181 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40182else
40183 ac_dir_suffix= ac_top_builddir=
40184fi
40185
40186case $srcdir in
40187 .) # No --srcdir option. We are building in place.
40188 ac_srcdir=.
40189 if test -z "$ac_top_builddir"; then
40190 ac_top_srcdir=.
40191 else
40192 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40193 fi ;;
40194 [\\/]* | ?:[\\/]* ) # Absolute path.
40195 ac_srcdir=$srcdir$ac_dir_suffix;
40196 ac_top_srcdir=$srcdir ;;
40197 *) # Relative path.
40198 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40199 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40200esac
f95e4495
VS
40201
40202# Do not use `cd foo && pwd` to compute absolute paths, because
40203# the directories may not exist.
40204case `pwd` in
40205.) ac_abs_builddir="$ac_dir";;
40206*)
40207 case "$ac_dir" in
40208 .) ac_abs_builddir=`pwd`;;
40209 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40210 *) ac_abs_builddir=`pwd`/"$ac_dir";;
40211 esac;;
40212esac
40213case $ac_abs_builddir in
40214.) ac_abs_top_builddir=${ac_top_builddir}.;;
40215*)
40216 case ${ac_top_builddir}. in
40217 .) ac_abs_top_builddir=$ac_abs_builddir;;
40218 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40219 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40220 esac;;
40221esac
40222case $ac_abs_builddir in
40223.) ac_abs_srcdir=$ac_srcdir;;
40224*)
40225 case $ac_srcdir in
40226 .) ac_abs_srcdir=$ac_abs_builddir;;
40227 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40228 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40229 esac;;
40230esac
40231case $ac_abs_builddir in
40232.) ac_abs_top_srcdir=$ac_top_srcdir;;
40233*)
40234 case $ac_top_srcdir in
40235 .) ac_abs_top_srcdir=$ac_abs_builddir;;
40236 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40237 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40238 esac;;
40239esac
e6cc62c6
VS
40240
40241
40242 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
40243echo "$as_me: executing $ac_dest commands" >&6;}
40244 case $ac_dest in
40245 default )
652d930d 40246 if test ! -h wx-config; then
991a5759 40247 chmod +x wx-config
3a922bb4
RL
40248 mv wx-config wx${TOOLCHAIN_NAME}-config
40249 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
991a5759 40250 fi
665bbe97 40251
00cf1208
RR
40252 if test ! -d lib; then
40253 mkdir lib
40254 fi
40255 if test ! -d lib/wx; then
40256 mkdir lib/wx
40257 fi
40258 if test ! -d lib/wx/include; then
40259 mkdir lib/wx/include
40260 fi
3a922bb4
RL
40261 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
40262 mkdir lib/wx/include/${TOOLCHAIN_NAME}
00cf1208 40263 fi
3a922bb4
RL
40264 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
40265 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
00cf1208
RR
40266 fi
40267 if test -f setup.h; then
3a922bb4 40268 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
00cf1208 40269 fi
e6cc62c6
VS
40270 ;;
40271 esac
40272done
40273_ACEOF
2224580a 40274
e6cc62c6 40275cat >>$CONFIG_STATUS <<\_ACEOF
2224580a 40276
e6cc62c6
VS
40277{ (exit 0); exit 0; }
40278_ACEOF
40279chmod +x $CONFIG_STATUS
40280ac_clean_files=$ac_clean_files_save
40281
40282
40283# configure is writing to config.log, and then calls config.status.
40284# config.status does its own redirection, appending to config.log.
40285# Unfortunately, on DOS this fails, as config.log is still kept open
40286# by configure, so config.status won't be able to write to it; its
40287# output is simply discarded. So we exec the FD to /dev/null,
40288# effectively closing config.log, so it can be properly (re)opened and
40289# appended to by config.status. When coming back to configure, we
40290# need to make the FD available again.
40291if test "$no_create" != yes; then
40292 ac_cs_success=:
40293 ac_config_status_args=
40294 test "$silent" = yes &&
40295 ac_config_status_args="$ac_config_status_args --quiet"
40296 exec 5>/dev/null
40297 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40298 exec 5>>config.log
40299 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40300 # would make configure fail if this is the last instruction.
40301 $ac_cs_success || { (exit 1); exit 1; }
2224580a
VZ
40302fi
40303
672abd7a
VS
40304#
40305# CONFIG_SUBDIRS section.
40306#
40307if test "$no_recursion" != yes; then
40308
40309 # Remove --cache-file and --srcdir arguments so they do not pile up.
40310 ac_sub_configure_args=
40311 ac_prev=
40312 for ac_arg in $ac_configure_args; do
40313 if test -n "$ac_prev"; then
40314 ac_prev=
40315 continue
40316 fi
40317 case $ac_arg in
40318 -cache-file | --cache-file | --cache-fil | --cache-fi \
40319 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
40320 ac_prev=cache_file ;;
40321 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
40322 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
40323 | --c=*)
40324 ;;
40325 --config-cache | -C)
40326 ;;
40327 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
40328 ac_prev=srcdir ;;
40329 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
40330 ;;
40331 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
40332 ac_prev=prefix ;;
40333 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
40334 ;;
40335 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
40336 esac
40337 done
40338
40339 # Always prepend --prefix to ensure using the same prefix
40340 # in subdir configurations.
40341 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
40342
40343 ac_popdir=`pwd`
40344 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
40345
40346 # Do not complain, so a configure script can configure whichever
40347 # parts of a large source tree are present.
40348 test -d $srcdir/$ac_dir || continue
40349
40350 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
40351echo "$as_me: configuring in $ac_dir" >&6;}
40352 { if $as_mkdir_p; then
40353 mkdir -p "$ac_dir"
40354 else
40355 as_dir="$ac_dir"
40356 as_dirs=
40357 while test ! -d "$as_dir"; do
40358 as_dirs="$as_dir $as_dirs"
40359 as_dir=`(dirname "$as_dir") 2>/dev/null ||
40360$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
f95e4495
VS
40361 X"$as_dir" : 'X\(//\)[^/]' \| \
40362 X"$as_dir" : 'X\(//\)$' \| \
40363 X"$as_dir" : 'X\(/\)' \| \
40364 . : '\(.\)' 2>/dev/null ||
672abd7a
VS
40365echo X"$as_dir" |
40366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
40367 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
40368 /^X\(\/\/\)$/{ s//\1/; q; }
40369 /^X\(\/\).*/{ s//\1/; q; }
40370 s/.*/./; q'`
40371 done
40372 test ! -n "$as_dirs" || mkdir $as_dirs
40373 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
40374echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
40375 { (exit 1); exit 1; }; }; }
40376
40377 ac_builddir=.
40378
40379if test "$ac_dir" != .; then
40380 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40381 # A "../" for each directory in $ac_dir_suffix.
40382 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
40383else
40384 ac_dir_suffix= ac_top_builddir=
40385fi
40386
40387case $srcdir in
40388 .) # No --srcdir option. We are building in place.
40389 ac_srcdir=.
40390 if test -z "$ac_top_builddir"; then
40391 ac_top_srcdir=.
40392 else
40393 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
40394 fi ;;
40395 [\\/]* | ?:[\\/]* ) # Absolute path.
40396 ac_srcdir=$srcdir$ac_dir_suffix;
40397 ac_top_srcdir=$srcdir ;;
40398 *) # Relative path.
40399 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
40400 ac_top_srcdir=$ac_top_builddir$srcdir ;;
40401esac
f95e4495
VS
40402
40403# Do not use `cd foo && pwd` to compute absolute paths, because
40404# the directories may not exist.
40405case `pwd` in
40406.) ac_abs_builddir="$ac_dir";;
40407*)
40408 case "$ac_dir" in
40409 .) ac_abs_builddir=`pwd`;;
40410 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
40411 *) ac_abs_builddir=`pwd`/"$ac_dir";;
40412 esac;;
40413esac
40414case $ac_abs_builddir in
40415.) ac_abs_top_builddir=${ac_top_builddir}.;;
40416*)
40417 case ${ac_top_builddir}. in
40418 .) ac_abs_top_builddir=$ac_abs_builddir;;
40419 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
40420 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
40421 esac;;
40422esac
40423case $ac_abs_builddir in
40424.) ac_abs_srcdir=$ac_srcdir;;
40425*)
40426 case $ac_srcdir in
40427 .) ac_abs_srcdir=$ac_abs_builddir;;
40428 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
40429 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
40430 esac;;
40431esac
40432case $ac_abs_builddir in
40433.) ac_abs_top_srcdir=$ac_top_srcdir;;
40434*)
40435 case $ac_top_srcdir in
40436 .) ac_abs_top_srcdir=$ac_abs_builddir;;
40437 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
40438 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
40439 esac;;
40440esac
672abd7a
VS
40441
40442
40443 cd $ac_dir
40444
40445 # Check for guested configure; otherwise get Cygnus style configure.
40446 if test -f $ac_srcdir/configure.gnu; then
40447 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
40448 elif test -f $ac_srcdir/configure; then
40449 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
40450 elif test -f $ac_srcdir/configure.in; then
40451 ac_sub_configure=$ac_configure
40452 else
40453 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
40454echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
40455 ac_sub_configure=
40456 fi
40457
40458 # The recursion is here.
40459 if test -n "$ac_sub_configure"; then
40460 # Make the cache file name correct relative to the subdirectory.
40461 case $cache_file in
40462 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
40463 *) # Relative path.
f95e4495 40464 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
672abd7a
VS
40465 esac
40466
40467 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
40468echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
40469 # The eval makes quoting arguments work.
40470 eval $ac_sub_configure $ac_sub_configure_args \
f95e4495
VS
40471 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
40472 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
672abd7a
VS
40473echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
40474 { (exit 1); exit 1; }; }
40475 fi
40476
40477 cd $ac_popdir
40478 done
40479fi
40480
8284b0c5 40481
2b5f62a0
VZ
40482echo
40483echo "Configured wxWindows ${WX_VERSION} for \`${host}'"
40484echo ""
89fe663f 40485echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}"
9747f85d 40486echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}"
2b5f62a0
VZ
40487
40488echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}"
40489echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}"
40490echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}"
40491
0c98a14e 40492echo " What level of wxWindows compatibility should be enabled?"
65d8ef1e
VS
40493echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}"
40494echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}"
0c98a14e 40495
2b5f62a0
VZ
40496echo " Which libraries should wxWindows use?"
40497echo " jpeg ${wxUSE_LIBJPEG-none}"
40498echo " png ${wxUSE_LIBPNG-none}"
40499echo " regex ${wxUSE_REGEX}"
40500echo " tiff ${wxUSE_LIBTIFF-none}"
89fe663f
VZ
40501if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
40502echo " xpm ${wxUSE_LIBXPM-none}"
40503fi
2b5f62a0 40504echo " zlib ${wxUSE_ZLIB}"
fd3d7534 40505echo " odbc ${wxUSE_ODBC}"
5f0b6dff 40506echo " expat ${wxUSE_EXPAT}"
3527f29c 40507echo " libmspack ${wxUSE_LIBMSPACK}"
2b5f62a0
VZ
40508
40509echo ""
40510